/* ===================== Pagine dei clienti: home, navigazione, profilo ===================== */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Navigazione: in alto sul computer, barra con icone in basso sul telefono ---------- */
.nav-cliente { display: flex; align-items: center; gap: 4px; }
.nav-voce { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; color: var(--muted); font-weight: 600; text-decoration: none; }
.nav-voce:hover { background: color-mix(in srgb, var(--brand-soft) 60%, transparent); color: var(--ink); }
.nav-voce.attiva { color: var(--brand); background: var(--brand-soft); }
.nav-ico { width: 20px; height: 20px; flex: none; }
.nav-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; display: inline-grid; place-items: center; flex: none; }
.nav-guide { margin-left: 10px; font-size: .88rem; color: var(--muted); }
.barra-cliente { display: none; }
@media (max-width: 720px) {
  .nav-cliente { display: none; }
  body.con-barra-cliente { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .barra-cliente {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0, 0, 0, .06);
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
  }
  .barra-cliente a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px; border-radius: 14px; color: var(--muted); font-size: .76rem; font-weight: 600; text-decoration: none; }
  .barra-cliente a.attiva { color: var(--brand); background: var(--brand-soft); }
  .barra-cliente .nav-ico { width: 24px; height: 24px; }
  .barra-cliente .nav-avatar { width: 26px; height: 26px; }
  .barra-installa { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------- Home: apertura con foto ---------- */
.home main { display: block; }
.h-hero { max-width: 1280px; margin: 4px auto 0; padding: 0 clamp(16px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: 14px; }
.h-foto-grande { position: relative; border-radius: 28px; overflow: hidden; min-height: 600px; display: flex; align-items: flex-end; background: #1f2a2e; }
.h-foto-grande > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.h-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 24, .05) 20%, rgba(10, 16, 24, .78) 100%); }
.h-testo { position: relative; padding: clamp(24px, 4vw, 48px); color: #fff; max-width: 720px; }
.h-eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #ffd9a8; }
.h-testo h1 { margin: 0; font: 700 clamp(2.2rem, 5vw, 3.9rem)/1.05 Fraunces, serif; letter-spacing: -.01em; text-wrap: balance; }
.h-lead { margin: 14px 0 22px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255, 255, 255, .9); max-width: 560px; }
.h-cerca { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 99px; max-width: 560px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.h-cerca input { flex: 1; min-width: 0; border: 0; background: none; padding: 10px 18px; font-size: 1rem; color: #1f2a2e; }
.h-cerca input:focus { outline: none; box-shadow: none; }
.h-cerca .btn { border-radius: 99px; white-space: nowrap; }
.h-numeri { display: flex; gap: 18px; flex-wrap: wrap; margin: 18px 0 0; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.h-numeri b { color: #fff; font-size: 1.15rem; }
.h-didascalia { position: absolute; top: 16px; right: 18px; margin: 0; font-size: .75rem; color: rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .35); padding: 3px 10px; border-radius: 99px; }
.h-mosaico { display: grid; grid-template-rows: repeat(2, 1fr); grid-template-columns: repeat(2, 1fr); gap: 14px; }
.h-mosaico figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; background: var(--line); }
.h-mosaico figure:first-child { grid-column: 1 / -1; }
.h-mosaico figure:nth-child(n+4) { display: none; }
.h-mosaico img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-mosaico figcaption { position: absolute; left: 10px; bottom: 10px; font-size: .74rem; color: #fff; background: rgba(0, 0, 0, .4); padding: 3px 10px; border-radius: 99px; }

/* ---------- Home: sezioni ---------- */
.h-sezione { max-width: 1180px; margin: 72px auto 0; padding: 0 clamp(16px, 4vw, 48px); }
.h-sezione h2 { margin: 0 0 22px; font: 700 clamp(1.6rem, 3vw, 2.3rem)/1.15 Fraunces, serif; text-wrap: balance; }
.h-eyebrow-sez { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.h-passi { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: none; }
.h-passi li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.h-passo-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.h-passo-ico svg { width: 28px; height: 28px; }
.h-passi b { position: absolute; top: 18px; right: 22px; font: 700 2.4rem Fraunces, serif; color: var(--line); }
.h-passi h3 { margin: 0 0 6px; font: 600 1.3rem Fraunces, serif; }
.h-passi p { margin: 0; color: var(--muted); }
.h-sez-testa { width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.h-sez-testa h2 { margin: 0; }
.h-sez-testa > .btn { margin-left: auto; flex: none; }
.h-citta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.h-citta-card { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; color: #fff; text-decoration: none; background: #2a3442; }
.h-citta-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.h-citta-card:hover img { transform: scale(1.04); }
.h-citta-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10, 16, 24, .75)); }
.h-citta-testo { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; }
.h-citta-testo b { font: 700 1.35rem Fraunces, serif; }
.h-citta-testo span { font-size: .85rem; opacity: .92; }
.h-account, .h-guide { display: flex; justify-content: space-between; align-items: center; gap: 24px; border-radius: 26px; padding: clamp(24px, 4vw, 40px); }
.h-account { background: var(--brand-soft); }
.h-account h2, .h-guide h2 { margin-bottom: 8px; }
.h-account p, .h-guide p { margin: 0; color: var(--muted); max-width: 620px; }
.h-account .btn { flex: none; }
.h-guide { background: #1f2a2e; color: #f6f1ea; }
.h-guide h2 { color: #fff; }
.h-guide p { color: #c9d2d6; }
.h-guide .h-eyebrow-sez { color: #ffb38a; }
.h-guide-btn { display: flex; flex-direction: column; gap: 10px; flex: none; }
.h-guide .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }
.home .scarica-app { margin-top: 72px; }
.h-piede { max-width: 1180px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.h-piede p { margin: 0; }

@media (max-width: 960px) {
  .h-hero { grid-template-columns: 1fr; }
  .h-mosaico { grid-template-columns: repeat(3, 1fr); grid-template-rows: 150px; }
  .h-mosaico figure:first-child { grid-column: auto; }
  .h-mosaico figure:nth-child(4) { display: none; }
  .h-citta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .h-hero { padding: 0 12px; }
  .h-foto-grande { min-height: 560px; border-radius: 24px; }
  .h-cerca { flex-direction: column; border-radius: 20px; }
  .h-cerca .btn { border-radius: 14px; }
  .h-mosaico { display: none; }
  .h-sezione { margin-top: 52px; }
  .h-passi { grid-template-columns: 1fr; }
  .h-account, .h-guide { flex-direction: column; align-items: stretch; }
  .h-sez-testa .btn { display: none; }
}

/* ---------- Esplora: invito ad accedere ---------- */
.pr-account { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Profilo ---------- */
.pr-wrap { max-width: 1080px; margin: 8px auto 60px; padding: 0 clamp(16px, 4vw, 48px); }
.pr-ospite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: stretch; }
.pr-ospite-foto { border-radius: 26px; overflow: hidden; min-height: 520px; }
.pr-ospite-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pr-accesso h1 { margin: 0 0 4px; font: 700 2rem Fraunces, serif; }
.pr-social { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 6px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 12px 16px; border-radius: 12px; font: 600 1rem Inter, sans-serif; cursor: pointer; border: 1px solid var(--line); }
.btn-social svg { width: 22px; height: 22px; flex: none; }
.btn-social.google { background: #fff; color: #1f1f1f; border-color: #dadce0; }
.btn-social.google:hover { background: #f8f9fa; }
.btn-social.facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-social.facebook:hover { background: #166fe5; }
.btn-social:disabled { opacity: .6; cursor: wait; }
.pr-oppure { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; color: var(--muted); font-size: .85rem; }
.pr-oppure::before, .pr-oppure::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pr-schede { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 16px; }
.pr-schede button { border: 0; background: none; padding: 9px; border-radius: 9px; font: 600 .92rem Inter, sans-serif; color: var(--muted); cursor: pointer; }
.pr-schede button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.pr-guide { margin: 18px 0 0; font-size: .86rem; color: var(--muted); text-align: center; }
.pr-testa { display: flex; align-items: center; gap: 18px; }
.pr-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 1.6rem Fraunces, serif; display: grid; place-items: center; overflow: hidden; flex: none; }
.pr-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pr-chi { flex: 1; min-width: 0; }
.pr-chi h1 { margin: 0; font: 700 1.6rem Fraunces, serif; }
.pr-chi .hint { margin: 2px 0 6px; overflow-wrap: anywhere; }
.pr-badge { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-sez { margin: 34px 0 12px; font: 700 1.35rem Fraunces, serif; }
.pr-pren { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; margin-bottom: 10px; }
.pr-pren img, .pr-pren-vuota { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; background: var(--bg); }
.pr-pren-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pr-pren-info b { font-size: 1.05rem; }
.pr-pren-info span:first-of-type::first-letter { text-transform: uppercase; }
.pr-pren.annullata { opacity: .65; }
.stato-annullata { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); font-weight: 600; }
.pr-vuoto { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pr-vuoto p { margin: 0; color: var(--muted); }
.pr-passate { margin-top: 8px; }
.pr-passate summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 8px 0; }
.pr-elimina { margin: 18px 0 0; text-align: right; }
@media (max-width: 860px) {
  .pr-ospite { grid-template-columns: 1fr; }
  .pr-ospite-foto { min-height: 180px; max-height: 220px; }
}
@media (max-width: 560px) {
  .pr-pren { grid-template-columns: 84px minmax(0, 1fr); }
  .pr-pren img, .pr-pren-vuota { width: 84px; }
  .pr-pren .pill { grid-column: 2; justify-self: start; }
  .pr-testa { flex-wrap: wrap; }
  .pr-vuoto { flex-direction: column; align-items: stretch; }
}
/* Sezione operatori turistici: come quella delle guide, con un altro colore */
.h-operatori { background: #1f4f4b; margin-bottom: 18px; }
