/* ── Gold Waiters Frontend CSS ─────────────────────────────────────────────── */
:root {
  --gw-gold:        #C9A84C;
  --gw-gold-light:  #E8D49A;
  --gw-navy:        #0F1B2D;
  --gw-navy-mid:    #1E2E45;
  --gw-cream:       #FDFAF4;
  --gw-muted:       #7A756C;
  --gw-border:      rgba(201,168,76,0.22);
  --gw-border-lt:   rgba(201,168,76,0.10);
  --gw-green:       #4CAF88;
  --gw-blue:        #6EB5FF;
  --gw-red:         #E07070;
  --gw-radius:      10px;
  --gw-radius-lg:   16px;
}

.gw-wrap {
  font-family: 'DM Sans', sans-serif;
  background: var(--gw-navy);
  color: var(--gw-cream);
  min-height: 60vh;
  padding: 0;
}
.gw-wrap * { box-sizing: border-box; }
.gw-muted { color: var(--gw-muted); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.gw-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 5rem 4rem;
  background: linear-gradient(135deg, var(--gw-navy) 60%, #162335 100%);
  border-bottom: 1px solid var(--gw-border);
}
.gw-hero-content { flex: 1; max-width: 600px; }
.gw-logo-hero {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--gw-gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.gw-logo-hero em { color: var(--gw-cream); font-weight: 400; font-style: italic; }
.gw-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 600;
  color: var(--gw-cream);
  line-height: 1.15;
  margin: 0 0 1.25rem;
}
.gw-hero-sub { font-size: 16px; color: var(--gw-muted); line-height: 1.7; margin-bottom: 2.5rem; }
.gw-hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.gw-hero-visual { flex-shrink: 0; }
.gw-score-ring {
  width: 140px; height: 140px; border-radius: 50%;
  border: 3px solid var(--gw-gold);
  background: rgba(201,168,76,0.08);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.gw-score-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 600; color: var(--gw-gold); line-height: 1;
}
.gw-score-lbl { font-size: 10px; color: var(--gw-muted); letter-spacing: 0.1em; text-transform: uppercase; }

/* ── Stats Bar ────────────────────────────────────────────────────────────── */
.gw-stats-bar {
  display: flex; justify-content: center; gap: 0;
  background: var(--gw-navy-mid);
  border-bottom: 1px solid var(--gw-border);
  padding: 0;
}
.gw-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 3rem;
  border-right: 1px solid var(--gw-border);
}
.gw-stat:last-child { border-right: none; }
.gw-stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 600; color: var(--gw-gold); line-height: 1;
}
.gw-stat-l { font-size: 12px; color: var(--gw-muted); margin-top: 4px; }

/* ── Features ─────────────────────────────────────────────────────────────── */
.gw-features, .gw-perchi, .gw-waitlist { padding: 5rem 4rem; }
.gw-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 600; color: var(--gw-cream);
  text-align: center; margin-bottom: 3rem;
}
.gw-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.gw-feature-card {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 2rem;
}
.gw-feature-icon { font-size: 28px; color: var(--gw-gold); margin-bottom: 1rem; }
.gw-feature-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; color: var(--gw-cream); margin: 0 0 0.75rem;
}
.gw-feature-card p { font-size: 14px; color: var(--gw-muted); line-height: 1.7; margin: 0; }

/* ── Per chi ──────────────────────────────────────────────────────────────── */
.gw-perchi {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  background: var(--gw-navy-mid);
  border-top: 1px solid var(--gw-border);
  border-bottom: 1px solid var(--gw-border);
}
.gw-perchi-col h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px; color: var(--gw-cream); margin-bottom: 1.5rem;
}
.gw-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.gw-list li { font-size: 14px; color: var(--gw-muted); padding: 8px 0; padding-left: 20px; position: relative; border-bottom: 1px solid var(--gw-border-lt); }
.gw-list li::before { content: '◈'; position: absolute; left: 0; color: var(--gw-gold); font-size: 10px; top: 10px; }

