/* =========================================================
   Yory – landing lista d'attesa
   Mobile-first · nessuna dipendenza · palette dell'app
   ========================================================= */

/* Self-hosting di Inter (GDPR-compliant, nessun trasferimento IP a Google) */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
}

:root {
  --carta: #F7F5F0;
  --lavanda: #ECEBFA;
  --ink: #1F2230;
  --muted: #8A8D99;        /* solo elementi decorativi / testo grande */
  --muted-ink: #5E6170;    /* testo secondario piccolo: contrasto AA su carta e lavanda */
  --arancio: #F08A3C;
  --viola: #B23CE6;
  --viola-ink: #8E2CB8;    /* viola per testo o fondi con testo bianco piccolo (AA) */
  --white: #FFFFFF;
  --line: #DEDCE8;
  --error: #B3261E;

  --r-sm: 16px;
  --r: 20px;
  --r-lg: 24px;
  --shadow: 0 1px 2px rgba(31, 34, 48, .05), 0 12px 32px -14px rgba(31, 34, 48, .22);
  --shadow-lg: 0 2px 6px rgba(31, 34, 48, .05), 0 24px 56px -24px rgba(31, 34, 48, .30);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --container: 1120px;
  --gutter: 20px;
  --accent: var(--arancio);
  --accent-tint: rgba(240, 138, 60, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--carta);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw + 1rem, 4.1rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 2.6vw + 1rem, 2.75rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-underline-offset: 3px; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--viola-ink); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 12px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.container { position: relative; z-index: 2; width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(780px + 2 * var(--gutter)); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 245, 240, .94);
  border-bottom: 1px solid rgba(31, 34, 48, .06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 10px; box-shadow: 0 1px 3px rgba(31, 34, 48, .15); }
.brand-name { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }
.header-nav { display: flex; align-items: center; gap: 6px; }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--ink); color: var(--white); text-decoration: none; font-weight: 700; font-size: .9375rem;
}
.nav-cta:hover { background: #2E3244; }
.nav-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; color: var(--ink); }
.nav-icon:hover { background: var(--lavanda); }

/* ---------- Route (linea di percorso tratteggiata) ---------- */
main { position: relative; overflow: hidden; }
.route { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; overflow: visible; }
.route-path { fill: none; stroke: var(--arancio); stroke-width: 2.5; stroke-dasharray: 8 10; stroke-linecap: round; opacity: .75; }
.route-dot { fill: var(--carta); stroke: var(--arancio); stroke-width: 2.5; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.bg-lavanda { background: var(--lavanda); }
.accent-arancio { --accent: var(--arancio); --accent-tint: rgba(240, 138, 60, .18); }
.accent-viola { --accent: var(--viola); --accent-tint: rgba(178, 60, 230, .13); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
}
.eyebrow .pin { width: 20px; height: 20px; color: var(--accent); stroke-width: 2.4; }
.lead { font-size: clamp(1.125rem, .6vw + 1rem, 1.3rem); color: var(--muted-ink); max-width: 34ch; }
.lead-sm { font-size: 1.0625rem; color: var(--muted-ink); max-width: 52ch; }

.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; }
.card h3 { margin-top: 14px; }
.card p { color: var(--muted-ink); margin-bottom: 0; }

/* Tile data (come nel calendario dell'app) */
.tile {
  display: inline-grid; place-items: center; align-content: center; flex: none;
  width: 72px; height: 72px; border-radius: var(--r-sm); line-height: 1; text-align: center;
}
.tile b { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.tile small { font-size: .8125rem; font-weight: 700; margin-top: 4px; }
.tile-sm { width: 48px; height: 48px; border-radius: 14px; }
.tile-xs { width: 36px; height: 36px; border-radius: 10px; }
.tile-xs b { font-size: .9375rem; }
.tile-arancio { background: var(--arancio); color: var(--ink); }
.tile-viola { background: var(--viola-ink); color: var(--white); }
.tile-outline { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--arancio); }
.tile-dashed { background: transparent; color: var(--ink); border: 2.5px dashed var(--arancio); }
.icon-tile { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-tint); color: var(--ink); }

/* Chip a pillola */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border-radius: 999px; background: var(--white); color: var(--ink);
  font-size: .875rem; font-weight: 700; box-shadow: 0 1px 2px rgba(31, 34, 48, .08), inset 0 0 0 1px var(--line);
}
.chip .i { width: 16px; height: 16px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }

