/* ============================================
   PlateUp — Modern redesign
   ============================================ */

:root {
  --bg:        #0b0d11;
  --bg-2:      #14171d;
  --surface:   #1c2028;
  --surface-2: #21252f;
  --line:      rgba(255, 255, 255, 0.06);
  --line-2:    rgba(255, 255, 255, 0.12);
  --cream:     #ffffff;
  --cream-2:   #c9cdd6;
  --muted:     #6b7280;
  --gold:      #d4af37;
  --gold-deep: #b8941f;
  --gold-dim:  rgba(212, 175, 55, 0.12);
  --blue:      #37a8d4;
  --saffron:   #ff7a3d;
  --oxblood:   #3d1a14;

  --serif: 'Instrument Serif', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --rad: 18px;
  --rad-sm: 10px;
  --rad-lg: 28px;

  --t-fast: cubic-bezier(.4,0,.2,1);
  --t-med:  cubic-bezier(.4,0,.2,1);
  --t-slow: cubic-bezier(.4,0,.2,1);
  --t-eos:  cubic-bezier(.16,1,.3,1);
  --d-fast: .25s;
  --d-med:  .55s;
  --d-slow: .9s;
  --d-eos:  .8s;
}

@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.005em;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

.mono { font-family: var(--mono); font-size: .72em; letter-spacing: 0; text-transform: lowercase; font-weight: 400; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--gold); }

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,122,61,.12) 0%, rgba(212,168,90,.06) 30%, transparent 60%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s;
  mix-blend-mode: screen;
  filter: blur(40px);
}
.cursor-glow.active { opacity: 1; }

/* ── Grain overlay ── */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: .07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.7'/></svg>");
}

/* ── Scroll progress ── */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--saffron));
  z-index: 1000;
  transition: width .1s linear;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 12px 10px 24px;
  background: rgba(10, 9, 8, 0.7);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 100px;
  max-width: calc(100% - 40px);
  transition: transform var(--d-eos) var(--t-eos), opacity var(--d-eos) var(--t-eos);
}
.nav.hidden { transform: translate(-50%, -120%); opacity: 0; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.logo-mark {
  color: var(--gold);
  font-size: 0.85em;
  display: inline-block;
  animation: spin 22s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.logo-text { line-height: 1; }
.logo.big { font-size: 2rem; }

.nav-center {
  display: flex;
  gap: 4px;
  padding: 0 8px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.nav-link {
  padding: 8px 14px;
  font-size: 0.83rem;
  color: var(--cream-2);
  border-radius: 100px;
  transition: color var(--d-fast) var(--t-fast), background var(--d-fast) var(--t-fast);
  font-weight: 400;
}
.nav-link:hover { color: var(--cream); background: var(--line); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-login {
  padding: 8px 14px;
  font-size: .83rem;
  color: var(--cream-2);
  transition: color var(--d-fast) var(--t-fast);
}
.nav-login:hover { color: var(--gold); }
.nav-register {
  font-size: .875rem;
  font-weight: 500;
  color: var(--bg);
  background: var(--gold);
  padding: 7px 16px;
  border-radius: 100px;
  transition: background var(--d-fast) var(--t-fast);
}
.nav-register:hover { background: #e6c155; }

.btn-magnetic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 20px;
  background: var(--cream);
  color: var(--bg);
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 500;
  transition: background var(--d-fast) var(--t-fast), color var(--d-fast) var(--t-fast);
  position: relative;
  will-change: transform;
}
.btn-magnetic .btn-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--bg);
  color: var(--cream);
  border-radius: 50%;
  font-size: .75rem;
  transition: transform var(--d-fast) var(--t-fast);
}
.btn-magnetic:hover { background: var(--gold); }
.btn-magnetic:hover .btn-arrow { transform: translateX(2px); }

.hamburger { display: none; }

@media (max-width: 900px) {
  .nav { padding: 8px 10px 8px 18px; gap: 12px; }
  .nav-center, .nav-right .nav-login { display: none; }
  .nav-right .btn-magnetic { display: none; }   /* ← rimosso completamente, c'è già nel mobile-nav */
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 6% 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 70%, rgba(255, 122, 61, .14) 0%, transparent 60%),
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(212, 168, 90, .10) 0%, transparent 55%),
    radial-gradient(ellipse 70% 45% at 80% 25%, rgba(61, 26, 20, .35) 0%, transparent 60%);
  z-index: 0;
  animation: meshDrift 18s ease-in-out infinite alternate;
  filter: blur(0px);
}
@keyframes meshDrift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(-2%, 1%) scale(1.05); }
  100% { transform: translate(1%, -2%) scale(1.02); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}
.hero-grid-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}
.hero-grid-line:nth-child(1) { left: 16.66%; }
.hero-grid-line:nth-child(2) { left: 33.33%; }
.hero-grid-line:nth-child(3) { left: 50%; }
.hero-grid-line:nth-child(4) { left: 66.66%; }
.hero-grid-line:nth-child(5) { left: 83.33%; }

.hero > * { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  background: rgba(244, 237, 225, .04);
  border: 1px solid var(--line);
  border-radius: 100px;
  margin-bottom: 36px;
  font-size: .78rem;
  color: var(--cream-2);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(255, 122, 61, .5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 122, 61, .5); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 122, 61, 0); }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 11vw, 11rem);
  line-height: .92;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
  color: var(--cream);
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding: 0 0 0.05em 0;
}
.hero-title .word {
  display: inline-block;
  will-change: transform;
}
.hero-title em { color: var(--gold); }

/* Rotator */
.rotator {
  position: relative;
  display: inline-block;
  vertical-align: top;
  text-align: left;
}
.rotator .r-item {
  position: absolute;
  inset: 0;
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .6s, transform .6s cubic-bezier(.16,1,.3,1);
  white-space: nowrap;
}
.rotator .r-item.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}
.rotator .r-item.exit {
  opacity: 0;
  transform: translateY(-40%);
}

