@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=Figtree:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --teal: #00AEAE;
  --teal-dark: #008888;
  --teal-mid: #00C4C4;
  --teal-light: #E0F7F7;
  --teal-xlight: #F0FBFB;

  --coral: #FF5C40;
  --coral-dark: #E54430;
  --coral-light: #FFF0EC;

  --yellow: #FFD124;
  --yellow-light: #FFF8DC;

  --bg: #F2F9F9;
  --bg-alt: #EBF5F5;
  --white: #FFFFFF;

  --text-900: #152626;
  --text-700: #2C4848;
  --text-500: #547070;
  --text-300: #8AAAAA;

  --border: #D4E6E6;
  --border-soft: #EAF3F3;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 100px;

  --shadow-xs: 0 1px 4px rgba(0,50,50,.06);
  --shadow-sm: 0 2px 10px rgba(0,50,50,.08);
  --shadow-md: 0 8px 24px rgba(0,50,50,.10);
  --shadow-lg: 0 16px 48px rgba(0,50,50,.13);

  --t: 220ms ease-out;
  --nav-h: 70px;
}

/* ============================================================
   RESET
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Figtree', sans-serif;
  color: var(--text-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1, h2, h3, h4, h5 {
  font-family: 'Sora', sans-serif;
  line-height: 1.2;
  color: var(--text-900);
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
p { color: var(--text-500); }

/* ============================================================
   LAYOUT
============================================================ */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ============================================================
   NAVBAR
============================================================ */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }

.navbar__inner {
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}

.navbar__logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -.02em;
}
.logo-mi { color: var(--teal); }
.logo-ri { color: var(--coral); }

.navbar__nav { display: flex; align-items: center; gap: 36px; }
.navbar__nav a {
  font-size: .9rem; font-weight: 500; color: var(--text-500);
  transition: color var(--t); position: relative;
}
.navbar__nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--teal); border-radius: 2px;
  transition: width var(--t);
}
.navbar__nav a:hover { color: var(--teal); }
.navbar__nav a:hover::after, .navbar__nav a.active::after { width: 100%; }
.navbar__nav a.active { color: var(--teal); font-weight: 600; }

.navbar__mobile-toggle {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
  position: relative; z-index: 1002;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.navbar__mobile-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--text-700); border-radius: 2px; transition: all var(--t);
}

.navbar__mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--white); padding: 32px 24px;
  flex-direction: column; gap: 0; z-index: 1001;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.navbar__mobile-menu.open { display: flex; }
.navbar__mobile-menu a {
  font-size: 1.1rem; font-weight: 500; color: var(--text-700);
  padding: 14px 0; border-bottom: 1px solid var(--border-soft);
  transition: color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.navbar__mobile-menu a:hover { color: var(--teal); }
/* Il bottone CTA "Pubblica viaggio" nel menu mobile deve restare bianco */
.navbar__mobile-menu a.btn-primary,
.navbar__mobile-menu a.btn-primary:hover { color: #fff; }

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Figtree', sans-serif; font-weight: 600; font-size: .95rem;
  padding: 11px 26px; border-radius: var(--r-pill);
  transition: all var(--t); white-space: nowrap; cursor: pointer;
  border: 2px solid transparent; text-decoration: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover {
  background: var(--teal-dark); border-color: var(--teal-dark);
  transform: scale(1.02); box-shadow: var(--shadow-md);
}
.btn-secondary { background: transparent; color: var(--coral); border-color: var(--coral); }
.btn-secondary:hover {
  background: var(--coral-light); transform: scale(1.02); box-shadow: var(--shadow-sm);
}
.btn-white { background: #fff; color: var(--teal); border-color: #fff; }
.btn-white:hover { background: var(--teal-xlight); transform: scale(1.02); box-shadow: var(--shadow-md); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: scale(1.02); }
.btn-whatsapp { background: #25D366; color: #fff; border-color: #25D366; }
.btn-whatsapp:hover { background: #1EBE57; border-color: #1EBE57; transform: scale(1.02); box-shadow: var(--shadow-md); }
.btn-lg { font-size: 1.05rem; padding: 14px 34px; }
.btn-sm { font-size: .82rem; padding: 7px 16px; }
.btn-full { width: 100%; justify-content: center; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ============================================================
   BADGES
============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill);
}
.badge-verified { background: var(--teal-light); color: var(--teal-dark); }
.badge-discount { background: var(--yellow-light); color: #7A6000; }
.badge-operator { background: var(--border-soft); color: var(--text-500); border: 1px solid var(--border); }
.badge-class { background: var(--bg); color: var(--text-500); border: 1px solid var(--border); }

/* ============================================================
   TICKET CARD
============================================================ */
.ticket-card {
  display: block; background: var(--white); border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
  transition: all var(--t); overflow: hidden; cursor: pointer;
  position: relative; text-decoration: none; color: inherit;
}
.ticket-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px; background: var(--teal); border-radius: var(--r-lg) 0 0 var(--r-lg);
}
.ticket-card.reverse::before { background: var(--coral); }
.ticket-card:hover {
  box-shadow: var(--shadow-md); transform: translateY(-3px) scale(1.01);
  border-color: var(--teal-light);
}
.ticket-card.reverse:hover { border-color: #FFD8D0; }

.ticket-card__body { padding: 20px 20px 20px 24px; }

.ticket-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}

.ticket-card__route { display: flex; align-items: center; gap: 10px; }
.ticket-card__city {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
  color: var(--text-900);
}
.ticket-card__city-sub { font-size: .72rem; color: var(--text-300); font-weight: 400; margin-top: 1px; }
.ticket-card__arrow { color: var(--teal); flex-shrink: 0; }
.ticket-card.reverse .ticket-card__arrow { color: var(--coral); }

.ticket-card__price-box { text-align: right; flex-shrink: 0; }
.ticket-card__price {
  font-family: 'Sora', sans-serif; font-size: 1.65rem;
  font-weight: 800; color: var(--coral); line-height: 1;
}
.ticket-card__price-orig {
  font-size: .78rem; color: var(--text-300); text-decoration: line-through; margin-top: 1px;
}
.ticket-card__price-save {
  display: inline-block; background: var(--yellow-light); color: #7A6000;
  font-size: .69rem; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill);
  margin-top: 3px;
}

.ticket-card__times {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ticket-card__time { text-align: center; }
.ticket-card__time-val {
  font-family: 'Sora', sans-serif; font-size: 1.2rem; font-weight: 700; color: var(--text-900);
  line-height: 1;
}
.ticket-card__time-date { font-size: .72rem; color: var(--text-300); margin-top: 2px; }

.ticket-card__line { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ticket-card__line-bar {
  width: 100%; height: 1.5px; background: var(--border); position: relative;
}
.ticket-card__line-bar::before, .ticket-card__line-bar::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal);
}
.ticket-card.reverse .ticket-card__line-bar::before,
.ticket-card.reverse .ticket-card__line-bar::after { background: var(--coral); }
.ticket-card__line-bar::before { left: 0; }
.ticket-card__line-bar::after { right: 0; }
.ticket-card__duration { font-size: .72rem; color: var(--text-300); }

.ticket-card__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border-soft); gap: 8px; flex-wrap: wrap;
}
.ticket-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.ticket-card__seller { display: flex; align-items: center; gap: 7px; }
.seller-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.seller-name { font-size: .8rem; font-weight: 500; color: var(--text-500); }
.seller-stars { font-size: .78rem; color: #F5A623; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: linear-gradient(135deg, #002828 0%, #003D3D 45%, #005050 100%);
  padding: 72px 0 88px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; right: -80px;
  width: 580px; height: 580px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,196,.14) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; bottom: -60px; left: 5%;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,92,64,.09) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero__layout {
  display: grid; grid-template-columns: 1fr 520px; gap: 64px; align-items: center;
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.85); font-size: .82rem; font-weight: 500;
  padding: 5px 13px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero__eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal-mid);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}

