/* ================================================
   landing.css — PrenotaStile v3
   Mobile-first · Dark premium · Dual-path hero
   ================================================ */

/* ---- Animazioni ---- */
@keyframes fadeInUp   { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn     { from { opacity:0; } to { opacity:1; } }
@keyframes pulseGlow  { 0%,100% { box-shadow:0 0 0 0 rgba(201,169,110,.35); } 50% { box-shadow:0 0 0 10px rgba(201,169,110,0); } }
@keyframes shimmer    { 0% { background-position:200% center; } 100% { background-position:-200% center; } }
@keyframes floatPin   { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-6px); } }

.anim-1 { animation: fadeInUp .55s ease both; }
.anim-2 { animation: fadeInUp .55s .1s ease both; }
.anim-3 { animation: fadeInUp .55s .2s ease both; }
.anim-4 { animation: fadeInUp .55s .3s ease both; }
.anim-5 { animation: fadeInUp .55s .4s ease both; }

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 80px 0 2rem;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 100% 60% at 50% -5%,  rgba(201,169,110,.13) 0%, transparent 60%),
    radial-gradient(ellipse 60%  50% at 90%  60%, rgba(201,169,110,.06) 0%, transparent 65%),
    radial-gradient(ellipse 40%  40% at 10%  70%, rgba(201,169,110,.04) 0%, transparent 65%);
}
/* particelle decorative */
.hero-bg::before {
  content: '';
  position: absolute; top: 15%; right: 8%;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.07) 0%, transparent 70%);
  filter: blur(40px);
}
.hero-bg::after {
  content: '';
  position: absolute; bottom: 20%; left: 5%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.05) 0%, transparent 70%);
  filter: blur(30px);
}

.hero-inner {
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}
.hero-content { flex: 1; max-width: 600px; }

/* Tag badge */
.hero-tag {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .3rem .875rem;
  border-radius: var(--radius-full);
  background: var(--accent-glow);
  border: 1px solid rgba(201,169,110,.25);
  font-size: .72rem; font-weight: 700;
  color: var(--accent); letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.hero-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulseGlow 2s infinite;
}

/* Titolo hero */
.hero-title {
  font-size: clamp(2.2rem, 7vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1rem;
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-subtitle {
  font-size: clamp(.9rem, 2.5vw, 1.05rem);
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 2rem;
}

/* Dual-path cards */
.hero-paths {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}
.path-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  cursor: pointer;
  transition: all .2s ease;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .2s;
}
.path-card:hover { transform: translateY(-2px); }
.path-card:active { transform: translateY(0); }

.path-card-client {
  background: linear-gradient(135deg, rgba(201,169,110,.12) 0%, rgba(201,169,110,.04) 100%);
  border-color: rgba(201,169,110,.3);
}
.path-card-client:hover { border-color: rgba(201,169,110,.55); box-shadow: 0 8px 32px rgba(201,169,110,.15); }

.path-card-owner {
  background: var(--bg-card);
  border-color: var(--border);
}
.path-card-owner:hover { border-color: var(--border-hover); background: var(--bg-elevated); }

.path-icon {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.path-card-client .path-icon { background: rgba(201,169,110,.15); }
.path-card-owner  .path-icon { background: var(--bg-elevated); }

.path-info { flex: 1; min-width: 0; }
.path-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .2rem; }
.path-title { font-size: .95rem; font-weight: 700; color: var(--text); }
.path-card-client .path-title { color: var(--accent); }
.path-sub   { font-size: .78rem; color: var(--text-secondary); margin-top: .1rem; }

.path-arrow {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.path-card-client .path-arrow { background: var(--accent); color: #0a0a0a; }
.path-card-owner  .path-arrow { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
.path-card:hover .path-arrow  { transform: translateX(3px); }

/* Stats */
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: nowrap;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.hero-stats::-webkit-scrollbar { display: none; }
.hero-stat { flex-shrink: 0; }
.hero-stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.hero-stat-label { font-size: .75rem; color: var(--text-muted); margin-top: .25rem; }

/* Mini mappa hero */
.hero-visual { flex: 1; max-width: 500px; min-width: 0; }
.map-preview {
  position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 4/3;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 80px rgba(201,169,110,.08);
}
.map-preview #miniMap { width: 100%; height: 100%; }
.map-cta-overlay {
  position: absolute; bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  z-index: 999; white-space: nowrap;
  box-shadow: var(--shadow-md);
}

/* ---- Sezione trust strip ---- */
.trust-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 0;
}
.trust-track {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 100%;
  width: max-content;
  gap: 0;
  padding: 1.1rem 0;
  will-change: transform;
  animation: trust-ticker 45s linear infinite;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
@keyframes trust-ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.trust-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--text-muted); white-space: nowrap;
  padding: 0 2rem;
  border-right: 1px solid var(--border);
}
.trust-item:last-child { border-right: none; }
.trust-item svg { color: var(--accent); flex-shrink: 0; }

/* ---- Come funziona — Stepper Accordion ---- */

/* Desktop: 3 colonne statiche */
.steps-accordion {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: border-color .2s, box-shadow .2s;
}
.step-item:hover { border-color: rgba(201,169,110,.22); box-shadow: 0 12px 40px rgba(201,169,110,.08); }
.step-header {
  display: flex; align-items: center; gap: .875rem;
  cursor: default;
}
.step-number {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 700;
  color: rgba(201,169,110,.18); line-height: 1; flex-shrink: 0; min-width: 2.4rem;
}
.step-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-glow); border: 1px solid rgba(201,169,110,.18);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.step-title { font-size: .95rem; font-weight: 600; flex: 1; }
.step-chevron { display: none; color: var(--text-muted); flex-shrink: 0; transition: transform .25s ease; }
.step-body {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.step-body p { font-size: .85rem; color: var(--text-secondary); line-height: 1.7; margin: 0; }
.step-cta {
  display: inline-block; margin-top: .75rem;
  font-size: .8rem; font-weight: 600; color: var(--accent);
  text-decoration: none; transition: opacity .15s;
}
.step-cta:hover { opacity: .75; }

/* ---- Salon cards ---- */
.salon-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all .2s ease; cursor: pointer;
  text-decoration: none; display: block;
}
.salon-card:hover { border-color: rgba(201,169,110,.2); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.salon-card-img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); overflow: hidden;
}
.salon-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.salon-card-body  { padding: 1rem; }
.salon-card-type  { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: .35rem; }
.salon-card-name  { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--text); }
.salon-card-addr  { font-size: .78rem; color: var(--text-secondary); display: flex; align-items: center; gap: .35rem; margin-bottom: .75rem; }
.salon-card-footer { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; border-top: 1px solid var(--border); }