.hero-sub {
  max-width: 580px;
  font-size: 1.06rem;
  color: var(--cream-2);
  line-height: 1.6;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 80px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px 16px 28px;
  background: var(--cream);
  color: var(--bg);
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background var(--d-fast) var(--t-fast), transform var(--d-fast) var(--t-fast);
  will-change: transform;
}
.btn-primary svg { width: 18px; height: 18px; transition: transform var(--d-fast) var(--t-fast); }
.btn-primary:hover { background: var(--gold); }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-primary.big { padding: 20px 26px 20px 32px; font-size: 1.02rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--line-2);
  border-radius: 100px;
  font-size: .92rem;
  color: var(--cream);
  font-weight: 400;
  transition: border-color var(--d-fast) var(--t-fast), background var(--d-fast) var(--t-fast);
}
.btn-secondary:hover { border-color: var(--gold); background: rgba(212,168,90,.06); }
.play-dot {
  width: 26px; height: 26px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.play-dot::after {
  content: '';
  width: 0; height: 0;
  border-left: 7px solid var(--bg);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  margin-left: 2px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  padding: 18px 28px;
  background: rgba(244,237,225,.025);
  border: 1px solid var(--line);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}
.meta-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 0 22px;
}
.meta-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  font-weight: 400;
}
.meta-sym {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}
.meta-lbl {
  font-size: .76rem;
  color: var(--muted);
}
.meta-divider {
  width: 1px;
  height: 20px;
  background: var(--line-2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .7rem;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, var(--muted), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -10px; left: 0;
  width: 100%; height: 10px;
  background: var(--gold);
  animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
  0%   { top: -10px; }
  100% { top: 100%; }
}

/* ============================================
   MARQUEE
   ============================================ */

.marquee {
  padding: 50px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.marquee-track {
  display: flex;
  gap: 60px;
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
}
@keyframes marqueeScroll {
  to { transform: translateX(calc(-50% - 30px)); }
}
.marquee-content {
  display: flex;
  align-items: center;
  gap: 60px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--cream);
  white-space: nowrap;
  flex-shrink: 0;
}
.marquee-content em { color: var(--gold); }
.m-dot {
  color: var(--saffron);
  font-size: .7em;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   SECTION HEADER (shared)
   ============================================ */

.sec-header {
  text-align: center;
  margin-bottom: 80px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 6%;
}
.sec-header.left { text-align: left; margin-left: 0; padding: 0; }
.sec-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(244,237,225,.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--cream-2);
  text-transform: lowercase;
  letter-spacing: 0;
  margin-bottom: 28px;
}
.sec-tag .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--cream);
}
.sec-lede {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--cream-2);
  line-height: 1.55;
}

/* ============================================
   BENTO FEATURES
   ============================================ */

.features {
  padding: 120px 4% 80px;
  position: relative;
  z-index: 1;
}
@media (max-width: 640px) {
  .bento {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 0 4% 16px;
    margin: 0 -4%;
    scroll-padding-left: 4%;
  }
  .bento-card {
    flex: 0 0 82vw;
    scroll-snap-align: start;
  }
}

.bento-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--d-fast) var(--t-fast), transform var(--d-eos) var(--t-eos);
  will-change: transform;
  scroll-snap-align: start;
}
.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(212,168,90,.08), transparent 40%);
  opacity: 0;
  transition: opacity var(--d-fast) var(--t-fast);
  pointer-events: none;
  scroll-snap-align: start;
}
.bento-card:hover { border-color: var(--line-2); scroll-snap-align: start;}
.bento-card:hover::before { opacity: 1; scroll-snap-align: start;}

.bento-1 { grid-column: span 7; grid-row: span 2; }
.bento-2 { grid-column: span 5; }
.bento-3 { grid-column: span 5; }
.bento-4 { grid-column: span 4; grid-row: span 2; }
.bento-5 { grid-column: span 8; }
.bento-6 { grid-column: span 12; }

.bento-card.accent {
  background: linear-gradient(135deg, var(--oxblood), #2a120e);
  color: var(--cream);
  border-color: rgba(255,122,61,.2);
}
.bento-card.dark { background: var(--bg-2); }

.bento-eyebrow {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  text-transform: lowercase;
}
.bento-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 14px;
}
.bento-card.bento-1 h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.bento-card p {
  font-size: .92rem;
  color: var(--cream-2);
  line-height: 1.55;
  max-width: 380px;
  margin-bottom: auto;
  padding-bottom: 24px;
}

