/* =====================================================
   MANI FIDATE — Brand tokens
   Primary: deep midnight indigo + white
   Accent: green (universal phone/call)
   ===================================================== */
:root {
  --indigo-deep: #0E0A33;
  --indigo: #150E51;
  --indigo-2: #1B1671;
  --indigo-3: #261E92;
  --indigo-soft: rgba(255,255,255,0.06);
  --indigo-line: rgba(255,255,255,0.12);
  --indigo-muted: rgba(255,255,255,0.65);

  --white: #FFFFFF;
  --off-white: #F7F7FB;
  --pale: #EFEFF6;
  --line: #E2E2EC;
  --ink: #0E0A33;
  --muted: #6F6E84;

  --green: #22C55E;
  --green-2: #16A34A;
  --green-glow: rgba(34,197,94,.4);

  --shadow-sm: 0 1px 2px rgba(14,10,51,.06), 0 2px 6px rgba(14,10,51,.04);
  --shadow-md: 0 8px 24px rgba(14,10,51,.08), 0 16px 48px rgba(14,10,51,.05);
  --shadow-lg: 0 24px 60px rgba(14,10,51,.18);
  --shadow-green: 0 8px 24px var(--green-glow);
  --radius-pill: 999px;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html, body {
  background: var(--off-white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.display-xl { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; }
.display-lg { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -0.025em; }
.display-md { font-size: clamp(1.4rem, 2.2vw, 1.7rem); font-weight: 700; }

/* ============ LOGO + WORDMARK ============ */
.brand {
  display: inline-flex; align-items: center; gap: .75rem;
  text-decoration: none;
  color: inherit;
}
.brand-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 100%; height: 100%; display: block; }
.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}
.brand-logo-light { filter: brightness(0) invert(1); }
.wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.12em;
  line-height: 1;
  margin-top: 3px;
}

/* ============ TOPBAR ============ */
.topbar {
  background: var(--indigo);
  border-bottom: 1px solid var(--indigo-line);
  position: sticky; top: 0; z-index: 100;
}
.topbar .container {
  padding-top: 1rem; padding-bottom: 1rem;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar .brand, .topbar .brand:hover { color: white; }
.topbar .nav-link-custom {
  color: var(--indigo-muted); font-weight: 500; font-size: .94rem;
  padding: .45rem .9rem; border-radius: var(--radius-pill);
  transition: all .2s ease;
  text-decoration: none;
}
.topbar .nav-link-custom:hover { color: white; background: var(--indigo-soft); }

/* ============ MOBILE DRAWER ============ */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--indigo-line);
  color: white;
  width: 42px; height: 42px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .2s ease;
  padding: 0;
}
.mobile-menu-toggle:hover { background: var(--indigo-soft); }

.mobile-drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(10, 5, 40, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1000;
}
.mobile-drawer-backdrop.is-open { opacity: 1; visibility: visible; }

.mobile-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(86vw, 340px);
  background: var(--indigo);
  color: white;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
  display: flex; flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, .25);
  overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }

.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--indigo-line);
}
.mobile-drawer-close {
  background: transparent;
  border: 1px solid var(--indigo-line);
  color: white;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s ease;
  padding: 0;
}
.mobile-drawer-close:hover { background: var(--indigo-soft); }

.mobile-drawer-nav {
  display: flex; flex-direction: column;
  padding: 1rem .75rem;
  gap: .25rem;
}
.mobile-drawer-nav a {
  display: flex; align-items: center; gap: .8rem;
  color: var(--indigo-muted);
  padding: .9rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background .2s ease, color .2s ease;
}
.mobile-drawer-nav a i { width: 20px; text-align: center; font-size: 1rem; }
.mobile-drawer-nav a:hover { color: white; background: var(--indigo-soft); }
.mobile-drawer-nav .mobile-drawer-cta {
  margin-top: .75rem;
  background: white;
  color: var(--indigo);
  font-weight: 700;
  justify-content: center;
}
.mobile-drawer-nav .mobile-drawer-cta:hover { background: var(--off-white); color: var(--indigo); }

body.mobile-drawer-open { overflow: hidden; }

/* ============ BUTTONS ============ */
.btn-pill {
  background: white; color: var(--indigo);
  border: 1px solid white;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .94rem;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
  line-height: 1.1;
}
.btn-pill:hover { background: var(--off-white); color: var(--indigo); transform: translateY(-1px); }

.btn-pill-outline {
  background: transparent; color: white;
  border: 1px solid var(--indigo-line);
  padding: .7rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .94rem;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
  line-height: 1.1;
}
.btn-pill-outline:hover { background: var(--indigo-soft); border-color: rgba(255,255,255,.4); color: white; }

.btn-pill-dark-outline {
  background: transparent; color: var(--indigo);
  border: 1.5px solid var(--line);
  padding: .7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
}
.btn-pill-dark-outline:hover { border-color: var(--indigo); color: var(--indigo); background: white; }

.btn-pill-indigo {
  background: var(--indigo); color: white;
  border: 1px solid var(--indigo);
  padding: .75rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .92rem;
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  cursor: pointer;
}
.btn-pill-indigo:hover { background: var(--indigo-2); color: white; transform: translateY(-1px); }

/* CALL CTA — green, conversion-critical */
.btn-call {
  background: var(--green); color: white;
  border: 1px solid var(--green);
  padding: .8rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700; font-size: .98rem;
  box-shadow: var(--shadow-green);
  transition: all .2s ease;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: .55rem;
  cursor: pointer;
  line-height: 1.1;
}
.btn-call:hover { background: var(--green-2); border-color: var(--green-2); color: white; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(34,197,94,.5); }
.btn-call.btn-call-lg { padding: 1.05rem 1.8rem; font-size: 1.05rem; }
.btn-call .pulse {
  width: 8px; height: 8px;
  background: rgba(255,255,255,.95); border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.6); opacity: .35; }
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: white;
  padding: 5rem 0 7rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; top: 30%; left: 50%;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(38, 30, 146, 0.6) 0%, transparent 65%);
  transform: translateX(-50%);
  pointer-events: none;
}
.hero-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 82% 32%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 28% 76%, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 64% 64%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 52% 12%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 92% 84%, rgba(255,255,255,.4), transparent),
    radial-gradient(1px 1px at 7% 56%, rgba(255,255,255,.4), transparent);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--indigo-soft);
  border: 1px solid var(--indigo-line);
  color: white;
  padding: .4rem 1rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600;
  margin-bottom: 1.6rem;
}
.hero-eyebrow .dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; box-shadow: 0 0 8px var(--green); }

