:root {
  /* Wine — il colore del marchio */
  --primary-50: #fbeef5;
  --primary-100: #f5dfeb;
  --primary-200: #e9c5db;
  --primary-500: #ad3577;
  --primary: #93225c;
  --primary-700: #7a1c4a;
  --primary-800: #5e1539;
  --primary-900: #45102b;

  /* Lime — l'accento vivo */
  --lime-50: #f6f8db;
  --lime-100: #ecf2bd;
  --lime-200: #e1eb95;
  --lime: #abc200;
  --lime-600: #8aa300;
  --lime-800: #4d5a00;

  /* Neutri caldi */
  --bg: #fbf8f4;
  --surface: #ffffff;
  --surface-2: #f8f4f0;
  --border: #e7e0db;
  --border-strong: #ddd6d0;
  --text: #1a1714;
  --text-muted: #7a716c;
  --text-dim: #998f89;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-round: 999px;

  --shadow-1: 0 1px 2px rgba(20, 14, 10, .04), 0 1px 1px rgba(20, 14, 10, .03);
  --shadow-2: 0 2px 6px rgba(20, 14, 10, .05), 0 4px 12px rgba(20, 14, 10, .04);
  --shadow-3: 0 10px 32px rgba(20, 14, 10, .12), 0 2px 6px rgba(20, 14, 10, .06);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;
  --duration: 180ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main,
section,
.container,
.hero-grid,
.demo-grid,
.stats-grid,
.step,
.beyond-grid,
.requirements-grid,
.story-grid {
  min-width: 0;
}

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

figure,
h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

code {
  border-radius: var(--r-sm);
  background: var(--lime-50);
  color: var(--lime-800);
  font-family: var(--font-mono);
  font-size: .92em;
  font-weight: 700;
  padding: .08em .28em;
}

.container {
  width: min(100% - 40px, 1120px);
  margin-inline: auto;
}

.site-header {
  background: var(--bg);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  color: var(--text-dim);
}

.brand span {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.02em;
}

.header-contact {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.hero {
  padding: 32px 0 64px;
  overflow: clip;
}

.hero-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.3;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin-bottom: 18px;
  color: var(--primary-900);
  font-size: clamp(2.25rem, 10.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  line-height: 1.5;
}

.desktop-break {
  display: none;
}

.media-slot {
  width: 100%;
  height: auto;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-xl);
  background: var(--surface-2);
  color: var(--text-dim);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  object-fit: cover;
  overflow-wrap: anywhere;
  padding: 20px;
  text-align: center;
}

.hero-media {
  aspect-ratio: 3 / 2;
  max-height: 360px;
  justify-self: stretch;
}

.demo-area {
  margin-top: 28px;
}

.demo-intro {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.demo-grid {
  display: grid;
  gap: 10px;
}

.demo-card {
  position: relative;
  min-height: 112px;
  display: grid;
  align-content: center;
  gap: 3px;
  overflow: hidden;
  padding: 18px 44px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color var(--duration) var(--ease-out), box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.demo-card strong {
  color: var(--primary);
  font-size: 19px;
  line-height: 1.25;
}

.demo-card > span:not(.demo-marker, .demo-arrow) {
  font-size: 14px;
  line-height: 1.4;
}

.demo-marker {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--lime);
}

.demo-arrow {
  position: absolute;
  top: 17px;
  right: 17px;
  color: var(--primary);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
}

.demo-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-2);
  transform: translateY(-4px);
}

.demo-card:active {
  transform: translateY(-1px);
}

.offline-promise {
  display: grid;
  grid-template-columns: 8px 1fr;
  gap: 16px;
  align-items: stretch;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface-2);
}

.offline-signal {
  width: 8px;
  border-radius: var(--r-round);
  background: var(--lime);
}

.offline-promise h2 {
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.35;
}

.offline-promise p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.stats-band,
.contact-band {
  background: var(--primary-900);
  color: var(--surface);
}

.stats-band {
  padding: 56px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 20px;
  margin-bottom: 32px;
}

.stats-grid > div {
  min-width: 0;
}

.stats-grid dt {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: clamp(2.25rem, 9vw, 2.75rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  overflow-wrap: anywhere;
}

.stats-grid dd {
  margin: 0;
  max-width: 24ch;
  font-size: 14px;
  line-height: 1.45;
  opacity: .84;
}

.stats-note {
  max-width: 86ch;
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
  opacity: .8;
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-heading h2,
.story h2,
.contact-band h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 7.5vw, 2.5rem);
  font-weight: 750;
  letter-spacing: -.025em;
  line-height: 1.12;
}

.section-heading > p:last-child {
  max-width: 64ch;
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 17px;
}

.order-flow {
  background: var(--bg);
}

.steps {
  position: relative;
  display: grid;
  gap: 52px;
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.step-number {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--lime-600);
  border-radius: var(--r-round);
  background: var(--lime-50);
  color: var(--lime-800);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
}

