:root {
  --paper: #f3ecdf;
  --paper-2: #e7dccb;
  --ink: #241910;
  --muted: #6d5c4e;
  --line: #d9cbb8;
  --accent: #8f3d2c;
  --accent-dark: #6e2c1f;
  --sage: #2f4a3c;
  --white: #fffaf3;
  --shadow: 0 18px 40px rgba(36, 25, 16, 0.08);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Sora", "Segoe UI", sans-serif;
  --space: 1.25rem;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(143, 61, 44, 0.08), transparent 32rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

img { max-width: 100%; }

a { color: inherit; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.site-header,
.site-footer,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 560;
}

.brand span {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 0.35rem;
}

.nav a {
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  text-decoration: none;
  color: var(--muted);
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--white);
  color: var(--ink);
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 0.72rem;
}

[hidden] { display: none !important; }

.hero,
.panel,
.product,
.empty,
.form {
  background: rgba(255, 250, 243, 0.82);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  margin-bottom: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(3rem, 8vw, 6.4rem);
}

h2 { margin: 0 0 0.4rem; font-size: clamp(2rem, 4vw, 3rem); }

.lede {
  max-width: 38rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.15rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--accent-dark); }

.button.secondary {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover { background: var(--paper-2); }

.button.small { padding: 0.45rem 0.8rem; }

.grid {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 2.5rem;
}

.steps { grid-template-columns: repeat(3, 1fr); }

.panel { padding: 1.25rem 1.3rem 1.4rem; }

.panel span {
  display: block;
  margin-bottom: 0.8rem;
  color: var(--sage);
  font-family: var(--serif);
  font-size: 1.8rem;
}

.panel p { margin: 0; color: var(--muted); }

.page {
  padding-bottom: 3rem;
}

.page-intro {
  margin: 0.5rem 0 1.25rem;
}

.catalogo,
.stack {
  display: grid;
  gap: 0.9rem;
}

.product {
  display: grid;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 1.2rem;
}

.product .meta {
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product h3 { margin: 0; font-size: 1.7rem; }

.product p { margin: 0; color: var(--muted); }

.product footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
}

.price { font-family: var(--serif); font-size: 1.35rem; }

.empty {
  padding: 2rem 1.4rem;
  text-align: left;
}

.empty h2 { max-width: 16ch; }

.story {
  display: grid;
  gap: 1rem;
}

.story article { padding: 1.3rem 1.35rem 1.45rem; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.facts div {
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0.3rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1rem;
  align-items: start;
}

.form {
  display: grid;
  gap: 0.9rem;
  padding: 1.2rem;
}

label { display: grid; gap: 0.35rem; font-size: 0.92rem; }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.85rem;
  background: white;
}

textarea { min-height: 9rem; resize: vertical; }

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.notice,
.error {
  margin: 0;
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
}

.notice { background: #e7f0ea; color: var(--sage); }

.error { background: #f8e4de; color: var(--accent-dark); }

.riga {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.riga p { margin: 0; }

.qty {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.qty button {
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .steps,
  .facts,
  .layout,
  .row,
  .riga { grid-template-columns: 1fr; }

  .site-header { align-items: flex-start; flex-direction: column; }

  .nav { justify-content: flex-start; }

  .site-footer { flex-direction: column; }
}

body.home {
  background: #f6ece1;
  color: #241910;
  font-family: "Nunito", "Segoe UI", sans-serif;
}

body.home main { overflow: clip; }

.wa-float {
  position: fixed;
  z-index: 5;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  justify-items: center;
  width: 8.5rem;
  padding: 0.85rem 0.7rem 0.95rem;
  border-radius: 1.4rem;
  background: #1f6b45;
  color: #fffaf3;
  text-align: center;
  text-decoration: none;
  line-height: 1.05;
  box-shadow: 0 12px 30px rgba(36, 25, 16, 0.16);
}

.wa-float span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

.wa-float strong { margin-top: 0.15rem; font-size: 1rem; font-weight: 800; }

.scroll-cue {
  display: grid;
  height: 100vh;
  background: #f6ece1;
  overflow: hidden;
}

.scroll-cue img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.statement,
.sweets,
.story,
.paths {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.statement { padding: 2rem 0 5rem; }

.statement h1,
.sweets h2,
.story h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.statement h1 { font-size: clamp(2.3rem, 5vw, 4.5rem); }

.sweets { padding-bottom: 5rem; }

.sweets h2 {
  margin-bottom: 1.25rem;
  font-size: clamp(3rem, 8vw, 6.5rem);
  text-transform: uppercase;
}

.sweets-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 0.8rem;
}

.sweets-grid img,
.story img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.4rem;
}

.sweets-grid img { aspect-ratio: 4 / 5; }

.story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 5rem;
}

.story h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  text-transform: uppercase;
}

.story p {
  margin: 0 0 1rem;
  max-width: 38rem;
  color: #4d4036;
  font-size: 1.12rem;
  line-height: 1.45;
}

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-bottom: 4.5rem;
}

.paths article {
  display: grid;
  align-content: end;
  gap: 1.1rem;
  min-height: 16rem;
  padding: 1.4rem;
  border-radius: 1.6rem;
  background: #fffaf3;
}

.paths p {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.pill {
  justify-self: start;
  border-radius: 999px;
  padding: 0.75rem 1.05rem;
  background: #241910;
  color: #fffaf3;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.pill:hover { background: #1f6b45; }

.home-footer {
  padding: 2rem 1.25rem 2.4rem;
  text-align: center;
}

.home-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.6rem;
  margin-bottom: 1rem;
}

.home-footer a,
.home-footer span {
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.home-footer p {
  margin: 0;
  color: #6d5c4e;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 800px) {
  .wa-float {
    top: auto;
    right: 0.8rem;
    bottom: 0.8rem;
    width: 7.2rem;
  }

  .sweets-grid,
  .story,
  .paths { grid-template-columns: 1fr; }

  .paths article { min-height: 0; }
}
