/* ============================================================
   Wanderlust — Home mobile (palette "Ghiaccio & Profondo")
   Caricato solo da index.html: admin.html non deve importarlo.
   Tutte le variabili sono scoping su .home / .wl-welcome,
   mai su :root (styles.css è condiviso con l'admin).
   ============================================================ */
/* Nunito è il font ufficiale del brand (deciso dall'utente, 12 lug 2026):
   wordmark "anderlust" in Medium 500, titoli 600, testi 400, bottoni/link 600.
   Il monogramma W resta l'SVG originale, mai sostituito da testo. */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700&display=swap");

.home,
.wl-welcome,
.wl-explore,
.wl-detail,
.wl-route,
.wl-favorites,
.wl-tabbar,
.wl-modal-backdrop {
  --wl-ice: #a9c6da;
  --wl-ice-soft: #dce8f0;
  --wl-navy: #0e2a47;
  --wl-navy-70: rgba(14, 42, 71, 0.7);
  --wl-gray: #dfe5e9;
  --wl-cream: #f7f3ec;
  --wl-card: #ffffff;
  --wl-ink: #24364c;
  --wl-muted: #7d8b99;
  --wl-accent: #e2652b;
  --wl-bronze: #b98a52;
  --wl-overlay: linear-gradient(180deg, rgba(14, 42, 71, 0) 34%, rgba(14, 42, 71, 0.85) 100%);
  --wl-r-lg: 24px;
  --wl-r-md: 16px;
  --wl-r-sm: 12px;
  --wl-shadow-card: 0 8px 24px rgba(14, 42, 71, 0.08);
  --wl-shadow-float: 0 12px 32px rgba(14, 42, 71, 0.18);
  --wl-serif: "Playfair Display", serif;
  --wl-sans: "DM Sans", sans-serif;
}

body.wl-bg { background: #ece6da; }

/* ------------------------------------------------------------
   Riallineamento del costruttore itinerari legacy (#app) e del
   toast alla palette Ghiaccio & Profondo. Queste custom property
   sono quelle definite in :root di styles.css: sovrascriverle qui
   (home.css è caricato solo da index.html, mai da admin.html) le
   ricolora ovunque siano usate con var(...) senza toccare il file
   condiviso con l'admin.
   ------------------------------------------------------------ */
body {
  --navy: #0e2a47;
  --navy-deep: #0e2a47;
  --blue: #3f6f96;
  --aqua: #a9c6da;
  --aqua-soft: #dce8f0;
  --orange: #e2652b;
  --cream: #f7f3ec;
  --ink: #24364c;
  --muted: #7d8b99;
  --line: #dfe5e9;
  --shadow: 0 8px 24px rgba(14, 42, 71, 0.1);
}
#app { background: var(--cream); }
#map { background: var(--aqua-soft); }
.map-fallback { background: linear-gradient(135deg, var(--aqua-soft), var(--cream)); }
.place-card:hover { border-color: var(--aqua); box-shadow: 0 12px 28px rgba(14, 42, 71, 0.08); }
.place-card.selected { box-shadow: 0 0 0 2px rgba(226, 101, 43, 0.15); }
.primary { box-shadow: 0 10px 20px rgba(226, 101, 43, 0.2); }
.primary:hover { box-shadow: 0 14px 24px rgba(226, 101, 43, 0.25); }

/* ---------- App shell: colonna mobile centrata ---------- */
.home,
.wl-welcome,
.wl-explore,
.wl-detail,
.wl-route,
.wl-favorites {
  position: relative;
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--wl-cream);
  font-family: var(--wl-sans);
  color: var(--wl-ink);
}
@media (min-width: 431px) {
  .home,
  .wl-welcome,
  .wl-explore,
  .wl-detail,
  .wl-route,
  .wl-favorites { box-shadow: 0 0 60px rgba(14, 42, 71, 0.14); }
}

/* ---------- Brand (logo W + wordmark) ---------- */
.wl-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}
.wl-mark {
  width: 44px;
  height: 25px;
  color: var(--wl-ice);
  align-self: center;
}
/* Wordmark "anderlust": SVG vettorizzato dal brand sheet (come il
   monogramma), niente più testo/font. Rapporto 678:106 ≈ 6.4:1;
   nel logo originale l'altezza del testo è ~0.56 di quella del
   monogramma, con base allineata leggermente più in alto. */
.wl-wordmark { color: var(--wl-navy); flex: 0 0 auto; }
.wl-wordmark-header {
  width: 92px;
  height: 14px;
  margin-left: 2px;
  align-self: center;
  transform: translateY(2px);
}

/* ---------- Header home ---------- */
.wl-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}
.wl-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 4px;
  cursor: pointer;
  font-family: var(--wl-sans);
}
.wl-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--wl-ice-soft);
  border: 1.5px solid var(--wl-ice);
}
.wl-avatar svg { width: 19px; height: 19px; color: #3f6f96; }
.wl-profile-ic { width: 20px; height: 20px; color: var(--navy); }
.wl-greet {
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--wl-ink);
}
.wl-chev { width: 14px; height: 14px; color: var(--wl-muted); }
.wl-profile[aria-expanded="true"] .wl-chev { transform: rotate(180deg); }

