@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/fonts/Inter_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }

:root {
  --canvas: #FBF8F3; --surface: #FFFFFF; --subtle: #F4EFE6; --border: #E8E0D3;
  --text: #1C1915; --text-2: #5C5346; --brand: #A4431F; --brand-pressed: #833419;
  --brand-subtle: #FBF1EC; --on-brand: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #13110E; --surface: #1C1915; --subtle: #2A251F; --border: #3F382F;
    --text: #FBF8F3; --text-2: #D4C9B8; --brand: #D4704C; --brand-pressed: #E29576;
    --brand-subtle: #3D190D; --on-brand: #13110E;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--text); font: 400 17px/1.6 'Inter', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text-2); }
a { color: var(--brand); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font: 600 1.4rem 'Fraunces', Georgia, serif; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
nav a { margin-left: 20px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.hero { padding: 56px 0 72px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; max-width: 34em; }
.hero img.mark { width: 100%; max-width: 320px; justify-self: center; border-radius: 22%; box-shadow: 0 20px 50px rgba(131, 52, 25, .25); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.badge { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--brand); color: var(--on-brand); font-weight: 600; text-decoration: none; }
.badge.soon { background: var(--subtle); color: var(--text-2); border: 1px solid var(--border); cursor: default; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1.5px solid var(--brand); color: var(--brand); font-weight: 600; text-decoration: none; }
section { padding: 56px 0; }
section.alt { background: var(--subtle); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card .n { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-subtle); color: var(--brand); font-weight: 600; margin-bottom: 12px; }
.card p { margin: 0; }
ul.ticks { padding-left: 1.2em; color: var(--text-2); }
ul.ticks li { margin-bottom: .4em; }
footer { padding: 40px 0 56px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text-2); }
footer a { margin-right: 18px; }
.legal { max-width: 720px; padding: 24px 24px 72px; margin: 0 auto; }
.legal h2 { margin-top: 1.6em; font-size: 1.4rem; }
.legal li { color: var(--text-2); margin-bottom: .4em; }
.draft { background: var(--brand-subtle); border: 1px solid var(--brand); border-radius: 14px; padding: 14px 18px; color: var(--text); }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; padding-top: 24px; } .hero img.mark { max-width: 180px; order: -1; justify-self: start; } .grid3 { grid-template-columns: 1fr; } }