/* ── Waitlist ─────────────────────────────────────────────────────────────── */
.gw-waitlist { background: var(--gw-navy); }
.gw-waitlist-form { max-width: 560px; margin: 0 auto; }
.gw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.gw-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: var(--gw-radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  border: none; transition: all 0.15s;
  white-space: nowrap;
}
.gw-btn-gold { background: var(--gw-gold); color: var(--gw-navy); }
.gw-btn-gold:hover { background: #d4b05c; color: var(--gw-navy); }
.gw-btn-outline { background: transparent; color: var(--gw-cream); border: 1px solid var(--gw-border); }
.gw-btn-outline:hover { border-color: rgba(201,168,76,0.5); color: var(--gw-gold); }
.gw-btn-green { background: rgba(26,107,60,0.2); color: var(--gw-green); border: 1px solid rgba(76,175,136,0.3); }
.gw-btn-sm { padding: 5px 14px; font-size: 12px; border-radius: 6px; }
.gw-btn-full { width: 100%; }

/* ── Inputs ───────────────────────────────────────────────────────────────── */
.gw-input {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  color: var(--gw-cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.gw-input:focus { outline: none; border-color: rgba(201,168,76,0.6); }
.gw-input option { background: #1a2a3e; color: var(--gw-cream); }
.gw-field { margin-bottom: 0; }
.gw-field > label { display: block; font-size: 12px; color: var(--gw-muted); margin-bottom: 5px; }

/* ── Auth ─────────────────────────────────────────────────────────────────── */
.gw-auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 80vh; padding: 2rem; }
.gw-auth-box {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 2.5rem;
  width: 100%; max-width: 520px;
}
.gw-logo-sm {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--gw-gold);
  margin-bottom: 1rem;
}
.gw-logo-sm em { color: var(--gw-cream); font-style: italic; font-weight: 400; }
.gw-auth-box h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 600; color: var(--gw-cream);
  margin: 0 0 1.5rem;
}
.gw-tipo-toggle { display: flex; gap: 8px; margin-bottom: 1.5rem; }
.gw-tipo-btn {
  flex: 1; padding: 10px; border-radius: var(--gw-radius);
  border: 1px solid var(--gw-border);
  background: transparent; color: var(--gw-muted);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
  cursor: pointer; transition: all 0.15s;
}
.gw-tipo-btn.active { background: var(--gw-gold); color: var(--gw-navy); font-weight: 500; border-color: var(--gw-gold); }
.gw-auth-switch { font-size: 13px; color: var(--gw-muted); text-align: center; margin-top: 1.25rem; }
.gw-auth-switch a { color: var(--gw-gold); text-decoration: none; }
.gw-hidden { display: none !important; }
.gw-conditional-fields { margin-top: 0.5rem; }

/* ── Form messages ────────────────────────────────────────────────────────── */
.gw-form-msg {
  margin-top: 12px; padding: 10px 14px;
  border-radius: var(--gw-radius);
  font-size: 13px; display: none;
}
.gw-form-msg.success { background: rgba(26,107,60,0.2); color: var(--gw-green); border: 1px solid rgba(76,175,136,0.3); }
.gw-form-msg.error { background: rgba(192,57,43,0.15); color: var(--gw-red); border: 1px solid rgba(192,57,43,0.3); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.gw-dashboard { padding: 2rem; }
.gw-dash-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gw-border-lt);
}
.gw-dash-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 600; color: var(--gw-cream); margin: 0 0 4px;
}
.gw-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.gw-kpi {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius);
  padding: 1.1rem 1.25rem;
}
.gw-kpi-label { font-size: 11px; color: var(--gw-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.gw-kpi-val { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: var(--gw-cream); line-height: 1; }
.gw-kpi-sub { font-size: 11px; color: var(--gw-muted); margin-top: 4px; }
.gw-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.gw-card {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 1.5rem;
}
.gw-card-full { grid-column: 1 / -1; }
.gw-card-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem;
}
.gw-card-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px; font-weight: 600; color: var(--gw-cream); margin: 0;
}
.gw-link-sm { font-size: 12px; color: var(--gw-gold); text-decoration: none; }

/* ── Offerta mini card ────────────────────────────────────────────────────── */
.gw-offerta-mini {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--gw-border-lt);
  gap: 12px;
}
.gw-offerta-mini:last-child { border-bottom: none; }
.gw-offerta-title { font-size: 13px; font-weight: 500; color: var(--gw-cream); }
.gw-offerta-sub { font-size: 11px; color: var(--gw-muted); margin-top: 2px; }
.gw-offerta-ral { font-size: 11px; color: var(--gw-gold); margin-top: 2px; }
.gw-stars-sm { font-size: 12px; color: var(--gw-gold); margin-left: 6px; }

/* ── Table ────────────────────────────────────────────────────────────────── */
.gw-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.gw-table th { text-align: left; color: var(--gw-muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 8px; border-bottom: 1px solid var(--gw-border); font-weight: 400; }
.gw-table td { padding: 10px 8px; border-bottom: 1px solid var(--gw-border-lt); color: var(--gw-cream); vertical-align: middle; }
.gw-table tr:last-child td { border-bottom: none; }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.gw-badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 500;
}
.gw-badge-gold  { background: rgba(201,168,76,0.15); color: var(--gw-gold); border: 1px solid rgba(201,168,76,0.3); }
.gw-badge-green { background: rgba(26,107,60,0.15); color: var(--gw-green); border: 1px solid rgba(76,175,136,0.2); }
.gw-badge-blue  { background: rgba(56,120,200,0.15); color: var(--gw-blue); border: 1px solid rgba(56,120,200,0.25); }
.gw-badge-red   { background: rgba(192,57,43,0.15); color: var(--gw-red); border: 1px solid rgba(192,57,43,0.25); }
.gw-badge-muted { background: rgba(122,117,108,0.15); color: var(--gw-muted); border: 1px solid rgba(122,117,108,0.25); }