.wl-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: 20px;
  z-index: 60;
  min-width: 190px;
  padding: 6px;
  border-radius: var(--wl-r-md);
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-float);
}
.wl-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 11px 12px;
  border-radius: 10px;
  font: 600 0.85rem var(--wl-sans);
  color: var(--wl-ink);
  cursor: pointer;
}
.wl-menu button:hover { background: var(--wl-ice-soft); }

/* ---------- Main ---------- */
.wl-main {
  padding: 4px 20px 118px;
  display: grid;
  gap: 26px;
}
/* Evita che il carosello allarghi la griglia oltre la colonna mobile. */
.wl-main > section { min-width: 0; }
.wl-h2 {
  margin: 0;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.32rem;
  color: var(--wl-navy);
}
.wl-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}
.wl-link {
  border: 0;
  background: none;
  padding: 0;
  font: 600 0.8rem var(--wl-sans);
  color: #3f6f96;
  cursor: pointer;
}
.wl-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Hero carousel ---------- */
.wl-hero { position: relative; }
.wl-hero-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: var(--wl-r-lg);
  box-shadow: var(--wl-shadow-card);
}
.wl-hero-track::-webkit-scrollbar { display: none; }
.wl-slide {
  position: relative;
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 39 / 44;
  border-radius: var(--wl-r-lg);
  overflow: hidden;
  background: var(--wl-navy);
}
.wl-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wl-overlay);
}
.wl-slide-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 22px 30px;
  color: white;
  display: grid;
  gap: 7px;
  justify-items: start;
  text-shadow: 0 1px 12px rgba(14, 42, 71, 0.45);
}
.wl-slide-body .wl-eyebrow { color: var(--wl-ice); }
.wl-slide-body h3 {
  margin: 0;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.85rem;
  line-height: 1.12;
}
.wl-loc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #e8eef4;
}
.wl-loc svg { width: 13px; height: 13px; }
.wl-slide-body p {
  margin: 2px 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #dfe7ee;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 7px;
}
.wl-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: 0.2s;
}
.wl-dot.active { background: white; }

/* Cuore preferiti (hero + card) */
.wl-fav {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 42, 71, 0.28);
  backdrop-filter: blur(4px);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
.wl-fav svg { width: 19px; height: 19px; }
.wl-fav.active { background: white; color: var(--wl-accent); }
.wl-fav.active svg { --wl-heart-fill: currentColor; }

/* ---------- Tile categorie ---------- */
.wl-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.wl-cat {
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 16px 4px 13px;
  border: 1px solid rgba(14, 42, 71, 0.06);
  border-radius: var(--wl-r-md);
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  cursor: pointer;
  font-family: var(--wl-sans);
  transition: 0.15s;
}
.wl-cat:active { transform: scale(0.96); }
.wl-cat svg { width: 34px; height: 34px; color: #4a7fa5; }
.wl-cat span { font-size: 0.76rem; font-weight: 600; color: var(--wl-ink); }

/* ---------- Scroller regioni ---------- */
.wl-regions {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 20px 8px;
  margin: 0 -20px;
}
.wl-regions::-webkit-scrollbar { display: none; }
.wl-region {
  position: relative;
  flex: 0 0 112px;
  height: 104px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(14, 42, 71, 0.06);
  border-radius: var(--wl-r-md);
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: var(--wl-sans);
  transition: 0.15s;
}
.wl-region strong {
  position: relative;
  z-index: 2;
  font-family: var(--wl-serif);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--wl-navy);
}
.wl-region .wl-shape {
  position: absolute;
  z-index: 1;
  right: 4px;
  bottom: 2px;
  width: 62px;
  height: 62px;
  color: var(--wl-navy);
  opacity: 0.14;
  pointer-events: none;
}
.wl-region .wl-shape-letter {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: -18px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 4.2rem;
  color: var(--wl-navy);
  opacity: 0.08;
  pointer-events: none;
}
.wl-region.active { background: var(--wl-navy); border-color: var(--wl-navy); }
.wl-region.active strong { color: white; }
.wl-region.active .wl-shape { color: var(--wl-ice); opacity: 0.55; }
.wl-region.active .wl-shape-letter { color: var(--wl-ice); opacity: 0.3; }