/* ── Bento visuals ── */
.bento-visual {
  margin-top: auto;
  border-radius: var(--rad-sm);
  background: rgba(0,0,0,.25);
  border: 1px solid var(--line);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Menu mock — REAL PlateUp menu look (sidebar dark + light card grid) */
.menu-mock {
  padding: 0;
  background: #f8f8f8;
  border: none;
  overflow: hidden;
}
.menu-mock-shell {
  display: grid;
  grid-template-columns: 110px 1fr;
  height: 100%;
  min-height: 280px;
}
.mm-side {
  background: #1a1a1a;
  border-right: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  padding: 14px 0;
}
.mm-side-title {
  font-size: .58rem;
  color: var(--gold);
  letter-spacing: 0.25em;
  font-weight: 700;
  text-align: center;
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.mm-cat {
  text-align: left;
  padding: 10px 14px;
  color: #999;
  font-size: .76rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-left: 4px solid transparent;
  transition: color .2s;
}
.mm-cat.active {
  background: #222;
  color: var(--gold);
  border-left-color: var(--gold);
}
.mm-main {
  background: #f8f8f8;
  display: flex;
  flex-direction: column;
}
.mm-bar {
  background: white;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .68rem;
  color: #333;
  border-bottom: 1px solid #eee;
}
.mm-tav b { color: #111; font-weight: 700; }
.mm-search {
  padding: 4px 10px;
  background: #f5f5f5;
  border-radius: 100px;
  color: #999;
  font-size: .62rem;
}
.mm-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.mm-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
}
.mm-img {
  width: 100%;
  height: 60px;
}
.mm-info {
  padding: 8px 10px 26px;
}
.mm-name {
  font-size: .68rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin-bottom: 3px;
}
.mm-price {
  color: var(--gold);
  font-size: .82rem;
  font-weight: 800;
}
.mm-add {
  position: absolute;
  bottom: 6px; right: 6px;
  width: 26px; height: 26px;
  background: #1a1a1a;
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}

/* Edit mock — change menu in a second */
.edit-mock {
  padding: 14px;
  gap: 8px;
}
.em-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .8rem;
  color: var(--cream);
}
.em-label { flex: 1; font-size: .8rem; }
.em-old {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  text-decoration: line-through;
}
.em-arrow { color: var(--gold); font-size: .8rem; }
.em-new {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  color: var(--gold);
  font-size: .92rem;
}
.em-row.dim .em-label { color: var(--muted); text-decoration: line-through; opacity: .6; }
.em-tag {
  font-family: var(--mono);
  font-size: .58rem;
  padding: 3px 8px;
  background: rgba(255, 107, 107, .12);
  border: 1px solid rgba(255, 107, 107, .3);
  color: #ff6b6b;
  border-radius: 100px;
  text-transform: lowercase;
}
.em-row.new {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1e1c10 0%, #23200e 100%);
}
.em-row.new .em-label { color: var(--gold); }
.em-sync {
  font-size: .68rem;
  color: #22c55e;
  text-align: right;
  margin-top: 4px;
}

/* Orders mock — real PlateUp ticket */
.orders-mock {
  padding: 10px;
  gap: 8px;
  background: rgba(0,0,0,.35);
}
.bento-ticket {
  background: var(--bg-2);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bento-ticket.new {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1e1c10 0%, #23200e 100%);
  box-shadow: 0 0 18px rgba(212,175,55,.10);
}
.bt-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.bt-tav {
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.bento-ticket.new .bt-tav { color: var(--gold); }
.bt-time { color: var(--muted); font-size: .66rem; }
.bt-row { font-size: .8rem; color: var(--cream-2); padding: 2px 0; }

/* Book mock */
.book-mock { padding: 14px; gap: 6px; }
.book-day {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--gold);
  margin-bottom: 8px;
}
.book-slot {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(244,237,225,.04);
  border-radius: 8px;
  font-size: .82rem;
}
.book-slot span:first-child { font-family: var(--mono); color: var(--gold); font-size: .76rem; }
.b-name { color: var(--cream); }
.b-vip {
  font-family: var(--mono);
  font-size: .56rem;
  background: var(--gold);
  color: var(--bg);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 5px;
  vertical-align: middle;
}
.b-num { font-family: var(--mono); color: var(--cream-2); font-size: .76rem; }

/* bt-foot — for the live orders ticket showing total */
.bt-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(212,175,55,.2);
  font-size: .8rem;
  color: var(--cream-2);
}
.bt-foot b {
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* Shifts mock — gestione turni grid */
.shifts-mock {
  padding: 14px 18px;
  gap: 4px;
}
.sh-week {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  gap: 4px;
  padding-bottom: 8px;
  padding-left: 0;
}
.sh-week::before {
  content: '';
}
.sh-week span {
  text-align: center;
  font-family: var(--mono);
  font-size: .62rem;
  color: var(--muted);
  text-transform: uppercase;
}
.sh-row {
  display: grid;
  grid-template-columns: 56px repeat(7, 1fr);
  gap: 4px;
  align-items: center;
  padding: 3px 0;
}
.sh-name {
  font-size: .75rem;
  color: var(--cream);
  font-weight: 500;
}
.sh-day {
  height: 26px;
  border-radius: 6px;
  background: rgba(255,255,255,.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: .56rem;
  color: transparent;
  border: 1px solid var(--line);
}
.sh-day.on {
  background: linear-gradient(160deg, #1e1c10, #23200e);
  border-color: var(--gold);
  color: var(--gold);
}
.sh-day.on.alt {
  background: rgba(55,168,212,.08);
  border-color: var(--blue);
  color: var(--blue);
}

/* Chart mock */
.chart-mock {
  padding: 18px;
  background: rgba(0,0,0,.3);
}
.chart-mock svg {
  width: 100%;
  height: 80px;
  display: block;
}
.chart-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawChart 2s ease forwards;
}
@keyframes drawChart { to { stroke-dashoffset: 0; } }
.chart-stats {
  display: flex;
  gap: 24px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.chart-stats div { display: flex; flex-direction: column; }
.cs-num { font-family: var(--serif); font-size: 1.3rem; color: var(--gold); }
.cs-lbl { font-size: .7rem; color: var(--muted); font-family: var(--mono); }

@media (max-width: 1024px) {
  .bento-1 { grid-column: span 12; grid-row: auto; }
  .bento-2, .bento-3 { grid-column: span 6; }
  .bento-4 { grid-column: span 12; grid-row: auto; }
  .bento-5, .bento-6 { grid-column: span 12; }
}
@media (max-width: 640px) {
  .bento {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 20px;
    margin: 0 -4%;
    scroll-padding-left: 4%;
	padding: 0 4% 20px;
    
  }
  .bento > * {
    flex: 0 0 88vw;
    scroll-snap-align: start;
    grid-column: unset !important;
    grid-row: unset !important;
    min-height: 300px;
  }
  /* scrollbar sottile come indicatore visivo */
  .bento::-webkit-scrollbar { height: 3px; }
  .bento::-webkit-scrollbar-track { background: var(--line); border-radius: 2px; }
  .bento::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
}

/* ============================================
   STICKY HOW IT WORKS
   ============================================ */

.how {
  padding: 140px 4%;
  position: relative;
  z-index: 1;
}
.how-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1300px;
  margin: 0 auto;
  align-items: start;
}

.how-steps {
  list-style: none;
  margin-top: 40px;
  border-left: 1px solid var(--line);
  padding-left: 0;
}
.how-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 20px;
  padding: 28px 0 28px 28px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  transition: border-color var(--d-med) var(--t-med), opacity var(--d-med) var(--t-med);
  opacity: .3;
  position: relative;
  min-height: 65vh;
  align-content: center;
}
.how-step:first-child { padding-top: 0; min-height: 55vh; align-content: start; }
.how-step:last-child { min-height: 65vh; padding-bottom: 8vh; }
.how-step::before {
  content: '';
  position: absolute;
  left: -5px; top: 40px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  transition: background var(--d-fast) var(--t-fast), border-color var(--d-fast) var(--t-fast);
}
.how-step.active {
  opacity: 1;
  border-left-color: var(--gold);
}
.how-step.active::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,168,90,.15);
}
.step-num {
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  font-style: italic;
  line-height: 1;
}
.step-body h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.15;
  margin-bottom: 8px;
  color: var(--cream);
  letter-spacing: -0.015em;
}
.step-body p { font-size: .95rem; color: var(--cream-2); line-height: 1.55; }