.hero h1 { color: white; margin-bottom: 1.4rem; }
.hero h1 em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, #c0bfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding: 0.06em 0.16em 0.22em 0.05em;
  line-height: 1.2;
  vertical-align: baseline;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--indigo-muted);
  max-width: 580px;
  margin: 0 auto 2.6rem;
}

/* ============================================================
   SEARCHBAR — form di ricerca moderno (home + risultati)
   Stile pill rounded ispirato a Booking/Airbnb 2024
   ============================================================ */

.searchbar {
  display: flex;
  align-items: stretch;
  background: white;
  border-radius: 999px;
  padding: 6px;
  box-shadow: 0 24px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.04);
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.searchbar-field {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem 1.1rem;
  min-width: 0;
  border-radius: 999px;
  transition: background .15s ease;
  cursor: pointer;
  position: relative;
}
.searchbar-field:hover {
  background: var(--off-white);
}
.searchbar-field:focus-within {
  background: var(--off-white);
}

.searchbar-icon {
  color: var(--indigo);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.searchbar-field-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.searchbar-label {
  font-size: .62rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1px;
}

.searchbar-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
}
.searchbar-select:focus { outline: none; }

.searchbar-divider {
  width: 1px;
  background: var(--line);
  margin: 12px 0;
  flex-shrink: 0;
}

.searchbar-btn {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-2) 100%);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
  min-width: 60px;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(21,14,81,.35);
}
.searchbar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(21,14,81,.5);
}
.searchbar-btn i { font-size: 1.05rem; }

/* Variante compatta (/risultati) — meno ombra, larghezza piena */
.searchbar-compact {
  max-width: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}

/* ============ MOBILE CUSTOM PICKER ============ */
.searchbar-display {
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-picker {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 99999;
  display: none;
  flex-direction: column;
}
.mobile-picker.is-open { display: flex; }

.mobile-picker-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 12px 14px;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mobile-picker-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  color: var(--indigo);
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s ease;
}
.mobile-picker-back:hover { background: var(--indigo); color: white; border-color: var(--indigo); }
.mobile-picker-search {
  flex: 1;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--ink);
}
.mobile-picker-search:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(21,14,81,.08);
}
.mobile-picker-results {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-picker-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 1rem 1.2rem;
  background: white;
  border: none;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  transition: background .1s ease;
}
.mobile-picker-option:active,
.mobile-picker-option:hover { background: var(--off-white); }
.mobile-picker-option.is-selected {
  background: var(--pale);
  color: var(--indigo);
  font-weight: 700;
}

/* ============ MOBILE: HOME inline | COMPACT vertical ============ */
@media (max-width: 640px) {
  /* Home (non-compact): cat + città + lente AFFIANCATI */
  .searchbar:not(.searchbar-compact) {
    flex-direction: row;
    border-radius: 16px;
    padding: 5px;
    gap: 4px;
  }
  .searchbar:not(.searchbar-compact) .searchbar-divider { display: none; }
  .searchbar:not(.searchbar-compact) .searchbar-field {
    flex: 1 1 0;
    min-width: 0;
    background: var(--off-white);
    padding: .55rem .75rem;
    border-radius: 10px;
    min-height: 52px;
  }
  .searchbar:not(.searchbar-compact) .searchbar-label { font-size: .58rem; }
  .searchbar:not(.searchbar-compact) .searchbar-select { font-size: .85rem; }
  .searchbar:not(.searchbar-compact) .searchbar-btn {
    width: 52px;
    min-width: 52px;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
  }
  .searchbar:not(.searchbar-compact) .searchbar-btn-text { display: none; }
  .searchbar:not(.searchbar-compact) .searchbar-btn i { font-size: 1.2rem; }

  /* Compact (risultati): stack verticale */
  .searchbar-compact {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
    gap: 4px;
  }
  .searchbar-compact .searchbar-divider { display: none; }
  .searchbar-compact .searchbar-field {
    width: 100%;
    background: var(--off-white);
    padding: .8rem 1.1rem;
    border-radius: 12px;
    min-height: 56px;
  }
  .searchbar-compact .searchbar-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    min-height: 56px;
    font-size: 1rem;
  }
  .searchbar-compact .searchbar-btn i { font-size: 1.2rem; }

  /* ============ MODALE FULL-SCREEN 100vh quando si clicca un select ============ */
  .manifidate-dropdown.select2-dropdown {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: 99999 !important;
    background: white !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .manifidate-dropdown .select2-search--dropdown {
    padding: 16px 16px 16px 60px !important;
    background: var(--off-white) !important;
    border-bottom: 1px solid var(--line) !important;
    flex-shrink: 0;
    position: relative;
  }
  .manifidate-dropdown .select2-search--dropdown::before {
    content: "\f060" !important; /* fa-arrow-left */
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900;
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--indigo) !important;
    font-size: 1.2rem;
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
  }
  .manifidate-dropdown .select2-search__field {
    padding: .7rem .9rem !important;
    padding-left: .9rem !important;
    font-size: 1rem !important;
    border-radius: 10px !important;
  }
  .manifidate-dropdown .select2-results {
    flex: 1 !important;
    overflow-y: auto !important;
  }
  .manifidate-dropdown .select2-results__options {
    max-height: none !important;
    height: auto !important;
  }
  .manifidate-dropdown .select2-results__option {
    padding: 1rem 1.2rem !important;
    font-size: 1rem !important;
    border-bottom: 1px solid var(--line);
  }
}

/* OLD CLASSES — kept solo se ancora referenziate, ma effettivamente non usate
   ============================================================ */

/* Search card */
.search-card {
  background: white;
  border-radius: 20px;
  padding: .55rem;
  box-shadow: 0 24px 70px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06);
  max-width: 760px;
  margin: 0 auto;
}
.search-row {
  display: flex; flex-wrap: nowrap; gap: .35rem; align-items: stretch;
  min-height: 64px;
}
.search-field {
  flex: 1 1 200px;
  display: flex; align-items: center; gap: .8rem;
  padding: 0 1.2rem;
  background: var(--off-white);
  border-radius: 14px;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease;
  min-width: 0;
  position: relative;
}
.search-field:focus-within { border-color: var(--indigo); background: white; }
.search-field i { color: var(--indigo); font-size: 1.2rem; flex-shrink: 0; }
.search-field-content { flex: 1; min-width: 0; }
.search-field-label {
  font-size: .7rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  display: block;
  margin-bottom: 1px;
}
.search-field-content select {
  width: 100%;
  border: none; background: transparent;
  font-size: .98rem; font-weight: 600;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.search-field-content select:focus { outline: none; }

.search-btn {
  background: var(--indigo); color: white;
  border: none; padding: 0 1.5rem;
  border-radius: 14px;
  font-weight: 700; font-size: .96rem;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  flex-shrink: 0;
  font-family: inherit;
}
.search-btn:hover { background: var(--indigo-2); transform: translateY(-1px); }

/* Pulsante unificato lente + "Cerca" (sempre presente; testo si adatta al contesto) */
.search-btn-main {
  padding: 0 1.5rem;
  align-self: stretch;
  gap: .55rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-2) 100%);
  box-shadow: 0 6px 18px rgba(21,14,81,.25);
  min-width: 64px;
  white-space: nowrap;
}
.search-btn-main:hover {
  background: linear-gradient(135deg, var(--indigo-2) 0%, var(--indigo-3) 100%);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(21,14,81,.35);
}
.search-btn-main i { font-size: 1.15rem; }
.search-btn-main .search-btn-text { letter-spacing: .01em; }