/* ---------- Scelte per te ---------- */
.wl-picks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.wl-pick {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--wl-r-md);
  overflow: hidden;
  background: var(--wl-navy);
  box-shadow: var(--wl-shadow-card);
  cursor: pointer;
}
.wl-pick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-pick::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wl-overlay);
}
.wl-pill {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(14, 42, 71, 0.55);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 0.66rem;
  font-weight: 600;
}
.wl-pick .wl-fav { top: 10px; right: 10px; width: 32px; height: 32px; }
.wl-pick .wl-fav svg { width: 16px; height: 16px; }
.wl-pick-body {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 13px 13px;
  color: white;
  display: grid;
  gap: 3px;
  justify-items: start;
}
.wl-pick-body h3 {
  margin: 0;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.15;
}
.wl-pick-body p {
  margin: 0;
  font-size: 0.72rem;
  color: #dfe7ee;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-pick-body .wl-loc { font-size: 0.7rem; margin-top: 2px; }
.wl-pick-body .wl-loc svg { width: 11px; height: 11px; }

/* ---------- Tab bar ---------- */
.wl-tabbar {
  position: fixed;
  z-index: 80;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14px;
  width: calc(100% - 32px);
  max-width: 398px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 6px 8px;
}
.wl-tabbar-shape {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.wl-tabbar-shape path {
  fill: var(--wl-card);
  filter: drop-shadow(var(--wl-shadow-float));
}
.wl-tab {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 2px 10px;
  cursor: pointer;
  color: var(--wl-muted);
  font-family: var(--wl-sans);
}
.wl-tab svg { width: 22px; height: 22px; }
.wl-tab span { font-size: 0.62rem; font-weight: 600; }
.wl-tab.active { color: var(--wl-navy); }
.wl-tab-badge {
  position: absolute;
  top: -4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--wl-navy);
  color: white;
  font-size: 0.58rem;
  font-weight: 700;
}
.wl-tab-w {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -30px;
  border: 0;
  border-radius: 50%;
  background: var(--wl-ice);
  color: var(--wl-navy);
  box-shadow: var(--wl-shadow-float);
  cursor: pointer;
}
.wl-tab-w svg { width: 30px; height: 17px; }
/* Variante vetro scuro della tab bar quando la vista attiva è su foto
   (Esplora): stessa barra, materiale diverso. */
body.wl-glass-tab .wl-tabbar-shape path {
  fill: rgba(9, 27, 45, 0.62);
  filter: drop-shadow(0 12px 32px rgba(4, 14, 25, 0.45));
}
body.wl-glass-tab .wl-tab { color: rgba(255, 255, 255, 0.72); }
body.wl-glass-tab .wl-tab.active { color: white; }
body.wl-glass-tab .wl-tab-badge { background: var(--wl-ice); color: var(--wl-navy); }

/* ============================================================
   Vista Esplora (filtro regione + tipologia + risultati)
   ============================================================ */
/* La pagina Esplora vive su una foto a tutto schermo: tutto ciò che
   ci appoggia sopra è vetro scuro (stessa ricetta della card login:
   velo navy leggero + blur alto, mai velo bianco che "lattiginizza"). */
.wl-explore { padding: 0 0 118px; background: #0b2138; }
.wl-d-back {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--wl-navy);
  cursor: pointer;
}
.wl-d-back svg { width: 20px; height: 20px; transform: rotate(90deg); }

/* Foto di sfondo fissa (colonna mobile): il contenuto le scorre sopra. */
.wl-x-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  max-width: 430px;
  margin: 0 auto;
  background: url("assets/login-bg.png") center / cover no-repeat;
}
.wl-x-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 28, 50, 0.30) 0%, rgba(5, 28, 50, 0.42) 60%, rgba(5, 28, 50, 0.55) 100%);
}

/* ---------- Toolbar glass ---------- */
.wl-x-toolbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: rgba(5, 28, 50, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
@supports not (backdrop-filter: blur(1px)) {
  .wl-x-toolbar { background: rgba(8, 25, 42, 0.9); }
}
.wl-x-toolbar .wl-mark { color: var(--wl-cream); }
.wl-x-toolbar .wl-greet { color: white; }
.wl-x-toolbar .wl-chev { color: rgba(255, 255, 255, 0.75); }
.wl-x-toolbar .wl-avatar {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
}
.wl-x-toolbar .wl-avatar svg { color: white; }
/* Menu a tendina in vetro scuro, coerente con la pagina. */
.wl-explore .wl-menu {
  background: rgba(5, 28, 50, 0.55);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
@supports not (backdrop-filter: blur(1px)) {
  .wl-explore .wl-menu { background: rgba(8, 25, 42, 0.94); }
}
.wl-explore .wl-menu button { color: white; }
.wl-explore .wl-menu button:hover { background: rgba(255, 255, 255, 0.12); }

.wl-x-body {
  position: relative;
  z-index: 1;
  padding: 16px 16px 0;
  display: grid;
  gap: 18px;
}
/* Evita che lo scroller orizzontale delle regioni allarghi la colonna (stesso problema di .wl-main). */
.wl-x-body > * { min-width: 0; }

/* ---------- Campo di ricerca glass ---------- */
.wl-x-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 18px;
  border-radius: 999px;
  background: rgba(5, 28, 50, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.38);
}
@supports not (backdrop-filter: blur(1px)) {
  .wl-x-search { background: rgba(8, 25, 42, 0.85); }
}
.wl-x-search-ic {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  color: rgba(255, 255, 255, 0.85);
}
.wl-x-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  outline: none;
  /* 16px fissi: sotto questa soglia iOS Safari zooma la pagina al focus. */
  font: 400 16px var(--wl-sans);
  color: white;
  padding: 9px 0;
}
.wl-x-search input::placeholder { color: rgba(255, 255, 255, 0.72); }
.wl-x-search-filter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 0;
  background: none;
  padding: 6px 10px 6px 14px;
  color: white;
  font: 600 0.86rem var(--wl-sans);
  cursor: pointer;
}
.wl-x-search-filter svg { width: 18px; height: 18px; }

