@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --cream:   #f7f3ee;
  --cream2:  #ede8e1;
  --ink:     #1a1714;
  --ink2:    #4a4540;
  --ink3:    #8c8580;
  --accent:  #c8410a;
  --accent2: #e8622e;
  --gold:    #b89a5a;
  --white:   #ffffff;
  --border:  rgba(26,23,20,0.10);
  --border2: rgba(26,23,20,0.06);
  --r:       18px;
  --r-pill:  999px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(247,243,238,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.nav-brand { display: flex; align-items: center; text-decoration: none; height: 44px; }
.nav-logo { height: 38px; width: auto; mix-blend-mode: multiply; }
.nav-tagline { font-size: 12px; color: var(--ink3); font-weight: 400; }
.nav-5min {
  font-size: 13px; font-weight: 600; text-decoration: none;
  color: var(--accent); background: rgba(200,65,10,0.08);
  padding: 7px 14px; border-radius: 999px;
  transition: background 0.15s, transform 0.15s;
}
.nav-5min:hover { background: rgba(200,65,10,0.15); transform: translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 80px 24px 60px;
}

.hero-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--accent); }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(60px, 12vw, 110px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -0.03em;
  text-align: center; color: var(--ink);
  margin-bottom: 16px;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--ink2); text-align: center;
  margin-bottom: 40px;
}

/* ── INPUT CARD ── */
.input-card {
  width: 100%; max-width: 620px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px 20px;
  box-shadow: 0 4px 40px rgba(26,23,20,0.07);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.input-card:focus-within {
  box-shadow: 0 4px 40px rgba(200,65,10,0.10);
  border-color: rgba(200,65,10,0.25);
}

.input-card textarea {
  width: 100%; background: transparent;
  border: none; outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 18px; font-weight: 300;
  color: var(--ink); resize: none;
  line-height: 1.65; caret-color: var(--accent);
  min-height: 72px;
}
.input-card textarea::placeholder { color: var(--ink3); }

/* ── LIVE INDICATOR ── */
.live-indicator {
  display: none; align-items: center; gap: 8px;
  padding: 6px 0 4px;
}
.live-indicator.show { display: flex; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: livepulse 1s ease-in-out infinite;
}
@keyframes livepulse {
  0%,100% { opacity: 0.3; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
#liveText { font-size: 12px; color: var(--ink3); font-style: italic; }

/* ── AZIONI ── */
.input-actions {
  display: flex; gap: 10px; align-items: center;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--border2);
}
.main-btn {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border: none; padding: 14px 24px;
  border-radius: var(--r-pill); cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.2s;
}
.main-btn:hover { background: var(--accent); transform: translateY(-1px); }
.main-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.main-btn svg { width: 15px; height: 15px; transition: transform 0.2s; }
.main-btn:hover svg { transform: translateX(3px); }

.detail-toggle {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  background: transparent; color: var(--ink3);
  border: 1px solid var(--border);
  padding: 13px 16px; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.detail-toggle:hover { color: var(--ink); border-color: var(--ink3); }
.detail-toggle.open { color: var(--accent); border-color: rgba(200,65,10,0.3); }

/* ── DETAILS PANEL ── */
.details-panel {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}
.details-panel.open {
  max-height: 400px; opacity: 1;
}
.details-inner { padding-top: 20px; }

.detail-section { margin-bottom: 18px; }
.detail-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 10px;
}

.moods { display: flex; flex-wrap: wrap; gap: 7px; }
.mood {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: transparent; color: var(--ink2);
  padding: 7px 14px; border-radius: var(--r-pill);
  cursor: pointer; transition: all 0.15s;
}
.mood:hover { border-color: var(--accent); color: var(--ink); }
.mood.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.meta-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.meta-pill {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  border: 1px solid var(--border);
  background: transparent; color: var(--ink2);
  padding: 7px 14px; border-radius: var(--r-pill);
  cursor: pointer; transition: all 0.15s;
}
.meta-pill:hover { border-color: var(--accent); color: var(--ink); }
.meta-pill.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.energy-row { display: flex; align-items: center; gap: 12px; }
.energy-emoji { font-size: 20px; flex-shrink: 0; }
.energy-slider {
  flex: 1; -webkit-appearance: none;
  height: 4px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 50%, rgba(26,23,20,0.12) 50%);
  outline: none; cursor: pointer;
}
.energy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--ink); border: 2px solid var(--cream);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.energy-labels {
  display: flex; gap: 4px;
  font-size: 14px;
}

/* ── THINKING ── */
.thinking {
  display: none; align-items: center; gap: 6px;
  padding: 10px 0 4px;
}
.thinking.show { display: flex; }
.thinking-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.2s ease-in-out infinite; opacity: 0.25;
}
.thinking-dot:nth-child(2) { animation-delay: 0.15s; }
.thinking-dot:nth-child(3) { animation-delay: 0.30s; }
.thinking-dot:nth-child(4) { animation-delay: 0.45s; }
@keyframes pulse {
  0%,80%,100% { transform: scale(1); opacity: 0.25; }
  40%          { transform: scale(1.7); opacity: 1; }
}
.thinking-label { font-size: 13px; color: var(--ink3); font-style: italic; margin-left: 4px; }

/* ── SURPRISE ── */
.surprise-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  background: transparent; color: var(--ink3);
  border: none; cursor: pointer;
  margin-top: 18px; text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.15s;
}
.surprise-btn:hover { color: var(--accent); }

/* ── RESULTS ── */
#results {
  width: 100%; max-width: 1120px;
  margin: 0 auto; padding: 0 24px 60px;
  opacity: 0; transition: opacity 0.4s ease;
}
#results.visible { opacity: 1; }

.results-header { margin-bottom: 32px; padding-top: 8px; }
.results-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.results-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.results-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--ink);
}
.results-title em { font-style: italic; color: var(--accent); }

/* ── PRESCRIZIONE ── */
.prescription {
  background: var(--ink); border-radius: var(--r) var(--r) 0 0;
  padding: 32px 36px 28px; margin-bottom: 0;
  position: relative; overflow: hidden;
}
.prescription::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold), transparent);
}
.prescription-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.prescription-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
.prescription-diagnosis {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.2vw, 23px);
  font-weight: 700; color: var(--white);
  margin-bottom: 20px; line-height: 1.45;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.prescription-pills {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.prescription-pill {
  font-size: 13px; font-weight: 400;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.75);
  padding: 6px 14px; border-radius: var(--r-pill);
  letter-spacing: 0.01em;
  transition: background 0.15s, border-color 0.15s;
}
.prescription-pill:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