.search-card-compact .search-row { min-height: 50px; }
.search-card-compact .search-btn-main { padding: 0 1.4rem; font-size: .95rem; }

/* Compact variant — for results page (no big shadow, tighter) */
.search-card-compact {
  padding: .35rem;
  border-radius: 14px;
  background: white;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  margin-bottom: 1.4rem;
}
.search-card-compact .search-row { gap: .25rem; }
.search-card-compact .search-field {
  padding: .55rem .9rem;
  border-radius: 10px;
}
.search-card-compact .search-field i { font-size: 1rem; }
.search-card-compact .search-field-label { font-size: .65rem; }
.search-card-compact .search-field-content select,
.search-card-compact .search-field-content input { font-size: .9rem; }
.search-card-compact .search-btn { padding: 0 1.3rem; border-radius: 10px; font-size: .9rem; }
.search-card-compact .search-field-text input {
  width: 100%; border: none; background: transparent; padding: 0;
  font-weight: 600; color: var(--ink);
  font-family: inherit;
}
.search-card-compact .search-field-text input:focus { outline: none; }
.search-card-compact .search-field-text input::placeholder { color: var(--muted); font-weight: 500; }

/* Free-text input also for non-compact */
.search-field-text input {
  width: 100%; border: none; background: transparent; padding: 0;
  font-size: .98rem; font-weight: 600; color: var(--ink);
  font-family: inherit;
}
.search-field-text input:focus { outline: none; }
.search-field-text input::placeholder { color: var(--muted); font-weight: 500; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 2rem;
  justify-content: center;
  margin-top: 2.4rem;
  color: var(--indigo-muted); font-size: .88rem;
}
.trust-strip i { color: var(--green); margin-right: .35rem; }

/* ============ SECTIONS ============ */
.section { padding: 5rem 0; }
.section-compact { padding: 1.4rem 0 3rem; }
.section-pale { background: var(--pale); }
.section-title { margin-bottom: 2.5rem; text-align: center; }
.section-title h2 { margin: 0 0 .5rem; }
.section-title .lead { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 540px; margin-inline: auto; }

/* Categories grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}
.cat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none; color: var(--ink);
  display: block;
}
.cat-card:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: var(--indigo);
}
.cat-card-icon {
  width: 52px; height: 52px;
  margin: 0 auto .8rem;
  background: var(--pale);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--indigo);
  transition: all .2s ease;
}
.cat-card:hover .cat-card-icon { background: var(--indigo); color: white; }
.cat-card-name { font-weight: 700; font-size: .94rem; }
.cat-card-count { font-size: .78rem; color: var(--muted); margin-top: 2px; font-weight: 500; }

/* How it works */
.step-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 1.8rem;
  height: 100%;
  position: relative;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--indigo); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.step-card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============ RESULTS ============ */
.results-section { padding: 1.4rem 0 4rem; }

.results-head {
  display: flex; align-items: center; gap: .9rem; flex-wrap: wrap;
  margin: .4rem 0 1rem;
}
.results-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700; letter-spacing: -.025em;
  margin: 0;
}
.results-count-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--pale); color: var(--indigo);
  border-radius: var(--radius-pill);
  padding: .35rem .85rem;
  font-size: .82rem; font-weight: 700;
}
.results-count-pill i { color: var(--green-2); }

/* Category chip row — quick filters above the search */
.cat-chip-row {
  display: flex; flex-wrap: nowrap; gap: .45rem;
  margin-bottom: 1rem;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: .35rem;
  -webkit-overflow-scrolling: touch;
}
.cat-chip-row::-webkit-scrollbar { height: 6px; }
.cat-chip-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.cat-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: .45rem .9rem;
  font-size: .85rem; font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all .18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-chip i { font-size: .92rem; color: var(--indigo); transition: color .18s ease; }
.cat-chip:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.cat-chip.active {
  background: var(--indigo); border-color: var(--indigo); color: white;
}
.cat-chip.active i { color: white; }
.cat-chip-count {
  background: rgba(14,10,51,.08);
  color: var(--indigo);
  font-size: .72rem; font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  min-width: 22px; text-align: center;
}
.cat-chip.active .cat-chip-count {
  background: rgba(255,255,255,.18);
  color: white;
}

.filter-bar {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .65rem .9rem;
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
  margin-bottom: 1.4rem;
  font-size: .88rem;
}
.filter-chip {
  background: var(--pale);
  border-radius: var(--radius-pill);
  padding: .35rem .8rem .35rem 1rem;
  font-size: .88rem; font-weight: 600;
  color: var(--indigo);
  display: inline-flex; align-items: center; gap: .5rem;
}
.filter-chip .close-x {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--indigo); color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  text-decoration: none;
  padding: 0;
  flex-shrink: 0;
  /* Centra il contenuto (sia testo "×" che icona FontAwesome) */
  font-size: 0; /* nasconde il testo "×" letterale (lo rimpiazziamo con ::before) */
  line-height: 1;
}
.filter-chip .close-x::before {
  content: "\f00d"; /* fa-xmark */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: .68rem;
  display: block;
  line-height: 1;
}
.filter-chip .close-x:hover { background: var(--green); color: white; }

.results-count {
  font-size: .92rem; color: var(--muted);
  margin-left: auto;
  font-weight: 500;
}