/* ---------- Pannelli glass ---------- */
.wl-x-panel {
  padding: 16px 14px 14px;
  border-radius: var(--wl-r-lg);
  background: rgba(5, 28, 50, 0.22);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: grid;
  gap: 14px;
}
@supports not (backdrop-filter: blur(1px)) {
  .wl-x-panel { background: rgba(8, 25, 42, 0.85); }
}
.wl-x-panel > * { min-width: 0; }
.wl-x-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.wl-x-panel-head h2 {
  margin: 0;
  font-family: var(--wl-serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: white;
}
.wl-x-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: none;
  padding: 0;
  font: 600 0.8rem var(--wl-sans);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  white-space: nowrap;
}
.wl-x-link svg { width: 12px; height: 12px; transform: rotate(-90deg); }
.wl-x-typepill { width: max-content; }
.wl-explore .wl-x-typepill select {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}
.wl-explore .wl-x-typepill svg { color: rgba(255, 255, 255, 0.8); }

/* Tile regione dentro Esplora: silhouette in alto, nome sotto (come mockup). */
.wl-explore .wl-regions { padding: 2px 2px 4px; margin: 0; }
.wl-explore .wl-region {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 0 0 118px;
  height: 132px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  text-align: center;
}
.wl-explore .wl-region .wl-shape {
  position: static;
  width: 52px;
  height: 52px;
  color: var(--wl-cream);
  opacity: 0.92;
  order: 0;
}
.wl-explore .wl-region .wl-shape-letter {
  position: static;
  font-size: 2.6rem;
  line-height: 52px;
  color: var(--wl-cream);
  opacity: 0.8;
  order: 0;
}
.wl-explore .wl-region strong {
  order: 1;
  font-family: var(--wl-sans);
  font-weight: 600;
  font-size: 0.82rem;
  color: white;
}
.wl-explore .wl-region.active {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.75);
}
.wl-explore .wl-region.active .wl-shape,
.wl-explore .wl-region.active .wl-shape-letter { color: white; opacity: 1; }
.wl-select-pill {
  position: relative;
  flex: 1;
  min-width: 0;
}
.wl-select-pill select {
  width: 100%;
  appearance: none;
  padding: 10px 36px 10px 16px;
  border: 1px solid rgba(14, 42, 71, 0.12);
  border-radius: 999px;
  background: var(--wl-card);
  color: var(--wl-ink);
  font: 600 0.84rem var(--wl-sans);
  cursor: pointer;
}
.wl-select-pill svg {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--wl-muted);
  pointer-events: none;
}
.wl-filter-btn {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(14, 42, 71, 0.12);
  border-radius: 50%;
  background: var(--wl-card);
  color: var(--wl-navy);
  cursor: pointer;
}
.wl-filter-btn svg { width: 20px; height: 20px; }
.wl-count {
  font-family: var(--wl-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
/* Tile fotografiche dei siti (come le card "In primo piano" del mockup). */
.wl-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wl-result {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  overflow: hidden;
  cursor: pointer;
  background: rgba(5, 28, 50, 0.35);
}
.wl-result img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-result::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 28, 50, 0) 40%, rgba(5, 28, 50, 0.72) 100%);
  pointer-events: none;
}
.wl-result-body {
  position: absolute;
  z-index: 1;
  left: 12px;
  right: 12px;
  bottom: 11px;
  display: grid;
  gap: 3px;
  text-align: center;
}
.wl-result-body h3 {
  margin: 0;
  font-family: var(--wl-serif);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  color: white;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-result-meta {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}
.wl-result-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.wl-result-meta svg { width: 12px; height: 12px; color: rgba(255, 255, 255, 0.75); }
.wl-result .wl-fav {
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  background: rgba(5, 28, 50, 0.3);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
}
.wl-result .wl-fav.active { color: var(--wl-accent); }
.wl-result .wl-fav svg { width: 17px; height: 17px; }

/* ============================================================
   Vista Dettaglio luogo
   ============================================================ */
.wl-detail { padding-bottom: 108px; }
.wl-d-hero {
  position: relative;
  height: 320px;
  background: var(--wl-navy);
}
.wl-d-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wl-d-back {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(14, 42, 71, 0.32);
  backdrop-filter: blur(4px);
  color: white;
}
.wl-d-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 10px;
}
.wl-d-actions .wl-fav { position: static; }
.wl-d-share {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 42, 71, 0.32);
  backdrop-filter: blur(4px);
  color: white;
  cursor: pointer;
}
.wl-d-share svg { width: 18px; height: 18px; }
.wl-d-sheet {
  position: relative;
  margin-top: -26px;
  border-radius: 28px 28px 0 0;
  background: var(--wl-cream);
  padding: 26px 22px 30px;
}
.wl-d-sheet .wl-eyebrow { color: var(--wl-muted); }
.wl-d-sheet h1 {
  margin: 8px 0 6px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--wl-navy);
}
.wl-d-sub {
  margin: 0 0 12px;
  font-family: var(--wl-serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--wl-bronze);
}
.wl-d-desc {
  margin: 0 0 18px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--wl-ink);
}
.wl-d-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid rgba(14, 42, 71, 0.08);
  border-radius: var(--wl-r-md);
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  margin-bottom: 24px;
}
.wl-d-meta div {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 3px;
}
.wl-d-meta svg { width: 18px; height: 18px; color: var(--wl-navy); }
.wl-d-meta strong { font-size: 0.72rem; color: var(--wl-ink); }
.wl-d-meta small { font-size: 0.62rem; color: var(--wl-muted); }
.wl-d-steps { margin: 14px 0 22px; display: grid; gap: 0; }
.wl-step {
  position: relative;
  display: grid;
  grid-template-columns: 44px 54px 1fr;
  gap: 0 12px;
  align-items: center;
  padding: 9px 0;
}
.wl-step::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--wl-ice);
}
.wl-step:first-child::before { top: 50%; }
.wl-step:last-child::before { bottom: 50%; }
.wl-step-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
}
.wl-step-node span {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--wl-cream);
  border: 3px solid var(--wl-ice);
}
.wl-step:first-child .wl-step-node span {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--wl-ice);
  background: white;
  display: grid;
  place-items: center;
}
.wl-step-node svg { width: 22px; height: 13px; color: var(--wl-navy); }
.wl-step img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
}
.wl-step-copy strong {
  display: block;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--wl-navy);
}
.wl-step-copy small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  line-height: 1.35;
  color: var(--wl-muted);
}
.wl-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 20px;
  border: 0;
  border-radius: var(--wl-r-md);
  background: var(--wl-accent);
  color: white;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 12px 26px rgba(226, 101, 43, 0.35);
  cursor: pointer;
}
.wl-cta-mark { width: 36px; height: 20px; color: white; }
.wl-cta:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }

