/* CheSeFa — sito vetrina. Stile vibrant/block-based, palette notte/acqua. */
:root {
  --bg: #0B0B12;
  --bg-2: #0f1018;
  --surface: #181a26;
  --surface-2: #20222f;
  --text: #F2F4FA;
  --text-dim: #9aa0b4;
  --primary: #7C5CFC;
  --aqua: #1FA8A0;
  --blue: #3E73E8;
  --pink: #DB4A93;
  --orange: #E86F3E;
  --border: #2a2d3e;
  --radius: 18px;
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wordmark { font-family: 'Righteous', cursive; font-size: 1.55rem; color: var(--text); text-decoration: none; letter-spacing: .5px; }
.wordmark.small { font-size: 1.25rem; }
.center { text-align: center; }
.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 2.5px; font-size: .76rem; font-weight: 800; color: var(--aqua); margin-bottom: 14px; }
.grad { background: linear-gradient(100deg, var(--aqua), var(--blue) 55%, var(--primary)); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); line-height: 1.02; font-weight: 800; letter-spacing: -1.5px; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.lead { font-size: 1.15rem; color: var(--text-dim); }
.lead strong, h2 strong, h1 strong { color: var(--text); }

/* BUTTONS */
.btn-primary, .btn-ghost { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 999px; transition: transform .12s ease, box-shadow .2s, background .2s; cursor: pointer; }
.btn-primary { background: linear-gradient(95deg, var(--primary), var(--blue)); color: #fff; padding: 15px 28px; box-shadow: 0 8px 30px rgba(124,92,252,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(124,92,252,.5); }
.btn-primary.small { padding: 12px 22px; margin-top: 24px; }
.btn-ghost { color: var(--text); padding: 15px 14px; }
.btn-ghost:hover { color: var(--aqua); }

/* STORE BADGES (download App Store / Google Play) */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  background: #000; border: 1px solid #3a3d4e; border-radius: 14px; padding: 11px 18px;
  transition: transform .12s ease, border-color .2s; }
.store-badge:hover { transform: translateY(-2px); border-color: var(--aqua); }
.store-badge svg { width: 26px; height: 26px; color: #fff; flex-shrink: 0; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; color: #fff; }
.store-badge small { font-size: .68rem; color: #c8cce0; letter-spacing: .2px; }
.store-badge strong { font-size: 1.12rem; font-weight: 700; letter-spacing: .2px; }
/* COMING SOON: badge spento, non cliccabile (al lancio → <a> di download) */
.store-badge.is-soon { opacity: .55; cursor: default; }
.store-badge.is-soon:hover { transform: none; border-color: #3a3d4e; }
@media (max-width: 400px) { .store-badge { flex: 1; justify-content: center; } }

/* NAV */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: var(--maxw); margin: 0 auto; backdrop-filter: blur(10px); }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--text-dim); font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--primary); color: #fff !important; padding: 9px 18px; border-radius: 999px; }
@media (max-width: 640px) { .nav-links a:not(.nav-cta) { display: none; } }

/* HERO */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 72px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  background: radial-gradient(900px 460px at 18% -5%, rgba(124,92,252,.20), transparent 60%); }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { max-width: 500px; margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; color: var(--text-dim); font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(31,168,160,.2); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 32px; } .phone { margin: 0 auto; } }

