:root {
  /* Brand palette */
  --g1: #1e3d22;
  --g2: #2c5a30;
  --g3: #3f7a45;
  --g4: #6ba870;
  --p1: #eae0c4;
  --p2: #f5f0e4;
  --p3: #faf8f2;
  --p4: #d4c8a8;
  --br1: #3d2010;
  --br2: #6b3820;
  --br3: #a05830;
  --br4: #c9845a;
  --tx: #2a1a10;
  --mid: #7a6a58;
  --lt: #b0a090;
  --brd: rgba(44, 90, 48, 0.14);

  /* Semantic aliases */
  --color-primary: var(--g1);
  --color-primary-hover: var(--g2);
  --color-accent: var(--br4);
  --color-accent-hover: var(--br3);
  --color-bg: var(--p3);
  --color-surface: #ffffff;
  --color-surface-warm: var(--p1);
  --color-text: var(--tx);
  --color-text-mid: var(--mid);
  --color-text-light: var(--lt);
  --color-border: var(--brd);
  --color-error: #c0392b;
  --color-success: var(--g2);

  /* Backward-compatible aliases used by current pages */
  --espresso: var(--g1);
  --brown: var(--tx);
  --gold: var(--br4);
  --cream: var(--p3);
  --milk: #ffffff;
  --sage: var(--g3);
  --terracotta: var(--br3);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-xl: 8px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 4px rgba(44, 90, 48, 0.08);
  --shadow-md: 0 4px 16px rgba(44, 90, 48, 0.12);
  --shadow-lg: 0 8px 36px rgba(44, 90, 48, 0.18);
  --shadow-card: 0 2px 12px rgba(42, 26, 16, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body::selection {
  background: var(--p1);
  color: var(--g1);
}

h1,
h2,
.brand-font {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  color: var(--g1);
  line-height: 1.08;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
}

h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  color: var(--tx);
  line-height: 1.16;
}

h4,
.label-ui {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g2);
}

p {
  margin: 0 0 14px;
  color: var(--mid);
  line-height: 1.82;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

code,
.mono {
  font-family: var(--font-mono);
  font-size: 0.85em;
  letter-spacing: 0.04em;
  color: var(--mid);
}

.brand-rule {
  width: 48px;
  height: 2px;
  margin: 32px 0;
  border-radius: 2px;
  background: var(--br2);
}

.section-label,
.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--g3);
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(1120px, calc(100% - 32px));
  max-width: 1120px;
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 242, 0.94);
  color: var(--tx);
  border-bottom: 1px solid var(--brd);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--g1);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.48rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo span:last-child {
  color: var(--br4);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
}

.nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: var(--mid);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  color: var(--g1);
  background: rgba(44, 90, 48, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--brd);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.5);
}

.lang-switch button,
.icon-button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.lang-switch button {
  min-height: 36px;
  padding: 6px 10px;
  color: var(--g2);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}

.lang-switch button.active {
  background: var(--g1);
  color: var(--p1);
}

.cart-link {
  width: 52px;
  min-width: 52px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  position: relative;
  border: 1px solid var(--brd);
  border-radius: var(--radius-pill);
  color: var(--g1);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.46);
}

.cart-link svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--br4);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 700;
}

.button,
button.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--g1);
  color: var(--p1);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.button:hover,
button.button:hover {
  background: var(--g2);
  transform: translateY(-1px);
}

.button:active,
button.button:active {
  transform: translateY(0);
}

.button.secondary,
.button.ghost,
button.button.ghost {
  background: transparent;
  color: var(--g1);
  border-color: var(--g2);
}

.button.secondary:hover,
.button.ghost:hover,
button.button.ghost:hover {
  background: var(--g1);
  color: var(--p1);
}

.button.dark,
button.button.dark {
  background: var(--br4);
  color: #ffffff;
}

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

.dark .button.secondary,
.dark .button.ghost {
  color: var(--p1);
  border-color: rgba(234, 224, 196, 0.36);
}

.dark .button.secondary:hover,
.dark .button.ghost:hover {
  background: rgba(234, 224, 196, 0.16);
  color: var(--p1);
}

.hero {
  min-height: calc(100vh - 64px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  color: var(--p1);
  background: var(--g1);
}

#hero {
  background-image: url('/images/hero-product.jpg');
  background-size: cover;
  background-position: center top;
  position: relative;
}

#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 46, 30, 0.62);
  z-index: 0;
}

#b2b-hero {
  background-image: url('/images/b2b-hero.png');
  background-size: cover;
  background-position: center top;
  min-height: 520px;
  position: relative;
}