/* ============================================================
   Componenti condivisi: chip a pillola, bottoni icona circolari
   ============================================================ */
.wl-tag-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 18px;
}
.wl-tag-row::-webkit-scrollbar { display: none; }
.wl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid rgba(14, 42, 71, 0.12);
  border-radius: 999px;
  background: var(--wl-card);
  color: var(--wl-ink);
  font: 600 0.78rem var(--wl-sans);
  cursor: pointer;
  white-space: nowrap;
}
.wl-tag svg { width: 15px; height: 15px; color: #4a7fa5; }
.wl-tag.active { background: var(--wl-navy); border-color: var(--wl-navy); color: white; }
.wl-tag.active svg { color: white; }
.wl-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(14, 42, 71, 0.12);
  border-radius: 50%;
  background: var(--wl-card);
  color: var(--wl-navy);
  cursor: pointer;
}
.wl-icon-btn svg { width: 18px; height: 18px; }
.wl-icon-btn[aria-pressed="true"] { background: var(--wl-navy); border-color: var(--wl-navy); color: white; }

/* ============================================================
   Vista Percorso — "Crea il tuo percorso"
   ============================================================ */
.wl-r-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 18px 20px 6px;
}
.wl-r-head .wl-mark { width: 40px; height: 23px; color: var(--wl-ice); }
.wl-r-head-copy h1 {
  margin: 0 0 3px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--wl-navy);
  line-height: 1.15;
}
.wl-r-head-copy p { margin: 0; font-size: 0.76rem; color: var(--wl-muted); line-height: 1.4; }
.wl-r-head-actions { display: flex; gap: 8px; }

.wl-r-map-card {
  margin: 12px 20px 0;
  border-radius: var(--wl-r-lg);
  overflow: hidden;
  border: 1px solid rgba(14, 42, 71, 0.06);
  box-shadow: var(--wl-shadow-card);
}
.wl-r-map { height: 300px; background: var(--wl-ice-soft); }

.wl-r-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 4px;
}
.wl-r-types { flex: 1; min-width: 0; margin-bottom: 0; }
.wl-r-radius { flex: 0 0 148px; }
.wl-r-radius select { padding-right: 30px; }

.wl-r-body { padding: 8px 20px 118px; }
.wl-r-section-head { margin-bottom: 4px; }