/* ── Reviews ──────────────────────────────────────────────────────────────── */
.gw-review-item { padding: 14px 0; border-bottom: 1px solid var(--gw-border-lt); }
.gw-review-item:last-child { border-bottom: none; }
.gw-review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; font-weight: 500; }
.gw-stars { color: var(--gw-gold); font-size: 13px; }
.gw-review-score { font-size: 13px; color: var(--gw-gold); font-family: 'Cormorant Garamond', serif; font-weight: 600; }
.gw-review-text { font-size: 13px; color: var(--gw-muted); font-style: italic; margin: 4px 0; }
.gw-review-date { font-size: 11px; color: var(--gw-muted); opacity: 0.7; }

/* ── Empty state ──────────────────────────────────────────────────────────── */
.gw-empty { color: var(--gw-muted); font-size: 13px; text-align: center; padding: 2rem 1rem; }
.gw-empty a { color: var(--gw-gold); text-decoration: none; }

/* ── Page header ──────────────────────────────────────────────────────────── */
.gw-page-header { padding: 2.5rem 4rem 1.5rem; border-bottom: 1px solid var(--gw-border-lt); }
.gw-page-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 600; color: var(--gw-cream); margin: 0 0 4px;
}

/* ── Filtri Offerte ───────────────────────────────────────────────────────── */
.gw-filtri-form {
  display: flex; gap: 12px; align-items: center;
  padding: 1.5rem 4rem;
  background: var(--gw-navy-mid);
  border-bottom: 1px solid var(--gw-border);
  flex-wrap: wrap;
}
.gw-filtri-form .gw-input { margin-bottom: 0; width: auto; flex: 1; min-width: 180px; }

/* ── Offerte Grid ─────────────────────────────────────────────────────────── */
.gw-offerte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
  padding: 1.5rem 4rem 3rem;
}
.gw-offerta-card {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.15s;
}
.gw-offerta-card:hover { border-color: rgba(201,168,76,0.45); transform: translateY(-2px); }
.gw-offerta-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.gw-offerta-card-title { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--gw-cream); }
.gw-offerta-card-rist { font-size: 12px; color: var(--gw-gold); margin-top: 2px; }
.gw-offerta-card-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--gw-muted); margin: 10px 0; }
.gw-offerta-card-desc { font-size: 12px; color: var(--gw-muted); margin: 8px 0; line-height: 1.6; }
.gw-offerta-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gw-border-lt); }
.gw-offerta-date { font-size: 11px; color: var(--gw-muted); }

/* ── Modal ────────────────────────────────────────────────────────────────── */
.gw-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(5,10,20,0.88);
  z-index: 9999;
  align-items: center; justify-content: center;
}
.gw-modal-overlay.gw-open { display: flex; }
.gw-modal {
  background: var(--gw-navy-mid);
  border: 1px solid var(--gw-border);
  border-radius: var(--gw-radius-lg);
  padding: 2rem; width: 90%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  position: relative;
}
.gw-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; color: var(--gw-cream);
  margin-bottom: 1.25rem;
}
.gw-modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; color: var(--gw-muted);
  font-size: 18px; cursor: pointer; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.gw-modal-close:hover { background: rgba(255,255,255,0.06); color: var(--gw-cream); }

/* ── Scrollbar ────────────────────────────────────────────────────────────── */
.gw-wrap ::-webkit-scrollbar { width: 5px; }
.gw-wrap ::-webkit-scrollbar-track { background: transparent; }
.gw-wrap ::-webkit-scrollbar-thumb { background: var(--gw-border); border-radius: 3px; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gw-hero { flex-direction: column; padding: 3rem 1.5rem; text-align: center; }
  .gw-hero-cta { justify-content: center; }
  .gw-hero-visual { display: none; }
  .gw-stats-bar { flex-wrap: wrap; }
  .gw-stat { padding: 1rem 1.5rem; }
  .gw-features, .gw-waitlist { padding: 3rem 1.5rem; }
  .gw-perchi { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .gw-dash-grid { grid-template-columns: 1fr; }
  .gw-page-header, .gw-filtri-form { padding-left: 1.5rem; padding-right: 1.5rem; }
  .gw-offerte-grid { padding: 1.5rem 1.5rem 3rem; grid-template-columns: 1fr; }
  .gw-form-row { grid-template-columns: 1fr; }
  .gw-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .gw-dashboard { padding: 1.5rem; }
  .gw-dash-header { flex-direction: column; gap: 1rem; }
}
