/* ==========================================================
   Aguardiente — foglio di stile condiviso
   ========================================================== */

:root {
  /* Colori */
  --bg:        #14060A;   /* nero-sangue di fondo */
  --surface:   #200A11;   /* card e pannelli */
  --surface-2: #2C0E18;   /* segnaposto foto, hover */
  --line:      #3F1626;   /* bordi sottili */
  --line-2:    #6B2A42;   /* bordi bottoni secondari */
  --text:      #F7EDF0;
  --text-2:    #D6BEC6;
  --muted:     #BC9DA8;
  --accent:    #FF6B8F;   /* testo/icone in evidenza */
  --online:    #3DDC97;
  --grad:      linear-gradient(120deg, #9E1238 0%, #770303 100%);
  --grad-deep: linear-gradient(135deg, #770303 0%, #9E1238 100%);

  /* Tipografia */
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Testo di bottoni, pill e tab */
  --btn-size: .875rem;
  --btn-tracking: .06em;

  --radius: 40px;
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(1100px 620px at 85% -8%, #3B0A1E 0%, rgba(59,10,30,0) 65%),
    radial-gradient(900px 520px at -10% 30%, #1E0A2E 0%, rgba(30,10,46,0) 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
body.business {
  background:
    radial-gradient(1000px 600px at 15% -10%, #2A0D45 0%, rgba(42,13,69,0) 65%),
    radial-gradient(900px 520px at 100% 40%, #3B0A1E 0%, rgba(59,10,30,0) 60%),
    var(--bg);
}

/* Righe bilanciate ovunque (la proprietà si eredita); titoli e sottotitoli dichiarati anche in modo esplicito */
body { text-wrap: balance; }
h1, h2, h3, h4, .lead, .cf-sub, .cf-title, .detail-text, .detail-hint, .cf-note, .muted, p, li, summary, label, legend, .btn, .badge { text-wrap: balance; }

/* ---------- Icone: Google Material Symbols Rounded ---------- */
.ms {
  font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal;
  font-size: var(--ms, 24px); line-height: 1; width: 1em; height: 1em; overflow: hidden;
  display: inline-block; vertical-align: middle; flex-shrink: 0;
  letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr;
  font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; user-select: none;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'opsz' 24;
}
.ms-bold { font-variation-settings: 'FILL' 0, 'wght' 600, 'opsz' 24; }
.ms-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: #FF9BB3; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0; line-height: 1.05; }
h1 { font-size: clamp(40px, 6vw, 78px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 32px; }
.section { padding-block: 56px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.band { border-block: 1px solid var(--line); background: rgba(32,10,17,.5); }
.lead { font-size: 19px; color: var(--text-2); max-width: 560px; }
.muted { color: var(--muted); }
.heading-group { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: var(--btn-tracking); color: var(--muted); }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header + logo ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 14px 32px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: rgba(20,6,10,.85); backdrop-filter: blur(10px);
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em;
  color: var(--text); text-decoration: none;
}
.logo:hover { color: var(--text); }
.logo-tag { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }

/* Logo: un bagliore che passa ogni 6 secondi */
.logo { animation: logo-glow 6s ease-in-out infinite; }
@keyframes logo-glow {
  0%, 78%, 100% { text-shadow: 0 0 0 rgba(255,107,143,0); }
  86% { text-shadow: 0 0 8px rgba(255,107,143,.9), 0 0 22px rgba(214,30,82,.7), 0 0 44px rgba(158,18,56,.5); color: #fff; }
  92% { text-shadow: 0 0 4px rgba(255,107,143,.4), 0 0 12px rgba(214,30,82,.3); }
}
@media (prefers-reduced-motion: reduce) { .logo { animation: none; } }

.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { color: var(--text); text-decoration: none; padding: 12px 0; }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav a.subtle { color: var(--muted); }
.header-actions { display: flex; gap: 12px; align-items: center; }
.avatar-link { width: 44px; height: 44px; border-radius: 999px; background: var(--line); color: var(--accent); display: grid; place-items: center; text-decoration: none; font-weight: 600; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; color: var(--text); background: transparent;
}
/* Bottone principale: uno solo per schermata, pieno con il gradiente */
.btn-primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -14px rgba(158, 18, 56, .8); transition: filter .2s, box-shadow .2s; }
.btn-primary:hover { color: #fff; filter: brightness(1.12); box-shadow: 0 12px 28px -12px rgba(158, 18, 56, .9); }

/* CTA importanti o di pagamento: fondo scuro e due scie di luce che girano lungo il bordo */
@property --cta-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-cta {
  --cta-fill: #160307;             /* #770303 molto scurito */
  --cta-ring: #4A0A14;             /* bordo a riposo: tra #770303 e il fondo */
  --cta-glow: #E04A6E;             /* testa della scia: #9E1238 schiarito */
  --cta-tail: #770303;             /* coda della scia */
  color: #fff;
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--cta-fill), var(--cta-fill)) padding-box,
    conic-gradient(from var(--cta-angle),
      transparent 0deg, var(--cta-tail) 30deg, var(--cta-glow) 82deg, transparent 94deg,
      transparent 180deg, var(--cta-tail) 210deg, var(--cta-glow) 262deg, transparent 274deg) border-box,
    linear-gradient(var(--cta-ring), var(--cta-ring)) border-box;
  box-shadow: 0 0 24px -10px rgba(158, 18, 56, .65);
  animation: cta-orbit 3s linear infinite;
  transition: box-shadow .3s, --cta-fill .3s;
}
.btn-cta:hover { color: #fff; filter: none; --cta-fill: #240509; box-shadow: 0 0 32px -8px rgba(224, 74, 110, .55); animation-duration: 1.8s; }
@keyframes cta-orbit { to { --cta-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn-cta { animation: none; --cta-angle: 45deg; } }
.btn-ghost { border-color: var(--line-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-dark { background: var(--bg); color: var(--text); }
.btn-lg { min-height: 52px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn { text-align: center; }
.btn-icon { width: 44px; padding: 0; flex-shrink: 0; }
/* Bottoni piccoli per i link "vedi tutti" (freccia a destra) e "torna a" (freccia a sinistra) */
.btn.btn-sm { min-height: 36px; padding: 0 14px; gap: 8px; font-size: .75rem; text-decoration: none; }
.btn-more .ms, .btn-back .ms { flex-shrink: 0; transition: transform .2s ease; }
.btn-more:hover .ms { transform: translateX(3px); }
.btn-back:hover .ms { transform: translateX(-3px); }
.btn-back { margin-bottom: 20px; }
.section-head .btn-more { flex-shrink: 0; }

/* Testo dei controlli: Inter, .875rem, maiuscolo con leggera spaziatura */
.btn, .pill, .tabs button {
  font-family: var(--font-body);
  font-size: var(--btn-size);
  line-height: 1;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--btn-tracking);
}

/* ---------- Card, badge, chip ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-deep { background: var(--grad-deep); color: #fff; border-radius: var(--radius); padding: 28px; }
.card-deep p, .card-deep .muted { color: #F5E1E8; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; border-radius: 999px; background: #3A1230; color: var(--accent); white-space: nowrap; }
.badge-grad { background: var(--grad); color: #fff; font-weight: 600; }
.chip { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.cat-label { font-size: 13px; font-weight: 600; color: var(--accent); }

.pill { min-height: 44px; padding: 0 20px; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.pill[aria-pressed="true"] { background: var(--grad); color: #fff; border-color: transparent; }

.photo { background: linear-gradient(160deg, var(--surface-2) 0%, #1E0A2E 100%); display: grid; place-items: center; color: var(--accent); font-family: var(--font-display); font-weight: 700; position: relative; }
.photo-label { color: var(--muted); font-family: var(--font-body); font-weight: 400; font-size: 13px; }
.online-dot { width: 20px; height: 20px; flex-shrink: 0; border-radius: 999px; background: var(--online); display: inline-block; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-body); font-size: 14px; color: var(--muted); }
.field input, .field select {
  min-height: 48px; padding: 0 14px; width: 100%;
  background: var(--bg); border: 1px solid var(--line); border-radius: 24px;
  color: var(--text); font-family: var(--font-body); font-size: 16px; color-scheme: dark;
}
.date-wrap { position: relative; display: block; width: 100%; }
.field .date-wrap input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; height: 48px; min-height: 48px; padding: 0 14px; line-height: 48px; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8); opacity: .7; cursor: pointer; }
.date-ph { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 16px; pointer-events: none; opacity: .75; }
.date-wrap.has-value .date-ph { display: none; }
.date-wrap:not(.has-value) input::-webkit-datetime-edit { color: transparent; }
.date-wrap:not(.has-value) input:focus::-webkit-datetime-edit { color: var(--text); }
.date-wrap:not(.has-value):focus-within .date-ph { display: none; }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 160px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-family: var(--font-body); color: var(--text-2); font-size: 15px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #D61E52; flex-shrink: 0; }
.notice { padding: 16px 18px; border-radius: 24px; background: #3A1230; color: #F4C9D6; font-size: 15px; }

.switch { width: 52px; height: 30px; padding: 3px; border: 0; border-radius: 999px; cursor: pointer; background: var(--line); display: flex; justify-content: flex-start; flex-shrink: 0; }
.switch::after { content: ""; width: 24px; height: 24px; border-radius: 999px; background: #fff; }
.switch[aria-checked="true"] { background: var(--grad); justify-content: flex-end; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line); }

.tabs { display: flex; gap: 6px; padding: 6px; background: var(--bg); border-radius: 999px; }
.tabs button { flex: 1; min-height: 44px; border: 0; border-radius: 999px; cursor: pointer; background: transparent; color: var(--text-2); }
.tabs button[aria-selected="true"] { background: var(--grad); color: #fff; }

/* ---------- Griglie ---------- */
.grid { display: grid; gap: 16px; }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.grid-profiles { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }

.cat-link { display: flex; align-items: center; min-height: 64px; padding: 0 20px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; }
.cat-link:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }

/* ---------- Home ---------- */
.hero { display: flex; gap: 56px; align-items: center; flex-wrap: wrap; padding-block: 72px 56px; }
.hero-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 24px; }
.hero-search { flex: 1 1 360px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }
.pre-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text-2); }
.actions { display: flex; gap: 14px; flex-wrap: wrap; }

.online-strip { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; }
.online-item { flex: 0 0 170px; display: flex; flex-direction: column; gap: 10px; color: var(--text); text-decoration: none; }
.online-item .photo { height: 170px; border-radius: 36px; font-size: 40px; }
.online-item .photo { overflow: hidden; isolation: isolate; }
.online-item .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .5s ease; }
.online-item .photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,6,10,0) 45%, rgba(20,6,10,.55) 100%), linear-gradient(160deg, rgba(123,47,247,.18), rgba(214,30,82,.18)); }
.online-item:hover .photo img { transform: scale(1.05); }
.photo-credits { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.photo-credits a { color: var(--text-2); }
.online-item .online-dot { position: absolute; top: 14px; right: 14px; border: 4px solid var(--surface); width: 28px; height: 28px; }
.online-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.online-name { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.online-ver { display: inline-flex; color: var(--accent); }
.online-dist { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--text-2); }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.loc-btn { gap: 6px; max-width: 220px; }
.loc-btn #loc-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.loc-status:empty { display: none; }
.loc-status { margin: 0; font-size: 14px; color: var(--text-2); }
.loc-city { font: inherit; color: var(--text); cursor: pointer; }
.loc-city[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#loc-gps { gap: 8px; }

.regions { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.regions a { padding: 10px 0; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--surface-2); }
.regions a:hover { color: var(--accent); }
.region-form { display: none; }
.godi { font-size: 1.4em; line-height: .95; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-block: 36px; color: var(--muted); font-size: 15px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }
.site-footer a.strong { color: var(--accent); font-weight: 600; }

/* ---------- Annunci ---------- */
.ad { display: flex; flex-direction: column; gap: 14px; }
.ad.has-cover, .ad.latest { padding: 0; overflow: hidden; gap: 0; }
.ad-body { display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.ad.has-cover .ad-body, .ad.latest .ad-body { padding: 24px; }

/* Foto di lancio dell'annuncio (indipendente dalla foto profilo) */
.ad-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ad-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.ad-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,6,10,0) 50%, rgba(32,10,17,.9) 100%); pointer-events: none; }
.ad:hover .ad-cover img { transform: scale(1.04); }
.ad-cover.is-blurred img { filter: blur(18px) saturate(1.2); transform: scale(1.15); }
.ad-cover-tag .muted { color: var(--text-2); }
.ad-meta { display: inline-flex; align-items: center; font-size: 14px; }
.meta-dot { width: 4px; height: 4px; border-radius: 999px; background: currentColor; margin: 0 8px; opacity: .6; color: var(--muted); }
.meta-ver { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.ad-foot.ad-foot-end { justify-content: flex-end; }
.ad-cover-tag, .ad-cover-vis { position: absolute; z-index: 1; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(20,6,10,.7); backdrop-filter: blur(6px); font-size: 12px; color: var(--text); }
.ad-cover-vis { left: auto; right: 14px; color: var(--accent); }
.ad-cover-lock { position: absolute; z-index: 1; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.ad.has-cover .ad-head { margin-top: -52px; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; }
.ad.has-cover .ad-head .ad-avatar { grid-column: 1 / -1; }
.ad.has-cover .ad-avatar { border: 4px solid var(--surface); width: 64px; height: 64px; }
.ad-avatar { overflow: hidden; }
.avatar-link, .profile-avatar, .demo-av, #thread-ini { overflow: hidden; }
.avatar-link img, .profile-avatar img, .demo-av img, #thread-ini img, .comment .ad-avatar img, .authors .ad-avatar img, .story-meta .ad-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-card .photo img, .place .photo img, .gallery .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place .photo, .gallery .photo { position: relative; overflow: hidden; }
.place .photo .badge { position: relative; z-index: 1; margin-left: auto; }
.profile-card .photo { overflow: hidden; }
.profile-card .photo .tag-online, .profile-card .photo .tag-ver { z-index: 1; }
.photos .photo.has-img { position: relative; overflow: hidden; }
.photos .photo.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photos .photo.is-private img { filter: blur(10px); transform: scale(1.1); }
.photo-tag { position: absolute; z-index: 1; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(20,6,10,.75); font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text); }
.ad-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pubblica annuncio */
.pub { padding-block: 48px 96px; }
.pub-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.pub-head h1 { font-size: clamp(36px, 5vw, 56px); }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pub-form { display: flex; flex-direction: column; gap: 32px; padding: 32px; }
.pub-step { display: flex; flex-direction: column; gap: 16px; }
.pub-step legend { font-family: var(--font-display); font-size: 22px; margin-bottom: 16px; }
.field textarea { min-height: 120px; padding: 14px; width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 24px; color: var(--text); font-family: var(--font-body); font-size: 16px; resize: vertical; }
.pub-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 12px; }
.pub-side-label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: var(--btn-tracking); color: var(--muted); }
.dropzone { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1.5px dashed var(--line-2); border-radius: 32px; cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone:focus-within { border-color: var(--accent); background: rgba(255,107,143,.05); }
.dz-ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 999px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; }
.upload p { margin: 8px 0 0; font-size: 14px; }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sample { position: relative; border-radius: 20px; overflow: hidden; cursor: pointer; aspect-ratio: 3 / 2; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.sample img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sample:has(input:checked) { outline-color: var(--accent); }
.sample:has(input:focus-visible) { outline-color: var(--text); }
#vis-group > span { color: var(--text); font-weight: 600; font-size: 16px; }
.field .radio-tiles input { min-height: 0; width: auto; padding: 0; }
.radio-tiles label { font-size: 15px; }
@media (max-width: 900px) { .pub-grid { grid-template-columns: minmax(0, 1fr); } .pub-side { position: static; order: -1; } }
.ad-head { display: flex; align-items: center; gap: 14px; }
.ad-avatar { width: 56px; height: 56px; flex-shrink: 0; border-radius: 999px; background: var(--line); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.ad-who { display: flex; flex-direction: column; flex-grow: 1; }
.ad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.promo { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--grad-deep); color: #fff; text-decoration: none; margin-top: 32px; }
.promo:hover { color: #fff; }

/* ---------- Cerca ---------- */
.with-sidebar { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding-block: 40px 96px; }
.sidebar { flex: 1 1 260px; max-width: 300px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 92px; }
.main-col { flex: 3 1 600px; display: flex; flex-direction: column; gap: 24px; }
.profile-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.profile-card .photo { height: 200px; font-size: 48px; }
.profile-card .body { padding: 16px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.profile-card .row { display: flex; gap: 8px; margin-top: 12px; }
.tag-online { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(20,6,10,.75); font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text); }
.tag-ver { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 999px; background: var(--grad); display: grid; place-items: center; }
.like[aria-pressed="true"] .ms { font-variation-settings: 'FILL' 1, 'wght' 400; color: var(--accent); }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--text-2); }

/* ---------- Messaggi ---------- */
.chat { display: flex; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; min-height: calc(100vh - 73px); }
.chat-list { flex: 1 1 300px; max-width: 360px; border-right: 1px solid var(--line); padding: 24px 10px; display: flex; flex-direction: column; gap: 4px; }
.chat-list h1 { font-size: 34px; padding: 0 10px 12px; }
.conv { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 10px 12px; border: 0; border-radius: 28px; font: inherit; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.conv[aria-current="true"] { background: var(--surface-2); }
.conv .ad-avatar { width: 48px; height: 48px; font-size: 16px; }
.conv[aria-current="true"] .ad-avatar { background: var(--grad-deep); color: #fff; }
.conv-text { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.conv-text .preview { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.unread { min-width: 22px; height: 22px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
.thread { flex: 2 1 480px; display: flex; flex-direction: column; min-height: 640px; }
.thread-head { display: flex; align-items: center; gap: 14px; padding: 18px 28px; border-bottom: 1px solid var(--line); }
.thread-body { flex-grow: 1; padding: 28px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.msg { display: flex; flex-direction: column; gap: 4px; max-width: 72%; align-self: flex-start; align-items: flex-start; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.bubble { padding: 12px 16px; border-radius: 24px 24px 24px 8px; background: var(--surface); border: 1px solid var(--line); }
.msg.mine .bubble { background: var(--grad); border: 0; color: #fff; border-radius: 24px 24px 8px 24px; }
.msg time { font-size: 12px; color: var(--muted); }
.system-note { align-self: center; font-size: 13px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; text-align: center; }
.composer { display: flex; gap: 12px; padding: 16px 28px 24px; border-top: 1px solid var(--line); }
.composer input { flex-grow: 1; min-height: 52px; padding: 0 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; color: var(--text); font-family: var(--font-body); font-size: 16px; }
.chat-aside { flex: 1 1 260px; max-width: 320px; border-left: 1px solid var(--line); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- Profilo ---------- */
.profile-hero { border-radius: 56px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); margin-top: 32px; }
.profile-cover { position: relative; height: 200px; overflow: hidden; background: linear-gradient(120deg, #4E1A9E 0%, #9E1238 70%, #5A0A1E 100%); }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,6,10,0) 40%, rgba(32,10,17,.85) 100%); }
.profile-info { position: relative; z-index: 9999; padding: 0 36px 32px; margin-top: -64px; display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
/* contiene lo z-index del profilo dentro la card, così non copre header e tab bar quando si scorre */
.profile-hero { isolation: isolate; }
.profile-avatar { width: 136px; height: 136px; border-radius: 999px; border: 5px solid var(--surface); background: var(--line); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-size: 44px; font-weight: 700; }
.two-col { display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start; padding-block: 32px 96px; }
.two-col > .main { flex: 2 1 520px; display: flex; flex-direction: column; gap: 32px; }
.two-col > * { min-width: 0; }
.two-col > aside { flex: 1 1 320px; display: flex; flex-direction: column; gap: 16px; }
.photos { display: flex; gap: 12px; flex-wrap: wrap; }
.photos > * { flex: 1 1 160px; height: 160px; border-radius: 32px; }
.add-photo { border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--text-2); background: none; font: inherit; cursor: pointer; }

/* ---------- Iscrizione ---------- */
.signup { display: flex; gap: 64px; flex-wrap: wrap; align-items: flex-start; padding-block: 64px 96px; max-width: 1120px; }
.signup-intro { flex: 1 1 320px; max-width: 400px; display: flex; flex-direction: column; gap: 24px; }
.signup-form { flex: 1 1 480px; display: flex; flex-direction: column; gap: 24px; padding: 36px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: center; color: var(--muted); }
.steps .n { width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; }
.steps li.done { color: var(--text); }
.steps li.done .n { background: var(--grad); border: 0; color: #fff; font-weight: 600; }
.radio-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-tiles label { flex: 1 1 110px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 24px; cursor: pointer; color: var(--text); }
.radio-tiles label:has(input:checked) { border-color: #D61E52; }
.radio-tiles input { accent-color: #D61E52; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-family: var(--font-body); font-weight: 600; margin-bottom: 10px; padding: 0; color: var(--text); }
[hidden] { display: none !important; }

/* ---------- Luoghi / scheda ---------- */
.place { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.place:hover { color: var(--text); border-color: var(--line-2); }
.place .photo { height: 180px; place-items: end stretch; padding: 16px; display: flex; justify-content: space-between; align-items: flex-end; }
.place .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 12px; border-radius: 48px; overflow: hidden; }
.gallery > :first-child { grid-row: span 2; }
.gallery > * { place-items: end start; padding: 20px; display: flex; align-items: flex-end; }

/* ---------- Dashboard ---------- */
.dash { display: flex; min-height: 100vh; flex-wrap: wrap; }
.dash-side { flex: 0 0 260px; border-right: 1px solid var(--line); padding: 24px 20px; display: flex; flex-direction: column; gap: 28px; }
.dash-side nav { display: flex; flex-direction: column; gap: 4px; }
.dash-side nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 20px; color: var(--text); text-decoration: none; }
.dash-side nav a[aria-current="page"] { background: #3A1230; color: var(--accent); font-weight: 600; }
.dash-main { flex: 1 1 600px; padding: 40px 48px 96px; display: flex; flex-direction: column; gap: 32px; max-width: 1100px; }
.progress { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); transition: width .3s; }
.task { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 24px; background: var(--bg); }
.task button { width: 28px; height: 28px; flex-shrink: 0; border-radius: 16px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.task button[aria-pressed="true"] { background: var(--grad); border-color: transparent; }
.task button .ms { visibility: hidden; }
.task button[aria-pressed="true"] .ms { visibility: visible; }
.stat { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; padding: 22px; }
.stat strong { font-family: var(--font-display); font-size: 36px; }
.plans { display: flex; gap: 16px; flex-wrap: wrap; }
.plan { flex: 1 1 240px; display: flex; flex-direction: column; gap: 14px; }
.plan.featured { border: 2px solid #D61E52; }
.plan .price { font-size: 28px; font-weight: 600; }
.plan ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.plan .btn { margin-top: auto; }
.steps-big { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.steps-big li { display: flex; flex-direction: column; gap: 12px; }
.steps-big .n { width: 44px; height: 44px; border-radius: 999px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }

/* ==========================================================
   Come funziona (home) — switch Privati / Business
   ========================================================== */
.come-funziona { border-top: 1px solid var(--line); padding: 88px 0 104px; scroll-margin-top: 72px; }
.cf-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 64px; }
.cf-head h2 { font-size: clamp(36px, 5vw, 64px); }

/* Switch segmentato con indicatore che scorre */
.cf-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); min-width: 300px; }
.cf-switch button { position: relative; z-index: 1; min-height: 48px; padding: 0 28px; border: 0; background: none; color: var(--text-2); cursor: pointer; border-radius: 999px; font-family: var(--font-body); font-size: var(--btn-size); font-weight: 400; text-transform: uppercase; letter-spacing: var(--btn-tracking); transition: color .3s; }
.cf-switch button[aria-selected="true"] { color: #fff; }
.cf-switch-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 999px; background: var(--grad); transition: transform .45s cubic-bezier(.7,0,.2,1); }
.cf-switch[data-active="business"] .cf-switch-thumb { transform: translateX(100%); }

.cf-panel { display: flex; flex-direction: column; gap: 112px; }
.cf-panel.is-entering { animation: cf-in .5s ease both; }
@keyframes cf-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cf-title { font-size: clamp(30px, 4vw, 52px); letter-spacing: -0.03em; max-width: 16ch; }
.cf-sub { color: var(--text-2); font-size: 18px; max-width: 52ch; margin-top: 16px; }

/* Rivelazione allo scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 1. Righe che scorrono */
.cf-reach { display: flex; flex-direction: column; gap: 48px; }
.marquees { display: flex; flex-direction: column; gap: 12px; margin-inline: -32px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; padding: 0 6px; margin: 0; list-style: none; flex-shrink: 0; animation: marquee 48s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 56s; }
.marquee-track li { white-space: nowrap; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.marquee:nth-child(2) .marquee-track li { background: transparent; }
.marquee:nth-child(3) .marquee-track li { border-color: #4A1F5E; color: #D9C2FF; }
.marquees:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.cf-reach-copy { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 48px; align-items: end; }
.cf-reach-copy .cf-sub { grid-column: 1; margin-top: 0; }
.cf-reach-copy .cf-title { grid-column: 1; }
.cf-facts { grid-column: 2; grid-row: 1 / span 2; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cf-facts li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cf-facts span { color: var(--muted); }
.cf-facts strong { font-weight: 500; text-align: right; }

/* 2. Demo animata */
.cf-demo-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.cf-demo { background: var(--surface); border: 1px solid var(--line); border-radius: 56px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-height: 420px; box-shadow: 0 40px 80px -40px rgba(123,47,247,.35); }
.demo-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.demo-head > span:last-child { display: flex; flex-direction: column; }
.demo-av { width: 44px; height: 44px; border-radius: 999px; background: var(--grad-deep); color: #fff; display: grid; place-items: center; font-weight: 600; }
.demo-ver { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--accent); }
.demo-msg { max-width: 80%; padding: 12px 16px; border-radius: 36px 36px 36px 8px; background: var(--bg); border: 1px solid var(--line); align-self: flex-start; }
.demo-msg.mine { align-self: flex-end; background: var(--grad); border: 0; color: #fff; border-radius: 36px 36px 8px 36px; }
.demo-card { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: 32px; background: var(--bg); border: 1px solid var(--line); }
.demo-card span:last-child { color: var(--muted); font-size: 14px; }
.demo-k { font-size: 12px; text-transform: uppercase; letter-spacing: var(--btn-tracking); color: var(--accent); }
.demo-typing { align-self: flex-start; display: flex; gap: 4px; padding: 14px 16px; border-radius: 36px; background: var(--bg); border: 1px solid var(--line); }
.demo-typing span { width: 7px; height: 7px; border-radius: 999px; background: var(--muted); animation: dot 1s infinite ease-in-out; }
.demo-typing span:nth-child(2) { animation-delay: .15s; } .demo-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.js [data-step] { opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .4s ease, transform .4s ease; }
.js [data-step].is-shown { opacity: 1; transform: none; }
[data-typing].is-done { display: none; }
.cf-demo-copy .btn { margin-top: 28px; }

/* 3. Cosa puoi / non puoi */
.cf-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 32px; }  /* sempre affiancati, per il confronto */
.cf-dos h4 { margin: 0 0 16px; font-family: var(--font-display); font-size: 24px; }
.cf-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.cf-list li { display: flex; gap: 12px; align-items: flex-start; }
.cf-list .ico { width: 28px; height: 28px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; }
.cf-list.yes .ico { background: var(--grad); color: #fff; }
.cf-list.no .ico { background: var(--line); color: var(--text-2); }
.cf-note { margin-top: 20px; color: var(--muted); }

/* 4. Dettagli interattivi */
.cf-detail { margin-top: 32px; padding: 32px; border-radius: 56px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px; }
.detail-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font-family: var(--font-body); font-size: 15px; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.detail-chip .k { font-size: 12px; text-transform: uppercase; letter-spacing: var(--btn-tracking); color: var(--muted); }
.detail-chip[aria-pressed="true"] { background: #3A1230; border-color: var(--accent); color: var(--text); }
.detail-chip[aria-pressed="true"] .k { color: var(--accent); }
.detail-chip[aria-pressed="false"] { text-decoration: line-through; }
.detail-text { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; letter-spacing: -0.01em; max-width: 34ch; }
.detail-text mark { color: var(--text); background: linear-gradient(120deg, rgba(123,47,247,.45), rgba(214,30,82,.45)); padding: 0 .15em; border-radius: 12px; box-decoration-break: clone; -webkit-box-decoration-break: clone; transition: opacity .35s, filter .35s, background .35s; }
.detail-text mark.is-off { background: transparent; color: var(--muted); opacity: .35; filter: blur(2px); text-decoration: line-through; }
.detail-hint { margin: 0; color: var(--text-2); min-height: 1.5em; }

/* 5. FAQ */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-size: 19px; font-weight: 500; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; width: 14px; height: 14px; flex-shrink: 0; background: linear-gradient(var(--accent), var(--accent)) center / 100% 2px no-repeat, linear-gradient(var(--accent), var(--accent)) center / 2px 100% no-repeat; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 24px; color: var(--text-2); max-width: 64ch; }
.cf-cta { display: flex; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .reveal, .js [data-step] { opacity: 1; transform: none; transition: none; }
  .cf-switch-thumb, .cf-panel.is-entering { transition: none; animation: none; }
}
@media (max-width: 860px) {
  .cf-reach-copy, .cf-demo-wrap { grid-template-columns: 1fr; }
  .cf-facts { grid-column: 1; grid-row: auto; }
  .cf-switch { min-width: 0; width: 100%; }
  .cf-panel { gap: 80px; }
}


/* ---------- Shop online ---------- */
.shop { padding-block: 24px 96px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 16px 0 36px; }
.shop-head h1 { font-size: clamp(36px, 5vw, 56px); }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.shop-grid .grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.product { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.product-visual.has-img { position: relative; overflow: hidden; background: #F3E9EC; }
.product-visual.has-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.product:hover .product-visual.has-img img { transform: scale(1.05); }
.product-visual { aspect-ratio: 1 / 1; display: grid; place-items: center; color: #fff; background: var(--grad-deep); }
.product-visual[data-cat="Protezione"] { background: linear-gradient(135deg, #2C0E18, #6B2A42); }
.product-visual[data-cat="Benessere"] { background: linear-gradient(135deg, #3B0A1E, #9E1238); }
.product-visual[data-cat="Lingerie"] { background: linear-gradient(135deg, #1E0A2E, #500000); }
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.product-body h3 { font-size: 19px; }
.price { font-size: 18px; }
.cart { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.qty { display: flex; gap: 6px; }
.qty .btn { width: 36px; min-height: 36px; font-size: 18px; }
.totals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.totals li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.totals li.grand { color: var(--text); font-size: 20px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; animation: none; }

/* ---------- Prenotazione + extra ---------- */
.pren { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 48px; }
.pren-done { display: flex; gap: 20px; align-items: flex-start; padding: 32px; }
.pren-done h1 { font-size: clamp(30px, 4vw, 44px); }
.pren-check { width: 56px; height: 56px; flex-shrink: 0; border-radius: 999px; background: var(--grad); display: grid; place-items: center; }
.pren-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.extras { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.extra { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s, background .2s; }
.extra:has(input:checked) { border-color: var(--accent); background: #2A0C16; }
.extra input { width: 22px; height: 22px; accent-color: #D61E52; flex-shrink: 0; }
.extra-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.extra-by { font-size: 13px; color: var(--accent); }
.extra-price { font-weight: 600; white-space: nowrap; }
.pren-sum { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
@media (max-width: 960px) {
  .shop-grid, .pren-grid { grid-template-columns: minmax(0, 1fr); }
  .cart, .pren-sum { position: static; }
}


/* ---------- Annuncio singolo ---------- */
.ad { position: relative; }
.ad-link { color: inherit; text-decoration: none; }
.ad-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.ad-link:hover { color: var(--accent); }
.ad-foot a, .ad-foot .btn { position: relative; z-index: 3; }
.ad .ad-head { z-index: 2; }
.detail-cover .ad-cover { aspect-ratio: 21 / 9; border-radius: 48px; }
.detail-cover .ad-cover::after { background: linear-gradient(180deg, rgba(20,6,10,0) 60%, rgba(20,6,10,.6) 100%); }
.two-col > .main.main { gap: 16px; }
.author { display: flex; flex-direction: column; gap: 16px; padding: 28px; position: sticky; top: 96px; }
.author-av { width: 88px; height: 88px; font-size: 28px; }
.author-actions { display: flex; gap: 10px; }
.author-actions .btn { flex: 1; }
.tag-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.tag-inline .online-dot { width: 12px; height: 12px; }

/* ---------- Badge Certificato con tooltip ---------- */
.cert { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 12px; border-radius: 999px; background: #3A1230; color: var(--accent); white-space: nowrap; cursor: help; }
.cert-tip { position: absolute; z-index: 20; bottom: calc(100% + 10px); left: 50%; width: 260px; padding: 12px 14px; border-radius: 16px; background: var(--text); color: var(--bg); font-size: 13px; line-height: 1.45; white-space: normal; text-align: left; box-shadow: 0 12px 32px -12px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s, visibility .2s; pointer-events: none; }
.cert-tip::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--text); }
.cert:hover .cert-tip, .cert:focus-visible .cert-tip, .cert:focus-within .cert-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.place .cert-tip { left: auto; right: -8px; transform: translateY(4px); }
.place .cert-tip::after { left: auto; right: 24px; transform: none; }
.place .cert:hover .cert-tip { transform: none; }

/* ---------- Mappa (OpenStreetMap) ---------- */
.map-card { margin: 0; border-radius: 40px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.map-card iframe { display: block; width: 100%; height: 220px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; font-size: 14px; }


/* Navigazione utente a icone: outline a riposo, piena quando selezionata */
.nav-icons { gap: 8px; }
.nav .nav-icon { position: relative; width: 48px; height: 48px; padding: 0; display: grid; place-items: center; border-radius: 999px; color: var(--text-2); transition: color .2s, background .2s; }
.nav .nav-icon:hover { color: var(--text); background: var(--surface); }
.nav .nav-icon[aria-current="page"], .nav .nav-icon[aria-current="location"] { color: var(--accent); }
.nav-icon[aria-current="page"] .ms, .nav-icon[aria-current="location"] .ms { font-variation-settings: 'FILL' 1, 'wght' 500; }
/* Il segno dentro un'icona piena (es. il + di Pubblica) diventa del colore dello sfondo, così resta leggibile */
.nav-dot { position: absolute; top: 10px; right: 10px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); border: 2px solid var(--bg); }
.nav-tip { position: absolute; top: calc(100% + 6px); left: 50%; transform: translate(-50%, -4px); padding: 6px 10px; border-radius: 10px; background: var(--text); color: var(--bg); font-size: 12px; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s, transform .15s, visibility .15s; }
.nav-icon:hover .nav-tip, .nav-icon:focus-visible .nav-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }


/* Elementi solo mobile (nascosti su desktop) */
.menu-toggle, .menu-only, .thread-back, .filters-toggle, .cartbar, .book-bar, .book-handle, .book-close { display: none; }
.book-backdrop[hidden] { display: none; }
.book-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .marquees { margin-inline: -20px; }
  .site-header { padding: 12px 20px; position: static; }
  .sidebar { position: static; max-width: none; }
  .chat-list, .chat-aside { max-width: none; border: 0; }
  .dash-side { flex-basis: 100%; border-right: 0; border-bottom: 1px solid var(--line); }
  .dash-main { padding: 32px 20px 64px; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
  .gallery > :not(:first-child) { display: none; }
}


/* ---------- Locale: coupon, servizi, serate ---------- */
.offers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.offer { display: flex; flex-direction: column; gap: 8px; }
.offer h3 { font-size: 20px; }
.offer .ad-foot { margin-top: auto; padding-top: 8px; }
.offer s { font-size: 14px; font-weight: 400; }
.offer-note { margin: 0; font-size: 13px; color: var(--accent); }
.events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.event { display: flex; gap: 20px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.event-day { flex-shrink: 0; width: 72px; font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--accent); }
.event-text { display: flex; flex-direction: column; gap: 2px; }
.gallery .photo { overflow: hidden; padding: 0; }
.gallery .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Finestra di acquisto */
.sheet { width: min(440px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 32px; background: var(--surface); color: var(--text); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); }
.sheet::backdrop { background: rgba(10,2,5,.7); backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .25s ease; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.sheet-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.sheet-actions { display: flex; gap: 10px; margin-top: 6px; }
.sheet-actions .btn { flex: 1; }
.qr { align-self: center; padding: 14px; border-radius: 24px; background: #fff; line-height: 0; }
.qr-code { margin: 0; text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 18px; letter-spacing: .12em; }

/* Business: sezione locali */
.locali-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.coupon-demo { position: relative; display: grid; place-items: center; min-height: 460px; }
.coupon { position: relative; width: min(320px, 100%); display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(158,18,56,.5); transform: rotate(-3deg); }
.coupon-back { position: absolute; top: 20px; right: 0; width: 240px; transform: rotate(6deg); opacity: .65; box-shadow: none; }
.coupon-title { font-family: var(--font-display); font-size: 24px; line-height: 1.1; }
.coupon-row { display: flex; align-items: baseline; gap: 10px; }
.coupon-cut { margin: 10px -26px; border-top: 2px dashed var(--line-2); position: relative; }
.coupon-cut::before, .coupon-cut::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 999px; background: var(--bg); }
.coupon-cut::before { left: -12px; } .coupon-cut::after { right: -12px; }
.coupon-qr { width: 112px; height: 112px; align-self: center; border-radius: 12px; background:
  conic-gradient(from 90deg at 3px 3px, #fff 90deg, transparent 0) 0 0 / 12px 12px,
  repeating-linear-gradient(45deg, #14060A 0 6px, #fff 6px 12px); border: 8px solid #fff; }
.validate { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .locali-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .coupon-demo { min-height: 380px; } }

/* ---------- Ricerca mobile: barra fissa + pannello dal basso ---------- */
.search-fab { display: none; }
.bottom-sheet { padding: 0; border: 0; background: transparent; color: var(--text); max-width: 560px; width: 100%; }
.bottom-sheet::backdrop { background: rgba(10,2,5,.6); backdrop-filter: blur(3px); }
.bs-form { display: flex; flex-direction: column; max-height: min(88dvh, 760px); background: var(--surface); border: 1px solid var(--line); border-radius: 32px; overflow: hidden; }
.bs-head { padding: 10px 20px 8px; touch-action: none; cursor: grab; }
.bs-handle { display: block; width: 44px; height: 5px; margin: 0 auto 10px; border-radius: 999px; background: var(--line-2); }
.bs-title-row { display: flex; justify-content: space-between; align-items: center; }
.bs-title-row h2 { font-size: 26px; }
.bs-close { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--surface-2); color: var(--text); cursor: pointer; }
.bs-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 24px; }
.bs-group { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bs-group legend { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-bottom: 12px; font-weight: 600; }
.bs-hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.bs-age { font-weight: 400; color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opts-scroll { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.opts-scroll::-webkit-scrollbar { display: none; }
.opt { position: relative; flex-shrink: 0; scroll-snap-align: start; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 16px; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, border-color .2s; }
.opt input:checked + span { background: var(--grad); border-color: transparent; color: #fff; }
.opt input[type="checkbox"]:checked + span::before { content: ""; width: 14px; height: 8px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Doppio cursore per l'età */
.range { position: relative; height: 44px; --a: .13; --b: .61; }
.range::before, .range-fill { content: ""; position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 999px; }
.range::before { left: 0; right: 0; background: var(--line); }
.range-fill { left: calc(16px + (100% - 32px) * var(--a)); right: calc(100% - 16px - (100% - 32px) * var(--b)); background: var(--grad); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 32px; height: 32px; border-radius: 999px; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: grab; }
.range input::-moz-range-thumb { pointer-events: auto; width: 32px; height: 32px; border-radius: 999px; background: #fff; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.5); cursor: grab; }
.range input::-webkit-slider-runnable-track { background: none; }
.range input::-moz-range-track { background: none; }
.bs-switch { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.range-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.bs-foot { display: flex; gap: 10px; padding: 14px 20px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.bs-foot .btn { min-height: 52px; }
.bs-foot .btn-primary { flex: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; animation: none; }

/* ---------- Home: tab Annunci / Eventi ---------- */
.home-tabs { display: inline-flex; width: auto; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); }
.home-tabs button { flex: 0 0 auto; padding: 0 28px; }
.event-card .ad-cover-vis { color: #fff; background: rgba(158,18,56,.85); }
.ad-link-plain { color: inherit; text-decoration: none; position: relative; z-index: 3; }
.ad-link-plain:hover { color: var(--accent); }
.event-card .ad-foot { gap: 12px; }
.tk-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tk-compare > div { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.tk-compare s { font-size: 22px; color: var(--muted); }
.tk-best { border-color: var(--accent) !important; background: #2A0C16 !important; }
.tk-best span { color: var(--accent); font-size: 14px; }
.tk-best strong { font-size: 22px; }
.tk-save { margin: 0; color: var(--online); font-size: 14px; }

/* ---------- Business: eventi in prevendita ---------- */
.cf-event-demo { display: flex; justify-content: center; }
.event-mock { max-width: 380px; width: 100%; pointer-events: none; box-shadow: 0 40px 80px -40px rgba(158,18,56,.6); }
.event-stage { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.event-stage .event-mock { transform: rotate(-2deg); }
.event-panel { position: relative; margin: -48px 0 0 auto; width: min(300px, 90%); display: flex; flex-direction: column; gap: 10px; padding: 20px; transform: rotate(2deg); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.ev-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-row:first-of-type { border-top: 0; padding-top: 0; }
.accent { color: var(--accent); }
.ev-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 720px) { .ev-form { grid-template-columns: 1fr; } .ev-form > * { grid-column: 1 / -1 !important; } .event-panel { margin-top: -32px; } }

/* ---------- Carrello: icona in navbar + pannello ---------- */
.cart-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text-2); cursor: pointer; transition: color .2s, border-color .2s; }
.cart-btn:hover { color: var(--text); border-color: var(--accent); }
.cart-btn.has-items { color: var(--accent); border-color: var(--accent); }
.cart-btn.has-items .ms { font-variation-settings: 'FILL' 1; }
.cart-badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 12px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.shop-grid-full { grid-template-columns: minmax(0, 1fr); }
.shop-grid-full .grid-3 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

.drawer { position: fixed; inset: 0 0 0 auto; padding: 0; border: 0; margin: 0; height: 100%; max-height: 100%; width: min(420px, 100%); max-width: 100%; background: transparent; color: var(--text); }
.drawer::backdrop { background: rgba(10,2,5,.6); backdrop-filter: blur(3px); }
.drawer-panel { height: 100%; display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line); }
.drawer-head { padding: 20px 24px 8px; }
.drawer-head .bs-handle { display: none; }
.drawer-head h2 { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.drawer-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 12px 24px; padding-bottom: max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; }
.drawer[open] { animation: drawer-in .3s cubic-bezier(.2,.8,.2,1); }
.drawer.is-closing { animation: drawer-out .22s ease forwards; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-out { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .drawer[open], .drawer.is-closing { animation: none; } }

.ev-live { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 28px; background: var(--bg); border: 1px solid var(--line); }
.ev-live-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ev-progress { display: flex; flex-direction: column; gap: 6px; }
.ev-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat-mini { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.stat-mini strong { font-family: var(--font-display); font-size: 24px; }
@media (max-width: 720px) { .ev-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Storie ---------- */
.stories { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 40px; }
.stories-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.stories-head h1 { font-size: clamp(44px, 6vw, 72px); }
.stories-head .lead { margin-top: 6px; }
.stories-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stories-search { width: min(340px, 100%); }
.collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.collection { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); }
.collection .chips { gap: 8px; }
.pill-n { opacity: .6; margin-left: 4px; }
.stories-grid { padding-block: 0; }
.stories-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stories-toolbar .home-tabs { margin: 0; }
.story-list { display: flex; flex-direction: column; gap: 14px; }
.story-card { position: relative; display: flex; flex-direction: column; gap: 10px; }
.story-card h3 { font-size: 24px; }
.story-excerpt { margin: 0; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.story-tags { margin: 0; font-size: 14px; color: var(--accent); }
.story-tags a { color: var(--accent); text-decoration: none; margin-right: 8px; }
.story-meta { display: flex; align-items: center; gap: 12px; margin-top: 4px; font-size: 14px; }
.story-meta .ad-avatar { width: 40px; height: 40px; font-size: 14px; }
.story-by { flex-grow: 1; }
.story-stats { display: flex; gap: 14px; color: var(--muted); }
.story-stats > span { display: inline-flex; align-items: center; gap: 5px; }
.authors { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.authors li { display: flex; align-items: center; gap: 12px; }
.authors .rank { width: 22px; font-family: var(--font-display); font-weight: 700; color: var(--accent); }
.authors .ad-avatar { width: 40px; height: 40px; font-size: 14px; }
.author-text { display: flex; flex-direction: column; font-size: 14px; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: inherit; font-size: 14px; cursor: pointer; }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.write-cta { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: #fff; }
.write-cta:hover { color: #fff; filter: brightness(1.08); }
.write { display: flex; flex-direction: column; gap: 24px; padding: 32px; scroll-margin-top: 90px; }
.write-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.write-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.story-page { padding-block: 24px 96px; max-width: 820px; }
.story { display: flex; flex-direction: column; gap: 28px; }
.story-head { display: flex; flex-direction: column; gap: 14px; }
.story-head h1 { font-size: clamp(38px, 6vw, 64px); }
.story-body { font-size: 19px; line-height: 1.75; color: var(--text-2); display: flex; flex-direction: column; gap: 1.1em; max-width: 65ch; text-wrap: pretty; }
.story-body p { text-wrap: pretty; }
.story-body p:first-child::first-letter { float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .85; padding: 6px 10px 0 0; color: var(--accent); }
.story-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.story-actions [aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.story-comments { margin-top: 48px; }
.comments { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.comment { display: flex; gap: 12px; }
.comment .ad-avatar { width: 40px; height: 40px; font-size: 14px; flex-shrink: 0; }
.comment p { margin: 4px 0 0; color: var(--text-2); }
.comment-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
@media (max-width: 900px) { .collections { grid-template-columns: minmax(0, 1fr); } }

.story-card.has-img { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.story-text { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story-img { aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.story-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.story-card:hover .story-img img { transform: scale(1.05); }
.story-mini { padding: 0; overflow: hidden; gap: 0; }
.story-mini .story-img { aspect-ratio: 16 / 9; border-radius: 0; }
.story-mini .story-text { padding: 20px; }
.story-hero { aspect-ratio: 21 / 9; border-radius: 40px; overflow: hidden; background: var(--surface-2); }
.story-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Contatti esterni e condivisione in chat ---------- */
.ext-card { display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 90px; }
/* Card richiudibile (Contatti esterni nel profilo) */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 16px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.fold-title { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fold-meta { font-size: 13px; }
.fold-chev { flex: 0 0 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--text-2); transition: transform .25s; }
.fold[open] .fold-chev { transform: rotate(180deg); }
.fold-body { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
@media (prefers-reduced-motion: reduce) { .fold-chev { transition: none; } }
.ext-row { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.ext-field { gap: 8px; }
.ext-label { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.ext-public { border-top: 0; padding: 6px 0 0; }
.ext-badge { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff; background: var(--line-2); }
.ext-instagram { background: #8E3B6E; } .ext-facebook { background: #3B4E8E; } .ext-whatsapp { background: #2E7D5B; } .ext-telegram { background: #2F6E99; }
.ext-public-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.ext-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-size: 14px; }
.ext-chip .ext-badge { width: 26px; height: 26px; border-radius: 999px; font-size: 10px; }
.ext-chip:hover { border-color: var(--accent); color: var(--text); }
.ext-saved { margin: 6px 0 0; font-size: 14px; color: var(--text-2); }
.share-btn { width: 52px; height: 52px; }
.share-sheet .drawer-panel { }
.share-list { display: flex; flex-direction: column; gap: 8px; }
.share-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.share-item:hover { border-color: var(--accent); color: var(--text); }
.share-item.is-empty { opacity: .7; }
.share-send { margin-left: auto; font-size: var(--btn-size); text-transform: uppercase; letter-spacing: var(--btn-tracking); color: var(--accent); }
.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-text strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.msg-contact { max-width: min(360px, 86%); }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); width: 100%; }
.msg.mine .contact-card { border-color: var(--accent); background: #2A0C16; }
.contact-k { font-size: 12px; color: var(--muted); }
.contact-open { min-height: 36px; padding: 0 14px; margin-left: auto; flex-shrink: 0; }

/* ---------- Navigazione solo a icone: area aziende (rail laterale) ---------- */
.logo-mini { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); font-size: 26px; }
.dash-side { flex: 0 0 96px; align-items: center; padding: 24px 0; gap: 24px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: none; }
.dash-side::-webkit-scrollbar { display: none; }
.nav-rail { flex-direction: column; gap: 6px; align-items: center; }
.nav-rail .nav-icon { width: 52px; height: 52px; border-radius: 16px; }
.nav-rail .nav-icon[aria-current="page"], .nav-rail .nav-icon[aria-current="location"] { background: #3A1230; }
/* il tooltip è "fixed" (posizionato via JS) così non viene tagliato dallo scroll della barra */
.nav-rail .nav-tip { position: fixed; top: var(--tip-y, 0); left: var(--tip-x, 0); transform: translate(-4px, -50%); z-index: 60; }
.nav-rail .nav-icon:hover .nav-tip, .nav-rail .nav-icon:focus-visible .nav-tip { transform: translate(0, -50%); }
.nav-icons.nav-guest, .nav-icons.nav-biz { gap: 4px; }
.nav-solo .nav-tip { left: auto; right: 0; transform: translateY(-4px); }
.nav-solo .nav-icon:hover .nav-tip, .nav-solo .nav-icon:focus-visible .nav-tip { transform: none; }

/* ---------- Vetrina (creator) ---------- */
.vetrina { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 48px; }
.creators { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.creator-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.creator-cover { aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); }
.creator-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); }
.creator-body { position: relative; padding: 44px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.creator-body .btn { margin-top: auto; }
.creator-body .badge { font-size: 11px; padding: 2px 8px; }
.creator-av { position: absolute; top: -32px; left: 18px; width: 64px; height: 64px; border-radius: 999px; overflow: hidden; border: 4px solid var(--surface); background: var(--surface-2); }
.creator-av img, .vt-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vt-tile { position: relative; aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); padding: 0; cursor: pointer; color: #fff; font: inherit; text-align: left; }
.vt-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.vt-tile:hover img { transform: scale(1.04); }
.vt-tile.is-locked img, .vt-d-media.is-locked img { filter: blur(22px) saturate(1.2); transform: scale(1.15); }
.vt-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(20,6,10,.85) 100%); pointer-events: none; }
.vt-top { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.vt-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(20,6,10,.7); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; }
.vt-pill.is-free { background: rgba(46,125,91,.85); }
.vt-lock { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; }
.vt-lock .ms { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; border-radius: 999px; background: rgba(20,6,10,.6); }
.vt-foot { position: absolute; z-index: 1; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; font-size: 13px; line-height: 1.3; }
.vt-av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 999px; overflow: hidden; border: 2px solid rgba(255,255,255,.8); }
.vt-d-media { position: relative; aspect-ratio: 4 / 5; max-height: 52vh; border-radius: 24px; overflow: hidden; background: var(--surface-2); margin: -8px -8px 0; }
.vt-d-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-d-creator { display: flex; align-items: center; gap: 10px; }
.creator-cta { padding: 36px; scroll-margin-top: 90px; }
.upload-form { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1100px) { .creators, .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Webcam ---------- */
.webcam { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 48px; }
.wallet { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); font-size: 14px; }
.wallet strong { color: var(--text); }
.wallet-add { width: 32px; height: 32px; border-radius: 999px; border: 0; background: var(--grad); color: #fff; font-size: 18px; cursor: pointer; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; background: #FF3B5C; margin-right: 10px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(255,59,92,.7); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 10px rgba(255,59,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,92,0); } }
.live-badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: #E0244A; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.live-badge .live-dot { width: 7px; height: 7px; margin-right: 6px; background: #fff; }
.wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.wc-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); color: #fff; text-decoration: none; background: var(--surface-2); }
.wc-tile:hover { color: #fff; border-color: var(--accent); }
.wc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.wc-tile:hover img { transform: scale(1.04); }
.wc-tile::after, .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 55%, rgba(20,6,10,.85)); pointer-events: none; }
.stage-top { position: absolute; z-index: 1; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 8px; }
.wc-foot { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-size: 14px; line-height: 1.35; }
.muted-light { color: rgba(255,255,255,.7); }
.wc-title { color: rgba(255,255,255,.9); }
.wc-next { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.wc-next-item { display: flex; align-items: center; gap: 14px; padding: 16px; }
.cam-test { display: flex; flex-direction: column; gap: 14px; }
.cam-preview { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: var(--bg); border: 1px dashed var(--line-2); display: grid; place-items: center; }
.cam-preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); opacity: 0; }
.cam-preview.is-on video { opacity: 1; }
.cam-preview.is-on .cam-placeholder { display: none; }
.cam-placeholder { max-width: 26ch; text-align: center; color: var(--muted); font-size: 14px; padding: 20px; }

.room { padding-block: 16px 64px; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; margin-top: 8px; }
.room-stage { display: flex; flex-direction: column; gap: 16px; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 32px; overflow: hidden; background: #000; }
.stage img { width: 100%; height: 100%; object-fit: cover; display: block; animation: stage-breathe 9s ease-in-out infinite alternate; }
@keyframes stage-breathe { from { transform: scale(1); } to { transform: scale(1.06); } }
.stage-note { position: absolute; z-index: 1; left: 16px; bottom: 14px; font-size: 12px; color: rgba(255,255,255,.7); }
.hearts { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.heart { position: absolute; bottom: 10%; width: 22px; height: 22px; background: var(--accent); clip-path: path("M11 20s-8-5-8-11a4.5 4.5 0 0 1 8-2.8A4.5 4.5 0 0 1 19 9c0 6-8 11-8 11z"); animation: heart-up 2.2s ease-out forwards; opacity: 0; }
@keyframes heart-up { 0% { opacity: 0; transform: translateY(0) scale(.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-260px) scale(1.2) rotate(-12deg); } }
.room-head { display: flex; align-items: center; gap: 12px; }
.goal { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tips { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tip-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-btns .btn { padding: 0 14px; gap: 6px; }
.tips #rm-private { margin-left: auto; }
.room-chat { display: flex; flex-direction: column; gap: 12px; height: min(640px, 78vh); position: sticky; top: 96px; }
.room-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; font-size: 14px; padding-right: 4px; }
.rm-msg { margin: 0; color: var(--text-2); line-height: 1.4; }
.rm-msg strong { color: var(--text); margin-right: 4px; }
.rm-msg.is-tip { color: var(--accent); }
.rm-msg.is-system { color: var(--muted); font-size: 13px; padding: 8px 10px; border-radius: 12px; background: var(--bg); }
.room-composer { display: flex; gap: 8px; }
.room-composer input { flex: 1; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
@media (prefers-reduced-motion: reduce) { .stage img, .live-dot { animation: none; } }
@media (max-width: 960px) { .room-grid { grid-template-columns: minmax(0, 1fr); } .room-chat { position: static; height: 420px; } }

/* ---------- Home: anteprime di Vetrina, Webcam, Storie ---------- */
.teasers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.teaser { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.teaser:hover { color: var(--text); border-color: var(--accent); }
.teaser-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; height: 180px; }
.teaser-tile { overflow: hidden; background: var(--surface-2); }
.teaser-tile img { width: 100%; height: 100%; object-fit: cover; display: block; filter: blur(14px) saturate(1.2); transform: scale(1.2); }
.teaser-body { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px 20px; }
.teaser-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: #3A1230; color: var(--accent); }
.teaser-ico .ms { font-variation-settings: 'FILL' 1; }
@media (max-width: 960px) { .teasers { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Pannello di accesso per le sezioni riservate ---------- */
body.is-gated main, body.is-gated footer { filter: blur(16px); pointer-events: none; user-select: none; }
.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(10,2,5,.55); }
.gate-card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 80px -20px rgba(0,0,0,.8); text-align: center; }
.gate-card h2 { font-size: 28px; }
.gate-card .eyebrow { color: var(--accent); }
.gate-back { font-size: 14px; color: var(--muted); }

/* ---------- Badge: sempre peso 500, maiuscolo, spaziatura leggera ---------- */
.badge, .badge-grad, .cert, .vt-pill, .live-badge, .ad-cover-tag, .ad-cover-vis, .photo-tag, .logo-tag, .tag-online, .cart-badge, .unread {
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.badge, .cert, .vt-pill, .ad-cover-tag, .ad-cover-vis, .photo-tag, .tag-online { font-size: 11px; }
.badge strong, .ad-cover-tag strong, .ad-cover-tag .muted { font-weight: 500; }

/* ---------- Animazioni: elementi che entrano ed escono morbidi dalla viewport ---------- */
.js .anim { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); will-change: opacity, transform; }
.js .anim.is-in { opacity: 1; transform: none; }
.js .anim.out-up { opacity: 0; transform: translateY(-28px); transition-delay: 0ms; }
.js .anim.out-down { opacity: 0; transform: translateY(28px); transition-delay: 0ms; }

/* Hero: "Esplora." → "Gioca." → "Godi." uno dopo l'altro */
.hero-title .w { display: inline-block; }
.js .hero-title .w { opacity: 0; transform: translateY(.35em) scale(.98); filter: blur(10px); animation: word-in .9s cubic-bezier(.2,.7,.2,1) forwards; }
.js .hero-title .w:nth-of-type(1) { animation-delay: .15s; }
.js .hero-title .w:nth-of-type(2) { animation-delay: .6s; }
.js .hero-title .w:nth-of-type(3) { animation-delay: 1.1s; animation-duration: 1.1s; }
.js .hero-after { opacity: 0; transform: translateY(16px); animation: fade-up .8s ease forwards; animation-delay: 1.7s; }
.js .actions.hero-after { animation-delay: 1.9s; }
@keyframes word-in { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Intro della home (una volta per sessione): titolo e sottotitolo suadenti, poi il resto ---------- */
.intro-play .hero-title .w { opacity: 0; animation-name: word-soft; animation-duration: 2s; animation-timing-function: cubic-bezier(.16,.84,.3,1); animation-fill-mode: forwards; }
.intro-play .hero-title .w:nth-of-type(1) { animation-delay: .4s; }
.intro-play .hero-title .w:nth-of-type(2) { animation-delay: 1.3s; }
.intro-play .hero-title .w:nth-of-type(3) { animation-delay: 2.2s; animation-duration: 2.4s; }
.intro-play p.lead.hero-after { opacity: 0; animation: fade-soft 1.8s cubic-bezier(.16,.84,.3,1) 3.2s forwards; }
@keyframes word-soft { 0% { opacity: 0; transform: translateY(.22em); filter: blur(16px); letter-spacing: .03em; } 60% { filter: blur(2px); } 100% { opacity: 1; transform: none; filter: blur(0); letter-spacing: normal; } }
@keyframes fade-soft { 0% { opacity: 0; transform: translateY(10px); filter: blur(6px); } 100% { opacity: 1; transform: none; filter: blur(0); } }

/* tutto il resto aspetta: navbar dall'alto verso il basso, poi il contenuto */
.intro-play .site-header { opacity: 0; }
.intro-play .site-header .logo, .intro-play .site-header .nav, .intro-play .site-header .header-actions { transform: translateY(-28px); }
.intro-play .actions.hero-after { opacity: 0; animation: none; }
.intro-play .hero-search, .intro-play .search-fab, .intro-play main > section:not(.hero), .intro-play footer { opacity: 0; }
.intro-done .site-header { opacity: 1; transition: opacity 1.1s ease; }
.intro-done .site-header .logo, .intro-done .site-header .nav, .intro-done .site-header .header-actions { transform: none; transition: transform 1.1s cubic-bezier(.16,.84,.3,1); }
.intro-done .site-header .nav { transition-delay: .12s; }
.intro-done .site-header .header-actions { transition-delay: .24s; }
.intro-done .actions.hero-after { animation: fade-up 1s ease .35s forwards; }
.intro-done .hero-search, .intro-done .search-fab, .intro-done main > section:not(.hero), .intro-done footer { opacity: 1; transition: opacity 1.2s ease .45s; }

@media (prefers-reduced-motion: reduce) {
  .js .anim, .js .anim.out-up, .js .anim.out-down { opacity: 1; transform: none; transition: none; }
  .js .hero-title .w, .js .hero-after { opacity: 1; transform: none; filter: none; animation: none; }
}

/* ---------- Profilo pubblico ---------- */
.u-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 4px; color: var(--text-2); font-size: 15px; }
.u-stats strong { color: var(--text); }
.u-bio { position: relative; z-index: 1; margin: 0; padding: 0 36px 28px; color: var(--text-2); font-size: 17px; max-width: 70ch; }
.u-tabs-wrap { margin: 28px 0 20px; }
.u-panel { padding-bottom: 72px; }
.u-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.u-tile { position: relative; aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden; background: var(--surface-2); }
.u-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.u-tile.is-private img { filter: blur(14px); transform: scale(1.15); }
.u-dur { position: absolute; left: 10px; bottom: 10px; z-index: 1; }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars .ms { color: var(--line-2); font-variation-settings: 'FILL' 1; }
.stars .ms.on { color: #F5B544; }
.reviews-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.review-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.rev-avg { font-family: var(--font-display); font-size: 44px; }
.review-list { display: flex; flex-direction: column; gap: 14px; }
.review { display: flex; gap: 12px; padding: 18px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); }
.review .ad-avatar { width: 44px; height: 44px; flex-shrink: 0; }
.review .ad-avatar img { width: 100%; height: 100%; object-fit: cover; }
.review-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review p { margin: 6px 0; color: var(--text-2); }
.review-box { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.rev-form { display: flex; flex-direction: column; gap: 14px; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input legend { width: 100%; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; }
.star-input label .ms { color: var(--line-2); font-variation-settings: 'FILL' 1; transition: color .15s, transform .15s; }
.star-input input:checked ~ label .ms, .star-input label:hover .ms, .star-input label:hover ~ label .ms { color: #F5B544; }
.star-input input:focus-visible + label .ms { transform: scale(1.15); }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: minmax(0, 1fr); } .review-box { position: static; } }

/* ---------- Last (24 ore) ---------- */
#pub-mode { margin-top: 8px; align-self: flex-start; }
.last-preview { position: relative; aspect-ratio: 9 / 16; max-height: 640px; border-radius: 32px; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; color: #fff; }
.last-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.last-preview::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 25%, rgba(0,0,0,0) 60%, rgba(0,0,0,.7)); }
.lp-head { position: absolute; z-index: 1; top: 16px; left: 16px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.lp-head .last-img { width: 32px; height: 32px; border-radius: 999px; overflow: hidden; }
.lp-text { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 24px; font-family: var(--font-display); font-size: 24px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.last-strip { margin: 4px 0 24px; }
.last-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.last-row::-webkit-scrollbar { display: none; }
.last-item { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 76px; flex-shrink: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-decoration: none; }
.last-ring { position: relative; width: 72px; height: 72px; border-radius: 999px; padding: 3px; background: var(--grad); }
.last-item.is-seen .last-ring { background: var(--line-2); }
.last-mine .last-ring { background: var(--line); }
.last-av { display: block; width: 100%; height: 100%; border-radius: 999px; border: 3px solid var(--bg); overflow: hidden; }
.last-img { display: grid; place-items: center; width: 100%; height: 100%; background: var(--surface-2); }
.last-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.last-plus { position: absolute; right: -2px; bottom: -2px; width: 24px; height: 24px; border-radius: 999px; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 600; border: 3px solid var(--bg); line-height: 1; }
.last-name { font-size: 12px; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.last-viewer { width: min(420px, 100%); height: min(760px, 100dvh); max-height: 100dvh; padding: 0; border: 0; border-radius: 32px; overflow: hidden; background: #000; color: #fff; position: fixed; }
.last-viewer::backdrop { background: rgba(5,1,3,.92); }
.lv-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.last-viewer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 65%, rgba(0,0,0,.75)); pointer-events: none; }
.lv-bars { position: absolute; z-index: 3; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; }
.lv-bars span { flex: 1; height: 3px; border-radius: 999px; background: rgba(255,255,255,.3); overflow: hidden; }
.lv-bars span i { display: block; height: 100%; width: 0; background: #fff; }
.lv-bars span.done i { width: 100%; }
.lv-bars span.now i { animation: lv-fill 5s linear forwards; }
@keyframes lv-fill { to { width: 100%; } }
.lv-head { position: absolute; z-index: 3; top: 24px; left: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; }
.lv-who { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 14px; }
.lv-who .last-img { width: 36px; height: 36px; border-radius: 999px; overflow: hidden; }
.lv-who .muted { color: rgba(255,255,255,.7); }
.lv-text { position: absolute; z-index: 3; left: 20px; right: 20px; bottom: 84px; margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.lv-nav { position: absolute; z-index: 2; top: 0; bottom: 80px; width: 40%; border: 0; background: transparent; cursor: pointer; }
.lv-prev { left: 0; } .lv-next { right: 0; }
.lv-reply { position: absolute; z-index: 3; left: 12px; right: 12px; bottom: 16px; display: flex; gap: 8px; }
.lv-reply input { flex: 1; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(0,0,0,.3); color: #fff; font: inherit; font-size: 16px; }
.lv-reply input::placeholder { color: rgba(255,255,255,.75); }
.lv-reply .btn { color: #fff; border-color: rgba(255,255,255,.5); width: 48px; min-height: 48px; }
@media (prefers-reduced-motion: reduce) { .lv-bars span.now i { animation: none; width: 100%; } }

/* ---------- Chat: proponi eventi, luoghi, shop ---------- */
.chat-aside { gap: 20px; }
.prop-panel { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.prop-tabs { width: 100%; }
.prop-tabs button { padding: 0 8px; min-height: 38px; }
.prop-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow-y: auto; padding-right: 2px; }
.drawer .prop-list { max-height: none; }
.prop-item { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 20px; background: var(--bg); border: 1px solid var(--line); }
.prop-item img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.prop-item .contact-text { flex: 1; font-size: 14px; }
.prop-item .btn-sm { padding: 0 10px; min-height: 32px; }
.prop-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); width: 100%; }
.msg.mine .prop-card { border-color: var(--accent); background: #2A0C16; }
.prop-card img { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; flex-shrink: 0; }
.safety summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.safety[open] { display: flex; flex-direction: column; gap: 10px; }
.prop-btn { display: none; }

/* ---------- Select: freccia personalizzata, più lontana dal bordo ---------- */
select, .field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23BC9DA8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 14px 14px;
  padding-right: 48px;
}
select::-ms-expand { display: none; }


/* ---------- Profilo: azione "Verifica il profilo" se la verifica non è completa ---------- */
.badge-todo { background: var(--surface-2); color: var(--text-2); border: 1px dashed var(--line-2); }
.verify-cta { margin-top: 20px; display: flex; align-items: center; gap: 20px; padding: 22px 26px; border-radius: 36px; border: 1px solid rgba(214,30,82,.55); background: #3A1230; }
.verify-cta[hidden] { display: none; }
.verify-cta-ico { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: var(--grad); color: #fff; }
.verify-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.verify-cta-text h2 { font-size: 24px; }
.verify-cta-text .muted { color: #F4C9D6; font-size: 15px; max-width: 640px; margin: 0; }
.verify-cta-progress { margin: 4px 0 0; font-size: 14px; font-weight: 600; color: #fff; }
.verify-cta .btn { flex: 0 0 auto; }
@media (max-width: 720px) {
  .verify-cta { flex-direction: column; align-items: flex-start; padding: 20px; border-radius: 28px; gap: 14px; }
  .verify-cta .btn { width: 100%; }
}

/* ---------- Verifica dell'età (doppio anonimato) ---------- */
.steps li.current { color: var(--text); }
.steps li.current .n { border-color: #D61E52; color: var(--text); box-shadow: 0 0 0 4px rgba(214,30,82,.18); }
.dbl-anon { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 32px; background: rgba(32,10,17,.6); }
.dbl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.dbl-steps li { display: flex; gap: 14px; align-items: flex-start; }
.dbl-steps li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.dbl-steps .muted { font-size: 14px; }
.dbl-ico { flex: 0 0 28px; height: 28px; border-radius: 999px; background: var(--surface-2); color: var(--accent); display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.verify-head { display: flex; flex-direction: column; gap: 8px; }
.verify-head h2, .verify-head p { margin: 0; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.person { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 28px; background: var(--bg); }
.person.is-ok { border-color: rgba(214,30,82,.55); }
.person-ico { flex: 0 0 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-weight: 600; }
.person.is-ok .person-ico { background: var(--grad); color: #fff; }
.person.is-ok .person-ico .ms { font-size: 20px; }
.person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.person-text .muted { font-size: 14px; }
.badge-opt { padding: 18px; border: 1px dashed var(--line-2); border-radius: 28px; }
#v-continue:disabled { opacity: .5; cursor: not-allowed; filter: grayscale(.3); }
#v-later { align-self: center; }
.verify-sheet .sheet-body { gap: 16px; }
.provider-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.provider-bar > span:nth-child(2) { flex: 1; }
.provider-logo { width: 36px; height: 36px; border-radius: 12px; background: #1F5FBF; color: #fff; display: grid; place-items: center; font-weight: 700; }
.method-list { display: flex; flex-direction: column; gap: 10px; }
.method { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 18px; text-align: left; border: 1px solid var(--line); border-radius: 24px; background: var(--bg); color: var(--text); font: inherit; cursor: pointer; }
.method:hover, .method:focus-visible { border-color: #D61E52; }
.method .muted { font-size: 14px; }
.verify-wait, .verify-ok { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 18px 0; }
.spinner { width: 40px; height: 40px; border-radius: 999px; border: 3px solid var(--line); border-top-color: #D61E52; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok-ico { width: 56px; height: 56px; border-radius: 999px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.token { font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* ==========================================================
   MOBILE (≤ 720px)
   ========================================================== */
@media (max-width: 720px) {
  body { font-size: 16px; }
  h1 { font-size: clamp(34px, 10vw, 44px); }
  .section { padding-block: 44px; }

  /* Header compatto e fisso in alto */
  .site-header { position: sticky; top: 0; flex-wrap: nowrap; gap: 12px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); }
  .logo { font-size: 22px; }
  .header-actions .btn { min-height: 40px; padding: 0 14px; }

  /* Header pubblico e Business: menu a tendina */
  .menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; order: 2; }
  .menu-toggle path { transition: transform .25s, opacity .2s; transform-origin: 12px 12px; }
  .menu-open .menu-toggle .mt-top { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-toggle .mt-mid { opacity: 0; }
  .menu-open .menu-toggle .mt-bot { transform: translateY(-5px) rotate(-45deg); }
  .site-header > .header-actions { order: 1; margin-left: auto; }
  .site-header:has(.menu-toggle) .header-actions .btn-ghost { display: none; }
  .site-header:has(.menu-toggle) .header-actions { margin-left: auto; }
  body.business .site-header .header-actions { display: none; }
  .logo-tag { font-size: 10px; padding: 4px 8px; }
  .site-header:has(.menu-toggle) .menu-toggle { margin-left: 0; }
  #site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: rgba(20,6,10,.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
  .menu-open #site-menu { display: flex; animation: menu-in .2s ease; }
  #site-menu a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 18px; }
  #site-menu .menu-only { display: block; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } }

  /* Utente loggato: navigazione a icone come tab bar in basso */
  .nav-icons { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; justify-content: space-around; gap: 0; padding: 6px 8px; padding-bottom: max(6px, env(safe-area-inset-bottom)); background: rgba(20,6,10,.94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .nav .nav-icon { width: 64px; height: 56px; border-radius: 16px; grid-template-rows: 1fr auto; padding-top: 6px; }
  .nav .nav-icon:hover { background: none; }
  .nav-tip { position: static; opacity: 1; visibility: visible; transform: none; background: none; color: inherit; padding: 0; font-size: 11px; }
  .nav-dot { top: 6px; right: 16px; }
  .nav .nav-add { display: grid; }
  body:has(.nav-icons) { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* backdrop-filter crea un contenitore per i figli "fixed": su questi header lo togliamo, così la tab bar si aggancia allo schermo */
  .site-header:has(.nav-icons) { backdrop-filter: none; background: rgba(20,6,10,.97); }
  .tag-online { font-size: 0; gap: 0; padding: 6px; }
  .tag-online .online-dot { width: 14px; height: 14px; }

  /* Filtri a pillola: una riga che scorre in orizzontale */
  .chips[role="group"] { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 8px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips[role="group"]::-webkit-scrollbar { display: none; }
  .chips[role="group"] .pill { flex-shrink: 0; scroll-snap-align: start; }

  /* Home */
  .hero { padding-block: 32px 24px; gap: 32px; }
  .hero-copy { gap: 18px; }
  .lead { font-size: 17px; }
  .hero-search { max-width: none; padding: 20px; }
  .actions .btn-lg { flex: 1 1 100%; }
  .grid-cats { grid-template-columns: 1fr 1fr; }
  .cat-link { min-height: 56px; padding: 0 14px; font-size: 14px; }
  .online-item { flex-basis: 140px; }
  .online-item .photo { height: 140px; }
  .regions { grid-template-columns: 1fr 1fr; }
  .come-funziona { padding-block: 56px 64px; }
  .cf-head { margin-bottom: 40px; }
  .cf-demo { min-height: 0; padding: 18px; }
  .cf-detail { padding: 20px; }

  /* Card e griglie */
  .grid-3 { grid-template-columns: 1fr; }
  .card { padding: 20px; }
  .ad.has-cover .ad-body, .ad.latest .ad-body { padding: 20px; }
  .profile-card, .place, .product, .ad.has-cover, .ad.latest { padding: 0; }
  .section-head h1, .section-head h2 { flex-basis: 100%; }

  /* Cerca: filtri a scomparsa */
  .with-sidebar { padding-block: 20px 64px; gap: 16px; }
  .filters-toggle { display: inline-flex; width: 100%; }
  .sidebar { display: none; }
  .sidebar.is-open { display: flex; }
  .grid-profiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .profile-card .photo { height: 150px; font-size: 36px; }
  .profile-card .body { padding: 12px; }
  .profile-card .row .btn-primary { padding: 0 10px; }

  /* Messaggi: lista oppure conversazione */
  .chat { display: block; min-height: 0; }
  .chat-list { max-width: none; border: 0; padding: 16px 8px; }
  .chat-aside { display: none; }
  .thread { display: none; min-height: calc(100dvh - 64px - 76px); }
  .chat.show-thread .chat-list { display: none; }
  .chat.show-thread .thread { display: flex; }
  .thread-back { display: inline-flex; }
  .thread-head { padding: 10px 12px; gap: 10px; position: sticky; top: 64px; background: var(--bg); z-index: 5; }
  .thread-head #thread-link { min-height: 36px; padding: 0 12px; font-size: 12px; }
  .thread-body { padding: 16px 12px; }
  .thread-head > span { min-width: 0; }
  #thread-name, #thread-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
  #thread-name { font-size: 16px !important; }
  #thread-sub { font-size: 13px; }
  .msg { max-width: 86%; }
  .composer { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg); padding: 10px 12px; }

  /* Profilo */
  .profile-hero { margin-top: 16px; border-radius: 32px; }
  .profile-cover { height: 120px; }
  .profile-info { padding: 0 20px 20px; margin-top: -48px; gap: 16px; }
  .profile-avatar { width: 96px; height: 96px; font-size: 32px; }
  .profile-info .actions { width: 100%; }
  .profile-info > div { min-width: 0; }
  .profile-info .actions .btn { flex: 1; }

  /* Iscrizione */
  .signup { padding-block: 28px 64px; gap: 28px; }
  .signup-form { padding: 20px; }
  .signup-intro h1 { font-size: 36px !important; }
  body[data-page="verifica"] .signup-intro { display: contents; }
  body[data-page="verifica"] .signup-intro > h1 { order: 1; } body[data-page="verifica"] .signup-intro > .lead { order: 2; } body[data-page="verifica"] .signup-intro > .steps { order: 3; }
  body[data-page="verifica"] .signup-form { order: 4; } body[data-page="verifica"] .dbl-anon { order: 5; }
  .badge-opt strong { flex-wrap: wrap; }
  .dbl-anon { padding: 18px; }

  /* Annuncio singolo e scheda */
  .detail-cover .ad-cover { aspect-ratio: 4 / 3; border-radius: 32px; }
  .author { position: static; }
  .two-col { padding-block: 20px 64px; gap: 24px; }
  .gallery { border-radius: 32px; }

  /* Pubblica */
  .pub { padding-block: 24px 64px; }
  .pub-form { padding: 20px; gap: 24px; }
  .pub-side { order: 0; }
  .samples { grid-template-columns: 1fr 1fr; }
  .dropzone { padding: 16px; }

  /* Shop e prenotazione */
  .shop-grid .grid-3 { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 14px; }
  .product-body h3 { font-size: 16px; }
  .product-body .ad-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .product-body .muted { font-size: 13px; }
  .cartbar:not([hidden]) { display: flex; position: fixed; z-index: 29; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); justify-content: space-between; align-items: center; padding: 14px 20px; border-radius: 999px; background: var(--grad); color: #fff; text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0,0,0,.7); }
  .pren { padding-block: 24px 64px; gap: 32px; }
  .pren-done { flex-direction: column; padding: 20px; }
  .extra { padding: 16px; border-radius: 24px; gap: 12px; }

  /* Dashboard: menu laterale diventa una riga che scorre */
  .dash-side { flex-basis: 100%; flex-direction: row; align-items: center; gap: 12px; padding: 10px 0 10px 16px; position: sticky; top: 0; z-index: 10; background: rgba(20,6,10,.95); backdrop-filter: blur(10px); overflow: hidden; }
  .dash-side > span { flex-shrink: 0; padding: 0 !important; }
  .dash-side .logo { font-size: 20px !important; }
  .dash-side nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-right: 16px; scrollbar-width: none; }
  .dash-side nav::-webkit-scrollbar { display: none; }
  .dash-side nav a { flex-shrink: 0; min-height: 40px; padding: 0 12px; white-space: nowrap; }
  .dash-main { padding: 24px 16px 64px; }
  .plans { flex-direction: column; }

  /* Pillole e chip: sempre su una riga che scorre in orizzontale, come le card */
  .chips:not(.chips-wrap), .grid-cats { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: -20px; padding: 2px 20px 8px; gap: 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chips:not(.chips-wrap)::-webkit-scrollbar, .grid-cats::-webkit-scrollbar { display: none; }
  .chips:not(.chips-wrap) > *, .grid-cats > * { flex-shrink: 0; scroll-snap-align: start; white-space: nowrap; }
  .grid-cats .cat-link { min-height: 48px; padding: 0 18px; border-radius: 999px; }
  .card .chips:not(.chips-wrap) { margin-inline: -20px; padding-inline: 20px; }
  /* I chip dei dettagli vanno a capo: devono essere tutti visibili per provare l'interazione */
  .detail-chips { flex-wrap: wrap; gap: 8px; }
  .detail-chip { min-height: 40px; padding: 0 14px; font-size: 14px; gap: 8px; }
  .detail-chip .k { font-size: 11px; }

  /* Card di coupon/servizi: anche queste scorrono in orizzontale */
  .offers { display: flex; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 10px; gap: 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .offers::-webkit-scrollbar { display: none; }
  .offers > .offer { flex: 0 0 78%; scroll-snap-align: start; }
  .event-day { width: 56px; font-size: 17px; }
  .coupon-back { display: none; }
  .coupon-demo { min-height: 0; padding: 12px 0; }
  .validate .btn { flex: 1; }

  /* Home: la ricerca rapida diventa una barra fissa che apre il pannello */
  .hero-search { display: none; }
  .search-fab { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); padding: 8px 10px 8px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(32,10,17,.92); backdrop-filter: blur(14px); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: 0 16px 40px -12px rgba(0,0,0,.8); }
  .search-fab-ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 999px; display: grid; place-items: center; background: var(--grad); color: #fff; }
  .search-fab-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
  .search-fab-text strong { font-weight: 600; font-size: 15px; }
  .search-fab-text span { font-size: 13px; color: var(--muted); }
  .search-fab-text > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-fab-edit { width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
  body[data-page="home"] { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .sheet-open body { overflow: hidden; }

  .bottom-sheet { margin: auto 0 0; max-width: none; max-height: none; transition: transform .22s ease; }
  .bottom-sheet[open] { animation: bs-up .3s cubic-bezier(.2,.8,.2,1); }
  .bottom-sheet.is-closing { animation: bs-down .22s ease forwards; }
  .bs-form { border-radius: 32px 32px 0 0; border-bottom: 0; max-height: 92dvh; }
  @keyframes bs-up { from { transform: translateY(100%); } }
  @keyframes bs-down { to { transform: translateY(100%); } }
  @media (prefers-reduced-motion: reduce) { .bottom-sheet[open], .bottom-sheet.is-closing { animation: none; } }

  /* Già presente nella barra in alto: in hero non serve */
  .hide-mobile { display: none !important; }

  /* Ultimi annunci e annunci simili: card che scorrono in orizzontale */
  .grid-scroll { display: flex; overflow-x: auto; overscroll-behavior-x: contain; margin-inline: -20px; padding: 2px 20px 12px; gap: 12px; scrollbar-width: none; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; }
  .grid-scroll::-webkit-scrollbar { display: none; }
  .grid-scroll > * { flex: 0 0 82%; scroll-snap-align: start; }
  .grid-scroll .ad-cover { aspect-ratio: 16 / 10; }

  /* Annunci per regione: su mobile select + bottone al posto dell'elenco */
  .regions { display: none; }
  .region-form { display: flex; flex-direction: column; gap: 14px; }
  .region-form .field { font-size: 15px; color: var(--text-2); }
  .region-form select { min-height: 56px; font-size: 17px; }

  /* Puoi / Non trovi: affiancati anche su mobile, in versione compatta */
  .cf-dos { gap: 8px; }
  .cf-dos .card { padding: 16px 14px; border-radius: 28px; }
  .cf-dos h4 { font-size: 18px; margin-bottom: 12px; }
  .cf-dos .cf-list { gap: 12px; }
  .cf-dos .cf-list li { gap: 8px; font-size: 14px; line-height: 1.35; }
  .cf-dos .cf-list .ico { width: 22px; height: 22px; }
  .cf-dos .cf-list .ico .ms { font-size: 12px; }

  .home-tabs { display: flex; width: 100%; margin-bottom: 20px; }
  .home-tabs button { flex: 1; }
  .event-card .ad-foot .btn { flex-shrink: 0; }

  /* Carrello su mobile: pannello dal basso (drawer) */
  .drawer { inset: auto 0 0 0; height: fit-content; max-height: 88dvh; width: 100%; transition: transform .22s ease; }
  .drawer-panel { height: auto; max-height: 88dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: 32px 32px 0 0; }
  .drawer-head { padding: 10px 20px 4px; touch-action: none; }
  .drawer-head .bs-handle { display: block; }
  .drawer-body { padding: 8px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .drawer[open] { animation: bs-up .3s cubic-bezier(.2,.8,.2,1); }
  .drawer.is-closing { animation: bs-down .22s ease forwards; }
  .site-header .cart-btn { width: 40px; height: 40px; }

  /* Storie */
  .stories { padding-block: 24px 64px; gap: 28px; }
  .stories-actions, .stories-search { width: 100%; }
  .stories-actions .btn { width: 100%; }
  .collection { padding: 16px 0 12px 16px; border-radius: 28px; overflow: hidden; }
  .collection .chips { margin-inline: 0 !important; padding-left: 0 !important; }
  .stories-toolbar .home-tabs { width: 100%; }
  .stories-toolbar .home-tabs button { padding: 0 8px; }
  .story-card h3 { font-size: 21px; }
  .story-meta { flex-wrap: wrap; }
  .write { padding: 20px; }
  .write-form { grid-template-columns: minmax(0, 1fr); }
  .write-form > * { grid-column: 1 / -1 !important; }
  .write-actions .btn { flex: 1; }
  .story-body { font-size: 18px; }
  .story-actions .btn { flex: 1 1 40%; }

  .story-card.has-img { grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; gap: 0; }
  .story-card.has-img .story-img { aspect-ratio: 16 / 9; border-radius: 0; }
  .story-card.has-img .story-text { padding: 18px 20px 20px; }
  .story-hero { aspect-ratio: 4 / 3; border-radius: 28px; }

  .share-btn { width: 44px; height: 44px; }
  .composer { gap: 8px; }

  /* Navigazione solo icone anche su mobile: tab bar senza etichette */
  .nav-icons .nav-tip { display: none; }
  .nav-icons, .nav-rail { flex-wrap: nowrap; }
  .nav .nav-icon { height: 52px; padding-top: 0; grid-template-rows: none; }
  .nav-icons .nav-icon .ms { font-size: 26px; }
  .nav-dot { top: 10px; right: 18px; }
  .nav-icons.nav-solo { position: static; padding: 0; background: none; border: 0; backdrop-filter: none; justify-content: flex-end; }
  .nav-icons.nav-solo .nav-icon { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; }
  body:has(.nav-solo) { padding-bottom: 0; }
  /* la barra di ricerca della home sta sopra la tab bar */
  body:has(.nav-icons) .search-fab { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body[data-page="home"] { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  /* area aziende: rail in riga che scorre */
  .dash-side { flex: 1 1 100%; flex-direction: row; padding: 8px 0 8px 12px; gap: 8px; height: auto; overflow: hidden; }
  .logo-mini { width: 40px; height: 40px; flex-shrink: 0; font-size: 22px; }
  .nav-rail { flex-direction: row; overflow-x: auto; gap: 4px; padding-right: 12px; scrollbar-width: none; }
  .nav-rail::-webkit-scrollbar { display: none; }
  .nav-rail .nav-icon { width: 46px; height: 46px; flex-shrink: 0; }
  .nav-rail .nav-tip { display: none; }

  /* Vetrina */
  .vetrina { padding-block: 24px 64px; gap: 36px; }
  .creators.grid-scroll { display: flex; }
  .creators.grid-scroll > * { flex: 0 0 80%; }
  .vt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .vt-tile { border-radius: 20px; }
  .vt-foot { font-size: 12px; }
  .creator-cta { padding: 20px; }

  /* Webcam */
  .webcam { padding-block: 24px 64px; gap: 36px; }
  .stories-actions .wallet { flex: 1; }
  .wallet .wallet-add { margin-left: auto; }
  .wc-grid { grid-template-columns: minmax(0, 1fr); }
  .wc-next { grid-template-columns: minmax(0, 1fr); }
  .stage { border-radius: 24px; aspect-ratio: 4 / 3; }
  .tips #rm-private { margin-left: 0; width: 100%; }
  .tips .wallet { width: 100%; }
  .nav-icons .nav-icon { width: 50px; }

  .teasers { display: flex; overflow-x: auto; margin-inline: -20px; padding: 2px 20px 10px; gap: 12px; scrollbar-width: none; scroll-snap-type: x mandatory; }
  .teasers::-webkit-scrollbar { display: none; }
  .teasers > .teaser { flex: 0 0 84%; scroll-snap-align: start; }
  .teaser-tiles { height: 150px; }
  .gate { padding: 16px; align-items: end; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .gate-card { padding: 24px; }

  /* Scheda struttura: barra di prenotazione fissa + modulo che si apre dal basso */
  .book-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; z-index: 28; left: 0; right: 0; bottom: calc(65px + env(safe-area-inset-bottom)); padding: 12px 16px; background: rgba(32,10,17,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .book-bar-text { font-size: 14px; line-height: 1.3; color: var(--text-2); white-space: nowrap; }
  .book-bar-text strong { font-size: 18px; color: var(--text); }
  .book-bar .btn { flex-shrink: 0; padding: 0 18px; }
  body:has(.book-bar) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .book-backdrop { position: fixed; inset: 0; z-index: 39; background: rgba(10,2,5,.6); backdrop-filter: blur(3px); }
  .book-form { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; margin: 0; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; border-radius: 32px 32px 0 0 !important; padding: 10px 20px max(20px, env(safe-area-inset-bottom)) !important; transform: translateY(105%); transition: transform .3s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
  .book-form.is-open { transform: none; visibility: visible; }
  .book-handle { display: block; margin: 0 auto -6px; }
  .book-close { display: grid; }
  .book-head { touch-action: none; }

  .u-bio { padding: 0 20px 20px; font-size: 16px; }
  .u-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .u-tile { border-radius: 12px; }
  .u-tabs { width: 100%; }
  .u-tabs button { padding: 0 6px; }

  .last-viewer { width: 100%; height: 100dvh; border-radius: 0; }
  .last-row { margin-inline: -20px; padding-inline: 20px; }

  .prop-btn { display: inline-flex; }
  .composer { gap: 6px; }
  .composer .share-btn { width: 40px; height: 40px; }
}


/* ---------- In viaggio (non monogamia geografica) ---------- */
.trip-page { padding-block: 48px 0; }
.trip-intro { display: flex; flex-direction: column; gap: 12px; }
.trip-intro h1 { font-size: clamp(36px, 6vw, 52px); max-width: 16ch; }
.trip-card { display: flex; flex-direction: column; gap: 22px; }
.trip-card-head { display: flex; gap: 16px; align-items: flex-start; }
.trip-card-head h2 { font-size: 26px; }
.trip-card-head p { margin: 4px 0 0; }
.trip-form { display: flex; flex-direction: column; gap: 18px; }
.trip-form .field select { width: 100%; }
.trip-who { display: flex; flex-direction: column; gap: 10px; }
.trip-preview { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 24px; background: var(--bg); border: 1px dashed var(--line-2); }
.trip-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: #3A1230; color: var(--accent); font-size: 14px; font-weight: 500; }
.trip-badge-lg { font-size: 17px; padding: 10px 18px; background: var(--grad); color: #fff; }
.trip-error { margin: 0; min-height: 0; color: var(--accent); font-size: 14px; }
.trip-error:empty { display: none; }
.trip-form > .btn { align-self: flex-start; }
.trip-active { display: flex; flex-direction: column; gap: 18px; }
.trip-active[hidden], .trip-form[hidden] { display: none; }
.trip-facts, .trip-privacy { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.trip-facts li, .trip-privacy li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.trip-facts .ms, .trip-privacy .ms { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.trip-privacy li { font-size: 15px; }
.trip-profile .tag-online { gap: 4px; }
.trip-deals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.trip-deal { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.trip-lasts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.trip-last-item { padding: 0; overflow: hidden; display: flex; gap: 0; border-radius: 28px; }
.trip-last-img { flex: 0 0 104px; background: var(--surface-2); }
.trip-last-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.trip-last-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.trip-last-body .cat-label { display: inline-flex; align-items: center; gap: 4px; }
.trip-pending { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 12px 14px; border-radius: 18px; background: #3A1230; color: var(--text); font-size: 13px; }
.trip-pending[hidden] { display: none; }
.trip-pending .ms { color: var(--accent); margin-top: 1px; flex-shrink: 0; }
#locali-trip[hidden] { display: none; }
.profile-trip { display: flex; flex-direction: column; gap: 10px; }
.profile-trip .trip-deals { margin-top: 0; }