.hero__dialect {
  display: block; font-style: italic;
  color: rgba(255,255,255,.45); font-size: .875rem; margin-bottom: 10px;
  font-family: 'Figtree', sans-serif; font-weight: 400;
}
.hero h1 { color: #fff; margin-bottom: 14px; }
.hero__sub {
  color: rgba(255,255,255,.65); font-size: 1.05rem; margin-bottom: 36px; max-width: 440px;
}

.hero__stats { display: flex; gap: 36px; }
.hero__stat-val {
  font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800;
  color: var(--teal-mid); line-height: 1; margin-bottom: 3px;
}
.hero__stat-lbl { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ============================================================
   SEARCH WIDGET
============================================================ */
.search-widget {
  background: #fff; border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-lg); position: relative; z-index: 2;
}
.search-widget__label {
  font-size: .75rem; font-weight: 700; color: var(--text-300);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}

.route-tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.route-tab {
  flex: 1; padding: 11px 12px; border-radius: var(--r-md);
  border: 1.5px solid var(--border); background: transparent;
  font-size: .875rem; font-weight: 600; color: var(--text-500);
  cursor: pointer; transition: all var(--t); font-family: 'Figtree', sans-serif;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.route-tab:hover { border-color: var(--teal); color: var(--teal); }
.route-tab.active {
  background: var(--teal-light); border-color: var(--teal); color: var(--teal-dark);
}
.route-tab svg { width: 14px; height: 14px; }

.search-fields { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.search-field { display: flex; flex-direction: column; gap: 5px; }
.search-field label {
  font-size: .76rem; font-weight: 700; color: var(--text-300);
  text-transform: uppercase; letter-spacing: .07em;
}
.search-field input, .search-field select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .95rem; font-family: 'Figtree', sans-serif; color: var(--text-900);
  background: #fff; outline: none; transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.search-field input:focus, .search-field select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,180,.08);
}

/* ============================================================
   SECTION HEADER
============================================================ */
.section-header { text-align: center; margin-bottom: 52px; }
.section-header .eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 520px; margin: 0 auto; }

/* ============================================================
   STEPS
============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  text-align: center; padding: 36px 28px;
  background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-xs);
  transition: all var(--t);
}
.step:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.step__num {
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.3rem;
  margin: 0 auto 18px;
}
.step:nth-child(1) .step__num { background: var(--teal-light); color: var(--teal-dark); }
.step:nth-child(2) .step__num { background: var(--coral-light); color: var(--coral-dark); }
.step:nth-child(3) .step__num { background: var(--yellow-light); color: #8A6A00; }
.step h3 { margin-bottom: 10px; font-size: 1.1rem; }
.step p { font-size: .88rem; }

/* ============================================================
   GRIDS
============================================================ */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tickets-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* ============================================================
   TRUST STRIP
============================================================ */
.trust-strip { background: var(--white); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust-items { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  padding: 32px 24px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 10px;
  border-right: 1px solid var(--border-soft);
}
.trust-item:last-child { border-right: none; }
.trust-item__icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--teal-light); display: flex; align-items: center; justify-content: center;
  color: var(--teal-dark);
}
.trust-item h4 { font-size: .9rem; margin-bottom: 3px; }
.trust-item p { font-size: .8rem; }

/* ============================================================
   ANNUNCI PAGE
============================================================ */
.page-hero {
  background: var(--white); border-bottom: 1px solid var(--border-soft);
  padding: 32px 0 28px;
}
.page-hero h1 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin-bottom: 6px; }
.page-hero p { font-size: .92rem; }

.annunci-layout { display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }

.filters-sidebar {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 22px; position: sticky; top: calc(var(--nav-h) + 16px);
}
.filters-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px;
}
.filters-header h3 { font-size: .95rem; }
.filters-clear {
  font-size: .8rem; color: var(--teal); font-weight: 600; cursor: pointer;
  font-family: 'Figtree', sans-serif; background: none; border: none;
}
.filter-group { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border-soft); }
.filter-group:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.filter-label {
  font-size: .73rem; font-weight: 700; color: var(--text-300);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; font-size: .875rem; color: var(--text-700); cursor: pointer;
  min-height: 44px; /* tap target iOS HIG */
  -webkit-tap-highlight-color: transparent;
}
.filter-option input {
  width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer;
  flex-shrink: 0;
}

.sort-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px; gap: 12px; flex-wrap: wrap;
}
.sort-bar__info { font-size: .875rem; color: var(--text-500); }
.sort-bar__info strong { color: var(--text-900); }

.sort-pills { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: var(--r-pill); }
.sort-pill {
  padding: 6px 15px; font-size: .82rem; font-weight: 500; color: var(--text-500);
  border-radius: var(--r-pill); cursor: pointer; transition: all var(--t);
  font-family: 'Figtree', sans-serif;
}
.sort-pill.active {
  background: #fff; color: var(--teal-dark); font-weight: 600; box-shadow: var(--shadow-xs);
}

.tickets-list { display: flex; flex-direction: column; gap: 14px; }

/* ── Navigatore date (frecce giorno precedente/successivo) ── */
.date-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 10px 14px;
  margin-bottom: 16px;
}
.date-nav--mobile { display: none; } /* mostrato via JS solo su mobile */
.date-nav__arrow {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; flex-shrink: 0;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-500);
  cursor: pointer;
  transition: all var(--t);
}
.date-nav__arrow:hover {
  background: var(--teal-xlight);
  border-color: var(--teal-light);
  color: var(--teal-dark);
}
.date-nav__center {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px; flex: 1;
}
.date-nav__label {
  font-family: 'Sora', sans-serif;
  font-size: .92rem; font-weight: 700;
  color: var(--text-900);
  white-space: nowrap;
}
.date-nav__count {
  font-size: .75rem; color: var(--teal-dark);
  font-weight: 600;
  background: var(--teal-xlight);
  padding: 1px 8px; border-radius: var(--r-pill);
  white-space: nowrap;
}
/* su mobile il date-nav è compatto (no colonna, tutto in riga) */
.date-nav--mobile {
  margin-bottom: 0;
  padding: 6px 10px;
  border-radius: var(--r-pill);
}
.date-nav--mobile .date-nav__label {
  font-size: .8rem;
  white-space: nowrap;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.date-nav--mobile .date-nav__arrow {
  width: 28px; height: 28px;
}

.filters-btn-mobile { display: none; }

/* Mobile drawer */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,30,30,.5); z-index: 1500;
}
.drawer-overlay.open { display: block; }
.filters-drawer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 28px 20px 36px; max-height: min(82vh, 82dvh); overflow-y: auto;
  transform: translateY(100%); transition: transform 300ms ease-out; z-index: 1501;
}
.drawer-overlay.open .filters-drawer { transform: translateY(0); }
.drawer-handle {
  width: 40px; height: 4px; border-radius: 2px; background: var(--border);
  margin: 0 auto 20px;
}

/* ============================================================
   DETAIL PAGE
============================================================ */
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.detail-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }

.route-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 28px; margin-bottom: 16px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.route-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--teal); border-radius: 4px 4px 0 0;
}
.route-card--car::before { background: var(--coral); }
.route-card__header { font-size: .75rem; font-weight: 700; color: var(--text-300); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 20px; }
.route-card__times { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.route-card__station { flex: 1; }
.route-card__time {
  font-family: 'Sora', sans-serif; font-size: 2.5rem; font-weight: 800;
  color: var(--text-900); line-height: 1;
}
.route-card__station-name { font-size: .82rem; color: var(--text-400); margin-top: 4px; }
.route-card__to { text-align: right; }
.route-card__mid { text-align: center; flex: 1; }
.route-card__line {
  width: 100%; height: 1.5px; background: var(--border); position: relative; margin: 6px 0;
}
.route-card__line::before, .route-card__line::after {
  content: ''; position: absolute; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
}
.route-card--car .route-card__line::before,
.route-card--car .route-card__line::after { background: var(--coral); }
.route-card__line::before { left: 0; }
.route-card__line::after { right: 0; }
.route-card__dur { font-size: .78rem; color: var(--text-300); }
.route-card__meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

.detail-section {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow-xs);
}
.detail-section__title {
  font-family: 'Sora', sans-serif; font-size: .9rem; font-weight: 700;
  color: var(--text-900); margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 8px;
}
.detail-section__title svg { width: 16px; height: 16px; color: var(--teal); }