.how-right {
  position: sticky;
  top: calc(50vh - 290px);
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
}
.how-sticky {
  display: contents;
}

/* Phone */
.phone-frame {
  width: 280px;
  height: 580px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 40px;
  padding: 14px;
  position: relative;
  box-shadow:
    0 40px 80px rgba(0,0,0,.6),
    0 0 0 1px rgba(212,168,90,.1),
    inset 0 0 0 1px rgba(244,237,225,.05);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 24px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-radius: 28px;
  padding: 50px 16px 16px;
  overflow: hidden;
  position: relative;
}

.how-scene {
  position: absolute;
  inset: 50px 16px 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s, transform .5s cubic-bezier(.16,1,.3,1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.how-scene.active { opacity: 1; transform: translateY(0); }

/* Scene 0: QR */
.qr-grid {
  width: 160px;
  height: 160px;
  margin: 30px auto 16px;
  background-image:
    linear-gradient(var(--cream) 1px, transparent 1px),
    linear-gradient(90deg, var(--cream) 1px, transparent 1px);
  background-size: 12px 12px;
  background-position: 0 0, 0 0;
  mask:
    radial-gradient(circle at 20% 20%, black 14%, transparent 14.5%),
    radial-gradient(circle at 80% 20%, black 14%, transparent 14.5%),
    radial-gradient(circle at 20% 80%, black 14%, transparent 14.5%),
    linear-gradient(black, black);
  -webkit-mask-composite: source-over;
  position: relative;
}
.qr-grid::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  animation: qrScan 2s ease-in-out infinite;
}
@keyframes qrScan {
  0%, 100% { top: 0; }
  50% { top: calc(100% - 2px); }
}
.qr-label {
  text-align: center;
  color: var(--gold);
  font-size: .8rem;
}
.qr-foot {
  text-align: center;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  margin-top: 6px;
  text-transform: lowercase;
}

/* Shared phone header (kitchen + sala scenes) */
.phone-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--cream);
  padding: 0 4px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.phone-header .mono { color: var(--muted); font-size: .68rem; }

/* Scene 1: menu — real PlateUp menu shell (sidebar + grid) */
.phone-menu {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 76px 1fr;
  background: #f8f8f8;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
}
.pm-side {
  background: #1a1a1a;
  border-right: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  padding: 12px 0;
}
.pm-side-title {
  font-size: .54rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  font-weight: 700;
  text-align: center;
  padding: 0 4px 12px;
  line-height: 1.25;
  border-bottom: 1px solid rgba(212,175,55,.15);
}
.pm-cat {
  text-align: left;
  padding: 9px 10px;
  color: #999;
  font-size: .68rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.pm-cat.active {
  background: #222;
  color: var(--gold);
  border-left-color: var(--gold);
}
.pm-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pm-bar {
  background: white;
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  font-size: .62rem;
  color: #333;
}
.pm-tav b { color: #111; font-weight: 700; }
.pm-search {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
}
.pm-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  overflow: hidden;
  align-content: start;
}
.pm-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
}
.pm-img {
  width: 100%;
  height: 44px;
}
.pm-info {
  padding: 5px 7px 24px;
}
.pm-name {
  font-size: .56rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.1;
  margin-bottom: 2px;
}
.pm-price {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 800;
}
.pm-add {
  position: absolute;
  bottom: 4px; right: 4px;
  width: 20px; height: 20px;
  background: #1a1a1a;
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  font-weight: 700;
}