/* Stagger fade-in for cards */
.biz-card-wrap {
  opacity: 0;
  transform: translateY(12px);
  animation: bizFadeIn .45s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes bizFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.biz-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: all .25s ease;
  display: flex; flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.biz-card:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  color: inherit;
}
.biz-card-photo {
  height: 190px;
  background-color: var(--pale);
  background-size: cover; background-position: center;
  position: relative;
}
.badge-cat-wrap {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: .25rem;
  max-width: calc(100% - 24px);
  align-items: flex-start;
}
.biz-card-photo .badge-cat {
  background: rgba(21,14,81,.92); color: white;
  padding: .35rem .8rem; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 700;
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: .35rem;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge-cat-extras {
  display: flex; flex-direction: row; flex-wrap: wrap; gap: .2rem;
  max-width: 100%;
  align-items: flex-start;
}
.badge-cat-mini {
  background: rgba(255,255,255,.85);
  color: var(--indigo);
  padding: .2rem .55rem;
  border-radius: var(--radius-pill);
  font-size: .68rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.badge-cat-mini i { font-size: .65rem; }
.biz-card-photo .badge-views {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.55); color: white;
  padding: .25rem .55rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; gap: .3rem;
}
.biz-card-photo .badge-views i { font-size: .8rem; }

/* Footer cities — lista in colonna */
.footer-cities {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}
.footer-cities li { margin-bottom: .4rem; }
.footer-cities a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  display: block;
  padding: 2px 0;
}
.footer-cities a:hover { color: white; }

.footer-info-row {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  text-align: center;
}
.footer-info-row a { color: rgba(255,255,255,.7); margin: 0 .2rem; }
.footer-info-row a:hover { color: white; }
.footer-info-row .sep { color: rgba(255,255,255,.25); margin: 0 .3rem; }
.biz-card-body {
  padding: 1.3rem 1.3rem 1.4rem;
  flex: 1;
  display: flex; flex-direction: column;
}
.biz-card-body h3 {
  font-size: 1.2rem;
  margin: 0 0 .35rem;
}
/* Categorie sotto al titolo della card (no piu sull'immagine) */
.biz-card-cats {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin: .25rem 0 .65rem;
}
.cat-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .65rem;
  border-radius: var(--radius-pill);
  font-size: .73rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.3;
  transition: all .15s ease;
}
.cat-tag-primary {
  background: var(--indigo);
  color: white;
}
.cat-tag-extra {
  background: var(--pale);
  color: var(--indigo);
  border: 1px solid transparent;
}
.cat-tag-extra:hover { border-color: var(--indigo); }
.cat-tag i { font-size: .68rem; }

.biz-card-meta {
  font-size: .88rem; color: var(--muted);
  margin-bottom: .8rem;
  display: flex; align-items: center; gap: .35rem;
  font-weight: 500;
}
.biz-card-desc {
  font-size: .92rem; color: var(--ink);
  margin-bottom: 1.2rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.biz-card-actions { display: flex; gap: .6rem; align-items: center; }
.biz-card-actions .btn-call { flex: 1; justify-content: center; }
.biz-card-actions .btn-detail {
  background: var(--pale); color: var(--indigo);
  border: none; padding: .8rem 1rem;
  border-radius: var(--radius-pill); font-weight: 700; font-size: .88rem;
  cursor: pointer;
  transition: all .15s ease;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.biz-card-actions .btn-detail:hover { background: var(--indigo); color: white; }

/* ============ DETAIL ============ */
.breadcrumb-custom {
  font-size: .85rem; color: var(--muted);
  margin: 0 0 .8rem;
  font-weight: 500;
}
.breadcrumb-custom a { color: var(--muted); text-decoration: none; }
.breadcrumb-custom a:hover { color: var(--indigo); }
.breadcrumb-custom .sep { margin: 0 .4rem; color: var(--line); }

.detail-hero {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.detail-hero-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  position: relative;
  overflow: hidden;
}
.detail-hero-cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(38,30,146,.6), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(34,197,94,.15), transparent 40%);
}
.detail-hero-cover .pattern-deco {
  position: absolute; right: -40px; bottom: -40px;
  width: 140px; height: 140px; opacity: .12;
  border-radius: 50%; border: 2px solid white;
}
.detail-hero-cover .pattern-deco-2 {
  position: absolute; right: 60px; bottom: 18px;
  width: 70px; height: 70px; opacity: .2;
  border-radius: 50%; border: 2px solid white;
}

.detail-hero-body {
  padding: 0 1.2rem 1.1rem;
  position: relative;
}
.detail-hero-photo {
  width: 96px; height: 96px;
  border-radius: 14px;
  background-color: var(--pale);
  background-size: cover; background-position: center;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
  margin-top: -48px;
  flex-shrink: 0;
}
.detail-hero-info { padding-top: .35rem; flex: 1; }
.detail-hero-cat {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--pale); color: var(--indigo);
  padding: .22rem .65rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  margin-bottom: .35rem;
}
.detail-hero-cats {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-bottom: .35rem;
}
.detail-hero-cats .detail-hero-cat { margin-bottom: 0; }
.detail-hero-slogan {
  margin: 0 0 .4rem;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}
.detail-hero-info h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 .15rem; }
.detail-hero-meta {
  display: flex; flex-wrap: wrap; gap: .9rem;
  color: var(--muted); font-size: .85rem;
  margin-top: .25rem;
  font-weight: 500;
}
.detail-hero-meta i { color: var(--indigo); margin-right: .3rem; }

.phone-block {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: white;
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex; flex-direction: column; gap: .7rem;
  position: relative; overflow: hidden;
}
.phone-block::before {
  content: ""; position: absolute; top: -40%; right: -30%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--indigo-3), transparent 60%);
  pointer-events: none;
}
.phone-block::after {
  content: ""; position: absolute; bottom: -30%; left: -20%;
  width: 160px; height: 160px;
  background: radial-gradient(circle, rgba(34,197,94,.18), transparent 65%);
  pointer-events: none;
}
.phone-block-label {
  font-size: .68rem; font-weight: 700;
  color: var(--indigo-muted);
  text-transform: uppercase; letter-spacing: .1em;
  position: relative; z-index: 1;
}
.phone-block-number {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative; z-index: 1;
}
.phone-block .btn-call { width: 100%; justify-content: center; position: relative; z-index: 1; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 14px;
  background-color: var(--pale);
  background-size: cover; background-position: center;
  cursor: pointer;
  transition: transform .25s ease;
  position: relative;
  overflow: hidden;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item::after {
  content: "\f424"; /* fa-up-right-and-down-left-from-center */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute; bottom: 8px; right: 8px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,.95);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo);
  opacity: 0; transition: opacity .2s ease;
}
.gallery-item:hover::after { opacity: 1; }

