:root {
  --green: #4f7363;
  --green-dark: #2f4a3e;
  --ink: #1a211f;
  --yellow: #f2c230;
  --paper: #f6f4ee;
  --card: #ffffff;
  --line: #e4e1d8;
  --muted: #5d6763;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Barra superiore */
.bar {
  background: var(--green);
  border-bottom: 4px solid var(--yellow);
  padding: 12px 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.logo { font-weight: 800; font-size: 28px; letter-spacing: -0.5px; color: #fff; text-decoration: none; line-height: 1; }
.logo b { color: var(--yellow); }
.bar .event { color: var(--yellow); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; text-align: right; }

.page { max-width: 1040px; margin: 0 auto; }

/* Scheda prodotto */
.product { display: grid; grid-template-columns: 1fr; }
.media { background: #fff; border-bottom: 1px solid var(--line); position: relative; }
.media picture, .media img { width: 100%; }
.media img { max-height: 62vh; object-fit: contain; margin: 0 auto; }
.media .hint {
  position: absolute; left: 14px; bottom: 12px;
  background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 10px; border-radius: 999px;
}
.info { padding: 22px 20px 8px; }
.eyebrow { margin: 0; color: var(--green); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
h1 { margin: 4px 0 6px; font-size: 32px; line-height: 1.1; letter-spacing: -0.6px; }
.tagline { margin: 0 0 12px; font-size: 19px; font-weight: 700; color: var(--green-dark); }
.lead { margin: 0 0 18px; color: #313b37; }

.label { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.swatches { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.swatches li {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 14px; font-weight: 600;
}
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; }

.highlights { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 10px; }
.highlights li { position: relative; padding-left: 30px; }
.highlights li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--yellow);
}
.highlights li::after {
  content: ""; position: absolute; left: 6px; top: 6px;
  width: 5px; height: 9px;
  border: solid var(--ink); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

section.block { padding: 8px 20px 0; }
h2 { font-size: 20px; margin: 22px 0 10px; letter-spacing: -0.2px; }

.specs { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.specs div + div { border-top: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: s;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px 14px 56px; position: relative;
}
.steps li::before {
  content: counter(s);
  position: absolute; left: 14px; top: 13px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800;
  display: grid; place-items: center;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.delivery { margin-top: 22px; background: var(--green); color: #fff; border-radius: 14px; padding: 18px 18px 16px; }
.delivery h2 { margin: 0 0 10px; color: #fff; }
.delivery ol { margin: 0; padding-left: 20px; font-weight: 600; }
.delivery li + li { margin-top: 4px; }
.delivery p { margin: 12px 0 0; font-size: 14px; color: #dfe9e4; }

.other { display: flex; align-items: center; gap: 14px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 10px 10px; }
.other img { width: 96px; height: 72px; object-fit: contain; background: #fff; border-radius: 8px; flex: none; }
.other small { display: block; color: var(--muted); }
.other strong { display: block; font-size: 17px; }
.other .arrow { margin-left: auto; font-size: 22px; color: var(--green); }

footer.site {
  margin-top: 36px;
  background: var(--green-dark);
  color: #dfe9e4;
  border-top: 4px solid var(--yellow);
  padding: 30px 20px 22px;
  font-size: 14px;
}
body.has-sticky footer.site { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.foot-inner { max-width: 1000px; margin: 0 auto; display: grid; gap: 22px; }
.foot-brand .logo { font-size: 36px; }
.foot-brand p { margin: 10px 0 0; color: #c3d2cb; }
footer.site h2 { margin: 0 0 8px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--yellow); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
footer.site li a { display: inline-block; padding: 6px 0; color: #fff; font-weight: 600; text-decoration: none; }
footer.site li a:hover, footer.site li a:focus-visible { text-decoration: underline; }
footer.site li a[aria-current="page"] { color: var(--yellow); }
footer.site p { margin: 0; }
.legal { max-width: 1000px; margin: 24px auto 0 !important; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; color: #a9bdb4; }

/* Barra fissa in basso */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--ink); color: #fff;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  border-top: 4px solid var(--yellow);
}
.sticky .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: 20px; }
.sticky strong { display: block; line-height: 1.2; }
.sticky span { font-size: 13px; color: #c9d2ce; }

/* Home con i due prodotti */
.intro { padding: 24px 20px 4px; }
.grid { display: grid; gap: 14px; padding: 12px 20px 0; }
.tile { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: block; }
.tile img { width: 100%; height: 220px; object-fit: contain; background: #fff; border-bottom: 1px solid var(--line); }
.tile div { padding: 14px 16px 16px; }
.tile small { color: var(--green); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 11px; }
.tile strong { display: block; font-size: 20px; line-height: 1.2; margin: 2px 0 4px; }
.tile span { color: var(--muted); font-size: 14px; }

@media (min-width: 860px) {
  .foot-inner { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; }
  .product { grid-template-columns: 1.1fr 1fr; gap: 8px; align-items: start; padding-top: 24px; }
  .media { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-left: 20px; position: sticky; top: 20px; }
  .media img { max-height: none; }
  .info { padding-top: 6px; }
  h1 { font-size: 40px; }
  .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