/* PHONE MOCKUP */
.phone { justify-self: center; width: 280px; height: 560px; border-radius: 40px; padding: 12px;
  background: linear-gradient(160deg, #2a2d3e, #15161f); border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); position: relative; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: #0b0b12; border-radius: 0 0 14px 14px; z-index: 2; }
.phone-shot { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 30px; display: block; }
/* niente notch finto sopra gli screenshot reali (coprirebbe l'header dell'app) */
.phone:has(.phone-shot)::before { display: none; }
.phone-screen { background: var(--bg); border-radius: 30px; height: 100%; padding: 44px 14px 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ph-top { color: var(--text-dim); font-size: .8rem; font-weight: 700; padding: 0 4px 4px; }
.ev { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 12px; animation: floaty 5s ease-in-out infinite; }
.ev-b2 { animation-delay: .6s; } .ev-c { animation-delay: 1.2s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.ev-img { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(140deg, rgba(124,92,252,.35), rgba(31,168,160,.25)); flex-shrink: 0; }
.ev-b { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev-b strong { font-size: .95rem; }
.ev-b small { color: var(--text-dim); font-size: .78rem; }
@media (prefers-reduced-motion: reduce) { .ev { animation: none; } }

/* SECTIONS */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section h2 { margin-bottom: 14px; }
.section > .lead.center { margin-bottom: 44px; }

/* FEATURE GRID */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; transition: transform .15s, border-color .2s; }
.feature:hover { transform: translateY(-4px); border-color: var(--primary); }
.f-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff;
  background: color-mix(in srgb, var(--c) 28%, transparent); border: 1px solid color-mix(in srgb, var(--c) 50%, transparent); }
.f-ico svg { width: 26px; height: 26px; color: var(--c); }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--text-dim); }

/* SHOWCASE / GALLERY */
.showcase { padding-bottom: 40px; }
.shots { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.phone.sm { width: 230px; height: 460px; padding: 10px; border-radius: 34px; position: relative; }
.phone.sm::before { width: 90px; height: 18px; top: 14px; }
.phone.sm figcaption { position: absolute; bottom: -34px; left: 0; right: 0; text-align: center; color: var(--text-dim); font-weight: 600; font-size: .92rem; }
.phone.sm { margin-bottom: 34px; }
.phone.sm .phone-shot { border-radius: 26px; }
/* MOBILE: carosello orizzontale scroll-snap (invece di screenshot impilati) */
@media (max-width: 720px) {
  .shots {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 22px;
    margin: 36px -24px 0;
    padding: 4px 24px 8px;
    scroll-padding-inline: 24px;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots .phone.sm { flex: 0 0 auto; scroll-snap-align: center; margin-bottom: 40px; }
}

/* CATEGORIE */
.cats-section { padding-top: 24px; }
.cats { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 36px; }
.cat { font-family: 'Righteous', cursive; font-size: 1.15rem; letter-spacing: .5px; padding: 14px 26px; border-radius: 999px;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent); transition: transform .12s, background .2s; }
.cat:hover { transform: translateY(-3px) rotate(-1deg); background: color-mix(in srgb, var(--c) 26%, transparent); }

/* ORGANIZER */
.organizer { }
.org-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .org-grid { grid-template-columns: 1fr; } }
.org-visual { display: flex; justify-content: center; }
.org-text h2 { margin: 8px 0 18px; }
.org-text .lead { margin-bottom: 22px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ticks li { padding-left: 30px; position: relative; color: var(--text-dim); }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--aqua); font-weight: 800; }
.ticks strong { color: var(--text); }
/* flow IG -> evento */
.flow { display: flex; flex-direction: column; gap: 4px; }
.flow-step { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.flow-step.ig { border-left: 4px solid var(--pink); }
.flow-step.ev-out { border-left: 4px solid var(--aqua); background: linear-gradient(150deg, rgba(31,168,160,.12), rgba(62,115,232,.06)); }
.flow-tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pink); margin-bottom: 10px; }
.flow-tag.aqua { color: var(--aqua); }
.flow-step.ig p { color: var(--text-dim); font-style: italic; }
.flow-step.ev-out strong { font-size: 1.25rem; display: block; margin-bottom: 10px; }
.flow-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-meta span { font-size: .82rem; background: var(--surface-2); padding: 6px 12px; border-radius: 999px; color: var(--text-dim); }
.flow-arrow { align-self: center; color: var(--aqua); font-weight: 800; font-size: 1.4rem; display: flex; flex-direction: column; align-items: center; line-height: 1; padding: 6px 0; }
.flow-arrow span { font-size: .7rem; letter-spacing: 1px; background: var(--aqua); color: #04231f; padding: 3px 10px; border-radius: 999px; margin-bottom: 2px; }

/* PERCHÉ */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
@media (max-width: 720px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.why-before { color: var(--text-dim); text-decoration: line-through; text-decoration-color: var(--pink); font-size: .98rem; }
.why-after { color: var(--text); font-weight: 700; font-size: 1.05rem; }

/* DOVE SIAMO */
.where-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .where-steps { grid-template-columns: 1fr; } }
.where-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; position: relative; opacity: .7; }
.where-step.on { opacity: 1; border-color: var(--aqua); background: linear-gradient(150deg, rgba(31,168,160,.14), transparent); }
.where-step strong { font-size: 1.1rem; }
.where-step small { color: var(--text-dim); }
.wdot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); margin-bottom: 6px; }
.where-step.on .wdot { background: var(--aqua); box-shadow: 0 0 0 5px rgba(31,168,160,.2); }