#b2b-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 46, 30, 0.58);
  z-index: 0;
}

#b2b-hero > * {
  position: relative;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 690px;
  padding: 92px 0 104px;
}

.hero .eyebrow {
  color: var(--br4);
  margin-bottom: 24px;
}

.hero h1 {
  color: var(--p1);
  font-size: clamp(48px, 7vw, 80px);
  margin: 0 0 18px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.75;
  color: var(--mid);
}

.hero .lead,
.dark .lead {
  color: rgba(234, 224, 196, 0.86);
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero .button:not(.secondary) {
  background: var(--br4);
  color: #ffffff;
}

.hero .button:not(.secondary):hover {
  background: var(--br3);
}

.hero .button.secondary {
  color: var(--p1);
  border-color: rgba(234, 224, 196, 0.42);
  background: rgba(234, 224, 196, 0.08);
}

.hero .button.secondary:hover {
  background: rgba(234, 224, 196, 0.16);
  color: var(--p1);
}

.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--p2);
}

.section.dark {
  background: var(--g1);
  color: var(--p1);
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title h1,
.section-title h2 {
  margin: 0;
}

.section-title p {
  max-width: 580px;
  margin: 0;
  color: var(--mid);
  line-height: 1.68;
}

.dark h1,
.dark h2,
.dark h3 {
  color: var(--p1);
}

.dark .section-title p,
.dark p,
.dark .muted {
  color: rgba(234, 224, 196, 0.74);
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card,
.product-card,
.panel {
  background: #ffffff;
  border: 1px solid var(--brd);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.card,
.panel {
  padding: 24px;
}

.dark .card,
.dark .panel {
  background: rgba(234, 224, 196, 0.08);
  border-color: rgba(234, 224, 196, 0.18);
  box-shadow: none;
}

.card h3 {
  margin: 0 0 10px;
}

.card p {
  margin: 0;
  line-height: 1.68;
}

.b2b-term-number {
  display: inline-grid;
  place-items: center;
  position: absolute;
  left: 22px;
  top: 24px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--br4);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
}

#b2b-terms .step::before {
  content: none;
}

#b2b-clients .segment-grid {
  display: grid;
  gap: 18px;
}

#b2b-why .card,
#b2b-terms .card {
  min-height: 100%;
}

.b2b-pricing-layout {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 3rem;
  align-items: center;
}

.b2b-pricing-list {
  width: 100%;
  max-width: none;
}

.b2b-pricing-list .price-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.b2b-pricing-list .price-table.compact {
  min-width: 0;
}

.b2b-pricing-format-col {
  width: 60%;
}

.b2b-pricing-price-col {
  width: 40%;
}

.b2b-pricing-list .price-table th:last-child,
.b2b-pricing-list .price-table td:last-child {
  text-align: right;
}

.b2b-pricing-list .price-table td:last-child {
  font-weight: 700;
}

.pricing-callout {
  padding: 2.5rem;
  background: var(--g1, #1f3a2a);
  color: var(--p1, #f5f0e4);
  border-radius: 12px;
}

.pricing-callout__eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--br4, #c8902a);
  margin-bottom: 0.75rem;
}

.pricing-callout__headline {
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.9rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--p1, #f5f0e4);
}

.pricing-callout__body {
  font-size: 0.95rem;
  opacity: 0.85;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  color: rgba(245, 240, 228, 0.85);
}

.pricing-callout .button.secondary {
  color: var(--p1, #f5f0e4);
  border-color: rgba(245, 240, 228, 0.34);
}

.pricing-callout .button.secondary:hover {
  background: rgba(245, 240, 228, 0.16);
  color: var(--p1, #f5f0e4);
  border-color: rgba(245, 240, 228, 0.58);
}

@media (max-width: 768px) {
  .b2b-pricing-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  #b2b-clients .segment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #b2b-clients .segment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #b2b-clients .segment-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.product-card:hover {
  border-color: rgba(44, 90, 48, 0.26);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-image {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--p2);
}

.product-card .product-image,
.product-card .product-image-wrapper,
.product-card .image-container {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f3ee;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product-body {
  display: grid;
  gap: 10px;
  flex: 1;
  padding: 18px;
}

.product-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g3);
}

.product-title {
  min-height: 58px;
  margin: 0;
  font-size: 1.35rem;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  color: var(--g1);
  font-size: 1.28rem;
  font-weight: 700;
}

.filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 22px;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(44, 90, 48, 0.22);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--tx);
  padding: 10px 12px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--g3);
  box-shadow: 0 0 0 3px rgba(63, 122, 69, 0.14);
}