.detail-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--border-soft); gap: 12px;
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row__key { font-size: .85rem; color: var(--text-300); font-weight: 500; }
.detail-row__val { font-size: .85rem; color: var(--text-900); font-weight: 600; text-align: right; }

/* Sidebar price card */
.price-card {
  background: #fff; border-radius: var(--r-lg);
  border: 2px solid var(--teal-light); padding: 22px;
  text-align: center; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
.price-card__amount {
  font-family: 'Sora', sans-serif; font-size: 2.75rem; font-weight: 800;
  color: var(--coral); line-height: 1; margin-bottom: 4px;
}
.price-card__orig {
  font-size: .82rem; color: var(--text-300); text-decoration: line-through; margin-bottom: 6px;
}
.price-card__save {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--yellow-light); color: #7A6000;
  font-size: .78rem; font-weight: 700; padding: 3px 10px;
  border-radius: var(--r-pill); margin-bottom: 20px;
}

.seller-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 20px; margin-bottom: 12px; box-shadow: var(--shadow-xs);
}
.seller-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.seller-avatar-lg {
  width: 44px; height: 44px; border-radius: 50%; background: var(--teal-light);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center;
  font-size: .95rem; font-weight: 700; flex-shrink: 0;
}
.seller-card__name { font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.seller-card__stats { display: flex; gap: 12px; flex-wrap: wrap; }
.seller-card__stat { font-size: .8rem; color: var(--text-500); }
.seller-card__stat strong { color: var(--text-900); }

.trust-note {
  background: var(--teal-xlight); border: 1px solid var(--teal-light);
  border-radius: var(--r-md); padding: 12px 14px; font-size: .82rem;
  color: var(--text-500); display: flex; gap: 8px; align-items: flex-start;
  margin-bottom: 12px;
}
.trust-note svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--teal); margin-top: 2px; }

/* Sticky CTA */
.sticky-cta {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 12px 20px; z-index: 800;
  box-shadow: 0 -4px 20px rgba(0,50,50,.08);
}
.sticky-cta__price {
  font-family: 'Sora', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--coral);
}
.sticky-cta__orig { font-size: .78rem; color: var(--text-300); }

/* Similar listings */
.similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,30,30,.65);
  backdrop-filter: blur(5px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity var(--t);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: var(--r-xl); padding: 28px;
  max-width: 460px; width: 100%; box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.98); transition: transform var(--t);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal__header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.modal__header h3 { font-size: 1.1rem; }
.modal__close {
  width: 30px; height: 30px; border-radius: 50%; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: var(--text-500); cursor: pointer; transition: all var(--t); border: none;
}
.modal__close:hover { background: var(--border); color: var(--text-900); }
.modal__summary {
  background: var(--teal-xlight); border: 1px solid var(--teal-light);
  border-radius: var(--r-md); padding: 14px; margin-bottom: 18px;
}
.modal__summary-route {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1rem;
  margin-bottom: 6px;
}
.modal__summary-detail { font-size: .85rem; color: var(--text-500); }
.modal__price {
  font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--coral); margin-top: 8px;
}
.modal__note {
  font-size: .8rem; color: var(--text-300); text-align: center; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.modal__note svg { width: 13px; height: 13px; color: var(--teal); }
.modal__actions { display: flex; flex-direction: column; gap: 9px; }

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: .82rem; color: var(--text-300); margin-bottom: 24px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-500); transition: color var(--t); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb svg { width: 12px; height: 12px; flex-shrink: 0; }
.breadcrumb__cur { color: var(--text-700); font-weight: 500; }

/* ============================================================
   COME FUNZIONA (full page)
============================================================ */
.steps-full { display: flex; flex-direction: column; gap: 48px; max-width: 720px; margin: 0 auto; }
.step-full { display: flex; gap: 32px; align-items: flex-start; }
.step-full__num {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.4rem;
}
.step-full:nth-child(1) .step-full__num { background: var(--teal-light); color: var(--teal-dark); }
.step-full:nth-child(2) .step-full__num { background: var(--coral-light); color: var(--coral-dark); }
.step-full:nth-child(3) .step-full__num { background: var(--yellow-light); color: #8A6A00; }
.step-full__body h3 { margin-bottom: 10px; }
.step-full__body p { margin-bottom: 12px; }
.step-full__body ul { display: flex; flex-direction: column; gap: 6px; margin-left: 4px; }
.step-full__body ul li {
  font-size: .88rem; color: var(--text-500);
  display: flex; align-items: flex-start; gap: 8px;
}
.step-full__body ul li::before {
  content: '→'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 2px; max-width: 720px; margin: 0 auto; }
.faq-item { background: #fff; border-radius: var(--r-md); border: 1px solid var(--border-soft); overflow: hidden; }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; font-weight: 600; font-size: .95rem; color: var(--text-900);
  cursor: pointer; transition: background var(--t); gap: 12px;
  text-align: left; width: 100%;
}
.faq-question:hover { background: var(--teal-xlight); }
.faq-question svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; transition: transform var(--t); }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { padding: 0 22px; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-answer { max-height: 200px; padding: 0 22px 18px; }
.faq-answer p { font-size: .88rem; }

/* ============================================================
   CTA SECTION
============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--teal-dark) 0%, #00A0A0 100%);
  padding: 72px 0; border-radius: 0; text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,.7); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   CHI SIAMO
============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
  background: #fff; border-radius: var(--r-xl); padding: 32px 24px;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-xs); text-align: center;
  transition: all var(--t);
}
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-card__icon {
  width: 52px; height: 52px; border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.value-card:nth-child(1) .value-card__icon { background: var(--teal-light); color: var(--teal-dark); }
.value-card:nth-child(2) .value-card__icon { background: var(--coral-light); color: var(--coral-dark); }
.value-card:nth-child(3) .value-card__icon { background: var(--yellow-light); color: #8A6A00; }
.value-card h3 { margin-bottom: 10px; }
.value-card p { font-size: .88rem; }

.contact-card {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border);
  padding: 36px; box-shadow: var(--shadow-sm); max-width: 580px; margin: 0 auto;
}
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-page { max-width: 680px; margin: 0 auto; }
.form-section { margin-bottom: 32px; }
.form-section-title {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .82rem;
  color: var(--text-300); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft);
}
.form-card {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border);
  padding: 32px; box-shadow: var(--shadow-sm); margin-bottom: 0;
}
.req { color: var(--coral); }
.form-field label { font-size: .83rem; font-weight: 600; color: var(--text-700); }
.form-field input, .form-field textarea, .form-field select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .93rem; font-family: 'Figtree', sans-serif; color: var(--text-900);
  background: #fff; outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,180,.08);
}
.form-field textarea { resize: vertical; min-height: 110px; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--text-900); color: rgba(255,255,255,.55); padding: 60px 0 28px;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer__brand-logo {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1.35rem;
  color: #fff; margin-bottom: 12px;
}
.footer__brand-logo .logo-mi { color: var(--teal-mid); }
.footer__brand-logo .logo-ri { color: var(--coral); }
.footer__tagline { font-size: .85rem; line-height: 1.65; max-width: 250px; }
.footer__col h5 { color: #fff; margin-bottom: 16px; font-family: 'Sora', sans-serif; font-size: .8rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 9px; }
.footer__col ul li a { font-size: .85rem; color: rgba(255,255,255,.45); transition: color var(--t); }
.footer__col ul li a:hover { color: var(--teal-mid); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07); padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between; font-size: .78rem;
}
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { color: rgba(255,255,255,.35); transition: color var(--t); }
.footer__bottom-links a:hover { color: var(--teal-mid); }

/* ============================================================
   UTILITIES
============================================================ */
.text-center { text-align: center; }
.text-teal { color: var(--teal); }
.text-coral { color: var(--coral); }
.bg-white { background: #fff; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }

/* ============================================================
   CTA BOXES (chi-siamo, come-funziona footer CTA)
============================================================ */
.cta-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-xl);
  padding: 52px 40px;
  max-width: 720px;
  margin: 0 auto;
}
.cta-card h2 { color: #fff; margin-bottom: 12px; }
.cta-card p  { color: rgba(255,255,255,.7); }

.cta-box {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 28px 36px; border-radius: var(--r-xl);
  text-align: center; cursor: pointer; transition: all var(--t);
  text-decoration: none; min-width: 180px;
}
.cta-box--primary {
  background: #fff; color: var(--teal-dark);
  border: 2px solid #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-box--primary:hover {
  background: var(--teal-xlight);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
}
.cta-box--secondary {
  background: rgba(255,255,255,.12); color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}
.cta-box--secondary:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(255,255,255,.55);
}
.cta-box__icon { font-size: 1.8rem; line-height: 1; }
.cta-box__label {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.05rem;
}
.cta-box__sub {
  font-size: .78rem; opacity: .7; font-weight: 400;
}