/* FAQ */
.faq-list { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 4px 20px; }
.faq-list summary { cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--aqua); font-size: 1.5rem; font-weight: 400; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { color: var(--text-dim); padding: 0 0 18px; }
.faq-list a { color: var(--blue); }

/* TRUST BAND */
.trust-band { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding: 36px 24px; max-width: 100%; }
.trust-band > div { text-align: center; display: flex; flex-direction: column; gap: 4px; }
.trust-band strong { font-size: 1.3rem; }
.trust-band span { color: var(--text-dim); font-size: .9rem; }
@media (max-width: 760px) { .trust-band { grid-template-columns: 1fr 1fr; } }

/* WAITLIST BAND (slim, secondaria) */
.waitlist-band { padding: 80px 24px; text-align: center;
  background: radial-gradient(700px 320px at 50% 120%, rgba(124,92,252,.18), transparent 60%); }
.wl-inner { max-width: 540px; margin: 0 auto; }
.wl-inner h2 { margin-bottom: 10px; }
.wl-inner > p { color: var(--text-dim); margin-bottom: 26px; }
.wl-inner .store-badges { justify-content: center; }
.waitlist-form { max-width: 480px; margin: 0 auto; }
.wl-row { display: flex; gap: 10px; }
@media (max-width: 520px) { .wl-row { flex-direction: column; } }
.waitlist-form input[type=email] { flex: 1; padding: 15px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1rem; font-family: inherit; }
.waitlist-form input[type=email]:focus { outline: 2px solid var(--primary); border-color: transparent; }
.waitlist-form button { padding: 15px 26px; border: none; border-radius: 12px; cursor: pointer; white-space: nowrap;
  background: linear-gradient(95deg, var(--primary), var(--blue)); color: #fff; font-weight: 800; font-size: 1rem; font-family: inherit; transition: transform .1s; }
.waitlist-form button:hover { transform: translateY(-1px); }
.waitlist-form button:disabled { opacity: .6; cursor: default; transform: none; }
.role-toggle { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.role-toggle label { font-size: .9rem; color: var(--text-dim); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.form-msg { font-size: .92rem; min-height: 1.2em; margin-top: 12px; }
.form-msg.ok { color: var(--aqua); } .form-msg.err { color: var(--pink); }

/* FOOTER */
.footer { border-top: 1px solid var(--border); padding: 36px 24px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.footer nav { display: flex; gap: 20px; }
.footer nav a { color: var(--text-dim); text-decoration: none; font-weight: 700; }
.footer nav a:hover { color: var(--text); }
.footer small { color: var(--text-dim); }

/* LEGAL PAGES */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 24px 80px; }
.legal h1 { font-size: 2rem; margin-bottom: 8px; text-align: left; letter-spacing: -.5px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 10px; text-align: left; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 10px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue); }
.legal .back { display: inline-block; margin-bottom: 24px; color: var(--text-dim); text-decoration: none; font-weight: 700; }
.legal .updated { color: var(--text-dim); font-size: .9rem; margin-bottom: 24px; }

/* EVENT PAGE (/evento/:id — fallback deep link) */
.ev-page { max-width: 760px; margin: 0 auto; padding: 24px 24px 60px; }
.ev-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; }
.ev-hero { width: 100%; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.ev-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-body { padding: 28px; }
.ev-body h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); line-height: 1.05; margin: 6px 0 16px; }
.ev-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ev-meta span { color: var(--text); font-weight: 600; font-size: 1.02rem; }
.ev-desc { color: var(--text-dim); line-height: 1.7; white-space: pre-line; }
.ev-loading { padding: 60px 28px; text-align: center; color: var(--text-dim); display: flex; align-items: center; justify-content: center; gap: 12px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--border); border-top-color: var(--aqua); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
.ev-empty { padding: 56px 28px; text-align: center; }
.ev-empty h1 { font-size: 1.6rem; margin-bottom: 10px; }
.ev-empty p { color: var(--text-dim); }
.ev-cta-band { text-align: center; padding: 12px 24px 0; }
.ev-cta-actions { display: flex; justify-content: center; margin: 22px 0; }
.store-badges.center-badges { justify-content: center; }
