:root {
  --ink: #17211c;
  --muted: #5c6861;
  --line: #d9ded8;
  --paper: #fffefa;
  --canvas: #eef1ea;
  --white-accent: #c49a4a;
  --rose-accent: #b96f72;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 22px 60px rgba(23, 33, 28, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.site-header,
.site-footer,
.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  border-radius: 20px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.brand-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(23, 33, 28, 0.1);
}

.brand-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.brand-logo {
  /* Standard e-label We Zero: 30% più grande della precedente versione da 122 px. */
  width: 159px;
  height: 159px;
  border-radius: 24px;
  object-fit: contain;
}

.header-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-shell {
  padding: 34px 0 72px;
}

.intro {
  max-width: 770px;
  margin: 24px auto 46px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.registered-word-end {
  position: relative;
  display: inline-block;
  padding-right: 0.12em;
}

.registered-mark {
  position: absolute;
  top: 0.02em;
  right: 0.01em;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.2em;
  font-weight: 700;
  line-height: 1;
}

.intro-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.14rem);
}

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

.product-card {
  position: relative;
  display: grid;
  height: 510px;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.78fr);
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(23, 33, 28, 0.14);
}

.product-card:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}

.product-card-copy {
  display: flex;
  flex-direction: column;
  padding: 36px 0 36px 36px;
}