.wl-r-stops { position: relative; margin-bottom: 4px; }
.wl-stop {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding-bottom: 14px;
}
.wl-stop::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  border-left: 2px dashed var(--wl-ice);
}
.wl-stop:first-child::before { top: 50%; }
.wl-stop:last-child::before { bottom: 50%; }
.wl-stop-num { position: relative; z-index: 1; display: grid; place-items: center; }
.wl-stop-num span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--wl-navy);
  color: white;
  font: 700 0.78rem var(--wl-serif);
  box-shadow: 0 2px 6px rgba(14, 42, 71, 0.3);
}
.wl-stop-card {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  cursor: pointer;
}
.wl-stop-card img { width: 68px; height: 68px; border-radius: 12px; object-fit: cover; }
.wl-stop-info h3 { margin: 0; font-family: var(--wl-serif); font-weight: 700; font-size: 0.94rem; color: var(--wl-navy); }
.wl-stop-info p {
  margin: 2px 0 5px;
  font-size: 0.72rem;
  color: var(--wl-muted);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wl-stop-meta { display: flex; gap: 10px; font-size: 0.72rem; font-weight: 600; color: var(--wl-ink); }
.wl-stop-meta span { display: inline-flex; align-items: center; gap: 4px; }
.wl-stop-meta svg { width: 13px; height: 13px; color: var(--wl-muted); }
.wl-stop-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.wl-stop-actions .wl-fav { position: static; width: 30px; height: 30px; background: none; color: #c7cfd6; }
.wl-stop-actions .wl-fav.active { color: var(--wl-accent); }
.wl-stop-actions .wl-fav svg { width: 17px; height: 17px; }
.wl-stop-remove {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: #b9c4cd;
  cursor: pointer;
}
.wl-stop-remove svg { width: 14px; height: 14px; }
.wl-r-empty { margin: 4px 0 18px; padding: 18px 12px; text-align: center; color: var(--wl-muted); font-size: 0.82rem; background: var(--wl-card); border-radius: var(--wl-r-md); box-shadow: var(--wl-shadow-card); }

.wl-r-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 14px 10px;
  border: 1px solid rgba(14, 42, 71, 0.08);
  border-radius: var(--wl-r-md);
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  margin-bottom: 18px;
}
.wl-r-stats div { display: grid; justify-items: center; text-align: center; gap: 3px; }
.wl-r-stats svg { width: 17px; height: 17px; color: var(--wl-navy); }
.wl-r-stats strong { font-size: 0.82rem; color: var(--wl-ink); }
.wl-r-stats small { font-size: 0.62rem; color: var(--wl-muted); }

/* ============================================================
   Vista Preferiti — "I tuoi preferiti"
   ============================================================ */
.wl-fab {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--wl-ice);
  color: var(--wl-navy);
  box-shadow: var(--wl-shadow-float);
  cursor: pointer;
}
.wl-fab svg { width: 19px; height: 19px; }
.wl-favorites { padding-top: 0; }
.wl-favorites .wl-f-head { padding-right: 68px; }

.wl-f-head {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 18px 20px 6px;
}
.wl-f-head .wl-mark { width: 40px; height: 23px; color: var(--wl-ice); }
.wl-f-head-copy h1 {
  margin: 0 0 3px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.28rem;
  color: var(--wl-navy);
  line-height: 1.15;
}
.wl-f-head-copy p { margin: 0; font-size: 0.76rem; color: var(--wl-muted); line-height: 1.4; }
.wl-f-head-actions { display: flex; gap: 8px; }
.wl-f-head .wl-menu { top: calc(100% + 2px); right: 20px; }

.wl-f-types { padding: 0 20px; margin-top: 8px; }
.wl-f-listhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 10px;
  font-family: var(--wl-serif);
  color: var(--wl-navy);
  font-size: 0.95rem;
}
.wl-f-list { display: grid; gap: 12px; padding: 0 20px 6px; }
.wl-f-card {
  position: relative;
  display: grid;
  grid-template-columns: 16px 60px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--wl-card);
  box-shadow: var(--wl-shadow-card);
  cursor: pointer;
}
.wl-f-grip { display: flex; align-items: center; justify-content: center; color: #c7cfd6; }
.wl-f-grip svg { width: 13px; height: 13px; transform: rotate(90deg); }
.wl-f-card img { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; }
.wl-f-cat {
  display: inline-block;
  margin-bottom: 3px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--wl-ice-soft);
  color: #3f6f96;
  font: 700 0.6rem var(--wl-sans);
}
.wl-f-card h3 { margin: 0; font-family: var(--wl-serif); font-weight: 700; font-size: 0.92rem; color: var(--wl-navy); }
.wl-f-card .wl-loc { margin-top: 2px; font-size: 0.72rem; color: var(--wl-muted); }
.wl-f-card .wl-loc svg { width: 11px; height: 11px; }
.wl-f-card .wl-fav { position: static; width: 32px; height: 32px; background: none; color: var(--wl-accent); }
.wl-f-card .wl-fav svg { width: 18px; height: 18px; }
.wl-f-check {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--wl-ice);
  color: transparent;
}
.wl-f-check svg { width: 16px; height: 16px; }
.wl-favorites.selecting .wl-fav { display: none; }
.wl-favorites.selecting .wl-f-check { display: grid; }
.wl-f-card.chosen .wl-f-check { background: var(--wl-navy); border-color: var(--wl-navy); color: white; }

.wl-f-empty { padding: 60px 24px 118px; text-align: center; color: var(--wl-muted); }
.wl-f-empty p { margin: 0 0 10px; font-size: 0.88rem; }