/* ── GRID CARDS ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

/* ── CARD ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(26,23,20,0.10); }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card { animation: cardIn 0.3s ease forwards; }
.card:nth-child(2) { animation-delay: 0.06s; }
.card:nth-child(3) { animation-delay: 0.12s; }
.card:nth-child(4) { animation-delay: 0.18s; }

.card-image { height: 160px; overflow: hidden; }
.card-image-inner { width: 100%; height: 100%; display: flex; align-items: flex-end; padding: 12px; }
.vibe-aperitivo { background: linear-gradient(135deg,#2a1505,#5c2e0c,#9e5220); }
.vibe-live      { background: linear-gradient(135deg,#07101e,#142840,#1f4068); }
.vibe-relax     { background: linear-gradient(135deg,#081409,#122418,#1e3d28); }
.vibe-party     { background: linear-gradient(135deg,#140720,#2d1045,#4a1a70); }
.vibe-coppia    { background: linear-gradient(135deg,#200810,#42102a,#6e1a42); }
.vibe-default   { background: linear-gradient(135deg,#14120e,#26231c,#3a352a); }
.card-city {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.75);
  padding: 4px 10px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.1);
}
.card-body { padding: 18px 20px 20px; }
.card-specialty-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600;
  background: var(--cream2); color: var(--accent);
  border: 1px solid rgba(200,65,10,0.18);
  padding: 4px 10px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700;
  color: var(--ink); margin-bottom: 5px; line-height: 1.2;
}
.card-desc {
  font-size: 14px; font-weight: 300;
  color: var(--ink2); margin-bottom: 10px; line-height: 1.5;
}
.card-reason {
  font-size: 14px; font-style: italic;
  color: var(--accent); margin-bottom: 12px;
  line-height: 1.5; display: none;
  padding: 10px 14px;
  background: rgba(200,65,10,0.05);
  border-left: 2px solid rgba(200,65,10,0.3);
  border-radius: 0 8px 8px 0;
}
.card-reason.show {
  display: flex; gap: 8px; align-items: flex-start;
}
.card-reason::before { content: '✦'; flex-shrink: 0; font-style: normal; font-size: 11px; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tags span {
  font-size: 11px; font-weight: 500;
  background: var(--cream2); color: var(--ink3);
  padding: 4px 9px; border-radius: var(--r-pill);
  border: 1px solid var(--border);
}
.card-actions-stack { display: flex; flex-direction: column; gap: 8px; }
.card-actions-row { display: flex; gap: 8px; }

.btn-wa-direct {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; box-sizing: border-box;
  background: #25D366; color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 12px 16px; border-radius: var(--r-pill);
  text-decoration: none; border: none; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .15s, transform .15s;
}
.btn-wa-direct:hover { background: #1db954; transform: translateY(-1px); }
.btn-wa-direct.btn-wa-fallback { background: var(--ink); color: var(--cream); }
.btn-wa-direct.btn-wa-fallback:hover { background: var(--accent); }

.btn-prenota-small {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: var(--ink2);
  border: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  padding: 10px 12px; border-radius: var(--r-pill);
  cursor: pointer; white-space: nowrap;
  transition: all 0.15s;
}
.btn-prenota-small:hover {
  background: var(--ink); color: var(--cream); border-color: var(--ink);
}

.btn-map {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 500;
  background: transparent; color: var(--ink2);
  border: 1px solid var(--border); padding: 10px 12px;
  border-radius: var(--r-pill); cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: all 0.15s;
}
.btn-map:hover { border-color: var(--ink3); color: var(--ink); }

/* ── REFINE BAR ── */
.refine-bar {
  max-width: 1120px; margin: 0 auto 40px;
  padding: 0 24px;
  display: flex; align-items: center; gap: 16px;
}
.refine-text { font-size: 14px; color: var(--ink3); }
.refine-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  background: transparent; color: var(--accent);
  border: 1.5px solid rgba(200,65,10,0.3);
  padding: 8px 18px; border-radius: var(--r-pill);
  cursor: pointer; transition: all 0.15s;
}
.refine-btn:hover { background: rgba(200,65,10,0.06); }

/* ── REFINE OVERLAY ── */
.refine-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(247,243,238,0.96);
  backdrop-filter: blur(8px); z-index: 200;
  justify-content: center; align-items: center; padding: 24px;
}
.refine-overlay.show { display: flex; }
.refine-card {
  width: 100%; max-width: 520px;
  text-align: center; position: relative;
}
.refine-close {
  position: absolute; top: -10px; right: 0;
  font-size: 18px; color: var(--ink3);
  background: none; border: none; cursor: pointer;
  padding: 8px; transition: color 0.15s;
}
.refine-close:hover { color: var(--ink); }
.refine-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}
.refine-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.refine-option {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 400;
  background: var(--white); border: 1.5px solid var(--border);
  color: var(--ink); padding: 14px 20px;
  border-radius: var(--r); cursor: pointer;
  text-align: left; transition: all 0.15s;
  display: flex; align-items: center; gap: 12px;
}
.refine-option:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 12px rgba(200,65,10,0.08);
  transform: translateX(4px);
}
.refine-option .opt-emoji { font-size: 20px; flex-shrink: 0; }
.refine-option .opt-sub {
  font-size: 12px; color: var(--ink3);
  font-weight: 300; display: block; margin-top: 2px;
}
.refine-skip {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink3);
  background: transparent; border: none;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── STATE BOX ── */