.info-box {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
}
.info-box h3 { font-size: 1.02rem; margin: 0 0 .7rem; }
.info-row {
  display: flex; justify-content: space-between;
  padding: .45rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .9rem;
}
.info-row:last-child { border: none; }
.info-row .lbl { color: var(--muted); font-weight: 500; }
.info-row .val { font-weight: 700; color: var(--ink); text-align: right; }

/* Sticky CTA mobile */
.sticky-call {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding: .8rem 1rem;
  display: none;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(14,10,51,.08);
}
.sticky-call .btn-call { width: 100%; justify-content: center; }
@media (max-width: 768px) {
  .sticky-call.active { display: block; }
  body.detail-active { padding-bottom: 80px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(14,10,51,.95);
  z-index: 200;
  display: none;
  align-items: center; justify-content: center;
  padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: white; color: var(--indigo);
  border: none; width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--indigo-deep); color: rgba(255,255,255,.85);
  padding: 4rem 0 1.5rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 600px; height: 200px;
  background: radial-gradient(ellipse, rgba(38,30,146,.4), transparent 60%);
  transform: translateX(-50%);
  pointer-events: none;
}
.site-footer .container { position: relative; z-index: 1; }
.site-footer h4 {
  color: white; font-size: 1rem; font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase; letter-spacing: .06em;
}
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; font-size: .92rem; transition: color .15s; }
.site-footer a:hover { color: white; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 2.5rem; padding-top: 1.5rem;
  font-size: .85rem; color: rgba(255,255,255,.55);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.footer-bottom a { color: rgba(255,255,255,.7); }

/* Toast */
.toast-mini {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white;
  padding: .85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600;
  z-index: 250;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
.toast-mini.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast-mini i { margin-right: .4rem; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  background: white;
  border: 1px dashed var(--line);
  border-radius: 18px;
}
.empty-state i { font-size: 3rem; color: var(--line); margin-bottom: 1rem; display: block; }
.empty-state h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: .4rem; }

/* ============ REGISTRATION FORM ============ */
.register-hero {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: white;
  padding: 3.5rem 0 2.4rem;
  position: relative; overflow: hidden;
}
.register-hero-content { position: relative; z-index: 2; text-align: center; }
.register-hero h1 { color: white; margin: 0 0 1rem; }
.register-hero h1 em {
  font-style: italic; font-weight: 700;
  background: linear-gradient(90deg, #ffffff 0%, #c0bfff 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.register-hero .hero-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(34,197,94,.18);
  border: 1px solid rgba(34,197,94,.4);
  color: white;
  padding: .4rem 1rem; border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700;
  margin-bottom: 1.2rem;
}
.register-hero .hero-eyebrow i { color: #6EE7A2; }
.register-hero .hero-sub { color: var(--indigo-muted); max-width: 640px; margin: 0 auto; }

.register-wrap {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-top: -1.6rem;
  position: relative;
  z-index: 3;
}

.register-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.6rem;
  margin-bottom: 1.6rem;
}
.register-section:last-of-type { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.register-section h3 {
  font-size: 1.05rem; margin: 0 0 1.2rem;
  display: flex; align-items: center; gap: .5rem;
}
.register-section h3::before {
  content: ""; display: inline-block;
  width: 4px; height: 18px;
  background: var(--indigo); border-radius: 2px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.2rem;
}
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label-custom {
  font-size: .78rem; font-weight: 700;
  color: var(--ink);
  text-transform: uppercase; letter-spacing: .05em;
  display: block;
}
.form-label-custom .req { color: #ef4444; margin-left: 2px; }
.form-control-custom {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .7rem .9rem;
  font-size: .95rem;
  width: 100%;
  transition: all .15s ease;
  font-family: inherit;
  font-weight: 500;
  color: var(--ink);
}
.form-control-custom:focus {
  outline: none;
  border-color: var(--indigo);
  background: white;
  box-shadow: 0 0 0 3px rgba(21,14,81,.08);
}
textarea.form-control-custom { resize: vertical; min-height: 90px; }
.form-hint { font-size: .78rem; color: var(--muted); }
.form-error { font-size: .78rem; color: #ef4444; min-height: 0; }
.form-error:empty { display: none; }

/* Multi-category checkbox grid */
.multi-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .5rem;
  margin-top: .35rem;
}
.multi-cat-chip {
  display: flex; align-items: center; gap: .5rem;
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .55rem .75rem;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  transition: all .15s ease;
}
.multi-cat-chip:hover { border-color: var(--indigo); }
.multi-cat-chip input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--indigo);
  flex-shrink: 0;
  cursor: pointer;
}
.multi-cat-chip input:checked + span {
  color: var(--indigo);
}
.multi-cat-chip:has(input:checked) {
  border-color: var(--indigo);
  background: rgba(21,14,81,.04);
}
.multi-cat-chip i {
  color: var(--indigo);
  font-size: .9rem;
}

/* Trial section */
.register-trial {
  background: var(--off-white);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  border: 1px solid var(--line);
  margin-bottom: 1.6rem;
}
.trial-bullets {
  list-style: none; padding: 0; margin: 0 0 1.2rem;
}
.trial-bullets li {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .35rem 0;
  font-size: .94rem;
}
.trial-bullets i { color: var(--green-2); margin-top: 3px; }

.trial-photos {
  background: rgba(34,197,94,.06);
  border: 1px solid rgba(34,197,94,.2);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.trial-photos h4 {
  font-size: .96rem; margin: 0 0 .5rem;
  display: inline-flex; align-items: center; gap: .5rem;
}
.trial-photos h4 i { color: #25D366; }
.trial-photos p { margin: 0 0 .4rem; font-size: .9rem; }
.trial-photos ul { margin: 0; padding-left: 1.2rem; font-size: .9rem; color: var(--muted); }

/* Consents */
.register-consents { display: flex; flex-direction: column; gap: .8rem; }
.consent-row {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--off-white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .8rem 1rem;
  cursor: pointer;
  transition: all .15s ease;
  font-size: .9rem;
  color: var(--ink);
  line-height: 1.45;
}
.consent-row:hover { border-color: var(--indigo); }
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--indigo);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}
.consent-row .req { color: #ef4444; }
.consent-row a { color: var(--indigo); font-weight: 600; }

/* Actions */
.register-actions {
  text-align: center;
  padding-top: 1.6rem;
}
.btn-submit-register {
  font-size: 1rem;
  padding: 1rem 2rem;
}
.form-disclaimer {
  font-size: .82rem; color: var(--muted);
  margin: .9rem 0 0;
}

/* Success state */
.register-success {
  text-align: center; padding: 2.5rem 1rem;
}
.register-success-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.2rem;
  background: rgba(34,197,94,.12);
  color: var(--green-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}

/* Verify pages */
.verify-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.verify-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.verify-success .verify-icon { background: rgba(34,197,94,.12); color: var(--green-2); }
.verify-info    .verify-icon { background: rgba(21,14,81,.08);  color: var(--indigo); }
.verify-error   .verify-icon { background: rgba(239,68,68,.1);  color: #ef4444; }
.verify-card h1 { margin: 0 0 .6rem; }
.verify-trial {
  margin-top: 1rem;
  background: var(--pale);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: inline-flex; gap: .8rem; align-items: center;
  text-align: left;
}
.verify-trial i { color: var(--indigo); font-size: 1.4rem; }

.verify-pending {
  margin-top: 1.4rem;
  background: rgba(245, 158, 11, .08);
  border: 1px solid rgba(245, 158, 11, .25);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex; gap: .8rem; align-items: flex-start;
  text-align: left;
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}
.verify-pending i { color: #d97706; font-size: 1.3rem; margin-top: 2px; }
.verify-pending small { display: inline-block; margin-top: 4px; }

/* ============ BLOG ============ */
.blog-hero {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-deep) 100%);
  color: white;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.blog-hero h1 { color: white; margin: 0 0 .6rem; }
.blog-hero .lead { color: var(--indigo-muted); margin: 0; max-width: 600px; margin-inline: auto; }

.blog-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 100%;
  transition: all .25s ease;
}
.blog-card:hover {
  border-color: var(--indigo);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.blog-card-cover {
  height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--pale);
  position: relative;
  display: block;
}
.blog-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(21,14,81,.92); color: white;
  padding: .3rem .7rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  backdrop-filter: blur(8px);
}
.blog-card-featured {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: var(--green); color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .7rem;
}
.blog-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h3 { font-size: 1.05rem; margin: 0 0 .35rem; line-height: 1.3; }
.blog-card-body h3 a { color: var(--ink); text-decoration: none; }
.blog-card-body h3 a:hover { color: var(--indigo); }
.blog-card-meta { font-size: .76rem; color: var(--muted); margin-bottom: .7rem; }
.blog-card-meta i { color: var(--indigo); margin-right: .2rem; }
.blog-card-summary {
  font-size: .88rem; color: var(--muted); margin: 0 0 .9rem;
  flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--indigo); font-weight: 700; font-size: .88rem;
  text-decoration: none;
}
.blog-card-link i { transition: transform .15s ease; }
.blog-card-link:hover i { transform: translateX(3px); }

.blog-article-cover {
  height: 380px;
  background-size: cover; background-position: center;
  background-color: var(--pale);
  margin-bottom: -3rem;
}
.blog-article-head {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem 2.2rem;
  margin-bottom: 1.4rem;
  position: relative; z-index: 2;
  box-shadow: var(--shadow-sm);
}
.blog-article-cat {
  display: inline-block;
  background: var(--pale); color: var(--indigo);
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  font-size: .76rem; font-weight: 700;
  margin-bottom: .8rem;
  text-decoration: none;
}
.blog-article-summary { font-size: 1.1rem; color: var(--muted); margin: .8rem 0 1.2rem; }
.blog-article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  color: var(--muted); font-size: .86rem;
}
.blog-article-meta i { color: var(--indigo); margin-right: .3rem; }
.blog-article-body {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.2rem 2.4rem;
  font-size: 1.02rem; line-height: 1.7;
  color: var(--ink);
}
.blog-article-body h2 { font-size: 1.45rem; margin: 2rem 0 1rem; color: var(--ink); }
.blog-article-body h3 { font-size: 1.2rem; margin: 1.4rem 0 .8rem; }
.blog-article-body p { margin-bottom: 1rem; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 1.2rem 1.5rem; }
.blog-article-body li { margin-bottom: .4rem; }
.blog-article-body strong { color: var(--indigo); font-weight: 700; }
.blog-article-tags { margin: 1.4rem 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.blog-tag {
  background: var(--pale); color: var(--indigo);
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 600;
}

@media (max-width: 768px) {
  .blog-article-cover { height: 220px; margin-bottom: -2rem; }
  .blog-article-head { padding: 1.4rem 1.6rem; }
  .blog-article-body { padding: 1.6rem 1.6rem; font-size: .95rem; }
}

/* ============ SELECT2 OVERRIDES (brand-matched) ============ */
.searchbar-field .select2-container,
.search-field .select2-container,
.form-control-custom + .select2-container { width: 100% !important; }

/* Selection box dentro searchbar-field o search-field */
.searchbar-field .select2-container--default .select2-selection--single,
.search-field .select2-container--default .select2-selection--single {
  background: transparent;
  border: none;
  height: auto;
  padding: 0;
  display: flex;
  align-items: center;
}
.searchbar-field .select2-container--default .select2-selection--single .select2-selection__rendered,
.search-field .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 600;
  padding: 0;
  line-height: 1.3;
}
.searchbar-field .select2-container--default .select2-selection--single .select2-selection__arrow,
.search-field .select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none;
}