.product-card .variant {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-card h2 {
  margin: auto 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.product-card p {
  margin-bottom: 22px;
  color: var(--muted);
}

.card-action {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 28px 18px 0;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
}

.product-card.white .product-card-visual {
  background: linear-gradient(145deg, #fbf6e9, #e4d5ad);
}

.product-card.rose .product-card-visual {
  background: linear-gradient(145deg, #f8e9e5, #d8a3a0);
}

.product-card-visual img {
  width: min(86%, 240px);
  height: auto;
  max-height: 92%;
  margin-bottom: -12px;
  object-fit: contain;
  filter: drop-shadow(0 24px 24px rgba(23, 33, 28, 0.18));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.product-hero {
  position: relative;
  display: grid;
  min-height: 600px;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 74px);
}

.hero-copy h1 {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(2.35rem, 5.55vw, 4.9rem);
}

.product-variant {
  display: block;
  white-space: nowrap;
}

.product-kind {
  max-width: 600px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 9px 13px;
  background: var(--canvas);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 750;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 520px;
  overflow: hidden;
}

.product-page.white .hero-visual {
  background: radial-gradient(circle at 50% 30%, #fffdf7 0%, #eadfbe 68%, #d8c48d 100%);
}

.product-page.rose .hero-visual {
  background: radial-gradient(circle at 50% 30%, #fff9f6 0%, #efd1ca 68%, #d79e9b 100%);
}

.hero-visual img {
  width: auto;
  height: auto;
  max-width: min(82%, 430px);
  max-height: 540px;
  margin-bottom: -38px;
  object-fit: contain;
  filter: drop-shadow(0 32px 30px rgba(23, 33, 28, 0.18));
}

.product-page.white .hero-visual img,
.white-card .product-card-visual img {
  transform: translateY(2px) scaleX(1.026) scaleY(1.008);
  transform-origin: center bottom;
}

.content-grid {
  display: grid;
  /* Il centro del gap coincide con la separazione 57,5% / 42,5% del product hero. */
  grid-template-columns: calc(57.5% - 11px) calc(42.5% - 11px);
  gap: 22px;
  margin-top: 22px;
}

.panel {
  padding: clamp(26px, 4vw, 44px);
  background: var(--paper);
  border: 1px solid rgba(23, 33, 28, 0.08);
  border-radius: var(--radius-md);
}

.panel-full {
  grid-column: 1 / -1;
}

.section-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.panel h2 {
  margin-bottom: 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.title-translation {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.62em;
  letter-spacing: -0.02em;
  line-height: 1;
}

.nutrition-table,
.packaging-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.nutrition-table caption,
.packaging-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.nutrition-table th,
.nutrition-table td {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.nutrition-table th {
  width: 72%;
  text-align: left;
  font-weight: 650;
}

.nutrition-table td {
  text-align: right;
  font-weight: 700;
}

.nutrition-table tr:first-child th,
.nutrition-table tr:first-child td {
  padding-top: 0;
  font-weight: 850;
}

.nutrition-table .subrow th {
  padding-left: 18px;
  color: var(--muted);
  font-weight: 500;
}

.nutrition-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.nutrition-note span {
  display: block;
}

.nutrition-note span + span {
  margin-top: 2px;
}

.composition-panel h2 {
  margin-top: 25.5px;
}

.composition-copy {
  font-size: 1.08rem;
}

.composition-copy p {
  margin-bottom: 12px;
}

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

.composition-copy strong {
  font-weight: 800;
}

.allergen-box {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--canvas);
  border-left: 4px solid var(--ink);
  border-radius: 0 12px 12px 0;
}

.allergen-box strong {
  display: block;
  margin-bottom: 2px;
}

.packaging-table th,
.packaging-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.packaging-table thead th {
  padding-top: 0;
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.packaging-table tbody th {
  font-weight: 800;
}

.material-code {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  padding: 6px 9px;
  background: var(--canvas);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.disposal-note {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.company-card {
  display: block;
}

.company-details-row {
  --company-line-height: 1.55rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.company-card address {
  display: grid;
  grid-auto-rows: var(--company-line-height);
  color: var(--muted);
  font-style: normal;
}

.updated {
  display: grid;
  grid-auto-rows: var(--company-line-height);
  margin: var(--company-line-height) 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: right;
  white-space: nowrap;
}

.updated > span,
.updated time {
  display: block;
}

.updated time {
  margin-top: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0 38px;
  color: var(--muted);
  border-top: 1px solid rgba(23, 33, 28, 0.12);
  font-size: 0.78rem;
}

.site-footer p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .product-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    height: 460px;
  }

  .product-hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 34px;
  }

  .hero-visual {
    min-height: 480px;
  }

  .hero-visual img {
    max-width: min(78%, 390px);
    max-height: 470px;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .site-header {
    min-height: 146px;
  }

  .brand-logo {
    width: 129px;
    height: 129px;
    border-radius: 20px;
  }

  .header-label {
    display: none;
  }

  .page-shell {
    padding-top: 18px;
  }

  .intro {
    margin-top: 12px;
  }

  .product-card {
    height: 440px;
    grid-template-columns: 1fr 42%;
  }

  .product-card-copy {
    padding: 24px 0 24px 24px;
  }

  .product-card h2 {
    font-size: 2.25rem;
  }

  .product-card-visual img {
    width: min(92%, 190px);
    height: auto;
    max-height: 88%;
    margin-bottom: -8px;
  }

  .product-hero {
    min-height: auto;
  }

  .hero-copy {
    padding: 30px 24px;
  }

  .hero-copy h1 {
    font-size: 2.9rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-visual img {
    max-width: min(76%, 320px);
    max-height: 390px;
    margin-bottom: -26px;
  }

  .panel {
    padding: 26px 22px;
  }

  .packaging-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .packaging-table,
  .packaging-table tbody,
  .packaging-table tr,
  .packaging-table th,
  .packaging-table td {
    display: block;
  }

  .packaging-table tr {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .packaging-table th,
  .packaging-table td {
    padding: 2px 0;
    border: 0;
  }

  .packaging-table td::before {
    display: inline;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .packaging-table td:nth-of-type(1)::before {
    content: "Codice: ";
  }

  .packaging-table td:nth-of-type(2)::before {
    content: "Materiale: ";
  }

  .packaging-table td:nth-of-type(3)::before {
    content: "Conferimento: ";
  }

  .material-code {
    display: inline-flex;
  }

  .site-footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .company-details-row {
    --company-line-height: 1.35rem;
    gap: 8px;
  }

  .company-card {
    padding-right: 18px;
    padding-left: 18px;
  }

  .company-card address {
    font-size: 0.82rem;
  }

  .updated {
    font-size: 0.56rem;
  }
}

@media print {
  body {
    background: #fff;
  }

  .site-header,
  .back-link,
  .site-footer {
    display: none;
  }

  .page-shell {
    width: 100%;
    padding: 0;
  }

  .product-hero,
  .panel {
    box-shadow: none;
    break-inside: avoid;
  }
}