.state-box {
  max-width: 520px; margin: 40px auto;
  text-align: center; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 50px 32px;
}
.state-box.state-filter { border-color: rgba(200,65,10,0.15); background: #fffaf8; }
.state-filter .state-title { color: var(--accent); }
.state-icon { font-size: 40px; display: block; margin-bottom: 16px; }
.state-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.state-body { font-size: 15px; font-weight: 300; color: var(--ink2); line-height: 1.6; }
.state-retry {
  margin-top: 20px; font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border: none; padding: 12px 24px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: background 0.15s; display: inline-block;
}
.state-retry:hover { background: var(--accent); }

/* ── MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(26,23,20,0.65);
  backdrop-filter: blur(4px);
  justify-content: center; align-items: center;
  padding: 20px; z-index: 9999;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 32px;
  max-width: 440px; width: 100%;
  box-shadow: 0 20px 60px rgba(26,23,20,0.18);
}
.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.modal-locale { font-size: 14px; font-weight: 300; color: var(--ink2); margin-bottom: 24px; }
.modal-locale strong { color: var(--accent); font-weight: 600; }
.modal-input {
  width: 100%; background: var(--cream); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 16px; font-family: 'Inter', sans-serif;
  font-size: 16px; margin-bottom: 12px; outline: none;
  transition: border-color 0.15s;
}
.modal-input::placeholder { color: var(--ink3); }
.modal-input:focus { border-color: rgba(200,65,10,0.4); background: var(--white); }
.modal-confirm {
  width: 100%; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border: none; padding: 15px; border-radius: var(--r-pill);
  cursor: pointer; transition: background 0.15s; margin-top: 4px;
}
.modal-confirm:hover { background: var(--accent); }
.modal-confirm:disabled { opacity: 0.5; cursor: not-allowed; }
.modal-cancel {
  width: 100%; margin-top: 8px; font-family: 'Inter', sans-serif;
  font-size: 14px; background: transparent; color: var(--ink3);
  border: 1px solid var(--border); padding: 12px;
  border-radius: var(--r-pill); cursor: pointer; transition: all 0.15s;
}
.modal-cancel:hover { color: var(--ink); border-color: var(--ink3); }

/* ── SUCCESS ── */
.success-box { text-align: center; }
.success-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 8px;
}
.success-hint-top { font-size: 13px; font-weight: 300; color: var(--ink2); margin-bottom: 4px; }
.success-code {
  background: var(--cream2); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 900;
  color: var(--accent); letter-spacing: 0.04em; margin: 14px 0;
}
.success-sub { font-size: 13px; font-weight: 300; color: var(--ink3); margin-bottom: 20px; }
.success-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.success-btns a, .success-btns button {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  border-radius: var(--r-pill); padding: 11px 18px;
  cursor: pointer; text-decoration: none; border: none; transition: all 0.15s;
}
.btn-wa { background: #25D366; color: #fff; }
.btn-home { background: var(--cream2); color: var(--ink); border: 1px solid var(--border) !important; }
.btn-close-s { background: transparent; color: var(--ink3); border: 1px solid var(--border) !important; }

/* ── FOOTER ── */
.page-footer {
  background: var(--ink); padding: 24px 32px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.page-footer-link { font-size: 13px; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.15s; }
.page-footer-link:hover { color: rgba(255,255,255,0.6); }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .nav-tagline { display: none; }
  .hero { padding: 70px 16px 40px; }
  .input-card { padding: 18px 18px 16px; }
  .input-card textarea { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  #results { padding: 0 16px 60px; }
  .modal-box { padding: 24px 18px; }
  .page-footer { flex-direction: column; text-align: center; }
  .prescription { padding: 18px 20px; }
}

/* ── DISTANZA BADGE ── */
.card-meta-row {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 10px; align-items: center;
  min-height: 0;
}
.card-meta-row:empty { display: none; }

.dist-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

/* ── LINK CARD ── */
.card-image-link { display: block; text-decoration: none; }
.card-name-link  { color: var(--ink); text-decoration: none; }
.card-name-link:hover { color: var(--accent); }
.btn-map { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* ── RICOMPENSA EMOTIVA — success screen ── */
.success-emotional {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border2);
  letter-spacing: -0.01em;
}

/* ── PROXIMITY MODE — carta più vicina ── */
.card-primo {
  border: 1.5px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(200,65,10,0.08);
}
.card-primo-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent); color: #fff;
  padding: 4px 10px; border-radius: var(--r-pill);
  position: absolute; top: 12px; right: 12px;
}
.card-image { position: relative; }
.dist-badge-primo {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff;
  padding: 5px 12px; border-radius: var(--r-pill);
  letter-spacing: 0.02em;
}

/* ── RISPOSTA UMANA — frase metaforica ── */
.state-umana {
  border-color: rgba(200,65,10,0.15);
  background: #fffaf8;
}
.state-umana .state-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.5vw, 22px);
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.4;
}

/* ── SHARE BAR — condividi mood ── */
.share-bar {
  max-width: 1120px; margin: 0 auto 24px;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 16px;
}
.share-text {
  font-size: 14px; color: var(--gold); font-weight: 500;
}
.share-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border: none; padding: 12px 22px; border-radius: var(--r-pill);
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(26,23,20,0.15);
}
.share-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,65,10,0.25);
}
.share-btn svg { flex-shrink: 0; }

/* ════════════════════════════════════════
   DIALOG EMOTIVO
════════════════════════════════════════ */
.emotion-dialog {
  max-width: 620px; margin: 0 auto 0;
  padding: 0 24px;
  display: none;
}
.emotion-dialog.show { display: block; }
.emotion-dialog-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 32px;
  box-shadow: 0 4px 40px rgba(26,23,20,0.06);
  min-height: 80px;
}

/* Step 1 — puntini + frase umana */
.emotion-step { animation: fadeSlideIn 0.4s ease forwards; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.emotion-dots {
  display: flex; gap: 6px; margin-bottom: 14px;
}
.emotion-dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.2s ease-in-out infinite;
  opacity: 0.3;
}
.emotion-dots span:nth-child(2) { animation-delay: 0.2s; }
.emotion-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotPulse {
  0%,80%,100% { opacity: 0.25; transform: scale(1); }
  40%          { opacity: 1;    transform: scale(1.5); }
}
.emotion-msg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.45;
  min-height: 28px;
}