/* btn-cta-* legacy compatibility */
.btn-cta-primary { background: #fff; color: var(--teal-dark); border: 2px solid #fff; }
.btn-cta-primary:hover { background: var(--teal-xlight); transform: scale(1.02); }
.btn-cta-secondary { background: rgba(255,255,255,.1); color: #fff; border: 2px solid rgba(255,255,255,.3); }
.btn-cta-secondary:hover { background: rgba(255,255,255,.2); transform: scale(1.02); }

/* ============================================================
   ABOUT LAYOUT
============================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
.about-sidebar { display: flex; flex-direction: column; gap: 16px; }
.about-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border);
  padding: 22px; box-shadow: var(--shadow-xs);
}
.about-card__icon { font-size: 1.5rem; margin-bottom: 10px; }
.about-card h4 { margin-bottom: 6px; font-size: .95rem; }
.about-card p { font-size: .85rem; }

.contact-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 18px; transition: all var(--t);
}
.contact-row:hover { box-shadow: var(--shadow-sm); border-color: var(--teal); }
.contact-row__icon {
  width: 38px; height: 38px; border-radius: var(--r-md);
  background: var(--teal-xlight); display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}
.link-teal { color: var(--teal); font-weight: 600; }
.link-teal:hover { color: var(--teal-dark); }

/* ============================================================
   HOW SECTION (come-funziona page)
============================================================ */
.how-section { max-width: 720px; margin: 0 auto; }
.how-section__header { text-align: center; margin-bottom: 40px; }
.how-section__badge {
  display: inline-block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 5px 14px; border-radius: var(--r-pill); margin-bottom: 14px;
}
.how-section__badge--teal { background: var(--teal-xlight); color: var(--teal-dark); }
.how-section__badge--coral { background: var(--coral-light); color: var(--coral-dark); }
.how-steps { display: flex; flex-direction: column; gap: 28px; margin-bottom: 32px; }
.how-step { display: flex; gap: 20px; align-items: flex-start; }
.how-step__number {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: 1rem;
}
.how-step__number--coral { background: var(--coral-light); color: var(--coral-dark); }
.how-step__content h3 { margin-bottom: 6px; font-size: 1.05rem; }
.how-step__content p { font-size: .9rem; }
.how-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   TRUST GRID
============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.trust-card {
  background: #fff; border-radius: var(--r-lg); border: 1px solid var(--border-soft);
  padding: 24px; box-shadow: var(--shadow-xs); text-align: center;
}
.trust-card__icon { font-size: 1.6rem; margin-bottom: 12px; }
.trust-card h4 { margin-bottom: 6px; font-size: .95rem; }
.trust-card p { font-size: .85rem; }

/* ============================================================
   EYEBROW
============================================================ */
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; color: var(--teal);
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 10px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 40px; }
  .search-widget { max-width: 560px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .similar-grid { grid-template-columns: repeat(2, 1fr); }
  .tickets-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2,1fr); }
  .about-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 48px 0; }
  .section-sm { padding: 32px 0; }

  .navbar__nav, .navbar__actions { display: none; }
  .navbar__mobile-toggle { display: flex; }

  /* Hero mobile: search widget prima, testo sotto */
  .hero__layout {
    display: flex !important;
    flex-direction: column-reverse;
    gap: 28px;
  }
  .hero__content { text-align: center; }
  .hero__content h1 { font-size: 1.65rem; }
  .hero__sub { font-size: .95rem; margin-bottom: 0; max-width: 100%; }
  .search-widget { max-width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: repeat(2, 1fr); }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border-soft); }
  .trust-item:nth-child(2n) { border-right: none; }

  .annunci-layout { grid-template-columns: 1fr; }
  .filters-sidebar { display: none; }
  .filters-btn-mobile { display: flex; }

  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .similar-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .about-layout { grid-template-columns: 1fr; }

  .sticky-cta { display: flex; align-items: center; justify-content: space-between; }

  .hero__stats { gap: 24px; flex-wrap: wrap; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer__bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer__bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  .step-full { flex-direction: column; gap: 16px; }
  .step-full__num { width: 48px; height: 48px; font-size: 1.1rem; }

  .cta-box { padding: 22px 24px; min-width: 140px; }
  .cta-card { padding: 36px 20px; }
  .cta-boxes { gap: 14px; }

  /* how-cta mobile */
  .how-cta { flex-direction: column; align-items: stretch; }
  .how-cta .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .sort-pill { min-height: 44px; }
  .hero { padding: 32px 0 48px; }
  .search-widget { padding: 20px; }
  .route-card__time { font-size: 2rem; }
  .price-card__amount { font-size: 2.25rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .cta-boxes { flex-direction: column; align-items: stretch; }
  .cta-box { flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; }
  .cta-box__icon { font-size: 1.4rem; flex-shrink: 0; }
}

/* ============================================================
   EMPTY STATE
============================================================ */
.empty-state { text-align: center; padding: 64px 24px; }
.empty-state__icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p { font-size: .9rem; max-width: 340px; margin: 0 auto; }

/* ============================================================
   ALERT BANNERS
============================================================ */
.alert-banner {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-md);
  font-size: .875rem; line-height: 1.55;
}
.alert-banner-warning { background: var(--yellow-light); border: 1px solid #E8C000; color: #6A5200; }
.alert-banner-warning a { color: #6A5200; font-weight: 700; text-decoration: underline; }
.alert-banner-success { background: var(--teal-xlight); border: 1px solid var(--teal-light); color: var(--teal-dark); }
.alert-banner-success a { color: var(--teal-dark); font-weight: 700; text-decoration: underline; }

/* ============================================================
   PROFILE BADGE
============================================================ */
.profile-badge {
  display: none; align-items: center; gap: 9px;
  background: var(--teal-xlight); border: 1px solid var(--teal-light);
  border-radius: var(--r-md); padding: 11px 14px;
  font-size: .875rem; color: var(--teal-dark); font-weight: 500; margin-bottom: 20px;
}
.profile-badge svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ============================================================
   FORM PAGE (pubblica + area riservata)
============================================================ */
.form-page { max-width: 640px; margin: 0 auto; }
.form-card {
  background: #fff; border-radius: var(--r-xl); border: 1px solid var(--border);
  padding: 36px; box-shadow: var(--shadow-sm);
}
.form-section { margin-bottom: 32px; padding-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.form-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.form-section-title {
  font-family: 'Sora', sans-serif; font-size: .82rem; font-weight: 700;
  color: var(--text-300); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: .84rem; font-weight: 600; color: var(--text-700); }
.form-field label .req { color: var(--coral); margin-left: 2px; }
.form-field input, .form-field select, .form-field textarea {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .94rem; font-family: 'Figtree', sans-serif; color: var(--text-900);
  background: #fff; outline: none; transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none; appearance: none;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,180,180,.08);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field input[disabled], .form-field select[disabled] { background: var(--bg); color: var(--text-300); cursor: not-allowed; }
.form-grid { display: flex; flex-direction: column; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 640px) {
  .form-card { padding: 22px 18px; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* ============================================================
   NAVBAR: pubblica button highlight
============================================================ */
.navbar__publish { background: var(--coral) !important; border-color: var(--coral) !important; }
.navbar__publish:hover { background: var(--coral-dark) !important; border-color: var(--coral-dark) !important; }


/* ============================================================
   HOW IT WORKS PAGE
============================================================ */
.how-section { max-width: 800px; margin: 0 auto; }
.how-section__header { text-align: center; margin-bottom: 48px; }
.how-section__header h2 { margin-bottom: 12px; }
.how-section__header p { max-width: 520px; margin: 0 auto; color: var(--text-500); }
.how-section__badge {
  display: inline-block; padding: 5px 14px; border-radius: var(--r-pill);
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 14px;
}
.how-section__badge--teal  { background: var(--teal-xlight);   color: var(--teal-dark); }
.how-section__badge--coral { background: rgba(255,92,64,.08);  color: var(--coral); }

.how-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 40px; }
.how-step {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid var(--border-soft);
}
.how-step:last-child { border-bottom: none; }
.how-step__number {
  width: 38px; height: 38px; flex-shrink: 0;
  background: var(--teal-xlight); color: var(--teal-dark);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-weight: 800; font-size: .95rem;
}
.how-step__number--coral { background: rgba(255,92,64,.1); color: var(--coral); }
.how-step__content h3 { font-size: 1rem; margin-bottom: 6px; }
.how-step__content p  { font-size: .9rem; color: var(--text-500); line-height: 1.65; margin: 0; }
.how-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.link-teal { color: var(--teal); font-weight: 600; text-decoration: none; }
.link-teal:hover { text-decoration: underline; }

/* ============================================================
   ABOUT / CHI SIAMO PAGE
============================================================ */
.about-layout { display: grid; grid-template-columns: 1fr 280px; gap: 48px; align-items: start; }
@media (max-width: 900px) { .about-layout { grid-template-columns: 1fr; } }
.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--text-500); line-height: 1.75; margin-bottom: 16px; }
.about-sidebar { display: flex; flex-direction: column; gap: 14px; }
.about-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-xl);
  padding: 20px; box-shadow: var(--shadow-sm);
}
.about-card__icon { font-size: 1.4rem; margin-bottom: 8px; }
.about-card h4 { font-size: .92rem; margin-bottom: 6px; }
.about-card p  { font-size: .84rem; color: var(--text-400); line-height: 1.55; margin: 0; }

.contact-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--r-xl);
  padding: 16px 20px; text-decoration: none; transition: border-color var(--t), box-shadow var(--t);
}
.contact-row:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.contact-row__icon {
  width: 38px; height: 38px; background: var(--teal-xlight);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--teal); flex-shrink: 0;
}