.wl-f-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 20px 118px;
  padding: 16px;
  border-radius: var(--wl-r-md);
  background: var(--wl-ice-soft);
  box-shadow: var(--wl-shadow-card);
}
.wl-f-bar strong { display: block; font-size: 0.82rem; color: var(--wl-navy); }
.wl-f-bar span { display: block; font-size: 0.7rem; color: var(--wl-muted); margin-top: 2px; }
.wl-f-bar-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--wl-navy);
  color: white;
  font: 700 0.78rem var(--wl-sans);
  cursor: pointer;
  white-space: nowrap;
}
.wl-f-bar-btn svg { width: 15px; height: 15px; }
.wl-f-bar-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   Modale "Novità" (changelog semplice per l'utente)
   ============================================================ */
.wl-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(14, 42, 71, 0.45);
  backdrop-filter: blur(2px);
}
.wl-modal {
  width: min(360px, 100%);
  max-height: 84vh;
  overflow-y: auto;
  padding: 28px 24px 24px;
  border-radius: var(--wl-r-lg);
  background: var(--wl-cream);
  box-shadow: var(--wl-shadow-float);
  text-align: center;
  font-family: var(--wl-sans);
}
.wl-modal .wl-mark {
  width: 46px;
  height: 26px;
  margin: 0 auto 10px;
  display: block;
  color: var(--wl-ice);
}
.wl-modal h2 {
  margin: 0 0 18px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--wl-navy);
}
.wl-modal-group { margin-bottom: 18px; text-align: left; }
.wl-modal-group h3 {
  margin: 0 0 8px;
  font-family: var(--wl-serif);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--wl-navy);
}
.wl-modal-group ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.wl-modal-group li { font-size: 0.86rem; line-height: 1.4; color: var(--wl-ink); }
.wl-modal .primary { width: 100%; border-radius: 999px; background: var(--wl-navy); font-family: var(--wl-sans); }
.wl-modal-version { margin: 14px 0 0; font-size: 0.7rem; color: var(--wl-muted); }
.wl-modal-intro { margin: 0 0 14px; font-size: 0.88rem; color: var(--wl-muted); }
.wl-modal-note { margin: 14px 0 16px; font-size: 0.74rem; line-height: 1.4; color: var(--wl-muted); text-align: left; }

/* Passaggi in stile timeline: nodo-icona, linea verticale, nodo-icona */
.wl-steps-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.wl-steps-list li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 12px;
  padding-bottom: 18px;
}
.wl-steps-list li:last-child { padding-bottom: 0; }
.wl-steps-list li::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: 0;
  border-left: 2px dashed rgba(13, 39, 71, 0.3);
}
.wl-steps-list li:last-child::before { display: none; }
.wl-step-ic {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--wl-ice);
  background: var(--wl-ice-soft);
  color: var(--wl-navy);
}
.wl-step-ic svg { width: 19px; height: 19px; }
.wl-step-txt {
  align-self: center;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--wl-ink);
}
.wl-step-txt strong { color: var(--wl-navy); }

/* Variante glass del modale (regola di design: glassmorphism ovunque
   abbia senso, con leggibilità piena — qui su sfondo app chiaro serve
   un velo scuro più presente del login) */
.wl-modal-glass {
  background: rgba(5, 28, 50, 0.55);
  -webkit-backdrop-filter: blur(12px) saturate(110%);
  backdrop-filter: blur(12px) saturate(110%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  font-family: "Nunito", sans-serif;
}
@supports not (backdrop-filter: blur(1px)) {
  .wl-modal-glass { background: rgba(5, 28, 50, 0.88); }
}
.wl-modal-glass .wl-mark { color: var(--wl-ice); }
.wl-modal-glass h2 { color: white; font-family: "Nunito", sans-serif; font-weight: 600; }
.wl-modal-glass .wl-modal-intro { color: rgba(255, 255, 255, 0.85); }
.wl-modal-glass .wl-modal-note { color: rgba(255, 255, 255, 0.7); }
.wl-modal-glass .wl-steps-list li::before { border-left-color: rgba(255, 255, 255, 0.35); }
.wl-modal-glass .wl-step-ic {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
.wl-modal-glass .wl-step-txt { color: rgba(255, 255, 255, 0.95); }
.wl-modal-glass .wl-step-txt strong { color: white; }
.wl-modal-glass .primary {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(13, 39, 71, 0.85);
  font-family: "Nunito", sans-serif;
}

/* ---------- Banner "installa l'app" ---------- */
.wl-install-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: var(--wl-r-md);
  background: var(--wl-navy);
  color: white;
  box-shadow: var(--wl-shadow-card);
}
.wl-install-banner-icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--wl-ice); }
.wl-install-banner span { flex: 1; font-size: 0.78rem; line-height: 1.35; }
.wl-install-banner-btn {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--wl-ice);
  color: var(--wl-navy);
  font: 700 0.78rem var(--wl-sans);
  cursor: pointer;
  white-space: nowrap;
}
.wl-install-banner-close {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.wl-install-banner-close svg { width: 15px; height: 15px; }

/* ============================================================
   Welcome / login reale (Supabase Auth)
   ============================================================ */
.wl-welcome {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 28px;
}
.wl-welcome-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.wl-welcome-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(14, 42, 71, 0.38) 0%, rgba(14, 42, 71, 0.1) 26%, rgba(14, 42, 71, 0.02) 48%, rgba(14, 42, 71, 0.05) 80%, rgba(14, 42, 71, 0.16) 100%);
}
.wl-welcome-top {
  position: relative;
  z-index: 2;
  padding: 88px 24px 0;
  text-align: center;
}
.wl-brand-hero {
  justify-content: center;
  align-items: center;
}
.wl-mark-solo {
  width: 84px;
  height: 48px;
  color: white;
  filter: drop-shadow(0 2px 12px rgba(5, 28, 50, 0.5));
}
.wl-wordmark-hero {
  width: 178px;
  height: 27px;
  margin-left: 4px;
  color: white;
  filter: drop-shadow(0 2px 10px rgba(5, 28, 50, 0.5));
  transform: translateY(3px);
}
.wl-welcome-top .wl-welcome-tag {
  margin: 12px 0 0;
  font-family: "Nunito", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(5, 28, 50, 0.5);
}