/* Scene 2: kitchen (real PlateUp ticket cards) */
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: .62rem;
  padding: 3px 10px;
  background: rgba(255,68,68,.12);
  border: 1px solid rgba(255,68,68,.35);
  border-radius: 100px;
  color: #ff6b6b;
}
.live-dot {
  width: 6px; height: 6px;
  background: #ff6b6b;
  border-radius: 50%;
  animation: pulse 1.4s infinite;
  box-shadow: 0 0 0 0 rgba(255,107,107,.7);
}
.ticket {
  background: var(--surface);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket.new {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1e1c10 0%, #23200e 100%);
  box-shadow: 0 0 22px rgba(212,175,55,.12);
  animation: ticketIn .5s ease both;
}
@keyframes ticketIn { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.ticket-hdr {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.ticket-tav {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.ticket.new .ticket-tav { color: var(--gold); }
.ticket-time { color: var(--muted); font-size: .68rem; }
.ticket-row {
  font-size: .82rem;
  color: var(--cream-2);
  padding: 3px 0;
}
.ticket-ready {
  margin-top: 4px;
  padding: 8px;
  background: var(--gold);
  color: #0b0d11;
  border-radius: 8px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Scene 3: table grid (real gestione) */
.tav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.tav-card {
  background: var(--surface);
  border: 1.5px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: transform .3s;
}
.tav-card.occ {
  border-color: var(--gold);
  background: linear-gradient(160deg, #1e1c10 0%, #23200e 100%);
}
.tav-card.occ.alert {
  border-color: var(--saffron);
  background: linear-gradient(160deg, #1f1410 0%, #25160e 100%);
  animation: alertPulse 1.6s infinite;
}
@keyframes alertPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,61,.4); }
  50% { box-shadow: 0 0 0 4px rgba(255,122,61,0); }
}
.tav-card.prenot {
  border-color: var(--blue);
  background: rgba(55,168,212,.06);
}
.tav-n {
  font-family: 'Helvetica Neue', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--cream);
  line-height: 1;
}
.tav-card.occ .tav-n { color: var(--gold); }
.tav-card.occ.alert .tav-n { color: var(--saffron); }
.tav-card.prenot .tav-n { color: var(--blue); }
.tav-s {
  font-family: var(--mono);
  font-size: .54rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tav-card.occ .tav-s { color: var(--gold); }
.tav-card.occ.alert .tav-s { color: var(--saffron); }
.tav-card.prenot .tav-s { color: var(--blue); }

@media (max-width: 900px) {
.how-inner { grid-template-columns: 1fr; gap: 40px; }
  .how-right { position: relative; top: auto; justify-content: center; }
  .how-sticky { display: contents; }
  }

/* ============================================
   COMPARE / WHY
   ============================================ */

.why {
  padding: 120px 4%;
  position: relative;
  z-index: 1;
}
.compare {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}
.compare-col {
  padding: 36px;
  border-radius: var(--rad);
}
.compare-col.scattered {
  background: rgba(244,237,225,.02);
  border: 1px solid var(--line);
}
.compare-col.unified {
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(212,168,90,.25);
  position: relative;
  overflow: hidden;
}
.compare-col.unified::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 60%; height: 80%;
  background: radial-gradient(circle, rgba(212,168,90,.18), transparent 70%);
  pointer-events: none;
}
.compare-col.unified > * { position: relative; }

.compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--muted);
}

.compare-label {
  display: block;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: .72rem;
}

.cost-list { list-style: none; display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.cost-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(244,237,225,.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: .88rem;
  color: var(--cream-2);
}
.c-price { font-family: var(--serif); color: var(--cream); font-size: 1.05rem; }
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 14px;
  background: rgba(220, 60, 50, .06);
  border: 1px solid rgba(220, 60, 50, .2);
  border-radius: 10px;
  margin-top: 12px;
  font-size: .9rem;
  color: var(--cream-2);
}
.ct-price {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: #e57367;
}

.unified-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
}
.up-cur { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); }
.up-num { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1; letter-spacing: -0.02em; }
.up-per { font-family: var(--mono); font-size: .82rem; color: var(--cream-2); margin-left: 4px; }

.save-pill {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .25);
  color: #6fd49a;
  border-radius: 100px;
  font-size: .8rem;
  margin-bottom: 24px;
}
.save-pill strong { color: #91e0b3; font-weight: 600; }

.incl-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.incl-list li {
  position: relative;
  padding-left: 22px;
  font-size: .9rem;
  color: var(--cream-2);
}
.incl-list li::before {
  content: '◆';
  position: absolute;
  left: 0; top: 0;
  color: var(--gold);
  font-size: .7rem;
  top: 4px;
}
.unified-foot {
  margin-top: 24px;
  font-size: .72rem;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 860px) {
  .compare { grid-template-columns: 1fr; }
  .compare-divider { padding: 16px 0; }
}

/* ============================================
   PRICING
   ============================================ */

.pricing {
  padding: 140px 4% 100px;
  position: relative;
  z-index: 1;
}
.billing-switch {
  position: relative;
  display: flex;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
}
.billing-note {
  text-align: center;
  margin: 0 auto 50px;
  max-width: 560px;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity .35s, height .35s;
}
.billing-note.show {
  opacity: 1;
  height: auto;
  margin-bottom: 50px;
}
.billing-note .mono {
  display: inline-block;
  padding: 7px 14px;
  background: rgba(34, 197, 94, .07);
  border: 1px solid rgba(34, 197, 94, .2);
  border-radius: 100px;
  color: #6fd49a;
  font-size: .68rem !important;
  text-transform: lowercase;
  letter-spacing: 0;
}
.bs-opt {
  position: relative;
  z-index: 2;
  padding: 9px 22px;
  font-size: .85rem;
  color: var(--cream-2);
  border-radius: 100px;
  transition: color var(--d-fast) var(--t-fast);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bs-opt.active { color: var(--bg); }
.bs-save {
  font-family: var(--mono);
  font-size: .68rem;
  padding: 2px 6px;
  background: rgba(34, 197, 94, .2);
  color: #6fd49a;
  border-radius: 4px;
}
.bs-opt.active .bs-save { background: rgba(0,0,0,.15); color: var(--bg); }
.bs-thumb {
  position: absolute;
  top: 5px; left: 5px;
  height: calc(100% - 10px);
  width: 80px;
  background: var(--gold);
  border-radius: 100px;
  transition: transform var(--d-eos) var(--t-eos), width var(--d-eos) var(--t-eos);
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
  padding-top: 20px;
}
.plan {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  display: flex;
  flex-direction: column;
  transition: border-color var(--d-fast) var(--t-fast), transform var(--d-eos) var(--t-eos);
}
.plan:hover { transform: translateY(-4px); border-color: var(--line-2); }
.plan.featured:hover { transform: translateY(-12px); }
.plan.featured {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: rgba(212,168,90,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  transform: translateY(-8px);
}
.plan.vip {
  background: linear-gradient(180deg, #1d1813, #100d0a);
  border-color: rgba(212,168,90,.5);
}

.plan-badge {
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .68rem;
  border-radius: 100px;
  text-transform: lowercase;
}

/* Discount chip — shown on each plan when annual is active */
.plan-discount {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 4px 10px;
  background: #22c55e;
  color: #062b13;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-6px) scale(.9);
  transition: opacity .35s var(--t-eos), transform .35s var(--t-eos);
  pointer-events: none;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
  z-index: 2;
}
.plan-discount.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* Sit lower if the plan has the "Più scelto" badge above it */
.plan.featured .plan-discount { top: 30px; }

/* "Massimo risparmio" pill */
.plan-best {
  position: absolute;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: linear-gradient(135deg, var(--gold), #e6c155);
  color: var(--bg);
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 700;
  border-radius: 100px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px) scale(.9);
  transition: opacity .3s, transform .35s var(--t-eos);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
  pointer-events: none;
}
.plan-best.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.plan-head { margin-bottom: 24px; }
.plan-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--cream);
  margin-bottom: 6px;
}
.plan-name.vip { color: var(--gold); }
.plan-tag {
  font-size: .82rem;
  color: var(--cream-2);
  line-height: 1.45;
  min-height: 38px;
}
.plan-tag.gold { color: rgba(212,168,90,.7); }

.plan-price-row { margin-bottom: 6px; }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: var(--cream);
}
.plan.vip .plan-price { color: var(--gold); }
.plan-price .cur { font-family: var(--serif); font-size: 1.4rem; }
.plan-price .num { font-family: var(--serif); font-size: 3.2rem; line-height: 1; transition: opacity .3s; }
.plan-price .per { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin-left: 4px; }
.plan-price.coming { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }

.plan-strike {
  font-family: var(--mono);
  font-size: .72rem;
  color: #e57367;
  text-decoration: line-through;
  min-height: 18px;
  opacity: 0;
  transition: opacity .3s;
}
.plan-strike.show { opacity: 1; }

.plan-setup {
  font-size: .72rem;
  color: var(--muted);
  margin: 12px 0 24px;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 12px;
  background: rgba(244,237,225,.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--cream);
  margin-bottom: 24px;
  transition: background var(--d-fast) var(--t-fast), border-color var(--d-fast) var(--t-fast);
}
.plan-cta:hover { background: rgba(212,168,90,.1); border-color: var(--gold); color: var(--gold); }
.plan-cta.primary { background: var(--cream); color: var(--bg); border-color: var(--cream); }
.plan-cta.primary:hover { background: var(--gold); border-color: var(--gold); color: var(--bg); }

.plan-feats {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan-feats li {
  font-size: .82rem;
  color: var(--cream-2);
  line-height: 1.5;
}
.plan-feats li.cat {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  text-transform: lowercase;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.plan-feats li.cat:first-child { border-top: none; padding-top: 0; margin-top: 0; }

/* Waitlist */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.waitlist > div:first-of-type, .waitlist input, .waitlist button { width: 100%; }
.waitlist {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
}
.waitlist input {
  padding: 11px 14px;
  background: rgba(244,237,225,.04);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .8rem;
  color: var(--cream);
  outline: none;
  transition: border-color var(--d-fast) var(--t-fast);
}
.waitlist input:focus { border-color: var(--gold); }
.waitlist button {
  padding: 11px 16px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 500;
}
.wl-ok {
  grid-column: 1 / -1;
  font-size: .76rem;
  color: #6fd49a;
  opacity: 0;
  transition: opacity .3s;
  text-align: center;
}
.wl-ok.show { opacity: 1; }

@media (max-width: 1024px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .plans {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 14px 4% 20px;
    margin: 0 -4%;
    scroll-padding-left: 4%;
  }
  .plan {
    flex: 0 0 82vw;
    scroll-snap-align: start;
    padding-top: 20px;
  }
  .plan-badge {
    font-size: .58rem;
    padding: 3px 9px;
  }
  .plans::-webkit-scrollbar { height: 3px; }
  .plans::-webkit-scrollbar-track { background: var(--line); border-radius: 2px; }
  .plans::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 2px; }
}

/* ============================================
   GALLERY
   ============================================ */

.gallery {
  padding: 120px 4%;
  position: relative;
  z-index: 1;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  max-width: 1400px;
  margin: 0 auto;
}
.g-slot {
  position: relative;
  overflow: hidden;
  border-radius: var(--rad);
  background: var(--surface);
  cursor: pointer;
  display: block;
  transition: transform var(--d-eos) var(--t-eos);
  will-change: transform;
}
.g-1 { grid-column: span 4; grid-row: span 2; }
.g-2 { grid-column: span 2; }
.g-3 { grid-column: span 2; }
.g-4 { grid-column: span 3; }
.g-5 { grid-column: span 3; }

.g-slot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--d-slow) var(--t-slow), filter var(--d-med) var(--t-med);
}
.g-slot:hover { transform: translateY(-4px); }
.g-slot:hover img { transform: scale(1.06); filter: brightness(.7) saturate(.95); }

