/* ==========================================================================
   KetchEat – Sito vetrina
   CSS leggero, mobile-first, senza dipendenze. Animazioni sobrie e disattivate
   automaticamente con prefers-reduced-motion.
   ========================================================================== */

:root {
  --brand: #9a6534;
  --brand-strong: #7a4e27;
  --brand-ink: #4a2f17;
  --brand-soft: #f6ede2;
  --brand-tint: #fbf6ef;
  --sand: #d9a86c;
  --taupe: #8f7f6c;

  --ink: #1f1a15;
  --text: #3d352d;
  --muted: #6e655b;
  --line: #ece3d7;
  --bg: #fffcf8;
  --surface: #ffffff;

  --green: #1e7f52;
  --green-soft: #e6f4ec;
  --amber: #b26b00;
  --amber-soft: #fff3dc;
  --blue: #2457c5;
  --blue-soft: #e8efff;
  --red: #c0392b;
  --red-soft: #fdecea;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(31, 26, 21, .06), 0 1px 1px rgba(31, 26, 21, .04);
  --shadow: 0 10px 30px -12px rgba(74, 47, 23, .22), 0 2px 6px rgba(31, 26, 21, .05);
  --shadow-lg: 0 30px 60px -20px rgba(74, 47, 23, .30);

  --container: 1160px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-strong); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -.01em; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0; }