/* ---- Feature strip ---- */
.feature-item { display: flex; align-items: flex-start; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--border); }
.feature-item:last-child { border-bottom: none; }
.feature-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: var(--radius-sm); background: var(--accent-glow);
  border: 1px solid rgba(201,169,110,.15);
  display: flex; align-items: center; justify-content: center; color: var(--accent);
}
.feature-title { font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.feature-text  { font-size: .82rem; color: var(--text-secondary); line-height: 1.6; }

/* ---- Mock window ---- */
.mock-window { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.mock-titlebar { padding: .875rem 1rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .45rem; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 1rem; }
.mock-booking-row { display: flex; align-items: center; gap: .75rem; font-size: .82rem; color: var(--text); }
.mock-dot-status  { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mock-price { margin-left: auto; font-size: .75rem; color: var(--accent); }

/* ---- Piani / Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.pricing-card.elite {
  border-color: rgba(180,130,255,.4);
  background: linear-gradient(160deg, rgba(140,80,255,.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(180,130,255,.12), 0 20px 60px rgba(140,80,255,.08);
}
.pricing-card.elite .pricing-badge {
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  color: #fff;
}
.pricing-card.elite .pricing-amount { color: #c084fc; }
.pricing-card.elite .pricing-featured-plan { color: #c084fc; }
.pricing-check-elite { background: rgba(180,130,255,.15); color: #c084fc; }
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  position: relative;
  transition: all .25s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: rgba(201,169,110,.45);
  background: linear-gradient(160deg, rgba(201,169,110,.1) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 0 1px rgba(201,169,110,.15), 0 20px 60px rgba(201,169,110,.1);
}
.pricing-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #0a0a0a;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .25rem .875rem; border-radius: var(--radius-full); white-space: nowrap;
}
.pricing-plan {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .75rem;
}
.pricing-featured-plan { color: var(--accent); }
.pricing-price {
  display: flex; align-items: flex-end; gap: .25rem;
  margin-bottom: .35rem;
}
.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem; font-weight: 700; line-height: 1;
  color: var(--text);
}
.pricing-card.featured .pricing-amount { color: var(--accent); }
.pricing-currency { font-size: 1.2rem; font-weight: 600; color: var(--text-secondary); margin-bottom: .4rem; }
.pricing-period { font-size: .8rem; color: var(--text-muted); margin-bottom: .2rem; padding-bottom: .2rem; }
.pricing-desc {
  font-size: .82rem; color: var(--text-secondary); line-height: 1.55;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.pricing-features { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-direction: column; gap: .7rem; }
.pricing-feature {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .84rem; color: var(--text-secondary); line-height: 1.4;
}
.pricing-check {
  width: 16px; height: 16px; flex-shrink: 0;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}
.pricing-check-yes { background: rgba(201,169,110,.15); color: var(--accent); }
.pricing-check-no  { background: var(--bg-elevated); color: var(--text-muted); opacity: .5; }
.pricing-feature.disabled { opacity: .45; }
.pricing-cta { margin-top: auto; }

/* ---- CTA section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 4rem 2rem; text-align: center;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: -50%; left: 50%;
  transform: translateX(-50%); width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(201,169,110,.07) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .875rem; }
.cta-title em { font-style: italic; color: var(--accent); }
.cta-sub { color: var(--text-secondary); font-size: .95rem; max-width: 460px; margin: 0 auto 2.25rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.25rem; color: var(--accent); font-weight: 600; margin-bottom: .5rem; }
.footer-brand span { color: var(--text); }
.footer-tagline { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }
.footer-col-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); margin-bottom: 1rem; }
.footer-link { display: block; font-size: .85rem; color: var(--text-muted); padding: .2rem 0; transition: color var(--transition); }
.footer-link:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem; font-size: .78rem; color: var(--text-muted);
}

/* ---- Sticky bottom bar (mobile) ---- */
.mobile-bottom-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: .875rem 1.25rem;
  padding-bottom: calc(.875rem + env(safe-area-inset-bottom, 0px));
  background: rgba(10,10,10,.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  z-index: 100;
  gap: .625rem;
}

/* ============================================================
   RESPONSIVE — MOBILE FIRST
   ============================================================ */

/* Tablet */
@media (max-width: 960px) {
  .hero-visual { display: none; }
  .hero-inner  { padding-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  /* Stepper: 1 colonna su tablet, accordion attivo */
  .steps-accordion {
    display: flex; flex-direction: column; gap: 0;
    border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  }
  .step-item {
    border: none; border-bottom: 1px solid var(--border);
    border-radius: 0; padding: 0;
    transition: background .15s;
  }
  .step-item:last-child { border-bottom: none; }
  .step-item:hover { box-shadow: none; border-color: transparent; }
  .step-item.open { background: var(--bg-elevated); }
  .step-header {
    cursor: pointer; padding: 1rem 1.25rem;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
  }
  .step-header:active { background: rgba(255,255,255,.03); }
  .step-chevron { display: flex; }
  .step-item.open .step-chevron { transform: rotate(90deg); color: var(--accent); }
  .step-item.open .step-number { color: rgba(201,169,110,.35); }
  .step-body {
    max-height: 0; overflow: hidden; opacity: 0;
    margin-top: 0; padding: 0 1.25rem; border-top: none;
    transition: max-height .32s ease, opacity .22s ease, padding .22s ease;
  }
  .step-item.open .step-body {
    max-height: 220px; opacity: 1;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
  }
}

/* Mobile */
@media (max-width: 640px) {
  .hero {
    min-height: 100dvh;
    padding-top: 70px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    justify-content: flex-start;
  }
  .hero-inner { padding: 1.5rem 1.25rem 0; gap: 0; }
  .hero-title { font-size: clamp(2rem, 9vw, 2.6rem); }
  .hero-subtitle { font-size: .9rem; margin-bottom: 1.5rem; }

  /* Path cards full width on mobile */
  .hero-paths { gap: .625rem; margin-bottom: 1.5rem; }
  .path-card  { padding: .875rem 1rem; }
  .path-icon  { width: 40px; height: 40px; font-size: 1.1rem; }
  .path-title { font-size: .9rem; }
  .path-sub   { display: none; }

  /* Stats scroll horizontal */
  .hero-stats { gap: 1.75rem; padding-top: 1.25rem; }
  .hero-stat-value { font-size: 1.4rem; }

  /* Trust strip — nessun override, il ticker funziona su tutti i dispositivi */

  /* How cards: horizontal scroll on mobile */
  .how-grid {
    display: flex; gap: 1rem;
    overflow-x: auto; scrollbar-width: none;
    padding-bottom: .5rem;
    grid-template-columns: unset;
  }
  .how-grid::-webkit-scrollbar { display: none; }
  .how-card { min-width: 240px; flex-shrink: 0; }

  /* Salon cards: 1 column */
  .salon-cards-grid { grid-template-columns: 1fr !important; }

  /* Features section: stack */
  .features-owner-grid { grid-template-columns: 1fr !important; }

  /* CTA */
  .cta-section { padding: 2.5rem 1.25rem; border-radius: var(--radius-lg); }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: .4rem; }
  footer { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }

  /* Pricing: 1 colonna su mobile */
  .pricing-grid { grid-template-columns: 1fr; }

  /* Show sticky bottom bar */
  .mobile-bottom-bar { display: flex; }
}
