/* CHABEL — tema lusso nero/oro */
:root {
  --bg: #0b0a08;
  --bg-2: #12100c;
  --card: #15120d;
  --gold: #d4af37;
  --gold-soft: #e9cd7a;
  --gold-deep: #9a7b24;
  --ivory: #f6f0e1;
  --muted: #a89e88;
  --border: rgba(212, 175, 55, 0.22);
  --danger: #e26d5a;
  --ok: #7fc98a;
  --radius: 14px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 15% 0%, rgba(212, 175, 55, 0.07), transparent 60%),
    radial-gradient(800px 500px at 90% 30%, rgba(212, 175, 55, 0.05), transparent 60%);
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3, .display { font-family: var(--font-display); font-weight: 500; line-height: 1.15; }

a { color: var(--gold-soft); text-decoration: none; }
a:hover { color: var(--gold); }

::selection { background: rgba(212, 175, 55, 0.35); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(1120px, 92%); margin: 0 auto; }

/* ---------- navigazione ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 10, 8, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: 0.28em;
  color: var(--ivory);
  font-weight: 600;
}
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--ivory); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--ivory); padding: 8px 12px; font-size: 1.1rem; cursor: pointer; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  min-height: 48px;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep));
  color: #1a1405;
  box-shadow: 0 6px 24px rgba(212, 175, 55, 0.28);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4); color: #1a1405; }
.btn-ghost { border-color: var(--border); color: var(--ivory); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-sm { padding: 9px 20px; min-height: 42px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 20px;
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 18ch; margin: 0 auto 22px; }
.hero h1 em { color: var(--gold-soft); font-style: italic; }
.hero p.lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 36px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-points {
  display: flex;
  gap: 34px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  color: var(--muted);
  font-size: 0.95rem;
}
.hero-points span { display: inline-flex; align-items: center; gap: 9px; }
.hero-points svg { width: 18px; height: 18px; stroke: var(--gold); flex: none; }

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: scroll 28s linear infinite;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; }
.marquee-track > span { padding-right: 56px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- sezioni ---------- */
section.block { padding: 88px 0; }
.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
section.block h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 16px; max-width: 22ch; }
section.block .sub { color: var(--muted); max-width: 64ch; margin-bottom: 44px; font-size: 1.05rem; }
.center { text-align: center; }
.center h2, .center .sub { margin-left: auto; margin-right: auto; }

/* ---------- card offerta ---------- */
.price-hero {
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.02) 55%), var(--card);
  padding: 52px 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  box-shadow: 0 18px 60px rgba(212, 175, 55, 0.12);
}
.price-hero .amount { font-family: var(--font-display); font-size: clamp(3.4rem, 7vw, 5rem); color: var(--gold-soft); line-height: 1; }
.price-hero .once { letter-spacing: 0.24em; text-transform: uppercase; font-size: 0.82rem; color: var(--muted); margin-top: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: rgba(212, 175, 55, 0.08);
}
.card .icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.card p, .card li { color: var(--muted); font-size: 0.98rem; }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.card ul li { display: flex; gap: 10px; align-items: flex-start; }
.card ul li svg { width: 16px; height: 16px; stroke: var(--gold); flex: none; margin-top: 5px; }
.card .svc-price { font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); margin-top: 18px; }
.card .svc-note { font-size: 0.85rem; color: var(--muted); margin-top: 4px; }
.pack-note { text-align: center; margin-top: 28px; color: var(--ivory); font-size: 1.02rem; }
.pack-note strong { color: var(--gold-soft); }
.note-24 {
  margin-top: 34px;
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  background: rgba(212, 175, 55, 0.06);
  border-radius: 0 12px 12px 0;
  color: var(--ivory);
  font-size: 1rem;
  max-width: 760px;
}
.note-24 strong { color: var(--gold-soft); }