/* ---------- Pulsanti e form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border: 0; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease;
}
.btn .i { width: 20px; height: 20px; }
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #2E3244; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--lavanda); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.wl-root { margin-top: 28px; max-width: 560px; }
.wl-row { display: flex; flex-direction: column; gap: 10px; }
.input {
  width: 100%; min-height: 56px; padding: 0 18px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1.5px solid #CFCDDC; border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #6E7180; opacity: 1; }
.input:focus { outline: none; border-color: var(--viola-ink); box-shadow: 0 0 0 3px rgba(142, 44, 184, .25); }
.input[aria-invalid="true"] { border-color: var(--error); }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2230' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 20px;
}
.wl-details { margin-top: 18px; display: grid; gap: 16px; }
.wl-details[hidden] { display: none; }
.grid-2 { display: grid; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: .9375rem; }
.opt { font-weight: 400; color: var(--muted-ink); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); cursor: pointer; }
.check label { cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 65px; }
.field-error { margin: 8px 0 0; color: var(--error); font-size: .9375rem; font-weight: 700; }
.wl-msg { margin: 12px 0 0; font-size: .9375rem; font-weight: 700; }
.wl-msg:empty { display: none; }
.wl-msg.is-error { color: var(--error); }
.form-note { margin: 14px 0 0; font-size: .9375rem; color: var(--muted-ink); }

.wl-success { padding: 24px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.wl-success[hidden] { display: none; }
.wl-success-title { font-size: 1.5rem; margin: 14px 0 6px; }
.wl-success-title:focus { outline: none; }
.wl-success p { color: var(--muted-ink); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(32px, 6vw, 80px); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-visual { position: relative; margin: 0 auto; width: min(86vw, 460px); }
.hero-visual img { width: 100%; }
.float-tile { position: absolute; left: 6%; top: 30%; box-shadow: var(--shadow-lg); }
.float-chip { position: absolute; right: 2%; bottom: 14%; box-shadow: var(--shadow-lg); }
.float-chip .i { color: var(--arancio); }

/* ---------- Problema / vantaggi ---------- */
.cards-3, .cards-2 { display: grid; gap: 16px; margin-top: 28px; }

/* ---------- Come funziona ---------- */
.steps { display: grid; gap: 20px; margin-top: 28px; counter-reset: none; }
.step { display: flex; flex-direction: column; }
.step-head { display: flex; align-items: center; gap: 14px; }
.step-head h3 { margin: 0; font-size: 1.375rem; }
.step-n { color: var(--viola-ink); margin-right: 2px; }
.step > p { margin: 14px 0 18px; }
.shot { margin-top: 0; width: 100%; border-radius: var(--r-sm); box-shadow: var(--shadow); background: var(--carta); }

.group-mock { margin-top: 0; border-radius: var(--r-sm); background: var(--lavanda); padding: 16px; }
.gm-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.avatars { display: inline-flex; }
.av {
  display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: -8px; border-radius: 50%;
  font-style: normal; font-weight: 700; font-size: .8125rem; color: var(--ink); border: 2px solid var(--lavanda);
}
.av1 { background: #F7C8A3; } .av2 { background: #D9B6F2; } .av3 { background: #FFFFFF; }
.gm-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gm-list li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 14px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(31, 34, 48, .06); }
.gm-list strong { display: block; font-size: .9375rem; line-height: 1.3; }
.gm-list small { color: var(--muted-ink); font-size: .8125rem; }

.spot-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.spot-meta .chip .i { color: var(--viola-ink); }
.wl-details .btn-primary { width: 100%; }

/* ---------- Calendario e mappa ---------- */
.split { display: grid; gap: 40px; align-items: center; }
.map-card { padding: 10px; }
.map-card svg { width: 100%; height: auto; }
.phone-figure { margin: 0 auto; width: min(80vw, 420px); }

/* ---------- Nome ---------- */
.name-card { display: grid; gap: 8px; align-items: center; padding: clamp(24px, 4vw, 48px); }
.name-card .yori {
  margin: 0; font-family: "Hiragino Sans", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-weight: 700; font-size: clamp(4.5rem, 14vw, 9rem); line-height: 1; color: var(--viola); letter-spacing: 0;
}
.name-card p:not(.yori):not(.eyebrow) { color: var(--muted-ink); font-size: 1.0625rem; max-width: 56ch; }

/* ---------- Roadmap ---------- */
.roadmap { position: relative; display: grid; gap: 16px; margin-top: 28px; }
.road { display: flex; gap: 18px; align-items: flex-start; }
.road h3 { margin: 4px 0 6px; }
.road .tile b { font-size: 1.0625rem; }

/* ---------- Vantaggi ---------- */
.perk { position: relative; }
.founder {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 8px 14px 8px 10px;
  border-radius: 999px; background: var(--viola-ink); color: var(--white); font-weight: 700; font-size: .875rem;
}
.founder .i { width: 18px; height: 18px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; margin-top: 28px; }
.faq details { background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 16px 20px; font-weight: 700; font-size: 1.0625rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231F2230' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; margin: 0; color: var(--muted-ink); }

/* ---------- CTA ---------- */
.cta { max-width: 820px; margin: 0 auto; padding: clamp(24px, 5vw, 56px); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.cta .wl-success { box-shadow: none; background: var(--carta); }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid rgba(31, 34, 48, .08); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { display: inline-block; padding: 10px 0; font-weight: 700; }
.copy { margin: 0; color: var(--muted-ink); font-size: .9375rem; }

/* ---------- Pagina privacy ---------- */
.legal { padding: 48px 0 80px; }
.legal h1 { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); }
.legal h2 { font-size: 1.375rem; margin-top: 2em; }
.legal p, .legal li { color: var(--ink); }
.todo { background: #FFF1E5; box-shadow: inset 4px 0 0 var(--arancio); padding: 2px 6px; border-radius: 4px; font-weight: 700; }
.todo-box { background: #FFF1E5; border-radius: var(--r-sm); padding: 16px 20px; box-shadow: inset 4px 0 0 var(--arancio); margin-bottom: 32px; }

/* =========================================================
   Breakpoint
   ========================================================= */
@media (min-width: 560px) {
  .wl-row { flex-direction: row; }
  .wl-row .input { flex: 1; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .cards-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  :root { --gutter: 32px; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .roadmap { grid-template-columns: repeat(3, 1fr); }
  .road { flex-direction: column; }
  .name-card { grid-template-columns: auto 1fr; gap: 40px; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .hero-visual { width: 460px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .phone-figure { width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