[data-frequency]:focus {
  outline: none;
}

select option:disabled {
  opacity: 0.3;
  color: inherit;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

::placeholder {
  color: var(--lt);
}

.cart-layout,
.checkout-layout,
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.product-detail {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
}

.product-detail .product-image,
.product-detail .product-image-container,
.product-detail .image-container,
.product-hero .image-wrapper,
.product-hero .image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3ee;
}

.product-detail .product-image img,
.product-detail .product-image-container img,
.product-detail .image-container img,
.product-hero .image-wrapper img,
.product-hero .image-container img {
  width: 90% !important;
  height: 90% !important;
  object-fit: contain !important;
  object-position: center !important;
}

.product-detail h1 {
  margin: 8px 0 16px;
}

.line-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--brd);
}

.line-item img {
  width: 86px;
  height: 72px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--p2);
}

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.qty-row button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--brd);
  border-radius: 50%;
  background: #ffffff;
  color: var(--g1);
  cursor: pointer;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
}

.summary-row.total {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--brd);
  color: var(--g1);
  font-size: 1.24rem;
  font-weight: 700;
}

.notice {
  padding: 14px 16px;
  border: 1px solid rgba(160, 88, 48, 0.24);
  border-radius: var(--radius-md);
  background: rgba(234, 224, 196, 0.62);
  color: var(--br1);
  line-height: 1.55;
}

.muted {
  color: var(--mid);
}

.hidden {
  display: none !important;
}

.footer {
  background: var(--g1);
  color: rgba(234, 224, 196, 0.82);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px 24px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer strong {
  color: var(--p1);
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
}

.footer a {
  color: var(--p1);
  text-decoration: none;
}

.footer a:hover {
  color: var(--br4);
}

.faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--brd);
}

.faq summary {
  color: var(--tx);
  cursor: pointer;
  font-weight: 700;
}

#italian-brands {
  position: relative;
  background-image: url('/images/brands-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#italian-brands::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 58, 42, 0.72);
  z-index: 0;
}

#italian-brands > * {
  position: relative;
  z-index: 1;
}

#italian-brands h2 {
  color: var(--p1);
}

#delivery {
  position: relative;
  background-image: url('/images/delivery.jpeg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

#delivery::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 46, 30, 0.68);
  z-index: 0;
}

#delivery > * {
  position: relative;
  z-index: 1;
}

#delivery > .container > .panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

#delivery h2 {
  color: var(--p1);
}

.subscription-note {
  max-width: 620px;
  margin: 22px auto 0;
  color: rgba(234, 224, 196, 0.68);
  font-size: 0.875rem;
  text-align: center;
}

.section-actions.centered {
  justify-content: center;
}

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

.delivery-block {
  padding: 18px;
  border: 1px solid var(--brd);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  color: #1a2e1a;
}

.delivery-block h3 {
  font-size: 1.35rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.contact-links {
  display: grid;
  justify-items: center;
  margin-top: 16px;
  color: var(--mid);
}

.contact-links p {
  margin: 0 0 4px;
  font-size: 0.8rem;
  opacity: 0.6;
}

.contact-links div {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-links a {
  color: var(--g1);
  font-weight: 600;
  text-decoration: none;
}

.contact-links a:hover {
  color: var(--br3);
}

.contact-links span {
  margin: 0 8px;
  opacity: 0.4;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.footer-social a {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(234, 224, 196, 0.24);
  border-radius: 50%;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-float {
  transition: opacity 0.3s ease;
}

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

.contact-hero .hero-inner {
  display: block;
  padding: 82px 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 22px;
  align-items: start;
}

.contact-detail-list {
  display: grid;
  gap: 14px;
  margin: 0;
}

.contact-detail-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brd);
}

.contact-detail-list dt {
  color: var(--g2);
  font-weight: 700;
}

.contact-detail-list dd {
  margin: 4px 0 0;
  color: var(--mid);
}

.social-list {
  display: grid;
  gap: 10px;
}

.social-list a {
  justify-content: flex-start;
}

@media (max-width: 900px) {
  .hero-inner {
    padding: 64px 0 !important;
  }

  .delivery-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 96px;
  bottom: 16px;
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--p4);
  border-radius: var(--radius-md);
  background: rgba(250, 248, 242, 0.98);
  color: var(--tx);
  box-shadow: var(--shadow-lg);
}

.cookie-banner.active {
  display: flex;
}