/* Selection box su form standard (registrati / modifica-profilo) */
.form-group .select2-container--default .select2-selection--single {
  background: var(--off-white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: .45rem .55rem;
  height: auto;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: all .15s ease;
}
.form-group .select2-container--default.select2-container--focus .select2-selection--single,
.form-group .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--indigo);
  background: white;
  box-shadow: 0 0 0 3px rgba(21,14,81,.08);
}
.form-group .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--ink);
  font-size: .95rem;
  font-weight: 500;
  padding: 0;
  line-height: 1.4;
}
.form-group .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 8px;
}
.form-group .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--muted);
}

/* Dropdown panel */
.select2-container--default .select2-dropdown {
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-top: 6px;
  background: white;
}

/* Dropdown ancorato al search-field — apre VERSO IL BASSO stile Google */
.search-field .select2-container--open .select2-dropdown {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 280px;
  top: 100% !important;
  bottom: auto;
  margin-top: 8px;
  border-radius: 14px;
  box-shadow: 0 10px 32px rgba(14,10,51,.18);
  border: 1px solid var(--line);
  overflow: hidden;
}

/* Quando il dropdown è aperto, "aggancia" visivamente al campo (bordo più morbido in cima) */
.search-field:focus-within,
.search-field .select2-container--open + .select2-selection {
  border-color: var(--indigo);
}