/* ============================================================
   NAVBAR: vertical centering fix
============================================================ */
.navbar__inner {
  min-height: 64px;
}
.navbar__actions {
  display: flex;
  align-items: center;
}

/* ============================================================
   SELL CTA SECTION
============================================================ */
.sell-cta-section {
  padding: 48px 0;
  background: var(--bg);
}
.sell-cta-card {
  background: var(--dark);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sell-cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,174,174,.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(255,92,64,.12) 0%, transparent 60%);
  pointer-events: none;
}
.sell-cta-card__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.sell-cta-card h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 14px;
}
.sell-cta-card p {
  color: rgba(255,255,255,.65);
  font-size: .97rem;
  line-height: 1.7;
  margin-bottom: 28px;
}
.btn-sell-cta {
  background: #fff;
  color: var(--dark);
  border: 2px solid #fff;
  font-weight: 700;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t), color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-sell-cta:hover {
  background: transparent;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
@media (max-width: 640px) {
  .sell-cta-card { padding: 40px 24px; }
  .sell-cta-card h2 { font-size: 1.4rem; }
}

/* ============================================================
   SELL CTA — LIGHT VERSION (homepage section ③)
============================================================ */
.sell-cta-section-light {
  background: var(--bg);
}
.sell-cta-light-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.sell-cta-light-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--coral);
  border-radius: 4px 4px 0 0;
}
.sell-cta-light-card__icon {
  width: 56px; height: 56px;
  background: rgba(255, 92, 64, .08);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  color: var(--coral);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.sell-cta-light-card__body {
  max-width: 560px;
}
.sell-cta-light-card__body h2 {
  margin-bottom: 10px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
}
.sell-cta-light-card__body p {
  color: var(--text-500);
  font-size: .93rem;
  line-height: 1.7;
  margin-bottom: 0;
}
.sell-cta-light-card__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 18px;
}
.sell-perk {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .84rem;
  color: var(--text-500);
  font-weight: 500;
}
.sell-perk__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--coral);
  flex-shrink: 0;
}

/* eyebrow coral variant */
.eyebrow--coral {
  color: var(--coral) !important;
}
.eyebrow--coral::before {
  display: none;
}

/* coral button */
.btn-coral {
  background: var(--coral);
  color: #fff;
  border: 2px solid var(--coral);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}
.btn-coral:hover {
  background: var(--coral-dark);
  border-color: var(--coral-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,92,64,.25);
}

/* ghost coral button */
.btn-ghost-coral {
  background: transparent;
  color: var(--coral);
  border: 2px solid rgba(255,92,64,.25);
  font-weight: 600;
  transition: background var(--t), border-color var(--t);
}
.btn-ghost-coral:hover {
  background: rgba(255,92,64,.05);
  border-color: var(--coral);
}

@media (max-width: 640px) {
  .sell-cta-light-card {
    grid-template-columns: 1fr;
    padding: 28px 22px 28px 28px;
    gap: 18px;
  }
  .sell-cta-light-card__icon { display: none; }
}

/* ============================================================
   TYPE SELECTOR (pubblica page)
============================================================ */
.type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
  border: 2px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--t), background var(--t), box-shadow var(--t), transform var(--t);
  font-family: 'Figtree', sans-serif;
}
.type-card:hover { transform: translateY(-1px); }

/* Treno = teal */
.type-card[data-type="treno"]:hover {
  border-color: var(--teal); background: rgba(0,174,174,.03);
}
.type-card[data-type="treno"].active {
  border-color: var(--teal); background: rgba(0,174,174,.05);
  box-shadow: 0 0 0 3px rgba(0,174,174,.14);
}
.type-card[data-type="treno"] .type-card__icon {
  background: rgba(0,174,174,.08); color: var(--teal);
}
.type-card[data-type="treno"].active .type-card__icon { background: rgba(0,174,174,.16); }

/* Macchina = coral */
.type-card[data-type="macchina"]:hover {
  border-color: var(--coral); background: rgba(255,92,64,.03);
}
.type-card[data-type="macchina"].active {
  border-color: var(--coral); background: rgba(255,92,64,.05);
  box-shadow: 0 0 0 3px rgba(255,92,64,.12);
}
.type-card[data-type="macchina"] .type-card__icon {
  background: rgba(255,92,64,.08); color: var(--coral);
}
.type-card[data-type="macchina"].active .type-card__icon { background: rgba(255,92,64,.14); }