.g-badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  background: rgba(10,9,8,.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--gold);
  text-transform: lowercase;
}
.g-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(10,9,8,.85), transparent 55%);
  opacity: 0;
  transition: opacity var(--d-med) var(--t-med);
}
.g-slot:hover .g-overlay { opacity: 1; }
.g-tag {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--gold);
  margin-bottom: 4px;
}
.g-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--cream);
  letter-spacing: -0.01em;
}

@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .g-1 { grid-column: span 2; }
  .g-2, .g-3, .g-4, .g-5 { grid-column: span 1; }
}

/* "Vedi altre foto" CTA below gallery */
.gallery-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
}
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--cream);
  font-size: .92rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--d-fast) var(--t-fast), border-color var(--d-fast) var(--t-fast), transform var(--d-fast) var(--t-fast);
  will-change: transform;
}
.btn-more:hover {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-more:hover .more-arrow { transform: translateX(3px); }
.more-icon {
  display: inline-flex;
  width: 22px; height: 22px;
}
.more-icon svg { width: 100%; height: 100%; }
.more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  background: var(--gold);
  color: var(--bg);
  border-radius: 50%;
  font-size: .8rem;
  transition: transform var(--d-fast) var(--t-fast);
}
.gallery-note {
  text-align: center;
  color: var(--muted);
  font-size: .76rem;
  max-width: 420px;
}

/* ============================================
   FAQ
   ============================================ */

.faq {
  padding: 120px 6%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: var(--cream);
  transition: color var(--d-fast) var(--t-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold); }

.faq-x {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--cream-2);
  transition: transform var(--d-med) var(--t-med), background var(--d-fast) var(--t-fast), color var(--d-fast) var(--t-fast), border-color var(--d-fast) var(--t-fast);
}
.faq-item[open] .faq-x {
  transform: rotate(45deg);
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.faq-item[open] summary { color: var(--gold); }

.faq-a {
  padding: 0 4px 28px;
  font-size: .96rem;
  color: var(--cream-2);
  line-height: 1.7;
  max-width: 720px;
  animation: faqOpen .4s ease both;
}
.faq-a strong { color: var(--cream); font-weight: 500; }
@keyframes faqOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  padding: 140px 6% 160px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, rgba(255,122,61,.18) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 20% 0%, rgba(212,168,90,.12) 0%, transparent 60%);
  z-index: 0;
}
.cta-title {
  position: relative;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.6rem, 9vw, 8rem);
  line-height: .95;
  letter-spacing: -0.025em;
  color: var(--cream);
  margin-bottom: 28px;
}
.cta-title .line { display: block; overflow: hidden; padding: 0 0 0.05em 0; }
.cta-title .word { display: inline-block; }