/* Step 2 — conferma + diagnosi */
.emotion-confirm {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.emotion-confirm::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}
.emotion-diagnosis {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.5;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.emotion-diagnosis.show { opacity: 1; }

/* Typing effect testo */
.typing-cursor::after {
  content: '|';
  animation: blink .7s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* ════════════════════════════════════════
   CHIUSURA EMOTIVA
════════════════════════════════════════ */
.closure-bar {
  max-width: 620px; margin: 0 auto 32px;
  padding: 0 24px;
}
.closure-inner {
  background: var(--ink);
  border-radius: var(--r);
  padding: 24px 28px;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.closure-question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(15px, 2vw, 18px);
  font-weight: 700; font-style: italic;
  color: var(--white); flex: 1;
}
.closure-btns { display: flex; gap: 10px; flex-shrink: 0; }
.closure-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  padding: 10px 20px; border-radius: var(--r-pill);
  cursor: pointer; border: none;
  transition: all 0.15s;
}
.closure-yes {
  background: var(--accent); color: #fff;
}
.closure-yes:hover { background: var(--accent2); }
.closure-no {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.75);
  border: 1px solid rgba(255,255,255,0.15);
}
.closure-no:hover { background: rgba(255,255,255,0.18); }

/* Risposta chiusura */
.closure-response {
  text-align: center; padding: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-style: italic;
  color: rgba(255,255,255,0.85);
  animation: fadeSlideIn 0.4s ease;
}

@media (max-width: 600px) {
  .emotion-dialog-inner { padding: 20px 18px; }
  .closure-inner { flex-direction: column; text-align: center; }
  .closure-btns { justify-content: center; }
}

/* ── CLOSURE LOOP — opzioni affinamento ── */
.closure-refine-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700; font-style: italic;
  color: var(--white); margin-bottom: 14px;
  text-align: center;
}
.closure-refine-opts {
  display: flex; flex-direction: column; gap: 8px;
}
.closure-opt-btn {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white); padding: 12px 16px;
  border-radius: var(--r); cursor: pointer;
  font-family: 'Inter', sans-serif;
  text-align: left; transition: all 0.15s;
  width: 100%;
}
.closure-opt-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  transform: translateX(4px);
}
.closure-opt-btn strong {
  display: block; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,0.95); margin-bottom: 2px;
}
.closure-opt-emoji { font-size: 20px; flex-shrink: 0; }
.closure-opt-sub {
  font-size: 12px; color: rgba(255,255,255,0.5);
  font-weight: 300; display: block;
}
.closure-skip-btn {
  background: transparent; border: none;
  color: rgba(255,255,255,0.35); font-size: 12px;
  font-family: 'Inter', sans-serif; cursor: pointer;
  text-align: center; padding: 10px;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.15s; width: 100%;
}
.closure-skip-btn:hover { color: rgba(255,255,255,0.6); }
.closure-loading {
  display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle;
}
.closure-loading span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.closure-loading span:nth-child(2) { animation-delay: 0.2s; }
.closure-loading span:nth-child(3) { animation-delay: 0.4s; }

/* Closure bar più grande quando mostra opzioni */
.closure-bar { max-width: 620px; }

/* ── BOTTONE CONTINUA — dialogo emotivo ── */
.emotion-continua-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  background: var(--ink); color: var(--cream);
  border: none; padding: 13px 22px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.2s;
  animation: fadeSlideIn 0.4s ease forwards;
}
.emotion-continua-btn:hover {
  background: var(--accent);
  transform: translateX(4px);
}
.emotion-continua-btn::after {
  content: '→';
  transition: transform 0.2s;
}
.emotion-continua-btn:hover::after {
  transform: translateX(3px);
}

/* ── MOOD HINT — obbligatorio scrivere ── */
@keyframes inputShake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.input-shake { animation: inputShake 0.5s ease; }

.mood-hint {
  font-size: 13px; font-style: italic;
  color: var(--accent); font-weight: 500;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(200,65,10,0.15);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.3s, max-height 0.3s;
}
.mood-hint.show {
  opacity: 1; max-height: 40px;
}

/* ── STEP SOCIALE — chiedi agli amici ── */
.emotion-social-step {
  margin-top: 20px;
  animation: fadeSlideIn 0.4s ease forwards;
}
.emotion-social-question {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink3); margin-bottom: 12px;
}
.emotion-social-btns {
  display: flex; flex-direction: column; gap: 8px;
}
.emotion-social-btn {
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 14px 20px; border-radius: var(--r-pill);
  cursor: pointer; border: none;
  text-align: left; transition: all 0.15s;
  width: 100%;
}
.emotion-social-share {
  background: var(--accent); color: #fff;
}
.emotion-social-share:hover { background: var(--accent2); transform: translateX(3px); }
.emotion-social-share em { font-style: italic; opacity: 0.85; font-weight: 400; }
.emotion-social-solo {
  background: transparent; color: var(--ink2);
  border: 1px solid var(--border);
}
.emotion-social-solo:hover { color: var(--ink); border-color: var(--ink3); }
.emotion-social-feedback {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-style: italic;
  color: var(--accent); margin-top: 12px;
  animation: fadeSlideIn 0.3s ease;
}

/* ── SHARE nella closure bar ── */
.closure-share-row {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.closure-share-btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 11px 20px; border-radius: var(--r-pill);
  cursor: pointer; width: 100%;
  transition: all 0.15s;
}
.closure-share-btn:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.closure-share-btn em {
  font-style: italic; font-weight: 400;
}

/* ── STATO CURA — disagio reale ── */
.state-cura {
  border-color: rgba(100,120,200,0.2);
  background: #f8f8ff;
  text-align: center;
  padding: 40px 32px;
}
.state-cura-heart {
  font-size: 40px; margin-bottom: 20px;
  animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}