/* Fallback icona neutra se nessun data-type */
.type-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-lg);
  background: rgba(0,174,174,.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
  transition: background var(--t);
}
.type-card__label {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: .92rem;
  color: var(--text-900);
}
.type-card__sub {
  font-size: .78rem;
  color: var(--text-300);
}
@media (max-width: 480px) {
  .type-selector { grid-template-columns: 1fr; }
}

/* ============================================================
   CAR CARD (listing card variant)
============================================================ */
.car-card {
  border-left-color: var(--yellow, #FFD124) !important;
}
.car-card.reverse {
  border-left-color: #F5A623 !important;
}
.ticket-card__price-sub {
  font-size: .68rem;
  color: var(--text-300);
  text-align: right;
  margin-top: 1px;
}
.badge-type {
  font-weight: 600;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.badge-type--treno {
  background: rgba(0,174,174,.08);
  color: var(--teal-dark);
  border: 1px solid rgba(0,174,174,.15);
}
.badge-type--macchina {
  background: rgba(255,210,36,.15);
  color: #7A5E00;
  border: 1px solid rgba(255,210,36,.3);
}
.badge-seats {
  background: rgba(255,92,64,.08);
  color: var(--coral);
  border: 1px solid rgba(255,92,64,.15);
  font-weight: 600;
  font-size: .72rem;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}


/* ============================================================
   FIREBASE AUTH & VERIFIED — v5
============================================================ */

/* Badge "Verificato" inline dentro le card */
.badge-verified-inline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--teal); color: #fff;
  flex-shrink: 0; vertical-align: middle;
}

/* Badge "Verificato con Google" in area riservata */
.ar-verified-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal-xlight); color: var(--teal-dark);
  border: 1px solid var(--teal-light); border-radius: 20px;
  padding: 5px 12px; font-size: .8rem; font-weight: 700;
}

/* Avatar nella navbar (utente loggato) */
.nav-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  overflow: visible; position: relative;
}
.nav-avatar img {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--teal);
}
.nav-avatar--initials {
  background: var(--teal); color: #fff;
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .7rem;
}
.nav-verified-dot {
  position: absolute; bottom: -3px; right: -3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--teal); color: #fff; border: 2px solid #fff;
  font-size: .55rem; display: flex; align-items: center; justify-content: center;
  line-height: 1; font-weight: 700;
}

/* Avatar con foto nelle card (immagine circolare) */
.seller-avatar--photo,
.seller-avatar-lg.seller-avatar--photo {
  background: transparent; overflow: hidden; padding: 0;
}
.seller-avatar--photo img,
.seller-avatar-lg.seller-avatar--photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}

/* Barra "Il tuo annuncio" in fondo alle card */
.card-owner-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; margin-top: 0;
  background: var(--teal-xlight);
  border-top: 1px solid var(--teal-light);
  border-radius: 0 0 14px 14px;
}
.card-owner-label {
  font-size: .76rem; color: var(--teal-dark); font-weight: 600;
}
.btn-delete-listing {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--coral);
  color: var(--coral); border-radius: 6px;
  padding: 4px 10px; font-size: .74rem; font-weight: 600;
  cursor: pointer; transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-delete-listing:hover { background: var(--coral); color: #fff; }

.btn-edit-listing-inline {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--teal-light);
  color: var(--teal-dark); border-radius: 6px;
  padding: 4px 10px; font-size: .74rem; font-weight: 600;
  cursor: pointer; transition: background var(--t), color var(--t);
  font-family: 'Figtree', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.btn-edit-listing-inline:hover { background: var(--teal-xlight); }

/* Banner "il tuo viaggio" nella pagina dettaglio */
.alert-banner-owner {
  background: var(--teal-xlight); border: 1px solid var(--teal-light);
  color: var(--teal-dark); flex-wrap: wrap; gap: 10px;
}
.btn-delete-detail {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1.5px solid var(--coral);
  color: var(--coral); border-radius: 7px;
  padding: 5px 12px; font-size: .8rem; font-weight: 600;
  cursor: pointer; transition: background var(--t), color var(--t);
  white-space: nowrap; margin-left: auto;
  -webkit-tap-highlight-color: transparent;
}
.btn-delete-detail:hover { background: var(--coral); color: #fff; }

/* ============================================================
   AREA RISERVATA — Login Card e Photo Preview
============================================================ */

.ar-login-card {
  max-width: 520px; margin: 0 auto;
  background: var(--surface); border: 1.5px solid var(--border-soft);
  border-radius: 20px; padding: 48px 40px; text-align: center;
}
.ar-login-card__icon { font-size: 2.8rem; margin-bottom: 16px; }

/* Bottone Google */
.btn-google-login {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 24px;
  font-family: 'Figtree', sans-serif; font-size: .95rem; font-weight: 600;
  color: var(--text-700); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow var(--t), border-color var(--t), background var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-google-login:hover {
  box-shadow: 0 3px 12px rgba(0,0,0,.12);
  border-color: var(--teal-light); background: var(--teal-xlight);
}
.btn-google-login:active { transform: scale(.98); }

/* Preview foto profilo */
.ar-photo-preview {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--teal-xlight); border: 2.5px solid var(--teal-light);
  overflow: hidden; flex-shrink: 0;
}
#ar-upload-status {
  font-size: .78rem; font-weight: 600; color: var(--teal); margin-top: 6px;
}

@media (max-width: 480px) {
  .ar-login-card { padding: 32px 20px; }
  .card-owner-bar { padding: 8px 12px; }
}

/* ============================================================
   FIX MOBILE v5.1 — 5 correzioni mirate
   Non impattano il layout desktop (tutto dentro @media o
   proprietà che desktop ignora già).
============================================================ */

/* ── FIX 1 ── iOS auto-zoom sugli input
   font-size >= 16px previene il comportamento di zoom
   automatico di Safari/iOS su focus degli input.
   Su desktop non cambia nulla (16px = ~1rem, dimensione normale).
-------------------------------------------------------------- */
@media (max-width: 768px) {
  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 1rem; /* 16px esatti — soglia anti-zoom iOS */
  }
}

