/* pinhere.me — stile principale */
:root {
  --gold: #D4A75B;
  --gold-deep: #B8873A;
  --amber: #F5A623;
  --ink: #0F1B2D;
  --slate: #37506B;
  --mist: #F6F7F9;
  --sage: #7CA982;
  --sky: #6EB6E8;
  --peach: #F7C8A4;
  --pink: #E0457B;
  --danger: #C8364F;

  --bg: #FBF8F3;
  --surface: #FFFFFF;
  --surface-2: #F4F1EB;
  --text: #0F1B2D;
  --muted: #5E6C7D;
  --line: #E9E3D8;
  --shadow: 0 10px 30px rgba(15, 27, 45, .10), 0 2px 6px rgba(15, 27, 45, .06);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .18);
  --gold-grad: linear-gradient(135deg, #F0CF8C 0%, #D4A75B 50%, #B8873A 100%);
  --radius: 18px;
  --header-h: 72px;

  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand: 'Nunito', var(--font-ui);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-hand: 'Caveat', 'Segoe Print', cursive;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  .page-app, .page-auth, .page-doc {
    --bg: #0B1422;
    --surface: #13213A;
    --surface-2: #1A2B47;
    --text: #EEF1F5;
    --muted: #9AA8BA;
    --line: #24365A;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--font-ui);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 32px); }
.ico { flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-word { font: 800 1.6rem/1 var(--font-brand); letter-spacing: -.02em; color: var(--ink); }
.logo-word b { font-weight: 800; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo--light .logo-word { color: #fff; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 9px 16px; font-size: .875rem; }
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 8px 20px rgba(15, 27, 45, .25); }
.btn--gold { background: var(--gold-grad); color: var(--ink); box-shadow: 0 8px 24px rgba(212, 167, 91, .35); }
.btn--gold-soft { background: #F7D79A; color: var(--ink); }
.btn--ghost-light { color: #fff; border-color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--text); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--danger { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.page-app .btn--dark, .page-auth .btn--dark { background: var(--ink); }
@media (prefers-color-scheme: dark) {
  .page-app .btn--dark, .page-auth .btn--dark { background: var(--gold-grad); color: var(--ink); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 1.4rem;
}
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; text-decoration: none; }
.chip--glass { background: rgba(15, 27, 45, .55); color: #fff; backdrop-filter: blur(8px); }
.tag { display: inline-block; font: 600 .7rem/1 var(--font-ui); text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border-radius: 6px; background: var(--surface-2); color: var(--gold-deep); vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header--over { position: absolute; inset: 0 0 auto; background: transparent; border: 0; }
.site-header__inner { height: 100%; width: min(1280px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.site-header__logo { text-decoration: none; }
.site-header--solid .logo-word { color: var(--text); }
.site-nav { display: flex; gap: 32px; margin-inline: auto; }
.site-nav a { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .9; }
.site-nav a:hover { opacity: 1; color: var(--gold-deep); }
.site-header--over .site-nav a { color: #fff; }
.site-nav__login { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-header--over .site-nav + .site-header__actions .btn--dark { background: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: inherit; }
.site-header--over .nav-toggle { color: #fff; }
.btn-plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #fff; color: var(--ink); }

.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu__panel {
  position: absolute; right: 0; top: calc(100% + 10px); width: 240px; padding: 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 2px;
}
.user-menu__panel strong { padding: 0 10px; }
.user-menu__panel small { padding: 0 10px 8px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu__panel a, .user-menu__panel button { text-align: left; padding: 9px 10px; border-radius: 10px; text-decoration: none; background: none; border: 0; width: 100%; font-size: .92rem; }
.user-menu__panel a:hover, .user-menu__panel button:hover { background: var(--surface-2); }

.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar--sm { width: 36px; height: 36px; }
.avatar--xl { width: 96px; height: 96px; border: 4px solid var(--surface); }
.avatar--initials { display: inline-grid; place-items: center; background: var(--gold-grad); color: var(--ink); font-weight: 700; }
.avatar--xl.avatar--initials { font-size: 2rem; font-family: var(--font-brand); }

/* ---------- Flash e toast ---------- */
.flash { position: fixed; z-index: 60; top: calc(var(--header-h) + 12px); left: 50%; transform: translateX(-50%); width: min(560px, 100% - 32px);
  padding: 14px 44px 14px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 500; animation: drop .3s ease; }
.flash--success { background: #EAF5EC; color: #1F5130; border: 1px solid #BFDFC6; }
.flash--error { background: #FCEBEE; color: #7A1C2C; border: 1px solid #F3C2CB; }
.flash-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.4rem; color: inherit; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -10px); } }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 28px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; box-shadow: var(--shadow-lg); transition: .25s ease; max-width: calc(100% - 32px); }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Tipografia landing ---------- */
.eyebrow { font: 600 .75rem/1 var(--font-ui); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow--gold { color: var(--gold-deep); }
.display { font: 500 clamp(2rem, 3.6vw, 3rem)/1.1 var(--font-display); letter-spacing: -.01em; }
.section-lead { color: var(--muted); max-width: 560px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; min-height: min(860px, 100svh); padding: calc(var(--header-h) + 40px) 0 120px;
  background: linear-gradient(90deg, rgba(10, 14, 28, .78) 0%, rgba(10, 14, 28, .45) 45%, rgba(10, 14, 28, .05) 75%), var(--hero-img) center 30% / cover no-repeat;
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 90px; background: var(--bg); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .eyebrow--gold { color: #F0CF8C; }
.hero__title { font: 400 clamp(2.6rem, 5.4vw, 4.4rem)/1.04 var(--font-display); letter-spacing: -.015em; margin-bottom: 24px; }
.hero__brand { display: block; font-weight: 600; }
.hero__brand b { font-weight: 600; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; max-width: 470px; opacity: .92; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__device { position: relative; justify-self: center; }
.hero__note { position: absolute; right: -150px; bottom: 40px; font: 500 1.6rem/1.15 var(--font-hand); transform: rotate(-8deg); color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

.phone { position: relative; width: 300px; height: 610px; border-radius: 48px; padding: 12px; background: #0b0d12;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #2a2f3a; transform: rotate(6deg); }
.phone__notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%); background: #0b0d12; border-radius: 20px; z-index: 3; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #e9eef0; }
.phone__map { position: absolute; inset: 0; }
.phone__search { position: absolute; z-index: 2; top: 54px; left: 14px; right: 14px; display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: #fff; color: var(--ink); font-size: .8rem; box-shadow: var(--shadow); }
.phone__card { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 26px; display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.phone__card img { width: 56px; height: 48px; object-fit: cover; border-radius: 10px; }
.phone__card strong { display: block; font-size: .82rem; }
.phone__card small { color: var(--muted); font-size: .72rem; }
.phone__chev { margin-left: auto; font-size: 1.3rem; color: var(--muted); padding-right: 6px; }
.phone .maplibregl-ctrl-attrib { font-size: 9px; }

/* ---------- Feature ---------- */
.features { padding: 30px 0 70px; }
.features__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.feature__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); margin-bottom: 14px; }
.feature h3 { font: 500 1.3rem/1.2 var(--font-display); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; max-width: 230px; margin-inline: auto; }

/* ---------- Story / collage ---------- */
.story { padding: 40px 0 90px; }
.story__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.story__copy p { color: var(--muted); font-size: 1.05rem; }
.story__copy p strong { color: var(--text); }
.collage { position: relative; aspect-ratio: 520 / 440; border-radius: 28px; background: #EEF0E6; }
.collage__map { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 28px; }
.collage::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background:
  radial-gradient(circle at 70% 20%, #DDEBD3 0 60px, transparent 61px), radial-gradient(circle at 20% 80%, #DDEBD3 0 50px, transparent 51px); }
.polaroid { position: absolute; margin: 0; width: 40%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); background: #000; }
.polaroid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; opacity: .92; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; color: #fff; font-size: .72rem; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.polaroid figcaption strong { display: block; font-size: .9rem; }
.polaroid--a { left: -2%; top: 2%; transform: rotate(-6deg); }
.polaroid--b { right: 2%; top: -2%; transform: rotate(3deg); }
.polaroid--c { left: 10%; bottom: -2%; transform: rotate(5deg); }
.polaroid--d { right: -2%; bottom: 6%; transform: rotate(-4deg); }
.mini-pin { position: absolute; right: 10px; top: 8px; width: 30px; height: 38px; }
.mini-pin--center { left: 48%; top: 44%; right: auto; width: 36px; height: 46px; }

/* ---------- Steps ---------- */
.steps { padding: 70px 0; background: var(--surface); }
.steps__list { list-style: none; padding: 0; margin: 40px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps__list li { padding: 28px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.steps__n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-grad); font-weight: 700; margin-bottom: 16px; }
.steps__list h3 { font: 500 1.35rem var(--font-display); }
.steps__list p { color: var(--muted); margin: 0; }
.pin-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pin-type { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.pin-type .pin-glyph { width: 34px; height: 44px; }
.pin-type strong { display: block; }
.pin-type small { color: var(--muted); font-size: .82rem; }

/* ---------- Use case ---------- */
.usecases { padding: 80px 0 90px; }
.usecases__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; width: min(1320px, 100% - 32px); }
.usecase { text-align: center; }
.usecase__img { position: relative; border-radius: 14px; overflow: visible; margin-bottom: 30px; }
.usecase__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.usecase__icon { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.usecase h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.usecase p { color: var(--muted); font-size: .85rem; }

/* ---------- Pricing ---------- */
.pricing { padding: 80px 0; background: var(--surface); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.plan { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; }
.plan--featured { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.15rem; display: flex; align-items: center; gap: 8px; }
.plan__price { font: 500 2.4rem/1 var(--font-display); margin: 6px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan li .ico { color: var(--sage); margin-top: 3px; }
.lead-form { margin: 28px auto 0; max-width: 560px; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.lead-form label { display: block; font-weight: 600; margin-bottom: 10px; }
.lead-form__row { display: flex; gap: 10px; }
.lead-form input[type=email] { flex: 1; min-width: 0; }
.lead-form small { display: block; margin-top: 10px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; color: #fff; padding: 110px 0; background: linear-gradient(90deg, rgba(10, 16, 30, .1) 0%, rgba(10, 16, 30, .65) 45%, rgba(10, 16, 30, .9) 100%), var(--cta-img) left center / cover no-repeat; }
.cta__inner { display: flex; justify-content: flex-end; }
.cta__copy { max-width: 520px; }
.cta .eyebrow--gold { color: #F0CF8C; }
.cta p { opacity: .9; font-size: 1.05rem; }
.cta__row { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.cta__row small { opacity: .85; line-height: 1.4; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #C9D2DE; padding: 56px 0 28px; }
.site-footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.site-footer__brand p { margin-top: 12px; max-width: 320px; font-size: .92rem; }
.site-footer__links { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 40px; align-content: start; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: #8B98AA; }

/* ---------- Form ---------- */
input[type=text], input[type=email], input[type=password], input[type=search], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 167, 91, .2); }
:focus-visible { outline: 3px solid rgba(212, 167, 91, .6); outline-offset: 2px; }
.field { display: block; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field legend, .field__label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; margin-bottom: 8px; padding: 0; }
.field__label small, .field legend small { font-weight: 400; color: var(--muted); }
.field__label .counter, .field__label .field__link { margin-left: auto; }
.field__link { font-weight: 500; font-size: .82rem; }
.field__help { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: .9rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.input-prefix span { padding: 12px 0 12px 14px; color: var(--muted); }
.input-prefix input { border: 0; padding-left: 2px; box-shadow: none !important; }
.input-prefix:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 167, 91, .2); }
input[type=range] { width: 100%; accent-color: var(--pink); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; }
.notice { padding: 12px 14px; border-radius: 12px; font-size: .85rem; line-height: 1.45; margin: 12px 0 0; }
.notice--warn { background: #FFF5E0; color: #6E4A0E; border: 1px solid #F3DDAA; }
.notice--info { background: #EAF3FB; color: #1E4566; border: 1px solid #C8DEF1; }
.form-error { color: var(--danger); font-weight: 600; font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; }
.card h2 { font-size: 1.15rem; margin: 6px 0 18px; }
.card h2:not(:first-of-type) { margin-top: 28px; }
.card--danger { border-color: #F0C6CE; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100svh - var(--header-h)); }
.auth__visual { position: relative; background: center / cover no-repeat; display: flex; align-items: flex-end; padding: 48px; }
.auth__visual::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(10, 16, 30, .7)); }
.auth__visual p { position: relative; color: #fff; font: 500 2.2rem/1.15 var(--font-hand); margin: 0; }
.auth__form { width: min(440px, 100% - 40px); margin: auto; padding: 48px 0; }
.auth__form h1 { font: 500 2.2rem var(--font-display); }
.auth__form > .muted { margin-bottom: 28px; }
.auth__form a:not(.btn) { color: var(--gold-deep); font-weight: 600; }
.auth__foot { margin-top: 18px; text-align: center; }
.auth__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--gold-grad); color: var(--ink); margin-bottom: 16px; }
.auth__icon--warn { background: var(--surface-2); color: var(--muted); }

.settings { padding: 48px 0 80px; }
.settings__images { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.settings__images img { margin-bottom: 10px; }
.settings__cover { width: 220px; height: 110px; object-fit: cover; border-radius: 12px; }
.doc { padding: 56px 0 80px; }
.doc h2 { font: 500 1.4rem var(--font-display); margin-top: 1.8em; }
.doc li { margin-bottom: .4em; }
.notfound { text-align: center; padding: 100px 0; }
.notfound .pin-glyph { margin: 0 auto 20px; }

/* ---------- Pin glyph (SVG generato da common.js) ---------- */
.pin-glyph { display: inline-block; width: 36px; height: 46px; flex: none; }
.pin-glyph svg { width: 100%; height: 100%; display: block; overflow: visible; }
.pin-glyph--sm { width: 28px; height: 36px; }
.pin-glyph--lg { width: 56px; height: 72px; }

/* ---------- App shell (mappa utente) ---------- */
.page-app { overflow: hidden; }
.page-app main { height: calc(100dvh - var(--header-h)); }
.app-shell { display: grid; grid-template-columns: 400px 1fr; height: 100%; }
.sidebar { overflow-y: auto; background: var(--bg); border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.profile { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; flex: none; }
.profile__cover { position: relative; height: 140px; background: center / cover; margin: 10px 10px 0; border-radius: 14px; }
.profile__cover .chip { position: absolute; right: 10px; bottom: 10px; }
.profile__avatar { position: absolute; left: 12px; bottom: -40px; }
.profile__body { padding: 48px 20px 20px; }
.profile__name { font-size: 1.45rem; margin-bottom: 2px; }
.profile__handle { color: var(--muted); font-size: .85rem; margin-bottom: 12px; }
.profile__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.profile__stats li { display: flex; align-items: center; gap: 6px; }
.profile__stats b { color: var(--text); }
.profile__bio { font-size: .92rem; color: var(--muted); margin: 0; }
.profile__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.view-toggle { display: none; }
.pin-browser { display: flex; flex-direction: column; gap: 12px; }
.segmented, .view-toggle { display: flex; padding: 4px; border-radius: 14px; background: var(--surface-2); gap: 2px; }
.view-toggle { display: none; }
.segmented button, .view-toggle button { flex: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font-size: .86rem; font-weight: 500; color: var(--muted); }
.segmented button[aria-selected=true], .view-toggle button[aria-selected=true] { background: var(--ink); color: #fff; font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .segmented button[aria-selected=true], .view-toggle button[aria-selected=true] { background: var(--gold); color: var(--ink); }
}
.search { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--muted); }
.search input { border: 0; padding: 12px 0; background: transparent; box-shadow: none !important; }
.pin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pin-item { display: grid; grid-template-columns: 92px 28px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 16px; cursor: pointer; transition: background .15s; }
.pin-item:hover, .pin-item.is-active { background: var(--surface); box-shadow: var(--shadow); }
.pin-item__img { width: 92px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.pin-item__body { min-width: 0; }
.pin-item__title { font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-item__place, .pin-item__date { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pin-item__dist { font-size: .75rem; color: var(--muted); align-self: end; white-space: nowrap; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.empty .pin-glyph { margin: 0 auto 12px; }

.map-area { position: relative; min-height: 0; }
.map { position: absolute; inset: 0; background: #E9EEF0; }
@media (prefers-color-scheme: dark) { .map { background: #0E1828; } }
.map-tools { position: absolute; right: 16px; top: 92px; display: grid; gap: 10px; z-index: 3; }
.map-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); box-shadow: var(--shadow); display: grid; place-items: center; }
.map-btn.is-active { color: #2F80ED; }
.fab { position: absolute; z-index: 4; right: 16px; bottom: 40px; width: 62px; height: 62px; border-radius: 50%; background: var(--gold-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(184, 135, 58, .5); }
.maplibregl-ctrl-bottom-right { z-index: 2; }
.maplibregl-ctrl-group { border-radius: 14px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.maplibregl-ctrl-top-right { top: 6px; right: 6px; }
.maplibregl-ctrl-top-right .maplibregl-ctrl-group { margin: 10px 10px 0 0; }

/* Marker */
.marker { width: 40px; height: 52px; cursor: pointer; transform-origin: 50% 100%; transition: transform .2s ease; filter: drop-shadow(0 6px 8px rgba(15, 27, 45, .3)); }
.marker:hover, .marker.is-active { transform: scale(1.18); z-index: 2; }
.marker svg { width: 100%; height: 100%; display: block; }
.marker--glow::before { content: ""; position: absolute; left: 50%; top: 40%; width: 90px; height: 90px; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, .55), rgba(245, 166, 35, 0) 70%); animation: glow 2.4s ease-in-out infinite; z-index: -1; }
@keyframes glow { 50% { transform: translate(-50%, -50%) scale(1.25); opacity: .6; } }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2F80ED; border: 3px solid #fff; box-shadow: 0 0 0 10px rgba(47, 128, 237, .2), 0 2px 6px rgba(0, 0, 0, .3); }

/* Dettaglio pin */
.pin-detail { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 16px; max-width: 780px; margin-inline: auto; display: grid; grid-template-columns: 300px 1fr; gap: 20px;
  padding: 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-lg); animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.pin-detail__gallery { position: relative; border-radius: 16px; overflow: hidden; background: var(--surface-2); min-height: 220px; }
.pin-detail__gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(15, 27, 45, .55); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.gallery-nav--prev { left: 10px; } .gallery-nav--next { right: 10px; }
.gallery-count { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); padding: 3px 10px; border-radius: 999px; background: rgba(15, 27, 45, .55); color: #fff; font-size: .78rem; }
.pin-detail__body { padding: 14px 8px 8px 0; display: flex; flex-direction: column; min-width: 0; }
.pin-detail__kind { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.pin-detail__kind .pin-glyph { width: 20px; height: 26px; }
.pin-detail h2 { font-size: 1.45rem; margin-bottom: 8px; padding-right: 40px; }
.pin-detail__meta { display: grid; gap: 4px; font-size: .86rem; color: var(--muted); margin-bottom: 10px; }
.pin-detail__meta span { display: flex; align-items: center; gap: 6px; }
.pin-detail__text { font-size: .93rem; white-space: pre-line; max-height: 120px; overflow-y: auto; margin-bottom: 12px; }
.pin-detail__thumbs { display: flex; gap: 8px; margin-bottom: 14px; }
.pin-detail__thumbs img { width: 62px; height: 52px; border-radius: 10px; object-fit: cover; cursor: pointer; opacity: .85; }
.pin-detail__thumbs img.is-active { outline: 2px solid var(--gold); opacity: 1; }
.pin-detail__actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pin-detail__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; font-size: 1.3rem; border-radius: 50%; }
.pin-detail__locked { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface-2); font-size: .86rem; margin-bottom: 12px; }
.pin-detail__locked { flex-wrap: wrap; }
.pin-detail__locked .copy-field { flex: 1 1 100%; margin: 0; }

/* ---------- Mappe tematiche ---------- */
.profile__back { display: inline-block; font-size: .82rem; color: var(--gold-deep); text-decoration: none; font-weight: 600; margin-bottom: 6px; }
.maps-strip header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.maps-strip h2 { font-size: 1rem; margin: 0; }
.maps-strip small { color: var(--muted); font-size: .76rem; }
.maps-strip__row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; }
.map-card { flex: 0 0 132px; display: grid; gap: 2px; text-align: left; text-decoration: none; padding: 0; border: 0; background: none; scroll-snap-align: start; }
.map-card__cover { position: relative; display: grid; place-items: center; height: 86px; border-radius: 14px; margin-bottom: 4px; color: var(--muted);
  background: var(--gold-grad) center / cover; box-shadow: var(--shadow); }
.map-card--new .map-card__cover { background: var(--surface-2); border: 1.5px dashed var(--line); box-shadow: none; }
.map-card strong { font-size: .86rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-card small { font-size: .75rem; color: var(--muted); }
.map-card__lock { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(15, 27, 45, .6); color: #fff; }
.pin-detail__maps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.map-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; text-decoration: none;
  background: rgba(212, 167, 91, .16); color: var(--gold-deep); border: 1px solid transparent; }
.map-chip.is-current { background: var(--gold-grad); color: var(--ink); }
.map-chip--edit { background: none; border: 1px dashed var(--line); color: var(--muted); }
.map-picker { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; margin-bottom: 12px; border-radius: 14px; background: var(--surface-2); }
.map-picker small { color: var(--muted); font-size: .78rem; flex-basis: 100%; }
.map-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.map-check { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--text); }
.map-check input { position: absolute; opacity: 0; }
.map-check:has(input:checked) { border-color: var(--gold); background: rgba(212, 167, 91, .14); font-weight: 600; }
.map-check:has(input:checked)::before { content: "✓"; color: var(--gold-deep); }
.map-check:has(input:focus-visible) { outline: 3px solid rgba(212, 167, 91, .6); }
.map-check--new { border-style: dashed; color: var(--muted); }
.dialog { width: min(480px, calc(100% - 24px)); padding: 24px; border: 0; border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgba(15, 27, 45, .55); backdrop-filter: blur(4px); }
.dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dialog__head h2 { font: 500 1.5rem var(--font-display); margin: 0; }
.dialog__actions { display: flex; justify-content: space-between; gap: 10px; }
.dialog__actions .btn--dark { margin-left: auto; }

.type-switch { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); margin: 2px 0 10px; width: max-content; max-width: 100%; }
.type-switch button { border: 0; background: none; padding: 6px 12px; border-radius: 9px; font-size: .8rem; font-weight: 500; color: var(--muted); }
.type-switch button[aria-checked=true] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 4px rgba(15, 27, 45, .12); }
.preview-bar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--ink); color: #fff; font-size: .9rem; }
main:has(> .preview-bar) { display: flex; flex-direction: column; }
main:has(> .preview-bar) > .app-shell { height: auto; flex: 1; min-height: 0; }

/* ---------- Crea pin ---------- */
.create-shell { display: grid; grid-template-columns: 1fr 460px; height: 100%; position: relative; }
.map-area--create { cursor: crosshair; }
.map-hint { position: absolute; z-index: 3; top: 16px; left: 50%; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .88rem; font-weight: 500; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.create-panel { overflow-y: auto; padding: 22px 26px 40px; background: var(--surface); border-left: 1px solid var(--line); }
.create-panel__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.create-panel__head h1 { font-size: 1.3rem; margin: 0; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-card { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 14px 8px 12px; border-radius: 14px; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.type-card input { position: absolute; opacity: 0; }
.type-card .pin-glyph { width: 30px; height: 38px; margin-bottom: 6px; }
.type-card strong { font-size: .88rem; }
.type-card small { font-size: .72rem; color: var(--muted); }
.type-card:has(input:checked) { border-color: var(--gold); background: rgba(212, 167, 91, .1); box-shadow: 0 0 0 3px rgba(212, 167, 91, .18); }
.type-card:has(input:focus-visible) { outline: 3px solid rgba(212, 167, 91, .6); }
.icon-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-picker label { position: relative; display: grid; place-items: center; width: 52px; height: 56px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; }
.icon-picker input { position: absolute; opacity: 0; }
.icon-picker label:has(input:checked) { border-color: var(--gold); background: rgba(212, 167, 91, .1); }
.photo-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-add { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; min-width: 140px; height: 76px; border-radius: 12px; border: 1.5px dashed var(--line); color: var(--muted); font-weight: 600; font-size: .88rem; cursor: pointer; background: var(--surface-2); }
.photo-thumb { position: relative; width: 92px; height: 76px; }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.photo-thumb button { position: absolute; top: -6px; right: -6px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; font-size: .9rem; line-height: 1; }
.locked-only { display: none; padding: 16px; margin: 0 -4px 18px; border-radius: 16px; background: var(--surface-2); }
.create-panel[data-type=locked] .locked-only { display: block; }
.locked-only .field:last-child { margin-bottom: 0; }
.created { position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(15, 27, 45, .55); backdrop-filter: blur(6px); }
.created__card { width: min(480px, 100%); padding: 32px; border-radius: 24px; background: var(--surface); text-align: center; box-shadow: var(--shadow-lg); animation: rise .3s ease; }
.created__card .pin-glyph { margin: 0 auto 10px; }
.created__card h2 { font: 500 1.8rem var(--font-display); }
.created__card p { color: var(--muted); }
.copy-field { display: flex; gap: 8px; margin: 18px 0; }
.copy-field input { flex: 1; min-width: 0; font-size: .9rem; }
.created__actions { display: grid; gap: 10px; }

/* ---------- Sblocco ---------- */
.page-unlock .site-header { display: none; }
.page-unlock main { height: 100dvh; }
.unlock-shell { position: relative; height: 100%; overflow: hidden; }
.sender { position: absolute; z-index: 4; top: max(16px, env(safe-area-inset-top)); left: 16px; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.sender small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.1; }
.sender strong { font-size: 1rem; }
.owner-bar { position: absolute; z-index: 4; top: max(16px, env(safe-area-inset-top)); right: 16px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; box-shadow: var(--shadow); }
.lock-panel { position: absolute; z-index: 5; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(460px, calc(100% - 24px)); padding: 26px 24px 18px; border-radius: 26px; text-align: center;
  background: rgba(15, 27, 45, .86); color: #fff; backdrop-filter: blur(14px); box-shadow: var(--shadow-lg); }
.lock-panel__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, .12); margin-bottom: 10px; }
.lock-panel__title { font: 500 1.5rem/1.2 var(--font-display); }
.lock-panel__hint { font: 500 1.35rem/1.2 var(--font-hand); color: #F0CF8C; margin-bottom: 10px; }
.lock-panel__distance { display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 600; font-size: 1.05rem; }
.lock-panel__text { font-size: .9rem; opacity: .8; }
.lock-panel__actions { display: grid; gap: 6px; }
.lock-panel__actions .btn--ghost { color: #C9D2DE; }
.lock-panel__privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .74rem; opacity: .6; margin: 10px 0 0; }
.proximity { margin: 18px 0 14px; }
.proximity__bar { position: relative; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .18); }
.proximity__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--peach), var(--amber)); transition: width .6s ease; }
.proximity__bar i { position: absolute; top: 50%; left: 0; transform: translate(-50%, -60%); font-style: normal; font-size: 1.1rem; transition: left .6s ease; filter: grayscale(1) brightness(3); }
.proximity__labels { display: flex; justify-content: space-between; font-size: .78rem; opacity: .7; margin-top: 8px; }
.unlock-shell[data-state=near] .lock-panel__icon { background: var(--gold-grad); color: var(--ink); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.08); } }

.reveal { position: absolute; inset: 0; z-index: 10; overflow-y: auto; padding: 30px 16px 40px; background: radial-gradient(circle at 50% 10%, rgba(245, 166, 35, .35), transparent 50%), rgba(15, 27, 45, .72); backdrop-filter: blur(4px); }
.reveal__found { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; font: 500 2.2rem/1 var(--font-display); text-align: center; margin: 10px 0 22px; animation: rise .5s ease; }
.reveal__found .pin-glyph { filter: drop-shadow(0 0 24px rgba(245, 166, 35, .8)); animation: bounce 1s ease; }
@keyframes bounce { 0% { transform: translateY(-40px) scale(.6); opacity: 0; } 60% { transform: translateY(6px) scale(1.05); opacity: 1; } }
.memory { position: relative; width: min(520px, 100%); margin: 0 auto; border-radius: 24px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); animation: rise .6s ease .15s both; }
.memory__close { position: absolute; z-index: 2; top: 12px; right: 12px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); }
.memory__photos { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; }
.memory__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; }
.memory__paper { padding: 24px 26px 10px; background: var(--surface) repeating-linear-gradient(transparent 0 31px, rgba(110, 182, 232, .14) 31px 32px); }
.memory__paper h2 { font-size: 1.35rem; margin-bottom: 4px; }
.memory__meta { color: var(--muted); font-size: .85rem; }
.memory__body { font: 500 1.75rem/32px var(--font-hand); white-space: pre-line; margin: 0 0 14px; color: var(--text); }
.memory__sign { text-align: right; font: 500 1.3rem var(--font-hand); color: var(--muted); }
.memory__next { display: flex; align-items: center; gap: 12px; margin: 0 16px 6px; padding: 12px; border-radius: 14px; background: rgba(212, 167, 91, .14); }
.memory__next { flex-wrap: wrap; }
.memory__next div { flex: 1; min-width: 0; }
.memory__next .btn { flex: 1 1 100%; }
.memory__next small { display: block; color: var(--muted); font-size: .8rem; }
.memory__actions { display: flex; justify-content: space-around; padding: 12px; border-top: 1px solid var(--line); }
.memory__actions .icon-btn { border: 0; background: none; }
.memory__actions .icon-btn.is-on { color: var(--pink); }
.memory__actions .icon-btn.is-on svg { fill: currentColor; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 8px; height: 12px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .usecases__grid { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
}
@media (max-width: 1360px) {
  .hero__note { display: none; }
}
@media (max-width: 960px) {
  .site-nav { display: none; position: absolute; top: var(--header-h); left: 12px; right: 12px; flex-direction: column; gap: 4px; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: flex; }
  .site-nav a, .site-header--over .site-nav a { color: var(--text); padding: 12px; border-radius: 10px; }
  .site-nav__login { display: block; }
  .nav-toggle { display: block; }
  .hide-sm { display: none; }
  .hero__inner, .story__inner { grid-template-columns: 1fr; }
  .hero { padding-bottom: 140px; }
  .hero__device { margin-top: 20px; }
  .hero__note { display: none; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__list, .plans { grid-template-columns: 1fr; }
  .pin-types { grid-template-columns: repeat(2, 1fr); }
  .collage { max-width: 560px; width: 100%; margin-inline: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth__visual { min-height: 200px; padding: 24px; }
  .auth__visual p { font-size: 1.6rem; }

  /* App mobile: mappa a tutto schermo, lista come vista alternativa */
  .app-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { border: 0; padding: 10px 12px 0; gap: 10px; overflow: visible; }
  .profile { display: grid; grid-template-columns: auto 1fr; align-items: center; border-radius: 16px; }
  .profile__cover { display: none; }
  .profile__body { padding: 12px 14px; display: contents; }
  .profile__name { font-size: 1.1rem; }
  .app-shell .profile::before { content: none; }
  .profile__bio, .profile .notice { display: none; }
  .profile__actions { grid-column: 1 / -1; padding: 0 14px 12px; margin: 0; gap: 6px; }
  .profile__actions .btn { padding: 7px 12px; font-size: .8rem; }
  .profile__actions .btn--dark { display: none; }
  .preview-bar { flex-wrap: nowrap; justify-content: space-between; text-align: left; padding: 8px 12px; font-size: .78rem; line-height: 1.3; }
  .preview-bar .ico { display: none; }
  .preview-bar .btn { flex: none; padding: 7px 12px; font-size: .78rem; }
  .profile__name, .profile__handle, .profile__stats, .profile__back { grid-column: 1 / -1; padding-inline: 14px; }
  .profile__back { padding-top: 10px; margin: 0; }
  .profile--collection .profile__name { padding-top: 2px; }
  .profile__name { padding-top: 12px; }
  .profile__stats { padding-bottom: 12px; margin: 0; }
  .profile__handle { margin-bottom: 4px; }
  .view-toggle { display: flex; }
  .app-shell[data-view=map] .pin-browser { display: none; }
  .app-shell[data-view=list] .map-area { display: none; }
  .app-shell[data-view=list] .sidebar { overflow-y: auto; padding-bottom: 90px; }
  .app-shell[data-view=list] { grid-template-rows: 1fr; }
  .app-shell[data-view=list] .sidebar { height: 100%; }
  .pin-item { grid-template-columns: 76px 24px 1fr auto; }
  .pin-item__img { width: 76px; height: 64px; }
  .pin-detail { grid-template-columns: 1fr; left: 8px; right: 8px; bottom: 8px; max-height: 70%; overflow-y: auto; }
  .pin-detail__gallery { min-height: 180px; }
  .pin-detail__body { padding: 4px 8px 8px; }
  .fab { bottom: 30px; }

  .create-shell { grid-template-columns: 1fr; grid-template-rows: 42% 1fr; }
  .map-hint { top: auto; bottom: 32px; font-size: .8rem; }
  .create-panel { border: 0; border-radius: 22px 22px 0 0; margin-top: -18px; position: relative; z-index: 4; box-shadow: 0 -10px 30px rgba(15, 27, 45, .12); padding: 18px 18px 40px; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .hero__title { font-size: 2.5rem; }
  .phone { width: 260px; height: 530px; transform: rotate(3deg); }
  .features__grid { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .usecases__grid { grid-template-columns: repeat(2, 1fr); }
  .pin-types { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .lead-form__row { flex-direction: column; }
  .site-footer__links { grid-template-columns: repeat(2, auto); }
  .cta { background-position: 20% center; }
  .cta__copy { padding-top: 120px; }
  .settings__images { grid-template-columns: 1fr; }
  .owner-bar span { display: none; }
  .lock-panel { bottom: 10px; padding: 16px 18px 12px; border-radius: 22px; }
  .lock-panel__icon { width: 42px; height: 42px; margin-bottom: 6px; }
  .lock-panel__icon svg { width: 20px; height: 20px; }
  .lock-panel__title { font-size: 1.2rem; margin-bottom: 4px; }
  .lock-panel__hint { font-size: 1.15rem; margin-bottom: 6px; }
  .lock-panel__distance { font-size: .92rem; }
  .lock-panel__text { font-size: .8rem; margin-bottom: 10px; }
  .proximity { margin: 12px 0 8px; }
  .lock-panel__privacy { font-size: .68rem; margin-top: 6px; }
  .lock-panel .btn--block { padding: 12px; }
  .sender { padding: 6px 14px 6px 6px; }
  .sender .avatar { width: 34px; height: 34px; }
  .reveal__found { font-size: 1.7rem; }
  .memory__body { font-size: 1.5rem; }
  .logo-word { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