.state-cura-msg {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 28px; max-width: 520px;
  margin-left: auto; margin-right: auto;
}
.state-cura-links {
  display: flex; flex-direction: column;
  gap: 10px; margin-bottom: 24px;
  max-width: 340px; margin-left: auto; margin-right: auto;
}
.state-cura-btn {
  display: block; padding: 14px 20px;
  border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  background: #4a5ab5; color: #fff;
  transition: all 0.15s;
}
.state-cura-btn:hover { background: #3a4aa5; transform: translateY(-1px); }
.state-cura-btn-alt { background: #2563a8; }
.state-cura-btn-alt:hover { background: #1d5398; }
.state-cura-later {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--ink3);
  background: transparent; border: none;
  cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px;
}
.state-cura-later:hover { color: var(--ink); }

/* ── BOTTONE CONSIGLIO — dopo diagnosi ── */
.emotion-consiglio-btn {
  display: block; width: 100%;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700;
  background: var(--accent); color: #fff;
  border: none; padding: 16px 24px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.01em;
  animation: fadeSlideIn 0.5s ease forwards;
}
.emotion-consiglio-btn:hover {
  background: var(--accent2);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(200,65,10,0.25);
}
.emotion-consiglio-btn:disabled {
  opacity: 0.6; transform: none; cursor: default;
}

/* ── DIAGNOSI CARD — nella sezione risultati ── */
.diagnosi-card {
  max-width: 620px; margin: 0 auto 32px;
  padding: 0 24px;
  animation: fadeSlideIn 0.5s ease forwards;
}
.diagnosi-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.diagnosi-label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.diagnosi-testo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.45;
  margin-bottom: 20px; min-height: 60px;
}
.diagnosi-pillole {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 28px;
}
.diagnosi-pill {
  font-size: 13px; font-weight: 400;
  background: var(--cream2); color: var(--ink2);
  border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-pill);
}
.diagnosi-btn {
  display: block; width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 700;
  background: var(--ink); color: var(--cream);
  border: none; padding: 18px 24px;
  border-radius: var(--r-pill); cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.01em;
}
.diagnosi-btn:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,65,10,0.25);
}
.diagnosi-meteo {
  font-size: 12px; color: var(--ink3);
  margin-bottom: 12px; opacity: 0.75;
  display: flex; align-items: center; gap: 6px;
}
.diagnosi-meteo::before { content: '🌤'; font-size: 13px; }

/* ── SCHERMATA ESPERIENZA ── */
.esperienza-card {
  max-width: 480px; margin: 0 auto 32px;
  padding: 32px 24px;
  text-align: center;
  animation: fadeSlideIn 0.5s ease forwards;
}
.esp-intro {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink2); margin-bottom: 32px;
}
.esp-steps {
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
}
.esp-step {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 3vw, 24px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.3;
  padding: 14px 28px;
  background: var(--cream2);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%; max-width: 360px;
  animation: fadeSlideIn 0.5s ease both;
}
.esp-arrow {
  font-size: 20px; color: var(--accent);
  margin: 6px 0; line-height: 1;
  opacity: 0.7;
}

/* ── BADGE APERTO ADESSO ── */
.badge-aperto {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  background: #e1f5ee; color: #085041;
  padding: 3px 9px; border-radius: 999px;
  animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8,80,65,0.2); }
  50%       { box-shadow: 0 0 0 4px rgba(8,80,65,0); }
}

/* (regole .btn-wa-direct definite in alto nel file — vedi sezione card-actions) */

/* ── CLOSURE SOCIAL ROW ── */
.closure-social-row {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 16px; width: 100%;
}
.closure-social-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px 20px; border-radius: var(--r-pill);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.2s;
  background: var(--ink); color: var(--cream);
}
.closure-social-btn:hover { background: var(--accent); transform: translateY(-1px); }
.closure-social-btn.closure-social-amici {
  background: #25D366; color: #fff;
}
.closure-social-btn.closure-social-amici:hover { background: #1db954; }

@media (min-width: 500px) {
  .closure-social-row { flex-direction: row; }
}

/* ── CLARIFY CARD — dialog conversazionale ── */
.clarify-card {
  max-width: 620px; margin: 0 auto;
  padding: 0 24px;
  animation: fadeSlideIn 0.4s ease forwards;
}
.clarify-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.clarify-label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.clarify-domanda {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.8vw, 26px);
  font-weight: 700; font-style: italic;
  color: var(--ink); line-height: 1.5;
  margin-bottom: 24px; min-height: 40px;
}
.clarify-input-row {
  display: flex; gap: 10px; align-items: flex-end;
}
.clarify-textarea {
  flex: 1; border: 1.5px solid var(--border);
  border-radius: 14px; padding: 13px 16px;
  font-family: 'Inter', sans-serif; font-size: 15px;
  color: var(--ink); background: #fff;
  resize: none; transition: border 0.2s;
  line-height: 1.5;
}
.clarify-textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,65,10,0.08);
}
.clarify-btn {
  background: var(--ink); color: var(--cream);
  border: none; border-radius: 999px;
  padding: 13px 22px; font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background 0.2s; white-space: nowrap;
  flex-shrink: 0;
}
.clarify-btn:hover { background: var(--accent); }

/* (regole .btn-prenota-small definite in alto nel file — vedi sezione card-actions) */

/* ── DETAILS HINT — chiarifica che è facoltativo ── */
.details-hint {
  font-size: 12px; color: var(--ink3);
  font-style: italic; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
  text-align: center;
}

/* ── MICRO-INTERAZIONI — bottoni mood/pillole più vivi ── */
.mood, .meta-pill {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}
.mood:hover, .meta-pill:hover {
  transform: translateY(-2px);
}
.mood:active, .meta-pill:active {
  transform: translateY(0) scale(0.97);
}
.mood.active, .meta-pill.active {
  box-shadow: 0 4px 14px rgba(200,65,10,0.18);
}

/* ── BOTTONE PRINCIPALE — feedback al click più morbido ── */
.main-btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.main-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26,23,20,0.22);
}
.main-btn:active {
  transform: translateY(0) scale(0.98);
}

