/* ═══════════════════════════════════════
   SparkMenu — Landing Page
   ═══════════════════════════════════════ */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #F7F4EE;
  --bg-alt: #EDE8DF;
  --white: #FFFFFF;
  --text: #181818;
  --text-secondary: #66625C;
  --accent: #D95F43;
  --border: #e0ddd7;
  --accent-shadow: 217, 95, 67;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Work Sans', system-ui, sans-serif;
  --section-padding: 120px 0;
  --radius: 16px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* ── Layout ── */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section        { padding: var(--section-padding); }
.section--alt   { background: var(--bg-alt); }
.section--dark  { background: var(--text); color: var(--white); text-align: center; }


/* ── Shared: card ── */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}


/* ── Shared: section header ── */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}


/* ── Shared: icon circle ── */

.icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
}

.icon-circle--sm {
  width: 32px; height: 32px;
  font-size: .85rem;
}

.icon-circle--md {
  width: 36px; height: 36px;
  font-size: 1rem;
}

.icon-circle--accent {
  background: rgba(var(--accent-shadow), .08);
  color: var(--accent);
}

.icon-circle--muted {
  background: var(--bg-alt);
  color: var(--text-secondary);
}

.icon-circle--accent-light {
  background: rgba(var(--accent-shadow), .2);
  color: var(--accent);
}


/* ── Shared: two-col grid ── */

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}


/* ── Typography ── */

.headline {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.headline--hero    { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.headline--section { font-size: clamp(2rem, 4vw, 3.2rem); }

.headline .hl-accent { color: var(--accent); }

.headline .hl-underline {
  text-decoration: none;
  position: relative;
  white-space: nowrap;
}

.headline .hl-underline::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 0;
  height: 8px;
  background: var(--accent);
  border-radius: 2px 4px 2px 3px;
  transform: rotate(-.4deg) skewX(-4deg);
}

.subtext {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.6;
}

.label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.item-desc {
  font-size: .85rem;
  color: var(--text-secondary);
}


/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(var(--accent-shadow), .25);
}

.btn--primary:hover {
  box-shadow: 0 8px 32px rgba(var(--accent-shadow), .35);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--white);
}


/* ── Navigation ── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}

.nav.scrolled {
  background: rgba(247, 244, 238, .92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--text);
}

.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color .2s;
}

.nav__link:hover { color: var(--text); }

.nav__cta {
  font-size: .85rem;
  padding: 10px 24px;
}


/* ── Hero ── */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__content   { max-width: 560px; }
.hero__headline  { margin-bottom: 28px; }
.hero__label     { margin-bottom: 20px; }

.hero__sub {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-family: var(--serif);
  font-style: italic;
}

.hero__desc {
  margin-bottom: 40px;
  max-width: 440px;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__bg-image {
  position: absolute;
  right: -40px; top: -40px;
  width: 320px; height: 420px;
  border-radius: 20px;
  object-fit: cover;
  z-index: 1;
  opacity: .35;
}


/* ── Phone mockup ── */

.phone-mockup {
  background: var(--white);
  border-radius: 32px;
  padding: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .1), 0 2px 8px rgba(0, 0, 0, .04);
  position: relative;
  z-index: 2;
}

.phone-mockup--hero    { width: 280px; }
.phone-mockup--filters { width: 280px; margin: 0 auto; }

.phone-screen {
  border-radius: 22px;
  overflow: hidden;
  background: #fafafa;
}

.phone-notch {
  width: 100px; height: 5px;
  background: #e0e0e0;
  border-radius: 4px;
  margin: 4px auto 8px;
}


/* ── Menu UI (inside phone) ── */

.menu-ui {
  padding: 16px 14px;
  font-family: var(--sans);
}

.menu-ui__header {
  font-family: var(--serif);
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
  color: var(--text);
}

.menu-ui__filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.menu-ui__filter {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 600;
  border: 1px solid #ddd;
  color: var(--text-secondary);
  background: var(--white);
}