/* ── FIX 2 ── Safe area iPhone X/11/12/13/14/15 (home bar)
   env(safe-area-inset-bottom) = 0 su device senza notch,
   quindi non impatta nulla su Android o desktop.
-------------------------------------------------------------- */
.sticky-cta {
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.filters-drawer {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}
.navbar__mobile-menu {
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ── FIX 3 ── Modal scrollabile su schermi piccoli con tastiera
   max-height limita l'altezza; overflow-y permette scroll
   interno se il contenuto non ci sta. Su desktop il modal
   è già centrato con padding:20px quindi non cambia nulla.
-------------------------------------------------------------- */
.modal {
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
@supports not (height: 100dvh) {
  .modal { max-height: calc(100vh - 40px); }
}

/* ── FIX 4 ── Touch target bottone ✕ chiudi modal: 44×44px
   Il cerchio visivo rimane 30px ma l'area toccabile
   si espande con padding negativo (tecnica standard Apple HIG).
   Su desktop non si vede differenza.
-------------------------------------------------------------- */
.modal__close {
  width: 44px;
  height: 44px;
  margin: -7px -7px 0 0; /* compensa l'ingrandimento nel layout */
}

/* ── FIX 5 ── Ticket card su schermi ≤ 360px
   Riduce il padding orizzontale interno e la dimensione
   del prezzo per evitare overflow su device entry-level
   (320–360px). Desktop e 375px+ non entrano in questo breakpoint.
-------------------------------------------------------------- */
@media (max-width: 360px) {
  .ticket-card__body {
    padding: 16px 14px 16px 18px;
  }
  .ticket-card__price {
    font-size: 1.35rem;
  }
  .ticket-card__time-val {
    font-size: 1rem;
  }
  .route-card__time {
    font-size: 1.65rem;
  }
  .price-card__amount {
    font-size: 2rem;
  }
}

/* ============================================================
   KEBAB MENU — 3 puntini su ogni card
============================================================ */
.card-kebab {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
}
.card-kebab__btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: none; border: none;
  color: var(--text-300); cursor: pointer;
  transition: background var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.card-kebab__btn:hover { background: var(--bg); color: var(--text-700); }

.card-kebab__menu {
  display: none;
  position: absolute; right: 0; bottom: calc(100% + 6px);
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  min-width: 170px; z-index: 100; overflow: hidden;
}
.card-kebab__menu.open { display: block; }

.card-kebab__item {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: .875rem;
  color: var(--text-700); cursor: pointer;
  background: none; border: none; width: 100%;
  text-align: left; font-family: 'Figtree', sans-serif;
  transition: background var(--t);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.card-kebab__item:hover { background: var(--bg); }
.card-kebab__item svg { flex-shrink: 0; color: var(--text-300); }

/* Feedback "copiato!" */
.card-kebab__item.copied {
  color: var(--teal-dark);
  background: var(--teal-xlight);
  pointer-events: none;
}
.card-kebab__item.copied svg { color: var(--teal); }

/* ============================================================
   MIGLIORAMENTI v6 — 8 nuove feature
============================================================ */

/* ── Punto 6: Tasto "← Tutti i viaggi" in dettaglio ── */
.btn-back-listings {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; margin-bottom: 16px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r-pill); font-size: .875rem; font-weight: 600;
  color: var(--text-700); text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
  min-height: 44px; /* touch target iOS */
  -webkit-tap-highlight-color: transparent;
}
.btn-back-listings:hover { background: var(--teal-xlight); border-color: var(--teal-light); color: var(--teal-dark); }

/* ── Punto 7: Contatore annunci attivi in hero ── */
.active-count-hero {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 18px; padding: 7px 14px;
  background: rgba(0,174,174,.15); border: 1px solid rgba(0,174,174,.3);
  border-radius: var(--r-pill); font-size: .85rem; font-weight: 600;
  color: rgba(255,255,255,.9);
}
.active-count-num { font-family: 'Sora', sans-serif; font-weight: 800; color: #fff; }

/* ── Punto 2: Success screen dopo pubblicazione ── */
.publish-success-screen {
  text-align: center; padding: 60px 24px;
  background: #fff; border-radius: var(--r-xl);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-sm);
}
.publish-success-screen__icon { font-size: 3.5rem; margin-bottom: 20px; }
.publish-success-screen h2 { margin-bottom: 12px; color: var(--teal-dark); }
.publish-success-screen p { color: var(--text-500); margin-bottom: 32px; line-height: 1.6; }
.publish-success-screen__actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ── Punto 4: Modal riepilogo conferma ── */
.confirm-overlay {
  position: fixed; inset: 0; background: rgba(0,30,30,.65);
  backdrop-filter: blur(5px); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.confirm-modal {
  background: #fff; border-radius: var(--r-xl); padding: 28px;
  max-width: 480px; width: 100%; box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 40px); overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: slideUp 220ms ease-out;
}
.confirm-modal--edit { max-width: 520px; }
@keyframes slideUp {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.confirm-modal__header { margin-bottom: 20px; }
.confirm-modal__header h3 { font-size: 1.15rem; margin-bottom: 4px; }
.confirm-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--border-soft); gap: 12px;
  font-size: .875rem;
}
.confirm-row:last-child { border-bottom: none; }
.confirm-row__key { color: var(--text-300); font-weight: 600; flex-shrink: 0; }
.confirm-row__val { color: var(--text-700); font-weight: 600; text-align: right; }
.confirm-row--notes .confirm-row__val { font-weight: 400; font-size: .82rem; color: var(--text-500); }
.confirm-modal__actions {
  display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap;
}
@media (max-width: 480px) {
  .confirm-modal__actions { flex-direction: column; }
  .confirm-modal__actions .btn { width: 100%; justify-content: center; }
}

/* ── Punto 3: Errore inline campo WhatsApp ── */
.field-error {
  font-size: .78rem; color: var(--coral); font-weight: 600;
  margin-top: 4px; display: flex; align-items: center; gap: 5px;
}
.form-field input.error { border-color: var(--coral); }

/* ── Punto 8: "I tuoi viaggi" ── */
.my-listing-loading {
  font-size: .875rem; color: var(--text-300); padding: 24px 0; text-align: center;
}
.my-listing-empty {
  text-align: center; padding: 40px 24px;
  background: #fff; border: 1.5px dashed var(--border); border-radius: var(--r-xl);
}
.my-listing-empty__icon { font-size: 2.5rem; margin-bottom: 12px; }
.my-listing-empty p { color: var(--text-500); }

.my-listing-card {
  background: #fff; border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: 18px 20px;
  margin-bottom: 12px; transition: border-color var(--t);
}
.my-listing-card--expired { opacity: .65; }
.my-listing-card--expired .my-listing-card__top { }
.my-listing-card:last-child { margin-bottom: 0; }

.my-listing-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px; gap: 8px;
}
.my-listing-card__route {
  font-family: 'Sora', sans-serif; font-weight: 700; font-size: .95rem; color: var(--text-900);
}
.my-listing-card__meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-500); margin-bottom: 8px;
}
.my-listing-card__notes {
  font-size: .8rem; color: var(--text-300); margin-bottom: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-listing-card__actions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px;
  padding-top: 12px; border-top: 1px solid var(--border-soft);
}

.badge-active {
  background: var(--teal-xlight); color: var(--teal-dark);
  border: 1px solid var(--teal-light); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: var(--r-pill); flex-shrink: 0;
}
.badge-expired {
  background: var(--bg); color: var(--text-300);
  border: 1px solid var(--border); font-size: .72rem; font-weight: 700;
  padding: 2px 9px; border-radius: var(--r-pill); flex-shrink: 0;
}
/* Bottoni "I tuoi viaggi" — forma uniforme, colori distinti */
/* Modifica: usa btn-secondary già esistente — niente override */
.btn-edit-my {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1.5px solid var(--border);
  color: var(--text-700); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: 'Figtree', sans-serif;
  transition: background var(--t), border-color var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-edit-my:hover { background: var(--teal-xlight); border-color: var(--teal-light); color: var(--teal-dark); }

.btn-delete-my {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: 1.5px solid rgba(255,92,64,.35);
  color: var(--coral); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: 'Figtree', sans-serif;
  transition: background var(--t), border-color var(--t), color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-delete-my:hover { background: rgba(255,92,64,.08); border-color: var(--coral); }

.btn-view-my {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--teal-xlight); border: 1.5px solid var(--teal-light);
  color: var(--teal-dark); border-radius: var(--r-pill);
  padding: 6px 14px; font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: 'Figtree', sans-serif; text-decoration: none;
  transition: background var(--t), border-color var(--t);
  -webkit-tap-highlight-color: transparent;
}
.btn-view-my:hover { background: var(--teal-light); border-color: var(--teal); }

@media (max-width: 480px) {
  .my-listing-card__meta { gap: 8px; }
  .my-listing-card__actions { gap: 6px; }
}

/* ============================================================
   AUTH TABS + EMAIL LOGIN v7
============================================================ */
.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg); padding: 4px;
  border-radius: var(--r-pill); margin-bottom: 24px;
  border: 1.5px solid var(--border-soft);
}
.auth-tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  flex: 1; padding: 9px 10px; border-radius: var(--r-pill);
  border: none; background: transparent;
  font-family: 'Figtree', sans-serif; font-size: .83rem; font-weight: 600;
  color: var(--text-500); cursor: pointer;
  transition: background var(--t), color var(--t), box-shadow var(--t);
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
  justify-content: center;
}
.auth-tab-btn.active {
  background: #fff; color: var(--teal-dark);
  box-shadow: 0 1px 6px rgba(0,0,0,.1);
}
.auth-tab-btn svg { flex-shrink: 0; }