/* Dropdown ancorato a un form-group standard */
.form-group .select2-container--open .select2-dropdown {
  margin-top: 4px;
}
.select2-container--default .select2-search--dropdown {
  padding: 10px 10px 8px;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.select2-container--default .select2-search--dropdown::before {
  content: "\f002"; /* fa-magnifying-glass */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--indigo);
  font-size: .9rem;
  pointer-events: none;
  z-index: 1;
}
.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: .6rem .8rem .6rem 2.2rem;
  font-size: .95rem;
  font-family: inherit;
  font-weight: 500;
  background: white;
  color: var(--ink);
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.select2-container--default .select2-search--dropdown .select2-search__field::placeholder {
  color: var(--muted);
  font-weight: 500;
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(21,14,81,.08);
}
.select2-container--default .select2-results__option {
  padding: .55rem .85rem;
  font-size: .9rem;
  color: var(--ink);
}
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--indigo);
  color: white;
}
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
  background: var(--pale);
  color: var(--indigo);
  font-weight: 700;
}

/* ============ CONTACT CARDS ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.contact-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.1rem 1.2rem;
  display: flex; align-items: center; gap: .9rem;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s ease;
}
.contact-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--pale); color: var(--indigo);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.contact-card-icon-wa { background: rgba(37,211,102,.12); color: #25D366; }
.contact-card:hover .contact-card-icon { background: var(--indigo); color: white; }
.contact-card:hover .contact-card-icon-wa { background: #25D366; color: white; }
.contact-card-text { display: flex; flex-direction: column; min-width: 0; }
.contact-card-label {
  font-size: .72rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.contact-card-value {
  font-size: .95rem; font-weight: 700;
  color: var(--ink);
  word-break: break-word;
}

/* ============ VERIFIED BADGE (scheda azienda) ============ */
.verified-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(34, 197, 94, .12);
  color: var(--green-2);
  border: 1px solid rgba(34, 197, 94, .3);
  padding: .25rem .6rem;
  border-radius: var(--radius-pill);
  font-size: .78rem; font-weight: 700;
}
.verified-badge i { font-size: .82rem; }