.menu-ui__filter--active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.menu-ui__cat {
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin: 12px 0 6px;
}

.menu-ui__item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.menu-ui__item:last-child { border: none; }

.menu-ui__name  { font-size: .75rem; font-weight: 600; color: var(--text); }
.menu-ui__desc  { font-size: .6rem; color: var(--text-secondary); margin-top: 1px; max-width: 160px; }
.menu-ui__price { font-size: .75rem; font-weight: 600; color: var(--text); white-space: nowrap; }

.menu-ui__tag {
  display: inline-block;
  font-size: .5rem;
  padding: 1px 5px;
  border-radius: 8px;
  background: #E8F5E9;
  color: #2E7D32;
  margin-top: 2px;
}

.menu-ui__tags {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-top: 3px;
  align-items: center;
}

.menu-ui__allergen {
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-ui__allergen svg { width: 10px; height: 10px; }

.menu-ui__allergen--latte     { background: #FFF3E0; }
.menu-ui__allergen--glutine   { background: #FFF8E1; }
.menu-ui__allergen--pesce     { background: #E3F2FD; }
.menu-ui__allergen--molluschi { background: #F3E5F5; }
.menu-ui__allergen--sesamo    { background: #FBE9E7; }
.menu-ui__allergen--soia      { background: #E8F5E9; }


/* ── Before / After (versus) ── */

.versus {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .06);
}

.versus__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.versus__head-label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: 20px 32px;
}

.versus__head-label--before {
  background: #C4BEB4;
  color: var(--white);
}

.versus__head-label--after {
  background: var(--accent);
  color: var(--white);
}

.versus__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.versus__row + .versus__row .versus__cell--before { border-top: 1px solid #c9c3b9; }
.versus__row + .versus__row .versus__cell--after  { border-top: 1px solid #f0ede8; }

.versus__arrow { display: none; }

.versus__cell {
  padding: 22px 32px;
  font-size: 1rem;
  line-height: 1.4;
}

.versus__cell--before {
  background: #D5CFC6;
  color: var(--text);
  font-weight: 500;
}

.versus__cell--after {
  background: var(--white);
  color: var(--accent);
  font-weight: 600;
}


/* ── Filters ── */

.filters__content { max-width: 480px; }

.filters__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.filters__tag {
  padding: 10px 20px;
  border-radius: 30px;
  font-size: .85rem;
  font-weight: 500;
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all .25s ease;
  cursor: default;
}

.filters__tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filters__tag--active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.filters__closing {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text);
  margin-top: 32px;
  line-height: 1.35;
}


/* ── QR section ── */

.qr__header .subtext { margin-top: 16px; }

.qr__compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.qr__card {
  padding: 40px 32px;
  border-radius: var(--radius);
  text-align: center;
}

.qr__card--pdf {
  background: var(--white);
  border: 1px solid var(--border);
}

.qr__card--spark {
  background: #A8422E;
  color: var(--white);
}

.qr__card-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  margin-bottom: 20px;
}

.qr__card--pdf .qr__card-label   { color: var(--text-secondary); }
.qr__card--spark .qr__card-label { color: var(--white); opacity: .7; }

.qr__card-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.qr__card-text {
  font-size: 1.05rem;
  line-height: 1.5;
}

.qr__card--pdf .qr__card-text   { color: var(--text-secondary); }
.qr__card--spark .qr__card-text { color: rgba(255, 255, 255, .8); }

.qr__card-mock {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

/* PDF mock */
.pdf-mock {
  background: #f5f5f5;
  padding: 20px 16px;
  text-align: left;
  border-radius: 8px;
}

.pdf-mock__line {
  height: 8px;
  background: #ddd;
  border-radius: 4px;
  margin-bottom: 8px;
}

.pdf-mock__line--short  { width: 60%; }
.pdf-mock__line--medium { width: 80%; }
.pdf-mock__line--price  { width: 30%; margin-left: auto; background: #ccc; }
.pdf-mock__spacer       { height: 10px; }

/* SparkMenu mock inside QR card */
.spark-mock {
  background: rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 24px;
  text-align: left;
}

.spark-mock__filters {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.spark-mock__filter {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: .65rem;
  background: rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .7);
}

.spark-mock__filter--active {
  background: var(--accent);
  color: var(--white);
}

.spark-mock__item {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
}

.spark-mock__item + .spark-mock__item {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.spark-mock__name  { font-size: .7rem; font-weight: 600; }
.spark-mock__desc  { font-size: .55rem; color: rgba(255, 255, 255, .5); }
.spark-mock__price { font-size: .7rem; font-weight: 600; }


/* ── Per il ristoratore ── */

.ristoratore__list {
  list-style: none;
  margin: 36px 0;
}

.ristoratore__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-size: 1.05rem;
}

.ristoratore__list li + li {
  border-top: 1px solid var(--border);
}

.ristoratore__note {
  font-size: .9rem;
  color: var(--text-secondary);
  margin-top: 8px;
  padding: 16px 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

.ristoratore__image {
  border-radius: var(--radius);
  object-fit: cover;
  width: 100%;
  height: 480px;
}


/* ── Per il cliente ── */

.cliente__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto 48px;
}

.cliente__feature {
  padding: 32px 28px;
}

.cliente__feature-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.cliente__feature-title {
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 6px;
}

.cliente__feature-desc {
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cliente__closing {
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--text);
  max-width: 550px;
  margin: 0 auto;
}


/* ── Cosa comprende ── */

.includes__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

.includes__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 500;
}

.includes__check {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-shadow), .1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
}


/* ── Upsell ── */

.upsell__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.upsell__card {
  padding: 40px 36px;
}

.upsell__card .label { margin-bottom: 12px; }

.upsell__card-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.upsell__card-desc {
  font-size: .9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ── Pricing ── */

.pricing__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.pricing__box {
  margin-top: 48px;
  padding: 48px;
  border-radius: 20px;
  box-shadow: 0 16px 64px rgba(0, 0, 0, .04);
}

.pricing__amount {
  font-family: var(--serif);
  font-size: 3.6rem;
  line-height: 1;
  margin-bottom: 4px;
}

.pricing__period {
  font-size: .95rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}


/* ── Closing ── */

.closing .headline {
  color: var(--white);
  max-width: 700px;
  margin: 0 auto;
}

.closing__sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: rgba(255, 255, 255, .6);
  margin: 20px 0 40px;
}


/* ── Footer ── */

.footer {
  padding: 32px 0;
  background: var(--text);
  border-top: 1px solid rgba(255, 255, 255, .06);
  text-align: center;
  font-size: .8rem;
  color: rgba(255, 255, 255, .35);
}


/* ── Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ── Responsive ── */

@media (max-width: 900px) {
  .hero__grid          { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero__content       { max-width: 100%; margin: 0 auto; }
  .hero__desc          { margin-left: auto; margin-right: auto; }
  .hero__visual        { order: -1; }
  .hero__bg-image      { display: none; }
  .grid-2              { grid-template-columns: 1fr; gap: 48px; }
  .versus__head         { grid-template-columns: 1fr; }
  .versus__head-label--after { display: none; }
  .versus__row          { grid-template-columns: 1fr; }
  .versus__cell--after  { border-top: none; }
  .filters .phone-mockup { order: -1; }
  .qr__compare         { grid-template-columns: 1fr; }
  .ristoratore__image  { height: 300px; order: -1; }
  .cliente__features   { grid-template-columns: 1fr; }
  .includes__grid      { grid-template-columns: 1fr; }
  .upsell__grid        { grid-template-columns: 1fr; }
  .nav__links          { display: none; }
}

@media (max-width: 480px) {
  .hero                    { padding: 120px 0 60px; min-height: auto; }
  .phone-mockup--hero,
  .phone-mockup--filters   { width: 240px; }
  .contrast__col           { padding: 32px 24px; }
  .pricing__box            { padding: 32px 24px; }
}