.auth-error {
  font-size: .82rem; color: var(--coral); font-weight: 600;
  margin: 8px 0; padding: 8px 12px; border-radius: var(--r-md);
  background: rgba(255,92,64,.07); border: 1px solid rgba(255,92,64,.2);
}
.auth-error--success {
  color: var(--teal-dark); background: var(--teal-xlight);
  border-color: var(--teal-light);
}

.auth-divider-note {
  display: flex; align-items: center; gap: 7px; justify-content: center;
  font-size: .82rem; color: var(--teal-dark); font-weight: 600;
  padding: 10px; background: var(--teal-xlight);
  border-radius: var(--r-md); border: 1px solid var(--teal-light);
}
.auth-divider-note svg { color: var(--teal); flex-shrink: 0; }

.btn-link-small {
  display: block; width: 100%; text-align: center;
  background: none; border: none; padding: 4px 0;
  font-family: 'Figtree', sans-serif; font-size: .82rem;
  color: var(--teal); cursor: pointer; text-decoration: underline;
  -webkit-tap-highlight-color: transparent;
}
.btn-link-small:hover { color: var(--teal-dark); }

/* ============================================================
   REVIEWS — Piadine 🫓
============================================================ */

/* Container sezione reviews in dettaglio */
#detail-reviews { margin-top: 0; }

.reviews-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal); color: #fff;
  font-size: .7rem; font-weight: 800; margin-left: 6px;
}

/* Media piadine */
.reviews-avg {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 16px; background: var(--bg-alt);
  border-radius: var(--r-md); margin-bottom: 20px;
}
.reviews-avg__num {
  font-family: 'Sora', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--text-900);
}
.reviews-avg__total {
  font-size: .8rem; color: var(--text-300);
}

/* Piadina rating display (non interattivo) */
.piadina-rating { display: inline-flex; align-items: center; gap: 2px; }

/* Piadina picker (interattivo) */
.piadina-picker {
  display: flex; gap: 4px; margin: 14px 0 8px;
}
.piadina-pick-btn {
  background: none; border: none; cursor: pointer; padding: 4px;
  border-radius: var(--r-sm); transition: transform 150ms;
  -webkit-tap-highlight-color: transparent;
}
.piadina-pick-btn:hover, .piadina-pick-btn.selected {
  transform: scale(1.15);
}

/* Form recensione */
.review-form-wrap { margin: 16px 0; }
.review-form-label {
  font-size: .875rem; color: var(--text-500); margin-bottom: 8px;
}
.review-textarea {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: 'Figtree', sans-serif; font-size: .875rem; color: var(--text-900);
  resize: vertical; min-height: 80px; outline: none;
  transition: border-color var(--t);
  box-sizing: border-box;
}
.review-textarea:focus { border-color: var(--teal); }

/* Mia recensione già fatta */
.my-review-done {
  padding: 14px 16px; background: var(--teal-xlight);
  border: 1px solid var(--teal-light); border-radius: var(--r-md);
  margin-bottom: 16px;
}
.my-review-done__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.btn-review-delete {
  margin-left: auto; background: none; border: none;
  font-size: .76rem; color: var(--text-300); cursor: pointer;
  text-decoration: underline; font-family: 'Figtree', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.btn-review-delete:hover { color: var(--coral); }

/* Lista recensioni */
.reviews-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.review-card {
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--border-soft); border-radius: var(--r-md);
}
.review-card__head {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 8px;
}
.review-card__name {
  font-weight: 700; font-size: .875rem; color: var(--text-700);
}
.review-card__meta { display: flex; align-items: center; }
.review-card__date {
  margin-left: auto; font-size: .75rem; color: var(--text-300);
  white-space: nowrap;
}
.review-text {
  font-size: .875rem; color: var(--text-500); margin: 0;
  line-height: 1.55;
}
.review-login-nudge {
  font-size: .875rem; color: var(--text-300); margin-top: 12px;
}
.review-login-nudge a { color: var(--teal); font-weight: 600; }
.review-empty {
  font-size: .875rem; color: var(--text-300); margin-top: 12px;
}

@media (max-width: 480px) {
  .auth-tabs { gap: 2px; }
  .auth-tab-btn { font-size: .76rem; padding: 8px 6px; }
  .reviews-avg { gap: 7px; }
  .reviews-avg__num { font-size: 1.2rem; }
}


/* ============================================================
   PAYPAL DONATION BOX — chi-siamo.html
============================================================ */
.paypal-box {
  background: #fff; border: 2px solid #FFC43A;
  border-radius: 24px; padding: 28px 24px; text-align: center;
  box-shadow: 0 4px 20px rgba(255,196,58,.15);
  max-width: 480px; margin: 0 auto;
}
.paypal-box__icon { font-size: 2rem; margin-bottom: 10px; }
.paypal-box__title {
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.1rem; color: var(--text-900); margin-bottom: 8px;
}
.paypal-box__text {
  font-size: .875rem; color: var(--text-500);
  line-height: 1.6; margin-bottom: 20px;
}
.btn-paypal {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: #FFC43A; border: none; border-radius: var(--r-pill);
  padding: 13px 30px; font-family: 'Figtree', sans-serif;
  font-size: .95rem; font-weight: 700; color: #1a1a1a;
  cursor: pointer; text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 2px 10px rgba(255,196,58,.4);
  -webkit-tap-highlight-color: transparent;
}
.btn-paypal:hover {
  background: #f0b800; box-shadow: 0 4px 18px rgba(255,196,58,.55);
  transform: translateY(-1px);
}
.btn-paypal:active { transform: scale(.98); }
.paypal-box__note {
  font-size: .76rem; color: var(--text-300); margin-top: 12px;
}

/* ============================================================
   SIDEBAR SUPPORT BOX (PayPal — pagina dettaglio)
============================================================ */
.sidebar-support-box {
  margin-top: 12px;
  padding: 13px 16px;
  background: #fffbf0;
  border: 1.5px solid #f0d080;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}
.sidebar-support-box__text {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: .78rem; color: var(--text-500); line-height: 1.5; margin: 0;
  text-align: left;
}
.sidebar-support-box__text svg { color: var(--teal); margin-top: 1px; }
.sidebar-support-box__btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #FFC43A; border: none; border-radius: var(--r-pill);
  padding: 8px 20px; font-family: 'Figtree', sans-serif;
  font-size: .82rem; font-weight: 700; color: #1a1a1a;
  text-decoration: none; cursor: pointer;
  transition: background var(--t), box-shadow var(--t);
  box-shadow: 0 1px 6px rgba(255,196,58,.35);
  -webkit-tap-highlight-color: transparent;
}
.sidebar-support-box__btn:hover {
  background: #f0b800;
  box-shadow: 0 3px 14px rgba(255,196,58,.5);
}


/* ============================================================
   MOBILE OPTIMIZATIONS — filtri drawer v2
============================================================ */
/* Drawer filtri mobile: massima altezza, scroll fluido */
.filters-drawer {
  max-height: min(90vh, 90dvh);
}
/* Aumenta dimensione checkbox nel drawer mobile */
@media (max-width: 768px) {
  .filter-option input[type="checkbox"] {
    width: 20px; height: 20px;
  }
  /* Date input: font-size >= 16px per prevenire zoom iOS */
  #filter-date-mobile {
    font-size: 1rem;
  }
  /* route-tab su mobile: padding più generoso */
  .route-tab {
    min-height: 44px; padding: 8px 14px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  /* sort-pill: area cliccabile più grande */
  .sort-pill {
    min-height: 44px;
    touch-action: manipulation;
  }
}