/* ── CARD LOCALI — entrata più elegante ── */
.card {
  animation: cardFadeUp 0.45s cubic-bezier(0.22,1,0.36,1) both;
}
.card:nth-child(1) { animation-delay: 0.03s; }
.card:nth-child(2) { animation-delay: 0.09s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.21s; }
.card:nth-child(5) { animation-delay: 0.27s; }
.card:nth-child(6) { animation-delay: 0.33s; }
@keyframes cardFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card:hover {
  box-shadow: 0 14px 36px rgba(26,23,20,0.1);
  transform: translateY(-3px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* ── BOTTONI AZIONE CARD — più morbidi al tocco ── */
.btn-book, .btn-wa-direct, .btn-prenota-small, .btn-map {
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}
.btn-book:active, .btn-wa-direct:active, .btn-prenota-small:active, .btn-map:active {
  transform: scale(0.96);
}

/* ── STATE BOX (errori/messaggi) — più calda e leggibile ── */
.state-box {
  animation: cardFadeUp 0.4s ease both;
}
.state-retry {
  margin-top: 16px;
  background: var(--ink); color: var(--cream);
  border: none; padding: 12px 26px; border-radius: 999px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.15s;
}
.state-retry:hover { background: var(--accent); transform: translateY(-1px); }

/* ════════════════════════════════════════
   RIFINITURA VISIVA — secondo passaggio
════════════════════════════════════════ */

/* Pillole diagnosi — entrata sequenziale, più vive */
.diagnosi-pill {
  animation: pillPop 0.35s cubic-bezier(0.22,1,0.36,1) both;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.diagnosi-pill:nth-child(1) { animation-delay: 0.05s; }
.diagnosi-pill:nth-child(2) { animation-delay: 0.12s; }
.diagnosi-pill:nth-child(3) { animation-delay: 0.19s; }
.diagnosi-pill:nth-child(4) { animation-delay: 0.26s; }
.diagnosi-pill:hover {
  background: var(--cream3, #f0e8de);
  transform: translateY(-1px);
}
@keyframes pillPop {
  from { opacity: 0; transform: translateY(8px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Testo diagnosi — leggera dissolvenza al posto dell'apparizione secca */
.diagnosi-testo {
  animation: textReveal 0.5s ease both;
}
@keyframes textReveal {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Thinking dots — più morbidi, respiro più naturale */
.thinking-dot {
  background: var(--accent) !important;
  box-shadow: 0 0 8px rgba(200,65,10,0.25);
}
.thinking-label {
  animation: labelBreathe 2.4s ease-in-out infinite;
}
@keyframes labelBreathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 0.95; }
}

/* Closure bar — più calda e meno "bottoniera" */
.closure-bar {
  animation: fadeSlideIn 0.4s ease both;
}
.closure-question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}
.closure-btn {
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}
.closure-btn:hover {
  transform: translateY(-2px);
}
.closure-yes:hover {
  box-shadow: 0 8px 22px rgba(8,80,65,0.2);
}
.closure-no:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

/* Opzioni di affinamento — entrata a cascata + hover più vivo */
.closure-opt-btn {
  animation: cardFadeUp 0.3s ease both;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease !important;
}
.closure-opt-btn:nth-child(1) { animation-delay: 0.02s; }
.closure-opt-btn:nth-child(2) { animation-delay: 0.06s; }
.closure-opt-btn:nth-child(3) { animation-delay: 0.10s; }
.closure-opt-btn:nth-child(4) { animation-delay: 0.14s; }
.closure-opt-btn:nth-child(5) { animation-delay: 0.18s; }
.closure-opt-btn:nth-child(6) { animation-delay: 0.22s; }
.closure-opt-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(200,65,10,0.12);
}

/* Badge "Aperto adesso" — respiro leggero per attirare l'occhio senza essere fastidioso */
.badge-aperto {
  animation: openPulse 3s ease-in-out infinite;
}
@keyframes openPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20,160,100,0.25); }
  50%      { box-shadow: 0 0 0 4px rgba(20,160,100,0.08); }
}

/* Scrollbar più discreta su desktop */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,23,20,0.15); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,23,20,0.28); }

/* ── FEEDBACK WIDGET — "Com'è andata?" ── */
.feedback-widget {
  max-width: 620px; margin: 0 auto 0;
  padding: 0 24px;
  animation: fadeSlideIn 0.5s ease forwards;
}
.feedback-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: #fdf3ea; border: 1px solid rgba(200,65,10,0.18);
  border-radius: 16px; padding: 16px 20px;
  margin-top: 92px; /* libera lo spazio della nav fissa (60px) + respiro */
}
@media (max-width: 768px) {
  .feedback-inner { margin-top: 80px; }
}
.feedback-text {
  font-size: 14px; color: var(--ink2); line-height: 1.4;
}
.feedback-text strong { color: var(--ink); }
.feedback-btns { display: flex; gap: 8px; flex-shrink: 0; }
.feedback-btn {
  font-size: 20px; background: #fff; border: 1px solid var(--border);
  border-radius: 50%; width: 44px; height: 44px;
  cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  display: flex; align-items: center; justify-content: center;
}
.feedback-btn:hover {
  transform: translateY(-2px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 6px 16px rgba(200,65,10,0.15);
}
.feedback-thanks {
  justify-content: center; text-align: center;
  font-size: 14px; color: var(--ink2); font-style: italic;
}

/* ── BADGE "CONSIGLIATO DA AI" — esclusivo Pro/Business ── */
.badge-ai-consigliato {
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #c8410a, #e8804a);
  color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(200,65,10,0.25);
}

.badge-evento {
  display: inline-flex; align-items: center; gap: 4px;
  background: #085041; color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(8,80,65,0.25);
}

/* ══════════════════════════════════════
   5 MINUTI — stessa identità visiva del sito
══════════════════════════════════════ */
.breath-circle-ambient {
  width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--accent2), var(--accent));
  margin: 0 auto 28px;
  animation: respiraAmbient 6.4s ease-in-out infinite;
  box-shadow: 0 18px 50px -10px rgba(200,65,10,0.35);
}
@keyframes respiraAmbient {
  0%, 100% { transform: scale(0.86); opacity: 0.88; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) { .breath-circle-ambient { animation: none; } }

.mood-chips {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-bottom: 16px; max-width: 560px;
}
.mood-chip {
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 16px; cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  color: var(--ink2);
}
.mood-chip:hover { transform: translateY(-1px); border-color: var(--accent2); box-shadow: 0 4px 14px rgba(200,65,10,0.12); }
.mood-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.waiting { text-align: center; padding: 40px 24px; display: none; }
.waiting.show { display: block; }
.waiting-dots { display: inline-flex; gap: 6px; }
.waiting-dots span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: livepulse2 1.2s ease-in-out infinite;
}
.waiting-dots span:nth-child(2) { animation-delay: 0.15s; }
.waiting-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes livepulse2 { 0%,100%{opacity:.3; transform:scale(0.8)} 50%{opacity:1; transform:scale(1.15)} }

#risposta { display: none; max-width: 600px; margin: 0 auto; padding: 0 24px 80px; }
#risposta.show { display: block; animation: cardIn 0.4s ease forwards; }