/* ── Animazioni e interazione ─────────────────────────────── */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: blur(10px); transition: box-shadow .25s; }
header.top.scrolled { box-shadow: 0 1px 0 var(--border); }
.hero h1, .hero p.lead, .hero .stores { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero p.lead { animation-delay: .12s; } .hero .stores { animation-delay: .24s; }
.mark-wrap { justify-self: center; perspective: 800px; animation: pop .9s cubic-bezier(.2,.9,.3,1.2) .1s both; }
.hero img.mark { display: block; transition: transform .15s ease-out; animation: float 6s ease-in-out 1s infinite; will-change: transform; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(40px) scale(.85); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.grid3 .card:nth-child(2) { transition-delay: .1s; } .grid3 .card:nth-child(3) { transition-delay: .2s; }
.card { transition: opacity .7s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.card.in:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(131,52,25,.15); }
.badge, .btn, .btn-solid { transition: transform .15s, background .2s; }
.btn:hover, .btn-solid:hover { transform: translateY(-2px); }

.demo-grid { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; }
.phone { background: var(--surface); border: 1px solid var(--border); border-radius: 32px; padding: 18px; box-shadow: 0 24px 60px rgba(131,52,25,.18); min-height: 440px; }
.tabs { display: flex; gap: 6px; background: var(--subtle); padding: 4px; border-radius: 999px; margin-bottom: 16px; }
.tab { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 .9rem 'Inter', sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.tab.on { background: var(--brand); color: var(--on-brand); }
.biz { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.biz strong { display: block; font: 600 1.15rem 'Fraunces', Georgia, serif; }
.biz span { color: var(--text-2); font-size: .85rem; }
.follow { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--brand); background: transparent; color: var(--brand); font: 600 .95rem 'Inter', sans-serif; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.follow:active { transform: scale(.94); }
.follow[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }
.notif { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 16px; background: var(--brand-subtle); border: 1px solid var(--border); opacity: 0; transform: translateY(-16px) scale(.96); transition: opacity .4s, transform .5s cubic-bezier(.2,.9,.3,1.3); height: 0; overflow: hidden; padding-block: 0; margin-top: 0; border-width: 0; }
.notif.show { opacity: 1; transform: none; height: auto; padding-block: 12px; margin-top: 16px; border-width: 1px; }
.notif .dot { flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: var(--brand); }
.notif strong { display: block; font-size: .92rem; } .notif span { font-size: .85rem; color: var(--text-2); }
.offer { margin-top: 16px; padding: 18px; border-radius: 20px; background: var(--subtle); animation: rise .5s both; }
.offer[hidden] { display: none; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--brand-subtle); color: var(--brand); font-weight: 600; font-size: .75rem; margin-bottom: 8px; }
.offer h3 { margin-bottom: .3em; } .offer p { font-size: .95rem; }
.btn-solid { min-height: 48px; width: 100%; border: 0; border-radius: 14px; background: var(--brand); color: var(--on-brand); font: 600 1rem 'Inter', sans-serif; cursor: pointer; }
.coupon { text-align: center; animation: flip .6s cubic-bezier(.2,.8,.2,1) both; }
.coupon[hidden] { display: none; }
.coupon canvas { background: #fff; padding: 10px; border-radius: 12px; width: 152px; height: 152px; }
.coupon code { display: block; margin: 8px 0 2px; font: 600 1.2rem 'Inter', monospace; letter-spacing: .12em; color: var(--text); }
.coupon small { color: var(--text-2); }
@keyframes flip { from { opacity: 0; transform: rotateX(-90deg) scale(.9); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .demo-grid { grid-template-columns: 1fr; gap: 24px; } .phone { max-width: 420px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
section { scroll-margin-top: 72px; }

/* ── Ridisegno: hero con anteprima app ───────────────────── */
.hl { color: var(--brand); }
.hero p.lead { font-size: 1.35rem; color: var(--text); font-weight: 600; }
.hero { padding: 40px 0 64px; }
#mark.mark-wrap { width: 100%; display: flex; justify-content: center; }
.hero-phone { position: relative; width: 300px; min-height: 0; padding: 14px; overflow: hidden; border-radius: 36px; transition: transform .15s ease-out; animation: float 6s ease-in-out 1.5s infinite; }
.app-top { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.app-top b { font: 600 1.15rem 'Fraunces', Georgia, serif; margin-right: auto; }
.pill { padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--subtle); color: var(--text-2); }
.pill.on { background: var(--brand); color: var(--on-brand); }
.stories { display: flex; gap: 10px; margin-bottom: 12px; }
.stories i { width: 44px; height: 44px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font: 600 1rem 'Fraunces', serif; font-style: normal; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.fcard { background: var(--canvas); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin-bottom: 10px; opacity: 0; transform: translateY(20px); animation: rise .6s cubic-bezier(.2,.7,.2,1) forwards; }
.c1 { animation-delay: .5s; } .c2 { animation-delay: .8s; } .c3 { animation-delay: 1.1s; }
.fcard .img { height: 92px; position: relative; }
.fcard .img.a { background: linear-gradient(135deg, #D4704C, #833419); }
.fcard .img.b { background: linear-gradient(135deg, #D99A0B, #C2552F); }
.fcard .off { position: absolute; left: 10px; bottom: 8px; font: 600 1.5rem 'Fraunces', serif; color: #fff; }
.fcard .body { padding: 10px 12px; }
.fcard strong { display: block; font-size: .88rem; line-height: 1.3; }
.fcard span { font-size: .75rem; color: var(--text-2); }
.toast { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 2; display: flex; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--text); color: var(--canvas); box-shadow: 0 10px 24px rgba(0,0,0,.25); transform: translateY(-120%); animation: drop 5s cubic-bezier(.2,.9,.3,1.2) 1.8s infinite; }
.toast strong { display: block; font-size: .8rem; } .toast span { font-size: .72rem; opacity: .8; }
.toast .dot { flex: none; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #D4704C; }
@keyframes drop { 0% { transform: translateY(-120%); } 8%, 70% { transform: none; } 80%, 100% { transform: translateY(-120%); } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.step { font: 600 1.25rem 'Fraunces', Georgia, serif; }
.step b { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 1.2rem; }
.merch { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.merch h2, .merch p { margin: 0; }
.merch p { margin-top: 4px; }
section { padding: 48px 0; }
@media (max-width: 760px) { .hero-phone { width: 270px; } #mark.mark-wrap { justify-content: flex-start; order: 2; } .steps { gap: 8px; } .step { font-size: 1rem; } }

/* ── Mobile first (la maggior parte del traffico) ─────────── */
html { -webkit-text-size-adjust: 100%; }
button, .badge, .btn, .tab, .follow { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: env(safe-area-inset-bottom); }
  .wrap { padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  header.top { padding: 12px 0; }
  .brand { font-size: 1.25rem; } .brand img { width: 36px; height: 36px; }
  nav a { font-size: .9rem; margin: 0; padding: 12px 0 12px 12px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 16px 0 40px; text-align: left; }
  h1 { font-size: clamp(2rem, 9.5vw, 2.6rem); }
  .hero p.lead { font-size: 1.1rem; margin-bottom: 0; }
  .stores { flex-direction: column; margin-top: 20px; gap: 10px; }
  .badge { width: 100%; justify-content: center; min-height: 52px; }
  #mark.mark-wrap { order: 2; justify-content: center; }
  .hero-phone { width: min(300px, 86vw); }
  section { padding: 36px 0; }
  h2 { font-size: 1.5rem; }
  .demo-grid { gap: 16px; } .demo-grid p { margin-bottom: 0; }
  .phone { max-width: none; width: 100%; padding: 14px; border-radius: 28px; min-height: 0; }
  .hero-phone { width: min(300px, 86vw); }
  .tab { min-height: 48px; font-size: 1rem; }
  .follow { min-height: 48px; padding: 0 22px; }
  .btn-solid { min-height: 52px; }
  .coupon canvas { width: 168px; height: 168px; }
  .merch { flex-direction: column; align-items: stretch; gap: 16px; }
  .merch .btn { justify-content: center; min-height: 52px; }
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step { display: flex; align-items: center; gap: 14px; text-align: left; font-size: 1.15rem; }
  .step b { margin: 0; width: 44px; height: 44px; flex: none; }
  footer { padding: 28px 0 40px; }
  footer a { display: inline-block; padding: 10px 0; margin-right: 20px; }
  .legal { padding: 8px 20px 56px; }
  .card.in:hover, .btn:hover, .btn-solid:hover { transform: none; box-shadow: none; }
}
@media (max-width: 360px) { .stories i { width: 38px; height: 38px; } .app-top .pill:last-child { display: none; } }
@media (hover: none) { .card.in:hover, .btn:hover, .btn-solid:hover { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .fcard, .hero h1, .hero p.lead, .hero .stores, .mark-wrap { opacity: 1 !important; transform: none !important; }
  .toast { transform: none; position: static; margin-bottom: 10px; }
}
@media (max-width: 760px) {
  .stores { flex-direction: row; gap: 8px; }
  .badge { flex: 1; width: auto; min-height: 48px; padding: 0 6px; font-size: .82rem; text-align: center; }
}