/* Card di login "vetro smerigliato" centrata: valori concordati con
   l'utente perché la villa resti chiaramente percepibile attraverso
   il vetro, con testi navy ben leggibili grazie al blur. */
.wl-welcome-card {
  position: relative;
  top: 22px;
  z-index: 2;
  margin: auto 26px;
  padding: 12px 16px 10px;
  /* Velo adattivo basato sull'analisi della foto: la card poggia su zona
     scura (lum 0.17-0.36) tranne la fascia del titolo, che sta sul cielo
     chiaro del tramonto (lum 0.68): si scurisce solo lì, il resto è vetro
     puro. Se la foto cambia, ricalibrare (scratchpad analyze-bg). */
  background: linear-gradient(180deg, rgba(5, 28, 50, 0.32) 0%, rgba(5, 28, 50, 0.12) 15%, rgba(5, 28, 50, 0) 28%);
  -webkit-backdrop-filter: blur(4px) saturate(105%);
  backdrop-filter: blur(4px) saturate(105%);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(5, 28, 50, 0.18);
  font-family: "Nunito", sans-serif;
}
/* Senza supporto al blur la trasparenza renderebbe il testo illeggibile:
   si ripiega su un velo navy piu' coprente (il testo qui e' bianco). */
@supports not (backdrop-filter: blur(1px)) {
  .wl-welcome-card { background: rgba(5, 28, 50, 0.78); }
}

#auth-title {
  margin: 0 0 1px;
  text-align: center;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  font-size: 1.45rem;
  color: white;
  text-shadow: 0 1px 10px rgba(5, 28, 50, 0.55);
}
.wl-auth-sub {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(5, 28, 50, 0.4);
}

/* Campi trasparenti bordati di bianco, testo bianco, come nel mockup */
.wl-field {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.03);
}
.wl-field:focus-within {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
}
.wl-field > svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.9);
}
.wl-field input {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 42px;
  /* margin/padding/shadow espliciti: styles.css (condiviso con l'admin)
     aggiunge margin-top a text/email ma non a password (campi sfalsati)
     e un box-shadow azzurro al focus (perimetro indesiderato). */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  appearance: none;
  /* 16px minimi: sotto questa soglia iOS Safari zooma la pagina al focus,
     facendo "strabordare" la card verso destra. */
  font: 400 16px/1.3 "Nunito", sans-serif;
  color: white;
  caret-color: white;
}
.wl-field input:focus {
  outline: none;
  border: 0;
  box-shadow: none;
}
/* L'autofill di WebKit dipinge lo sfondo di bianco/giallo: lo si rende
   invisibile per mantenere il campo "anonimo" dentro il vetro. */
.wl-field input:-webkit-autofill,
.wl-field input:-webkit-autofill:hover,
.wl-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: white;
  -webkit-box-shadow: 0 0 0 1000px transparent inset;
  transition: background-color 99999s ease-in-out 0s;
}
.wl-field input::placeholder { color: rgba(255, 255, 255, 0.75); }
.wl-eye {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -8px;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.wl-eye svg { width: 20px; height: 20px; }

.wl-forgot-row { margin: 0; text-align: right; }
.wl-welcome .wl-link {
  color: white;
  font-family: "Nunito", sans-serif;
  font-weight: 600;
  text-shadow: 0 1px 6px rgba(5, 28, 50, 0.4);
}
.wl-auth-message:empty { display: none; }
.wl-auth-message {
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffd3c2;
  text-shadow: 0 1px 4px rgba(5, 28, 50, 0.5);
}
.wl-welcome .primary {
  width: 100%;
  margin-top: 4px;
  padding: 7px 20px;
  border-radius: 13px;
  background: rgba(13, 39, 71, 0.72);
  box-shadow: 0 10px 24px rgba(5, 28, 50, 0.3);
  font: 600 1.05rem "Nunito", sans-serif;
}
.wl-welcome .primary:hover { box-shadow: 0 12px 28px rgba(5, 28, 50, 0.35); }

.wl-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(5, 28, 50, 0.4);
}
.wl-divider::before, .wl-divider::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.5); }

.wl-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 7px 16px;
  border: 0;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--wl-ink);
  font: 600 1rem "Nunito", sans-serif;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(5, 28, 50, 0.12);
}
.wl-google-btn svg { width: 20px; height: 20px; }

.wl-switch {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(5, 28, 50, 0.4);
}