.msg-bubble {
  background: var(--white); border-radius: var(--r);
  border: 1px solid var(--border);
  padding: 30px 30px 26px; margin-bottom: 24px;
  box-shadow: 0 4px 40px rgba(26,23,20,0.07);
}
.msg-bubble p { font-size: 17px; line-height: 1.7; color: var(--ink); }
.msg-bubble .consiglio {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border2);
  font-size: 14.5px; line-height: 1.6; color: var(--ink2); font-style: italic;
}
.msg-bubble.cura { border-color: rgba(200,65,10,0.2); background: #fdf6f0; }
.cura-risorse {
  margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(200,65,10,0.15);
  font-size: 14px; line-height: 1.65; color: var(--ink2);
}

/* ── THREAD CONVERSAZIONE — bolle compatte, stile chat ── */
.chat-utente {
  background: var(--accent); color: #fff;
  border-radius: 18px 18px 4px 18px;
  padding: 11px 17px; margin: 4px 0 8px auto;
  font-size: 14.5px; line-height: 1.45;
  max-width: 78%; width: fit-content;
}
.chat-ai {
  background: var(--white); color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 18px 18px 18px 4px;
  padding: 13px 17px; margin: 4px auto 14px 0;
  font-size: 14.5px; line-height: 1.5;
  max-width: 82%; width: fit-content;
  box-shadow: 0 2px 10px rgba(26,23,20,0.05);
}
.chat-ai p { font-size: 14.5px; line-height: 1.5; margin: 0; }
.chat-ai-consiglio {
  margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--border2);
  font-size: 13px; line-height: 1.45; color: var(--ink2); font-style: italic;
}
.opzioni-wrap { margin-top: 6px; }
.continua-box {
  margin: 28px 0; padding: 20px 22px;
  background: var(--cream2); border-radius: var(--r);
  border: 1px solid var(--border);
}
.continua-label {
  display: block; font-size: 13px; color: var(--ink2); margin-bottom: 12px; line-height: 1.4;
}
.continua-row { display: flex; gap: 10px; }
.continua-row input {
  flex: 1; border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 11px 16px; font-size: 14px; font-family: 'Inter', sans-serif;
  background: var(--white); color: var(--ink); outline: none;
}
.continua-row input:focus { border-color: var(--accent2); }
.continua-row button {
  background: var(--accent); color: #fff; border: none;
  padding: 11px 20px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: 'Inter', sans-serif; transition: background 0.15s;
}
.continua-row button:hover:not(:disabled) { background: var(--accent2); }
.continua-row button:disabled { opacity: 0.5; cursor: default; }

.opzioni-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink3); margin: 30px 0 14px;
}
.opzioni-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.opz-chip {
  background: var(--white); border: 1px solid var(--border); border-radius: 16px;
  padding: 16px 20px; cursor: pointer; font-size: 14.5px; font-weight: 500;
  display: flex; align-items: center; gap: 11px; color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  line-height: 1.3;
}
.opz-chip:hover { border-color: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 20px -8px rgba(200,65,10,0.2); }
.opz-chip .emoji { font-size: 20px; line-height: 1; flex-shrink: 0; }

.opz-content {
  display: none; margin-top: 32px; background: var(--white);
  border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--r);
  padding: 26px 28px;
  box-shadow: 0 8px 30px -10px rgba(26,23,20,0.12);
}
.opz-content.show { display: block; animation: cardIn 0.35s ease forwards; }
.opz-content h4 {
  font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.opz-content p { font-size: 14.5px; color: var(--ink2); line-height: 1.65; margin-bottom: 18px; }
.opz-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 600; padding: 12px 20px; border-radius: var(--r-pill);
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: background 0.15s, transform 0.15s;
}
.opz-link:hover { background: var(--accent2); transform: translateY(-1px); }

.respiro-box { text-align: center; padding: 16px 0 6px; }
.respiro-circle {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto 22px;
  background: radial-gradient(circle at 35% 30%, var(--accent2), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 15px; font-weight: 600;
  transition: transform 4s ease-in-out;
  box-shadow: 0 16px 40px -12px rgba(200,65,10,0.4);
}
.respiro-circle.in  { transform: scale(1.35); }
.respiro-circle.out { transform: scale(0.82); }
.respiro-timer { font-size: 13.5px; color: var(--ink3); }

.reset-link {
  display: block; text-align: center; margin-top: 36px;
  font-size: 13px; color: var(--ink3); text-decoration: none;
}
.reset-link:hover { color: var(--accent); }

/* ── CHECK-IN FINALE + CARD CONDIVISIBILE ── */
.checkin-box {
  margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border2);
  text-align: center;
}
.checkin-title {
  font-family: 'Playfair Display', serif; font-style: italic;
  font-size: 19px; color: var(--ink); margin-bottom: 16px;
}
.checkin-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.checkin-btn {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-pill);
  padding: 11px 20px; font-size: 14px; font-weight: 500; color: var(--ink);
  cursor: pointer; font-family: 'Inter',sans-serif;
  transition: border-color 0.15s, transform 0.15s;
}
.checkin-btn:hover:not(:disabled) { border-color: var(--accent2); transform: translateY(-1px); }
.checkin-btn:disabled { opacity: 0.4; cursor: default; }

/* ── BARRA DI CHAT FISSA — unico punto di scrittura, sempre visibile ── */
.chat-inputbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 20px rgba(26,23,20,0.06);
}
.chat-inputbar-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 600px; margin: 0 auto;
}
.chat-inputbar input {
  flex: 1; border: 1px solid var(--border); border-radius: 999px;
  padding: 12px 18px; font-size: 15px; font-family: 'Inter', sans-serif;
  background: var(--cream2); color: var(--ink); outline: none;
}
.chat-inputbar input:focus { border-color: var(--accent2); background: var(--white); }
.chat-inputbar input:disabled { opacity: 0.6; }
.chat-inputbar button {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, transform 0.15s;
}
.chat-inputbar button:hover:not(:disabled) { background: var(--accent2); transform: scale(1.05); }
.chat-inputbar button:disabled { opacity: 0.5; cursor: default; }

.checkin-msg {
  margin-top: 18px; font-size: 14.5px; color: var(--ink2); line-height: 1.6;
  max-width: 380px; margin-left: auto; margin-right: auto;
}