.section--tint { background: var(--brand-tint); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #e9e1d7; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .09em;
  color: var(--brand); background: var(--brand-soft); border: 1px solid #ecdcc6;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.lead { font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }

/* ---------- Bottoni ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: var(--brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s, color .2s, border-color .2s;
  box-shadow: 0 6px 16px -8px rgba(122, 78, 39, .6);
}
.btn:hover { color: var(--btn-fg); background: var(--brand-strong); border-color: var(--brand-strong); transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(122, 78, 39, .6); }
.btn:active { transform: translateY(0); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: none; background: var(--surface); }
.btn--ghost:hover { --btn-fg: var(--brand-strong); background: var(--brand-tint); border-color: #e2cfb7; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--brand-ink); --btn-bd: #fff; }
.btn--light:hover { background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand-ink); }
.btn--sm { white-space: nowrap; min-height: 40px; padding: 8px 14px; font-size: .92rem; border-radius: 12px; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 252, 248, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -16px rgba(31, 26, 21, .4); }
.site-header .container { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img.brand-mark { width: 38px; height: 38px; object-fit: contain; }
.brand img.brand-word { height: 22px; width: auto; }
.nav { display: none; margin-left: auto; }
.nav a { white-space: nowrap; color: var(--text); text-decoration: none; font-weight: 600; font-size: .93rem; padding: 8px 9px; border-radius: 10px; transition: background-color .2s, color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brand-strong); background: var(--brand-soft); }
.header-cta { display: none; gap: 8px; }
.nav-toggle {
  margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); display: inline-grid; place-items: center; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-nav {
  position: fixed; inset: 68px 0 auto 0; z-index: 49; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px var(--gutter) 20px; display: none; max-height: calc(100vh - 68px); overflow-y: auto;
}
.mobile-nav.is-open { display: block; animation: slideDown .22s var(--ease); }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 0 8px; color: var(--ink); text-decoration: none; font-weight: 650; border-bottom: 1px solid var(--line); }
.mobile-nav a[aria-current="page"] { color: var(--brand); }
.mobile-nav .btn-row { margin-top: 16px; }
.mobile-nav .btn { flex: 1; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; background: radial-gradient(1200px 500px at 85% -10%, #f7e9d6 0%, rgba(247, 233, 214, 0) 60%), radial-gradient(800px 400px at -10% 20%, #fbf1e4 0%, rgba(251, 241, 228, 0) 60%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--brand); }
.hero .lead { margin-bottom: 24px; }
.hero-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 24px 0 0; padding: 0; list-style: none; }
.hero-points li { display: flex; gap: 8px; align-items: flex-start; font-size: .93rem; font-weight: 600; color: var(--text); }
.hero-points svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.hero-visual { position: relative; min-height: 420px; }

.page-hero { padding: 40px 0 32px; background: linear-gradient(180deg, var(--brand-tint), var(--bg)); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand); }

/* ---------- Mockup app (CSS) ---------- */
.mock { position: absolute; border-radius: 28px; background: #1d1813; box-shadow: var(--shadow-lg); }
.mock-screen { position: absolute; inset: 10px; border-radius: 20px; background: #fff; overflow: hidden; }
.mock--tablet { width: min(92%, 520px); aspect-ratio: 4 / 3; right: 0; top: 10px; border-radius: 26px; }
.mock--tablet .mock-screen { inset: 12px; border-radius: 16px; background: #f7f4ef; }
.mock--phone { width: 190px; aspect-ratio: 9 / 18.5; left: 0; bottom: 0; border-radius: 30px; z-index: 2; }
.mock--phone .mock-screen { inset: 8px; border-radius: 24px; }
.mock--phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 54px; height: 6px; border-radius: 6px; background: #3a322a; transform: translateX(-50%); z-index: 3; }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8s ease-in-out infinite; }
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.m-top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff; border-bottom: 1px solid #eee5da; }
.m-dot { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--sand), var(--brand)); flex: none; }
.m-title { font-size: 11px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.m-sub { font-size: 9px; color: var(--muted); }
.m-pill { margin-left: auto; font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green); }
.m-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.m-col h5 { margin: 0 0 6px; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.m-col h5::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.m-col--new h5 { color: var(--amber); }
.m-col--prep h5 { color: var(--blue); }
.m-col--ready h5 { color: var(--green); }
.m-card { background: #fff; border-radius: 10px; padding: 7px 8px; margin-bottom: 6px; border-left: 3px solid var(--line); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.m-col--new .m-card { border-left-color: var(--amber); }
.m-col--prep .m-card { border-left-color: var(--blue); }
.m-col--ready .m-card { border-left-color: var(--green); }
.m-card b { display: block; font-size: 10px; color: var(--ink); }
.m-card span { font-size: 8.5px; color: var(--muted); display: block; }
.m-card i { font-style: normal; display: inline-block; margin-top: 4px; font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); }
.m-card.is-new { animation: cardIn 1.2s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.m-slots { display: flex; gap: 4px; padding: 0 10px 10px; }
.m-slot { flex: 1; height: 26px; border-radius: 7px; background: #fff; border: 1px solid #eee5da; position: relative; overflow: hidden; }
.m-slot::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: var(--fill, 40%); background: linear-gradient(180deg, #f3ddc1, #e9c79c); }
.m-slot.full::after { background: linear-gradient(180deg, #f7c9c2, #ee9e93); }
.m-slot em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 7.5px; font-weight: 800; color: var(--brand-ink); z-index: 1; }

.p-banner { height: 70px; background: linear-gradient(135deg, #c98d52, #7a4e27); position: relative; }
.p-banner span { position: absolute; left: 12px; bottom: 8px; color: #fff; font-size: 11px; font-weight: 800; }
.p-tabs { display: flex; gap: 5px; padding: 8px 10px; }
.p-tabs span { font-size: 8.5px; font-weight: 800; padding: 4px 8px; border-radius: 999px; background: #f4ede4; color: var(--brand-ink); }
.p-tabs span:first-child { background: var(--brand); color: #fff; }
.p-item { display: flex; gap: 8px; align-items: center; padding: 7px 10px; border-bottom: 1px solid #f1ebe3; }
.p-thumb { width: 34px; height: 34px; border-radius: 9px; background: radial-gradient(circle at 30% 30%, #f5d6a1, #d98b4a 60%, #a8512a); flex: none; }
.p-item b { font-size: 9.5px; color: var(--ink); display: block; }
.p-item span { font-size: 8px; color: var(--muted); }
.p-add { margin-left: auto; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.p-cart { position: absolute; left: 10px; right: 10px; bottom: 12px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 9px; font-weight: 800; padding: 9px 10px; display: flex; justify-content: space-between; }
.p-slot-chip { margin: 6px 10px; padding: 7px 9px; border-radius: 10px; background: var(--green-soft); color: var(--green); font-size: 8.5px; font-weight: 800; }

/* Mockup inline (non assoluti) per le pagine interne */
.mock-static { position: relative; margin: 0 auto; }
.mock-static .mock { position: relative; inset: auto; }
.mock-static .mock--tablet { width: 100%; max-width: 560px; margin: 0 auto; }
.mock-kds .mock-screen { background: #0f1115; }
.kds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px; }
.kds-card { background: #1b1f27; border-radius: 10px; padding: 8px; color: #e8edf5; border-top: 3px solid var(--blue); }
.kds-card b { font-size: 11px; display: block; }
.kds-card span { font-size: 8.5px; color: #9aa6b8; display: block; margin-top: 2px; }
.kds-card i { display: block; font-style: normal; font-size: 8.5px; margin-top: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(36, 87, 197, .2); color: #a9c3ff; }
.kds-card.ready { border-top-color: var(--green); }
.kds-card.ready i { background: rgba(30, 127, 82, .22); color: #9be2bd; }
.kds-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #fff; font-size: 11px; font-weight: 800; border-bottom: 1px solid #232833; }
.kds-head span { color: #f4c27a; }

/* ---------- Statistiche / contatori ---------- */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: clamp(1.7rem, 5vw, 2.3rem); font-weight: 850; letter-spacing: -.03em; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-weight: 750; color: var(--ink); margin-top: 8px; }
.stat .sub { font-size: .86rem; color: var(--muted); }

/* ---------- Loghi partner (scorrimento) ---------- */
.logos { padding: 36px 0; border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.logos p { text-align: center; font-size: .82rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 20px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 64px; width: auto; opacity: .78; filter: grayscale(1); transition: opacity .25s, filter .25s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Card & griglie ---------- */
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #e3d2bc; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 14px; }
.icon-badge svg { width: 24px; height: 24px; }
.icon-badge--red { background: var(--red-soft); color: var(--red); }
.icon-badge--green { background: var(--green-soft); color: var(--green); }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.solution { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--green-soft); color: #134b31; font-size: .95rem; display: flex; gap: 10px; }
.solution svg { width: 20px; height: 20px; flex: none; color: var(--green); margin-top: 2px; }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
.checklist strong { color: var(--ink); }
.mode-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .82rem; font-weight: 750; color: var(--brand-strong); background: var(--brand-soft); padding: 8px 12px; border-radius: 999px; }

.sector-card { overflow: hidden; display: flex; flex-direction: column; }
.sector-card .kicker { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.sector-card .more { margin-top: auto; padding-top: 18px; font-weight: 750; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.sector-card .more svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.sector-card:hover .more svg { transform: translateX(4px); }

.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.step::before {
  counter-increment: step; content: counter(step);
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 850; font-size: 1.1rem; box-shadow: 0 8px 18px -10px rgba(122, 78, 39, .8);
}
.step h3 { margin-bottom: 4px; }
.step p { color: var(--muted); margin: 0; }

.split { display: grid; gap: 32px; align-items: center; }

/* ---------- Prezzi ---------- */
.billing { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; margin: 0 auto 12px; width: fit-content; max-width: 100%; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.billing button { font: inherit; font-weight: 700; font-size: .92rem; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.billing button[aria-pressed="true"] { background: var(--brand); color: #fff; }
.billing button .off { font-size: .75rem; opacity: .85; margin-left: 4px; }
.billing-note { text-align: center; color: var(--muted); font-size: .9rem; max-width: 640px; margin: 0 auto 32px; }
.price-grid { display: grid; gap: 20px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan--main { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -13px; left: 24px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: #fff; padding: 5px 10px; border-radius: 999px; }
.plan .price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; }
.plan .price strong { font-size: 2.6rem; font-weight: 850; letter-spacing: -.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.plan .price span { color: var(--muted); font-weight: 600; }
.plan .was { color: var(--muted); text-decoration: line-through; font-size: .95rem; min-height: 1.4em; }
.plan .total { font-size: .92rem; color: var(--text); margin-top: 6px; }
.saving { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .85rem; font-weight: 750; padding: 6px 10px; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.saving.is-neutral { background: #f2eee8; color: var(--muted); }
.addons { display: grid; gap: 8px; margin: 20px 0 6px; }
.addon {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; font: inherit; cursor: pointer;
  min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--text);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.addon:hover { border-color: #e0cbb0; }
.addon[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); box-shadow: 0 0 0 3px rgba(154, 101, 52, .12); }
.addon .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid #d8c7b2; display: grid; place-items: center; flex: none; transition: background-color .2s, border-color .2s; }
.addon .box svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.addon[aria-pressed="true"] .box { background: var(--brand); border-color: var(--brand); }
.addon[aria-pressed="true"] .box svg { opacity: 1; }
.addon b { display: block; color: var(--ink); font-size: .95rem; }
.addon small { color: var(--muted); font-size: .8rem; }
.addon .p { margin-left: auto; font-weight: 800; color: var(--brand-strong); white-space: nowrap; font-size: .9rem; }
.addon--full b { color: var(--brand-strong); }
.combo { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.plan .checklist { margin: 18px 0 22px; }
.plan .btn { margin-top: auto; }
.plan--soon { background: repeating-linear-gradient(135deg, #fffaf3, #fffaf3 12px, #fdf5ea 12px, #fdf5ea 24px); border-style: dashed; border-color: #e2cdb2; }
.soon-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: var(--amber-soft); padding: 6px 10px; border-radius: 999px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .94rem; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--brand-tint); color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 650; color: var(--ink); }
.compare .yes { color: var(--green); font-weight: 750; }
.compare .opt { color: var(--brand-strong); font-weight: 750; }

.price-list { display: grid; gap: 10px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.price-row b { color: var(--ink); }
.price-row small { display: block; color: var(--green); font-weight: 700; }
.price-row .v { font-weight: 850; color: var(--brand-strong); white-space: nowrap; font-size: 1.05rem; }

details.spec { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 16px; }
details.spec summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 750; color: var(--ink); display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
details.spec summary::-webkit-details-marker { display: none; }
details.spec summary svg { width: 20px; height: 20px; transition: transform .25s var(--ease); }
details.spec[open] summary svg { transform: rotate(180deg); }
details.spec .spec-body { padding: 0 18px 18px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #e2cfb7; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 750; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 22px; height: 22px; flex: none; color: var(--brand); transition: transform .25s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 20px 20px; color: var(--text); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 40px 24px; background: linear-gradient(135deg, var(--brand-ink), var(--brand) 120%); color: #f6ede2; text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #f0e2d0; max-width: 620px; margin: 0 auto 24px; }
.cta-band .btn-row { justify-content: center; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(217, 168, 108, .35), rgba(217, 168, 108, 0) 70%); }

/* ---------- Form ---------- */
.form-card { max-width: 560px; margin: 0 auto; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 700; color: var(--ink); font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid #e2d6c6; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(154, 101, 52, .14); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--text); margin: 4px 0 18px; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--brand); flex: none; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 650; }
.form-msg.is-error { display: block; background: var(--red-soft); color: #8a2116; }
.form-success { display: none; text-align: center; padding: 12px 0; }
.form-success.is-visible { display: block; animation: cardIn .5s var(--ease) both; }
.form-success .icon-badge { margin: 0 auto 12px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: .88rem; color: var(--muted); }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 16px; height: 16px; color: var(--green); }

/* ---------- Testi legali ---------- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h3 { font-size: 1.05rem; margin-top: 1.5em; }
.prose li { margin-bottom: .5em; }

/* ---------- Footer ---------- */
.site-footer { background: #1b1612; color: #cfc4b6; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #e9dfd2; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand p { color: #b6aa9b; font-size: .92rem; max-width: 340px; }
.footer-brand .brand img.brand-word { filter: brightness(1.6); }
.site-footer h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid #332a22; margin-top: 32px; padding-top: 20px; font-size: .85rem; color: #9b8f80; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #e9dfd2; cursor: pointer; text-align: left; }
.link-btn:hover { color: #fff; text-decoration: underline; }

/* ---------- Banner cookie ---------- */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 18px;
}
.cookie.is-visible { display: block; animation: cookieIn .35s var(--ease) both; }
.cookie h2 { font-size: 1rem; margin-bottom: 6px; }
.cookie p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.cookie .btn-row .btn { flex: 1; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Animazione di apertura (solo prima visita della sessione) ---------- */
.intro { display: none; }
html.ke-intro .intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: radial-gradient(800px 500px at 50% 40%, #fffaf3, #f6ede2);
  animation: introOut .55s var(--ease) 2.15s forwards;
}
html.ke-intro body { overflow: hidden; }
html.ke-intro-done .intro { display: none; }
.intro-inner { display: grid; justify-items: center; gap: 18px; }
.intro-mark { width: 112px; height: 112px; animation: markIn 1s var(--ease) both; }
.intro-word { height: 34px; width: auto; clip-path: inset(0 100% 0 0); animation: wordIn .8s var(--ease) .65s forwards; }
.intro-bar { width: 120px; height: 3px; border-radius: 3px; background: #ead9c3; overflow: hidden; }
.intro-bar::after { content: ""; display: block; height: 100%; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; animation: bar 1.7s var(--ease) .3s forwards; }
.intro-skip { position: absolute; right: 16px; top: 16px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid #e3d3bf; background: rgba(255, 255, 255, .7); font: inherit; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
@keyframes markIn { 0% { opacity: 0; transform: scale(.7) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.04) rotate(1deg); } 100% { transform: none; } }
@keyframes wordIn { to { clip-path: inset(0 0 0 0); } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

/* ---------- Breakpoint ---------- */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .cookie { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
  .cta-band { padding: 56px 40px; }
}
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
  .hero-visual { min-height: 500px; }
  .mock--phone { width: 220px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev > :first-child { order: 2; }
  .price-grid { grid-template-columns: 1.15fr 1fr; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .step { grid-template-columns: 1fr; }
  .page-hero { padding: 64px 0 48px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1120px) {
  .nav { display: flex; gap: 2px; }
  .header-cta { display: flex; }
  .nav-toggle, .mobile-nav { display: none !important; }
}
@media (max-width: 420px) {
  .hero-points { grid-template-columns: 1fr; }
  .mock--phone { width: 150px; }
  .hero-visual { min-height: 360px; }
  .m-cols { gap: 5px; padding: 8px; }
}

/* ---------- Movimento ridotto: niente animazioni ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  html.ke-intro .intro { display: none; }
  html.ke-intro body { overflow: auto; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}
