body {
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0) / 1.6 var(--display);
}

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2.5rem); }

.brand {
  font: 800 1.4rem / 1 var(--display);
  font-variation-settings: "wdth" 80;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin: 0;
}

/* HERO */
.hero {
  background:
    radial-gradient(60rem 40rem at 85% 30%, var(--wine-soft) 0%, transparent 60%),
    var(--wine-deep);
  color: var(--blush);
  padding: 0 clamp(1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}
.nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}
.social { display: flex; gap: 0.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 220, 214, 0.35);
  transition: background-color 0.15s ease;
}
.social a:hover { background: rgba(246, 220, 214, 0.12); }
.social svg { width: 1.2rem; height: 1.2rem; }

.hero-grid {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(1.5rem, 5vw, 4rem);
}
.hero h1 {
  font: 800 var(--step-4) / 0.86 var(--display);
  font-variation-settings: "wdth" 75, "opsz" 96;
  letter-spacing: -0.03em;
  margin: 0 0 0 -0.04em;
  color: var(--blush);
}
.hero-sub {
  font: 400 var(--step-1) / 1.45 var(--serif);
  max-width: 32ch;
  margin: 1.75rem 0 2rem;
  color: rgba(246, 220, 214, 0.88);
}
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Telefono */
.phone {
  margin: 0;
  background: #fff;
  color: var(--ink);
  border-radius: 2.25rem;
  padding: 0.6rem;
  box-shadow: 0 2rem 4rem -1.5rem rgba(0, 0, 0, 0.6), 0 0 0 6px rgba(246, 220, 214, 0.12);
  max-width: 24rem;
  width: 100%;
  justify-self: end;
  font-family: var(--ui);
  transform: rotate(2deg);
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid #eee;
}
.phone-head strong { display: block; font-size: 0.95rem; }
.phone-head small { color: #8a7a7e; font-size: 0.78rem; }
.avatar {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af);
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 19rem;
  padding: 1rem 0.85rem;
  justify-content: flex-end;
}
.story {
  align-self: flex-end;
  width: 6.5rem;
  height: 9.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(160deg, #ffd5a8, #f59e7e 60%, #c2557a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.story-dog { font-size: 2.6rem; line-height: 1; }
.story small { font-size: 0.68rem; color: rgba(255, 255, 255, 0.95); }
.thread .b { font-size: 0.95rem; }
.seen { align-self: flex-end; font-size: 0.72rem; color: #8a7a7e; margin-top: -0.15rem; }
.composer {
  margin: 0 0.3rem 0.3rem;
  padding: 0.75rem 1rem;
  border: 1px solid #e3dadc;
  border-radius: 1.45rem;
  min-height: 2.9rem;
  font-size: 0.95rem;
  line-height: 1.35;
}
.typed { white-space: pre-wrap; }
.caret {
  width: 2px;
  height: 1.15em;
  background: var(--sent);
  margin-left: 1px;
  display: inline-block;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.pop { animation: pop 0.28s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(0.92); } }

.dots { display: flex; gap: 4px; padding: 0.8em 0.9em; }
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a8b8f;
  animation: dot 1s infinite ease-in-out;
}
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Sezioni */
main section { padding: clamp(4rem, 10vw, 7rem) 0; }
main h2 {
  font: 800 var(--step-3) / 0.95 var(--display);
  font-variation-settings: "wdth" 80, "opsz" 72;
  letter-spacing: -0.035em;
  color: var(--wine);
  margin: 0 0 0.75rem;
  max-width: 18ch;
  text-wrap: balance;
}
.section-sub {
  font: 400 var(--step-1) / 1.45 var(--serif);
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 0 2.75rem;
}

.chapters {
  list-style: none;
  counter-reset: cap;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: 2px solid var(--wine);
}
.chapters li { counter-increment: cap; border-bottom: 1px solid var(--blush-deep); }
.chapters a {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  column-gap: 0.5rem;
  padding: 1.1rem 0.25rem;
  text-decoration: none;
  border-radius: 0.5rem;
}
.chapters a::before {
  content: counter(cap);
  grid-row: span 2;
  font: 800 1.6rem / 1 var(--display);
  font-variation-settings: "wdth" 75;
  color: var(--wine-soft);
}
.chapters strong { font-weight: 700; font-size: var(--step-1); line-height: 1.15; }
.chapters span { color: var(--ink-soft); font-size: var(--step--1); line-height: 1.45; margin-top: 0.25rem; }
.chapters a:hover strong { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

.swaps { background: var(--blush); }
.swap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pair {
  background: var(--paper);
  border-radius: 1.75rem 1.75rem 1.75rem 0.4rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.pair h3 { font: 700 var(--step-0) / 1.2 var(--display); margin: 0 0 0.4rem; color: var(--wine); }
.pair .no {
  position: relative;
  text-decoration: line-through;
  text-decoration-color: rgba(90, 18, 37, 0.6);
  opacity: 0.6;
}
.pair .b.me { margin-top: auto; }

.get { background: var(--wine); color: var(--blush); }
.get h2 { color: var(--blush); }
.get-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.get p { font: 400 var(--step-1) / 1.45 var(--serif); margin: 0; max-width: 36ch; }

.foot { background: var(--wine-deep); color: rgba(246, 220, 214, 0.85); padding: 3rem 0; }
.foot-inner p { margin: 0 0 0.5rem; }
.foot .brand { color: var(--blush); margin-bottom: 1rem; }
.foot .small { font-size: var(--step--1); opacity: 0.7; margin-top: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { justify-self: center; transform: none; }
  .swap-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .chapters { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
  .hero h1 { font-size: 27vw; }
}