.cta-sub {
  position: relative;
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
  color: var(--cream-2);
}
.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-aside {
  font-size: .82rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}
.cta-aside a { color: var(--gold); border-bottom: 1px solid currentColor; }
.cta-dot { display: inline-block; margin: 0 10px; opacity: .5; }
.cta-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 100px;
  color: #25d366 !important;
  text-decoration: none;
  border-bottom: 1px solid rgba(37, 211, 102, 0.35) !important;
  transition: background var(--d-fast) var(--t-fast);
}
.cta-wa:hover { background: rgba(37, 211, 102, 0.18); }
.cta-wa svg { width: 14px; height: 14px; }

/* ============================================
   FOOTER
   ============================================ */

.footer {
  padding: 0 4% 0;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 60px;
  padding: 60px 0 50px;
}
.footer-brand { max-width: 320px; }
.footer-brand p {
  margin-top: 16px;
  font-size: .88rem;
  color: var(--cream-2);
  line-height: 1.6;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.fc { display: flex; flex-direction: column; gap: 10px; }
.fc-title {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.fc a {
  font-size: .88rem;
  color: var(--cream-2);
  transition: color var(--d-fast) var(--t-fast);
}
.fc a:hover { color: var(--gold); }

.footer-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.fb-links { display: flex; gap: 24px; }
.fb-links a { color: var(--muted); transition: color var(--d-fast) var(--t-fast); }
.fb-links a:hover { color: var(--cream); }

.footer-watermark {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(8rem, 22vw, 22rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212,168,90,.12);
  text-stroke: 1px rgba(212,168,90,.12);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  white-space: nowrap;
  z-index: 0;
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand { max-width: 100%; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-bot { flex-direction: column; gap: 12px; text-align: center; }
  .fb-links { justify-content: center; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--t-eos), transform .8s var(--t-eos);
  transition-delay: var(--delay, 0ms);
}
[data-reveal].in { opacity: 1; transform: translateY(0); }

[data-reveal-block] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1);
}
[data-reveal-block].in { opacity: 1; transform: translateY(0); }

.hero-title .word, .cta-title .word {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--delay, 0ms);
}
.hero-title.in .word, .cta-title.in .word {
  transform: translateY(0);
}
.hero-title .line:nth-child(2) .word { transition-delay: 150ms; }
.cta-title .line:nth-child(2) .word:first-child { transition-delay: 80ms; }
.cta-title .line:nth-child(2) .word:last-child { transition-delay: 160ms; }

/* ============================================
   AUTH MODAL
   ============================================ */

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(10, 9, 8, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s cubic-bezier(.16,1,.3,1);
}
.auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 22px;
  padding: 36px 32px 30px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(20px) scale(.98);
  opacity: 0;
  transition: transform .45s cubic-bezier(.16,1,.3,1), opacity .35s;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.auth-overlay.open .auth-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.auth-card::-webkit-scrollbar { width: 4px; }
.auth-card::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.auth-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--d-fast) var(--t-fast);
}
.auth-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--cream);
  transform: rotate(90deg);
}
.auth-close svg { width: 16px; height: 16px; }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}
.auth-brand .logo-mark {
  color: var(--gold);
  font-size: 0.9em;
}

/* Tabs */
.auth-tabs {
  position: relative;
  display: flex;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  position: relative;
  flex: 1;
  z-index: 2;
  padding: 10px 14px;
  background: none;
  border: none;
  font-size: .86rem;
  font-weight: 500;
  color: var(--cream-2);
  cursor: pointer;
  border-radius: 100px;
  transition: color var(--d-fast) var(--t-fast);
}
.auth-tab.active { color: var(--bg); }
.auth-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--gold);
  border-radius: 100px;
  transition: transform var(--d-eos) var(--t-eos);
  z-index: 1;
}
.auth-tabs[data-active="signup"] .auth-thumb {
  transform: translateX(100%);
}

/* Forms */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-form.hidden { display: none; }
.auth-lede {
  font-size: .88rem;
  color: var(--cream-2);
  margin-bottom: 4px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.auth-field > span {
  font-family: var(--mono);
  font-size: .68rem;
  color: var(--muted);
  text-transform: lowercase;
  letter-spacing: 0;
  padding-left: 2px;
}
.auth-field input {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-size: .92rem;
  color: var(--cream);
  outline: none;
  transition: border-color var(--d-fast) var(--t-fast), background var(--d-fast) var(--t-fast);
}
.auth-field input::placeholder { color: var(--muted); }
.auth-field input:focus {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.04);
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-pw {
  position: relative;
}
.auth-pw input { padding-right: 42px; }
.pw-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--d-fast) var(--t-fast);
}
.pw-eye:hover { color: var(--cream); }
.pw-eye svg { width: 16px; height: 16px; }

.auth-extra {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .82rem;
  margin: 2px 0 4px;
}
.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--cream-2);
  user-select: none;
}
.auth-check input { display: none; }
.check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 4px;
  background: var(--bg);
  position: relative;
  transition: all var(--d-fast) var(--t-fast);
  flex-shrink: 0;
}
.auth-check input:checked + .check-box {
  background: var(--gold);
  border-color: var(--gold);
}
.auth-check input:checked + .check-box::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.auth-check.tos { font-size: .78rem; line-height: 1.5; }
.auth-check.tos a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
}
.auth-forgot {
  color: var(--gold);
  font-size: .8rem;
  text-decoration: none;
  transition: color var(--d-fast) var(--t-fast);
}
.auth-forgot:hover { text-decoration: underline; }