/* ---------- step ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  position: relative;
  padding: 36px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}
.step .num {
  font-family: var(--font-display);
  font-size: 3.2rem;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---------- stili settore ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.style-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.style-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.style-visual {
  height: 150px;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 50% 120%, rgba(212, 175, 55, 0.22), transparent 65%),
    linear-gradient(160deg, #1d1811, #0e0c09);
}
.style-visual svg { width: 54px; height: 54px; stroke: var(--gold-soft); fill: none; stroke-width: 1.3; }
.style-card .body { padding: 22px 20px; }
.style-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.style-card p { color: var(--muted); font-size: 0.92rem; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.faq-q {
  width: 100%;
  background: none; border: none;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  padding: 20px 22px;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .plus { color: var(--gold); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease; flex: none; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { padding: 0 22px 22px; color: var(--muted); }

/* ---------- CTA finale / footer ---------- */
.final-cta {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--border);
  background: radial-gradient(700px 320px at 50% 100%, rgba(212, 175, 55, 0.1), transparent 70%);
}
.final-cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-bottom: 16px; }
.final-cta p { color: var(--muted); margin-bottom: 32px; }
footer {
  border-top: 1px solid var(--border);
  padding: 34px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- form auth ---------- */
.auth-page { min-height: 100svh; display: flex; flex-direction: column; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 48px 0; }
.auth-card {
  width: min(440px, 92%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 44px 38px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.auth-card h1 { font-size: 2.1rem; margin-bottom: 8px; text-align: center; }
.auth-card .hint { color: var(--muted); text-align: center; margin-bottom: 28px; font-size: 0.95rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 8px; color: var(--ivory); }
.field input, .field select, .field textarea {
  width: 100%;
  background: #0e0c09;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ivory);
  padding: 13px 15px;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 130px; resize: vertical; }
.field .help { font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.form-error {
  display: none;
  background: rgba(226, 109, 90, 0.12);
  border: 1px solid rgba(226, 109, 90, 0.5);
  color: #f0a898;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.94rem;
}
.form-error.show { display: block; }
.form-ok {
  display: none;
  background: rgba(127, 201, 138, 0.1);
  border: 1px solid rgba(127, 201, 138, 0.45);
  color: #b9e4c1;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.94rem;
}
.form-ok.show { display: block; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.85rem; margin: 24px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.btn-google {
  width: 100%;
  background: #fff;
  color: #1a1a1a;
  border: none;
}
.btn-google:hover { color: #1a1a1a; background: #f1ede2; transform: translateY(-2px); }
.btn-google svg { width: 20px; height: 20px; }
.auth-switch { text-align: center; margin-top: 24px; color: var(--muted); font-size: 0.94rem; }

/* ---------- area personale ---------- */
.area-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 40px 0 8px; flex-wrap: wrap; }
.area-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.user-chip { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.95rem; }
.area-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 32px 0 64px; }
.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.panel h2 { font-size: 1.7rem; margin-bottom: 6px; }
.panel .desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.panel.full { grid-column: 1 / -1; }
.contact-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--border); }
.contact-row:first-of-type { border-top: none; }
.contact-row .icon { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; background: rgba(212,175,55,0.08); flex: none; }
.contact-row .icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.7; }
.contact-row .label { font-size: 0.82rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.contact-row .value { font-size: 1.12rem; font-weight: 600; }
.privacy-note { margin-top: 18px; font-size: 0.85rem; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 16px; }
.file-input {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.file-input:hover { border-color: var(--gold); }
.file-input input { display: none; }
.file-list { margin-top: 12px; display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }

/* ---------- richieste ---------- */
.req-list { display: grid; gap: 14px; }
.req {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  background: #100e0a;
}
.req-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.req-type { font-family: var(--font-display); font-size: 1.25rem; }
.req-date { font-size: 0.82rem; color: var(--muted); }
.req-desc { color: var(--muted); font-size: 0.95rem; white-space: pre-wrap; }
.req-files { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.req-files a { font-size: 0.85rem; border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; }
/* Galleria foto richieste (admin) + lightbox */
.req-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.req-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease; }
.req-thumb:hover { transform: scale(1.06); border-color: var(--gold); }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.lightbox .lb-img { max-width: 90vw; max-height: 84vh; border-radius: var(--radius); border: 1px solid var(--gold); box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6); }
.lightbox button { position: absolute; background: rgba(11, 10, 8, 0.75); color: var(--gold); border: 1px solid var(--border); border-radius: 50%; width: 48px; height: 48px; font-size: 1.6rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox button:hover { background: var(--gold); color: #0b0a08; }
.lb-close { top: 20px; right: 24px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.badge {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.badge.ricevuta { color: var(--gold-soft); border-color: var(--gold); background: rgba(212,175,55,0.08); }
.badge.in-lavorazione { color: #9ecfff; border-color: #5b9bd5; background: rgba(91,155,213,0.1); }
.badge.completata { color: var(--ok); border-color: var(--ok); background: rgba(127,201,138,0.1); }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; font-size: 0.98rem; }

/* ---------- admin ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.admin-table th { text-align: left; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 12px 10px; border-bottom: 1px solid var(--border); }
.admin-table td { padding: 16px 10px; border-bottom: 1px solid rgba(212,175,55,0.1); vertical-align: top; }
.admin-table tr:hover td { background: rgba(212,175,55,0.03); }
.admin-table .cli { font-weight: 600; }
.admin-table .cli small { display: block; color: var(--muted); font-weight: 400; font-size: 0.82rem; }
.admin-table select {
  background: #0e0c09; color: var(--ivory);
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; font-size: 0.88rem;
}
.table-scroll { overflow-x: auto; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(11,10,8,0.97);
    border-bottom: 1px solid var(--border);
    padding: 18px 4%;
    gap: 14px;
    align-items: flex-start;
  }
  .burger { display: block; }
  .nav-cta .btn-ghost { display: none; }
  .brand { font-size: 1.3rem; }
  .nav-inner { gap: 10px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn-gold { white-space: nowrap; padding: 8px 14px; min-height: 38px; font-size: 0.82rem; }
  section.block { padding: 64px 0; }
  .hero { padding: 72px 0 56px; }
  .grid-4 { grid-template-columns: 1fr; }
  .price-hero { padding: 40px 24px; }
  .auth-card { padding: 36px 26px; }
}
@media (max-width: 380px) {
  .brand { font-size: 1.1rem; letter-spacing: 0.2em; }
  .nav-cta .btn-gold { padding: 7px 10px; min-height: 34px; font-size: 0.75rem; }
}

/* ---- v2: profilo, impostazioni, pagamenti ---- */
.sub-h {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ivory);
  margin: 4px 0 14px;
}
.pay-rows { display: grid; gap: 10px; margin: 14px 0; }
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  flex-wrap: wrap;
}
.pay-row span { color: var(--muted); font-size: 0.92rem; }
.pay-row strong { color: var(--gold-soft); }

/* Selettore lingua */
.lang-wrap { position: relative; display: inline-block; }
.lang-btn {
  min-width: 44px; height: 36px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: 999px;
  background: transparent; color: var(--gold-soft);
  font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em;
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.lang-btn:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.08); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 170px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5); z-index: 60;
}
.lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; border-radius: 8px; background: transparent;
  color: var(--ivory); font-family: var(--font-body); font-size: 0.9rem;
  cursor: pointer; text-align: start;
}
.lang-menu button:hover { background: rgba(212, 175, 55, 0.1); }
.lang-menu button.active { color: var(--gold-soft); font-weight: 600; }
.lang-menu .lang-code {
  display: inline-block; min-width: 30px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  color: var(--gold-soft); border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 4px; text-align: center;
}

/* Evidenziazione oro nei titoli (sostituisce gli stili inline) */
.gold, em.gold { color: var(--gold-soft); font-style: italic; }

/* RTL: piccoli aggiustamenti */
[dir="rtl"] .hero-points span svg,
[dir="rtl"] .card ul li svg { transform: scaleX(-1); }
[dir="rtl"] .faq-q .plus { margin-inline-start: auto; }

/* ---------- Messaggistica interna ---------- */
.msg-thread {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 380px; overflow-y: auto;
  padding: 6px 2px; margin-bottom: 14px;
}
.msg { display: flex; flex-direction: column; max-width: 85%; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.msg-bubble {
  padding: 10px 14px; border-radius: 16px;
  font-size: 0.95rem; white-space: pre-wrap; word-break: break-word;
}
.msg.me .msg-bubble {
  background: rgba(212,175,55,0.15); border: 1px solid var(--gold);
  border-bottom-right-radius: 4px;
}
.msg.them .msg-bubble {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-date { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

.badge-gold {
  font-size: 0.72rem; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-soft);
  background: rgba(212,175,55,0.12); font-weight: 700; white-space: nowrap;
}

.msg-conv-list { display: grid; gap: 10px; margin-bottom: 18px; }
.conv {
  text-align: start; width: 100%;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; cursor: pointer;
  color: inherit; font: inherit; display: grid; gap: 4px;
}
.conv:hover { border-color: var(--gold); }
.conv.active { border-color: var(--gold); background: rgba(212,175,55,0.08); }
.conv-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.conv-name { font-weight: 600; }
.conv-mail { font-size: 0.82rem; color: var(--muted); }
.conv-prev {
  font-size: 0.88rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