.step-copy {
  grid-column: 2;
  grid-row: 1;
  max-width: 500px;
}

.step-copy h3,
.feature-block h3,
.requirements-grid h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.step-copy p,
.feature-block p,
.story-copy > p:not(.eyebrow),
.requirements-grid p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.step figure {
  grid-column: 1 / -1;
  grid-row: 2;
}

.screen-frame,
.photo-frame {
  margin: 0;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.screen-bar {
  height: 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.screen-frame .media-slot {
  aspect-ratio: 16 / 10;
  border-radius: 0 0 var(--r) var(--r);
}

.screen-wide .media-slot,
.photo-wide .media-slot {
  aspect-ratio: 16 / 9;
}

.photo-frame .media-slot {
  aspect-ratio: 4 / 3;
}

.beyond {
  background: var(--surface);
}

.beyond-grid {
  display: grid;
  gap: 52px;
}

.feature-block figure {
  margin-bottom: 24px;
}

.feature-block p {
  max-width: 62ch;
}

.requirements {
  background: var(--bg);
}

.requirements-grid {
  list-style: none;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
}

.requirements-grid li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-strong);
}

.requirements-grid li > span {
  padding-top: 2px;
  color: var(--lime-800);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
}

.requirements-grid h3 {
  margin-bottom: 4px;
}

.setup-note {
  margin: 32px 0 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left-color: var(--lime-600);
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 650;
}

.story {
  position: relative;
  overflow: hidden;
  background: var(--surface);
}

.story-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.story-copy {
  max-width: 640px;
}

.story-copy > p:not(.eyebrow) {
  margin-bottom: 18px;
}

.story-copy > p:last-child {
  margin-bottom: 0;
}

.story-photo .media-slot {
  aspect-ratio: 3 / 2;
}

.contact-band {
  padding: 72px 0;
}

.contact-inner {
  max-width: 760px;
  text-align: center;
}

.contact-band h2 {
  margin-bottom: 14px;
  color: var(--surface);
}

.contact-band p {
  max-width: 64ch;
  margin: 0 auto 28px;
  font-size: 17px;
  line-height: 1.6;
  opacity: .88;
}

.contact-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--surface);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--primary-900);
  box-shadow: var(--shadow-2);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: box-shadow var(--duration) var(--ease-out), transform var(--duration) var(--ease-out);
}

.contact-button:hover {
  box-shadow: var(--shadow-3);
  transform: translateY(-3px);
}

.contact-button:focus-visible,
.stats-band a:focus-visible {
  outline-color: var(--surface);
}

.site-footer {
  padding: 30px 0;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .container {
    width: min(100% - 64px, 1120px);
  }

  .demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
  }

  .stats-grid dt {
    font-size: clamp(2.25rem, 5.7vw, 3rem);
  }

  .requirements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .header-inner {
    min-height: 72px;
  }

  .hero {
    padding: 28px 0 56px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
    gap: 48px;
  }

  .hero-media {
    max-width: 440px;
    max-height: 294px;
    justify-self: end;
  }

  h1 {
    font-size: clamp(3rem, 5vw, 3.5rem);
  }

  .demo-area {
    margin-top: 22px;
  }

  .demo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .demo-card {
    min-height: 104px;
  }

  .offline-promise {
    margin-top: 14px;
    padding-block: 12px;
  }

  .stats-band {
    padding: 68px 0;
  }

  .section {
    padding: 104px 0;
  }

  .section-heading {
    margin-bottom: 64px;
  }

  .steps {
    gap: 84px;
  }

  .steps::before {
    content: "";
    position: absolute;
    top: 22px;
    bottom: 22px;
    left: 50%;
    width: 1px;
    background: var(--border-strong);
    transform: translateX(-50%);
  }

  .step {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    gap: 34px;
  }

  .step-number {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .step-copy,
  .step figure {
    grid-row: 1;
  }

  .step-text-first .step-copy {
    grid-column: 1;
  }

  .step-text-first figure {
    grid-column: 3;
  }

  .step-media-first figure {
    grid-column: 1;
  }

  .step-media-first .step-copy {
    grid-column: 3;
  }

  .step-media-first .step-copy {
    justify-self: start;
  }

  .step-text-first .step-copy {
    justify-self: end;
  }

  .beyond-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 48px;
  }

  .requirements-grid {
    column-gap: 64px;
  }

  .requirements-grid li:last-child {
    grid-column: 1 / -1;
  }

  .story-grid {
    grid-template-columns: minmax(0, 1.03fr) minmax(360px, .97fr);
    gap: 72px;
  }

  .contact-band {
    padding: 96px 0;
  }
}

@media (min-width: 1200px) {
  .desktop-break {
    display: initial;
  }

  h1 {
    font-size: 3.75rem;
  }

  .stats-grid dt {
    font-size: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .demo-card,
  .contact-button {
    transition: none;
  }

  .demo-card:hover,
  .demo-card:active,
  .contact-button:hover {
    transform: none;
  }
}