.auth-error {
  display: none;
  padding: 10px 12px;
  background: rgba(255, 68, 68, 0.08);
  border: 1px solid rgba(255, 68, 68, 0.25);
  border-radius: 8px;
  color: #ff7a7a;
  font-size: .8rem;
}
.auth-error.show { display: block; animation: shake .4s; }
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

.auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: var(--gold);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .94rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background var(--d-fast) var(--t-fast), transform var(--d-fast) var(--t-fast);
}
.auth-submit svg { width: 16px; height: 16px; transition: transform var(--d-fast) var(--t-fast); }
.auth-submit:hover {
  background: #e6c155;
}
.auth-submit:hover svg { transform: translateX(2px); }
.auth-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}
.auth-submit.loading svg { animation: spin 1s linear infinite; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: .76rem;
}
.auth-or::before, .auth-or::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--d-fast) var(--t-fast), border-color var(--d-fast) var(--t-fast);
}
.auth-social svg { width: 18px; height: 18px; }
.auth-social:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
}

/* Success state */
.auth-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0 6px;
  animation: fadeUp .5s ease both;
}
.auth-success.hidden { display: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.auth-success-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.12);
  border: 1.5px solid rgba(34, 197, 94, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 18px;
}
.auth-success-mark svg { width: 28px; height: 28px; }
.auth-success h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.8rem;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.auth-success p {
  font-size: .9rem;
  color: var(--cream-2);
  margin-bottom: 22px;
  max-width: 320px;
}
.auth-success .auth-submit { max-width: 200px; }

@media (max-width: 520px) {
  .auth-card { padding: 28px 22px 24px; }
  .auth-field-row { grid-template-columns: 1fr; }
}
/* ============================================
   HAMBURGER + MOBILE NAV
   ============================================ */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 44px;       /* ← minimo Apple per touch target */
  height: 44px;      /* ← minimo Apple per touch target */
  touch-action: manipulation;  /* ← elimina il 300ms delay iOS */
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform .35s var(--t-eos), opacity .2s;
  transform-origin: center;
}
body.nav-open .hamburger span:first-child { transform: rotate(45deg) translate(0px, 3.5px); }
body.nav-open .hamburger span:last-child  { transform: rotate(-45deg) translate(0px, -3.5px); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11,13,17,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 28px 50px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .nav-link {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--cream-2);
  padding: 14px 0;
  width: 100%;
  text-align: center;
  border-bottom: 1px solid var(--line);
  transition: color .2s;
  display: block;
}
.mobile-nav .nav-link:hover { color: var(--gold); }
.mobile-nav-auth {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 28px;
  width: 100%;
}
.mobile-nav-auth button {
  flex: 1;
  padding: 13px 16px;
  border-radius: 100px;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--d-fast) var(--t-fast), color var(--d-fast) var(--t-fast);
}
.mobile-login {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--cream-2);
}
.mobile-login:hover { border-color: var(--gold); color: var(--gold); }
.mobile-register {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--bg);
}
.mobile-register:hover { background: #e6c155; }
.mobile-nav .btn-primary {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
  padding: 15px 24px;
}

@media (max-width: 900px) {
  .hamburger { display: flex; }
}

/* ============================================
   MOBILE — GENERAL PADDING REDUCTION
   ============================================ */

@media (max-width: 480px) {
  /* già esistente: aggiungere dentro */
  .bs-opt { padding: 9px 14px; font-size: .8rem; }
  .billing-note .mono { font-size: .62rem !important; }
}

@media (max-width: 768px) {
	body { overflow-x: hidden; }
	  .billing-switch { max-width: calc(100vw - 32px); }
	  .plans { grid-template-columns: 1fr; }
	  .plan.featured { transform: none; }
	  .plan.featured:hover { transform: translateY(-4px); }
	  .plan-price .num { font-size: 2.4rem; }

  .hero {
    padding: 120px 5% 50px;
  }
  .hero-meta {
    border-radius: var(--rad);
    padding: 16px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }
  .meta-item {
    padding: 12px 16px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .meta-divider { display: none; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

  .features    { padding: 80px 4% 50px; }
  .how         { padding: 80px 4%; }
  .why         { padding: 80px 4%; }
  .pricing     { padding: 80px 4% 60px; }
  .gallery     { padding: 80px 4%; }
  .faq         { padding: 80px 5%; }
  .cta-final   { padding: 80px 5% 100px; }

  .sec-header  { margin-bottom: 48px; }

  /* How — step heights normali su mobile */
  .how-step, .how-step:first-child, .how-step:last-child {
    min-height: unset;
    padding: 24px 0 24px 24px;
  }

  /* FAQ — testo più piccolo */
  .faq-item summary {
    font-size: 1.1rem;
    padding: 20px 4px;
  }

  /* Compare — padding ridotto */
  .compare-col { padding: 24px 20px; }

  /* Footer cols — una colonna su mobile piccolo */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
.features::after,
.pricing::after {
  content: '← scorri →';
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: .65rem;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.05em;
}
 .hero-scroll-hint {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    opacity: 1 !important;
    transition: opacity .4s;
    display: flex;
  }
  .hero-scroll-hint.hidden {
    opacity: 0 !important;;
    pointer-events: none;
  }
}
@media (min-width: 641px) {
  .features::after { display: none; }
}
@media (min-width: 601px) {
  .pricing::after { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(2.8rem, 14vw, 5rem); }
  .sec-title   { font-size: clamp(2rem, 9vw, 3rem); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .g-1, .g-2, .g-3, .g-4, .g-5 { grid-column: span 1; grid-row: auto; }
}
@media (max-width: 640px) {
  .how-right { display: none; }
  .how-inner { grid-template-columns: 1fr; }
}

/* Dots paginazione scroll orizzontale */
.scroll-dots {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  width: 100%;
  padding: 0 4%;
}
@media (max-width: 640px) {
  .scroll-dots { display: flex; }
}
.scroll-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-2);
  transition: background .25s var(--t-fast), width .3s var(--t-eos);
  cursor: pointer;
  flex-shrink: 0;
}
.scroll-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 4px;
}