/* ============ AUTH PAGES (login, forgot, reset) ============ */
.auth-section { padding: 4rem 0; min-height: calc(100vh - 80px); display: flex; align-items: center; }
.auth-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2.4rem 2rem;
  box-shadow: var(--shadow-md);
}
.auth-card h1 { margin: 0 0 .4rem; }
.auth-sub { color: var(--muted); margin: 0 0 1.6rem; font-size: .95rem; }
.auth-form-row {
  display: flex; justify-content: flex-end;
  margin-top: -.4rem; margin-bottom: .4rem;
}
.auth-link-small {
  font-size: .85rem; color: var(--indigo); font-weight: 600;
  text-decoration: none;
}
.auth-link-small:hover { text-decoration: underline; }
.auth-divider {
  text-align: center; margin: 1.4rem 0;
  position: relative;
}
.auth-divider::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line);
}
.auth-divider span {
  background: white; padding: 0 .8rem; position: relative;
  color: var(--muted); font-size: .82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
}
.auth-back { text-align: center; margin-top: 1.4rem; }
.auth-success-icon {
  width: 76px; height: 76px;
  margin: 0 auto 1.2rem;
  background: rgba(34,197,94,.12); color: var(--green-2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem;
}
.auth-success { text-align: center; }
.auth-success .auth-sub { font-size: 1rem; }

/* ============ ACCOUNT DASHBOARD ============ */
.account-section { padding: 2.5rem 0 4rem; }

.account-header {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  display: flex; gap: 1.4rem; align-items: center;
  margin-bottom: 1.4rem;
  flex-wrap: wrap;
}
.account-photo {
  width: 88px; height: 88px;
  border-radius: 16px;
  background-color: var(--pale);
  background-size: cover; background-position: center;
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.account-header-info { flex: 1; min-width: 220px; }
.account-cat {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--pale); color: var(--indigo);
  padding: .25rem .7rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  margin-bottom: .25rem;
}
.account-header-info h1 { margin: 0 0 .25rem; }
.account-meta { color: var(--muted); margin: 0 0 .5rem; font-size: .9rem; font-weight: 500; }
.account-status-pending {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  color: #b45309;
  padding: .35rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600;
}
.account-status-active {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  color: var(--green-2);
  padding: .35rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 600;
}
.account-status-active a { color: var(--green-2); text-decoration: underline; }

/* KPI tiles */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.kpi-tile {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.2rem 1.3rem;
  position: relative;
}
.kpi-tile-icon {
  width: 38px; height: 38px;
  background: var(--pale); color: var(--indigo);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  margin-bottom: .8rem;
}
.kpi-tile.accent .kpi-tile-icon { background: rgba(34,197,94,.12); color: var(--green-2); }
.kpi-tile-label {
  font-size: .76rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  margin-bottom: .25rem;
}
.kpi-tile-value {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.025em; color: var(--ink); line-height: 1;
}
.kpi-tile-value-sm {
  font-size: 1.05rem; font-weight: 700;
  color: var(--ink); line-height: 1.1;
}

/* Action cards */
.account-actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.account-action-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.3rem 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  text-decoration: none;
  color: var(--ink);
  transition: all .2s ease;
}
.account-action-card:hover {
  border-color: var(--indigo);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.account-action-icon {
  width: 48px; height: 48px;
  background: var(--pale); color: var(--indigo);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.account-action-card:hover .account-action-icon { background: var(--indigo); color: white; }
.account-action-text { flex: 1; }
.account-action-text h3 { font-size: 1rem; margin: 0 0 .25rem; }
.account-action-text p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.4; }
.account-action-arrow {
  color: var(--muted);
  transition: all .2s ease;
}
.account-action-card:hover .account-action-arrow {
  color: var(--indigo);
  transform: translateX(3px);
}

/* ============ GALLERY MANAGE ============ */
.gallery-manage { display: flex; flex-direction: column; gap: 1.4rem; }
.photo-uploader-frame {
  display: block;
  background: var(--off-white);
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  text-align: center;
  cursor: pointer;
  transition: all .15s ease;
}
.photo-uploader-frame:hover {
  border-color: var(--indigo);
  background: white;
}
.photo-uploader-frame i { font-size: 2.2rem; color: var(--indigo); }
.photo-uploader-frame p { margin: .8rem 0 .25rem; font-size: .95rem; }
.photo-uploader-frame small { color: var(--muted); font-size: .8rem; }
.photo-uploader-frame input[type="file"] { display: none; }

.gallery-existing h3 { font-size: 1.05rem; margin: 0 0 .4rem; }

/* Classic file input look */
.file-input-classic {
  padding: .5rem .6rem;
  font-size: .9rem;
  cursor: pointer;
  background: white;
}
.file-input-classic::file-selector-button {
  background: var(--indigo);
  color: white;
  border: none;
  border-radius: 8px;
  padding: .5rem 1rem;
  font-weight: 700;
  font-size: .85rem;
  cursor: pointer;
  margin-right: .8rem;
  font-family: inherit;
}
.file-input-classic::file-selector-button:hover { background: var(--indigo-2); }

.gallery-item-manage {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 14px;
  background-color: var(--pale);
  background-size: cover; background-position: center;
  overflow: hidden;
}
.gallery-item-delete {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  background: rgba(14,10,51,.85); color: white;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  transition: background .15s ease;
}
.gallery-item-delete:hover { background: #ef4444; }

/* Gallery cards (manage with title) */
.gallery-grid-manage {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.gallery-card-manage {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.gallery-card-photo {
  aspect-ratio: 4/3;
  background-color: var(--pale);
  background-size: cover; background-position: center;
}
.gallery-card-body {
  padding: .8rem .9rem;
  display: flex; flex-direction: column; gap: .35rem;
  border-top: 1px solid var(--line);
}
.gallery-card-label {
  font-size: .68rem; font-weight: 700;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.gallery-card-input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .45rem .65rem;
  font-size: .88rem;
  font-family: inherit;
  background: var(--off-white);
  width: 100%;
}
.gallery-card-input:focus {
  outline: none;
  border-color: var(--indigo);
  background: white;
}
.gallery-card-actions {
  display: flex; justify-content: flex-end;
  margin-top: .25rem;
}
.gallery-card-btn-save {
  background: var(--indigo); color: white;
  border: none; border-radius: 8px;
  padding: .35rem .8rem;
  font-size: .78rem; font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
}
.gallery-card-btn-save:hover { background: var(--indigo-2); }
.gallery-card-delete-form {
  position: absolute; top: 8px; right: 8px;
  margin: 0;
}
.gallery-card-btn-delete {
  width: 30px; height: 30px;
  background: rgba(14,10,51,.85); color: white;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
}
.gallery-card-btn-delete:hover { background: #ef4444; }

/* Public gallery captions (scheda azienda) */
.gallery-figure { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.gallery-caption {
  font-size: .82rem;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  margin: 0;
  padding: 0 .4rem;
  line-height: 1.3;
}

/* Mobile */
@media (max-width: 640px) {
  .hero { padding: 3rem 0 4rem; }

  /* Search card resta orizzontale anche su mobile, ma più compatta */
  .search-card { max-width: 100%; padding: .35rem; border-radius: 16px; }
  .search-row { flex-direction: row; flex-wrap: nowrap; gap: .25rem; min-height: 52px; }
  .search-field {
    flex: 1 1 0; min-width: 0;
    padding: 0 .55rem;
    border-radius: 10px;
    gap: .4rem;
  }
  .search-field i { font-size: .9rem; }
  .search-field-content select { font-size: .82rem; font-weight: 600; }
  /* Mobile HOME: input in linea orizzontale + bottone lente piccolo */
  .search-card:not(.search-card-compact) .search-row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: .35rem !important;
    min-height: auto !important;
  }
  .search-card:not(.search-card-compact) .search-field {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 .6rem;
    min-height: 50px;
    width: auto;
  }
  .search-card:not(.search-card-compact) .search-field i { font-size: .95rem; }
  .search-card:not(.search-card-compact) .search-field-content select {
    font-size: .85rem;
  }
  .search-card:not(.search-card-compact) .search-btn-main {
    width: 50px !important;
    min-width: 50px;
    padding: 0 !important;
    min-height: 50px;
    flex: 0 0 50px !important;
    border-radius: 10px;
    justify-content: center;
  }
  .search-card:not(.search-card-compact) .search-btn-main .search-btn-text { display: none; }
  .search-card:not(.search-card-compact) .search-btn-main i { font-size: 1.15rem; }

  /* Mobile COMPACT (/risultati): stack verticale con bottone full-width */
  .search-card-compact .search-row {
    flex-direction: column !important;
    gap: .4rem !important;
    min-height: auto !important;
  }
  .search-card-compact .search-field {
    width: 100%;
    padding: .85rem 1rem;
    min-height: 52px;
  }
  .search-card-compact .search-btn-main {
    width: 100% !important;
    min-height: 58px;
    padding: 1rem 1.5rem !important;
    border-radius: 12px;
    font-size: 1.05rem;
    justify-content: center;
  }
  .search-card-compact .search-btn-main i { font-size: 1.25rem; }

  /* Mobile Select2 dropdown = OVERLAY FULL-SCREEN (ancorato al body) */
  body.select2-mobile-open { overflow: hidden !important; }
  body.select2-mobile-open .select2-container--open {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 99999 !important;
  }
  body.select2-mobile-open .select2-container--open .select2-dropdown {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100vh !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
    z-index: 99999 !important;
    background: white;
    margin: 0 !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
  }
  body.select2-mobile-open .select2-search--dropdown {
    padding: 14px 16px !important;
    padding-left: 60px !important;
    background: var(--off-white);
    border-bottom: 1px solid var(--line);
    flex-shrink: 0;
    position: relative;
  }
  /* Freccia "indietro" */
  body.select2-mobile-open .select2-search--dropdown::after {
    content: "\f060"; /* fa-arrow-left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--indigo);
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    border-radius: 50%;
  }
  body.select2-mobile-open .select2-search--dropdown::before {
    display: none !important;
  }
  body.select2-mobile-open .select2-search--dropdown .select2-search__field {
    padding-left: 14px !important;
    font-size: 1rem !important;
  }
  body.select2-mobile-open .select2-results {
    flex: 1;
    overflow-y: auto;
  }
  body.select2-mobile-open .select2-results__options {
    max-height: none !important;
    height: auto !important;
  }
  body.select2-mobile-open .select2-results__option {
    padding: 1rem 1.2rem !important;
    font-size: 1rem !important;
    border-bottom: 1px solid var(--line);
  }

  .detail-hero-body { padding: 0 1.2rem 1.5rem; }
  .detail-hero-photo { width: 110px; height: 110px; margin-top: -55px; border-width: 5px; border-radius: 20px; }
  .topbar .hide-mobile { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
  .topbar .container { justify-content: flex-start; gap: .6rem; }
  .topbar .brand { margin-right: auto; }
  .topbar .brand-logo { height: 30px; }
  .btn-pill.btn-pill-compact-mobile {
    padding: .55rem .85rem;
    font-size: .85rem;
    gap: .4rem;
  }
  .btn-pill.btn-pill-compact-mobile i { font-size: .95rem; }
}