.share-card {
  max-width: 340px; margin: 24px auto 18px;
  background: linear-gradient(160deg, #fdf9f4, var(--cream));
  border: 1px solid var(--border); border-radius: 20px;
  padding: 44px 30px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.share-card::before {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,65,10,0.12), transparent 70%);
}
.share-card-mark {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.share-card-msg {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 28px; line-height: 1.2; color: var(--ink); margin-bottom: 14px;
}
.share-card-msg em { font-style: italic; color: var(--accent); }
.share-card-sub {
  font-size: 13.5px; color: var(--ink2); line-height: 1.5; margin-bottom: 22px;
}
.share-card-foot {
  font-size: 10.5px; color: var(--ink3); letter-spacing: 0.06em; text-transform: uppercase;
  border-top: 1px solid var(--border); padding-top: 14px;
}
.share-actions {
  text-align: center; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.opz-link-ghost {
  background: transparent; color: var(--accent); border: 1px solid var(--border);
}
.opz-link-ghost:hover { background: rgba(200,65,10,0.06); }

/* ── CARD CON FOTO SFONDO ── */
.card-con-foto {
  position: relative; overflow: hidden;
  background-color: #000;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.card-con-foto::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.58);
  border-radius: inherit;
  z-index: 1;
}
.card-con-foto .share-card-mark,
.card-con-foto .share-card-msg,
.card-con-foto .share-card-sub,
.card-con-foto .share-card-foot {
  position: relative; z-index: 2;
  color: #fff !important;
  border-color: rgba(255,255,255,0.25) !important;
  text-shadow: 0 1px 10px rgba(0,0,0,0.85), 0 0 3px rgba(0,0,0,0.6);
}
.card-con-foto .share-card-msg {
  text-shadow: 0 2px 14px rgba(0,0,0,0.9), 0 0 4px rgba(0,0,0,0.7);
}
.card-con-foto .share-card-msg em { color: #ffd4b8 !important; }

/* ── STORIA INSTAGRAM — formato verticale 9:16, generata fuori schermo ── */
.story-card {
  position: absolute; left: -9999px; top: 0;
  width: 540px; height: 960px;
  background: linear-gradient(165deg, #fdf9f4, var(--cream) 55%, #fdf3ea);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 50px;
  font-family: 'Inter', sans-serif;
}
.story-card-circle {
  position: absolute; top: -60px; right: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,65,10,0.16), transparent 70%);
}
.story-card-mark {
  font-size: 18px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 50px;
}
.story-card-msg {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 56px; line-height: 1.25; color: var(--ink); margin-bottom: 34px;
}
.story-card-msg em { font-style: italic; color: var(--accent); }
.story-card-sub {
  font-size: 22px; color: var(--ink2); line-height: 1.5; margin-bottom: 70px;
}
.story-card-foot {
  font-size: 15px; color: var(--ink3); letter-spacing: 0.1em;
  border-top: 1px solid var(--border); padding-top: 26px; width: 100%;
}

/* ── OPT-IN NOTIFICHE ── */
.optin-box {
  position: fixed; bottom: -280px; left: 50%; transform: translateX(-50%);
  width: min(420px, calc(100vw - 32px));
  background: #1a1714; color: #fff;
  border-radius: 20px 20px 0 0; padding: 28px 24px 32px;
  text-align: center; z-index: 999;
  transition: bottom 0.4s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 -8px 40px rgba(0,0,0,0.35);
}
.optin-box.show { bottom: 0; }
.optin-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 24px; cursor: pointer; line-height: 1; padding: 4px;
}
.optin-icon   { font-size: 28px; margin-bottom: 10px; }
.optin-titolo { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.optin-testo  { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 20px; line-height: 1.5; }
.optin-btn-push {
  display: block; width: 100%; padding: 14px;
  background: #c8410a; color: #fff; border: none;
  border-radius: 999px; font-size: 15px; font-weight: 700;
  cursor: pointer; margin-bottom: 10px; transition: background .2s;
}
.optin-btn-push:hover { background: #a63308; }
.optin-btn-wa {
  background: none; border: none; color: rgba(255,255,255,0.45);
  font-size: 13px; cursor: pointer; text-decoration: underline; padding: 4px;
}
.optin-input {
  width: 100%; padding: 13px; border-radius: 12px; border: none;
  font-size: 15px; margin-bottom: 14px; text-align: center; color: #1a1714;
}
.optin-ok {
  font-size: 15px; font-weight: 600; color: #4ade80; padding: 20px 0;
}

/* ── BADGE "SEI QUI" ── */
.badge-sei-qui {
  display: inline-flex; align-items: center; gap: 4px;
  background: #1a1714; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  letter-spacing: 0.04em;
}

/* ── BADGE METEO ── */
.badge-meteo {
  display: inline-flex; align-items: center; gap: 3px;
  background: #f0ece6; color: #4a4540;
  font-size: 11px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid #e0dbd4;
}

/* ── 5 MINUTI: CHIP COLORATI ── */
.mood-chip-felice    { background:#fef9c3 !important; border-color:#f59e0b !important; color:#92400e !important; }
.mood-chip-stressato { background:#fee2e2 !important; border-color:#ef4444 !important; color:#991b1b !important; }
.mood-chip-giu       { background:#dbeafe !important; border-color:#3b82f6 !important; color:#1e3a8a !important; }
.mood-chip-stanco    { background:#f3f4f6 !important; border-color:#9ca3af !important; color:#374151 !important; }

.mood-chip-felice.active    { background:#f59e0b !important; color:#fff !important; }
.mood-chip-stressato.active { background:#ef4444 !important; color:#fff !important; }
.mood-chip-giu.active       { background:#3b82f6 !important; color:#fff !important; }
.mood-chip-stanco.active    { background:#6b7280 !important; color:#fff !important; }

/* ── ANIMAZIONE CERCHIO WAITING ── */
@keyframes pulseWait {
  0%, 100% { transform: scale(1);   opacity: 0.85; }
  50%       { transform: scale(1.3); opacity: 1;    }
}

/* ── CHECKIN EMOJI HOVER ── */
.checkin-btn:hover {
  border-color: #c8410a !important;
  transform: scale(1.1);
}
.checkin-btn:active { transform: scale(0.95); }

/* ── BADGE CONSIGLI AI ── */
.badge-consigli {
  display: inline-flex; align-items: center; gap: 4px;
  background: #fff8f0; color: #c8410a;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid #f0d4c0;
}
