:root {
  color-scheme: light;
  --green-900: #0f2e1d;
  --green-800: #1b3f2a;
  --green-700: #2a5a3b;
  --sand-100: #f6f2ea;
  --sand-200: #efe9dd;
  --sand-300: #e2d8c8;
  --hazel-400: #b99a6a;
  --text-900: #1d1b17;
  --text-700: #3a352c;
  --text-500: #6c6457;
  --max-width: 1120px;
  --shadow-soft: 0 12px 30px rgba(15, 46, 29, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  color: var(--text-900);
  background: radial-gradient(circle at 10% 10%, #ffffff 0%, var(--sand-100) 45%, var(--sand-200) 100%);
  line-height: 1.6;
  overflow-x: clip;
}

.mobile-block {
  display: none;
}

.mobile-block-card {
  background: #fff;
  color: var(--text-900);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  max-width: 520px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

@media (max-width: 900px) {
  .mobile-block-enabled .mobile-block {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(15, 46, 29, 0.9);
  }

  .mobile-block-enabled [data-barba="wrapper"] {
    display: none;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max-width), 90vw);
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--text-500);
  margin-bottom: 0.6rem;
}

.section-head {
  margin-bottom: 2.5rem;
}

.section-head.center {
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(6px);
  transition: opacity 0.99s ease, transform 0.99s ease, filter 0.99s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

h1,
h2,
h3,
h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0 0 1rem;
  color: var(--green-900);
}

.hero h1,
.hero h2,
.hero p,
.hero .eyebrow {
  color: #fff;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.6rem, 3.8vw, 2.6rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1.2rem;
  color: var(--text-700);
}

.small {
  font-size: 0.92rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--green-900);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 46, 29, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(15, 46, 29, 0.25);
}

.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  border-color: var(--green-900);
  color: var(--green-900);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--green-900);
  color: #fff;
}

.text-link {
  color: var(--green-700);
  font-weight: 500;
}

.hero .btn-primary {
  background: #ffffff;
  color: var(--green-900);
}

.hero .btn-ghost {
  border-color: #fff;
  color: #fff;
}

.hero .btn-ghost:hover {
  background: #fff;
  color: var(--green-900);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
}

.header-shell {
  display: flex;
  justify-content: center;
  padding: 0 1rem 0;
}

.header-pill {
  pointer-events: auto;
  background: rgba(246, 242, 234, 0);
  backdrop-filter: blur(0px);
  border-radius: 0 0 22px 22px;
  box-shadow: none;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  transition-delay: 0.2s;
}

.site-header.is-scrolled .header-pill {
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 46, 29, 0.2);
  transition-delay: 0s;
}

.site-header.is-shrinking .header-pill {
  background: rgba(246, 242, 234, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(15, 46, 29, 0.2);
}

.header-inner {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  width: min(860px, 78vw);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease, width 0.4s ease, padding 0.4s ease, gap 0.4s ease;
  transition-delay: 1.4s;
}

.site-header.is-scrolled .header-inner {
  width: min(var(--max-width), 90vw);
  padding: 0.85rem 1.3rem;
  gap: 1.2rem;
}

.site-header.is-shrinking .header-inner {
  width: min(860px, 78vw);
  padding: 0.6rem 1rem;
  gap: 0.8rem;
}

@media (min-width: 901px) {
  .site-header:not(.is-scrolled):not(.is-shrinking) .logo,
  .site-header:not(.is-scrolled):not(.is-shrinking) .nav a {
    color: #fff;
  }

  .site-header:not(.is-scrolled):not(.is-shrinking) .nav a::after {
    background: #fff;
  }
}

.page-loaded .header-inner {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  font-size: 1.6rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--green-900);
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 32px;
  height: 32px;
}

.nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding-bottom: 0.2rem;
  display: inline-block;
  width: fit-content;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--green-900);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

.nav a.is-current {
  font-weight: 600;
}

.nav a.is-current::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--green-900);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
  position: absolute;
  left: 50%;
  margin-left: -7px;
}

.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 16px; }
.menu-toggle span:nth-child(3) { top: 21px; }

.menu-toggle.is-open {
  background: var(--green-700);
}

.hero {
  position: relative;
  min-height: 100vh;
  padding: 8rem 0 6rem;
  overflow: hidden;
}

.hero-layers {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-overlays {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-layer {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

.hero-bg {
  background-image:
    linear-gradient(180deg, rgba(11, 28, 18, 0.35) 0%, rgba(11, 28, 18, 0.6) 60%, rgba(11, 28, 18, 0.75) 100%),
    url("../img/hero-background-parallax/hero-background.png");
  transform: translateY(0);
  z-index: 1;
  filter: blur(8px);
  opacity: 0;
}

.hero-foreground {
  background-image: url("../img/hero-background-parallax/hero-primo-livello-frasche.png");
  background-position: center bottom;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  filter: blur(6px);
  transform: translateY(18px);
}

.hero-grass {
  position: absolute;
  --grass-base: calc(12% + 200px);
  --grass-parallax: 0px;
  background-image: url("../img/hero-background-parallax/hero-grass-transition-amplied.png");
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: 9;
  transform: translateY(calc(var(--grass-base) + var(--grass-parallax)));
  pointer-events: none;
  opacity: 0;
  filter: blur(6px);
  will-change: transform;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 6rem);
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  will-change: transform;
  opacity: 0;
  transform: translateY(18px);
}

.page-loaded .hero-bg {
  animation: heroBgIn 1s ease forwards;
}

.page-loaded .hero-copy {
  animation: heroTextIn 0.9s ease 0.55s forwards;
}

.page-loaded .hero-foreground {
  animation: heroFrontIn 0.9s ease 0.95s forwards;
}

.page-loaded .hero-grass {
  animation: heroGrassIn 0.35s ease 0s forwards;
}


@keyframes heroBgIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes heroTextIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroFrontIn {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes heroGrassIn {
  from {
    opacity: 0;
    filter: blur(8px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}


.lead {
  font-size: 1.1rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2rem 0 2.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.2rem;
  justify-items: center;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
}

.meta-value {
  font-weight: 500;
  color: #fff;
}

.values,
.product,
.territory,
.gallery,
.contact {
  padding: 4.5rem 0;
}

.values {
  background: var(--green-900);
  color: #fff;
}

.values h2,
.values h3,
.values p {
  color: #fff;
}

.values .eyebrow {
  color: rgba(255, 255, 255, 0.65);
}

.story-cards {
  padding: 7rem 0 0;
  background: var(--sand-200);
}

.story-track {
  height: 320vh;
  position: relative;
  overflow-x: clip;
}

.story-track .section-head {
  position: relative;
  z-index: 2;
}

.story-sticky {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  padding: 3rem 0 6rem;
}

.story-cards .section-head {
  margin-bottom: calc(0.6rem + 120px);
}

.story-card {
  width: calc(100% * var(--card-scale, 1));
  height: min(420px, 68vh);
  border-radius: 0;
  position: relative;
  perspective: 1400px;
  transform: translateX(var(--card-x, 0px)) translateY(var(--card-y, 0px)) rotate(var(--card-rot, 0deg));
  transform-origin: center;
  opacity: 1;
  transition: box-shadow 0.3s ease;
  will-change: transform, opacity;
  margin: 0;
  transform-style: preserve-3d;
  margin-left: calc(var(--seam, 0px) * -0.5 + var(--seam-safari, 0px));
  margin-right: calc(var(--seam, 0px) * -0.5 + var(--seam-safari, 0px));
}

.story-stack {
  --stack-gap: calc(0px + 22px * var(--split, 0));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--stack-gap);
  align-items: center;
  position: relative;
  min-height: 380px;
  transform: scale(var(--stack-scale, 1));
  transform-origin: center;
}

.story-card-inner {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-style: preserve-3d;
  transform: rotateY(var(--flip, 0deg));
  transition: transform 0.6s ease;
  box-shadow: 0 24px 60px rgba(12, 30, 18, var(--card-shadow, 0));
}

.story-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
}

.story-card:first-child {
  border-top-left-radius: var(--outer-radius, 18px);
  border-bottom-left-radius: var(--outer-radius, 18px);
  border-top-right-radius: var(--inner-radius, 0px);
  border-bottom-right-radius: var(--inner-radius, 0px);
}

.story-card:nth-child(2) {
  border-radius: var(--inner-radius, 0px);
}

.story-card:last-child {
  border-top-right-radius: var(--outer-radius, 18px);
  border-bottom-right-radius: var(--outer-radius, 18px);
  border-top-left-radius: var(--inner-radius, 0px);
  border-bottom-left-radius: var(--inner-radius, 0px);
}

.story-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.story-back {
  display: grid;
  align-content: center;
  gap: 0.8rem;
  padding: 1.8rem;
  color: #fff;
  transform: rotateY(180deg);
}

.story-back span {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  opacity: 0.85;
}

.story-back h3,
.story-back p {
  color: #fff;
}

.story-back .story-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
}

.story-back .story-icon svg {
  width: 100%;
  height: 100%;
  stroke: #fff;
}

.story-back-1 {
  background: linear-gradient(140deg, #0f2e1d, #1b3f2a);
}

.story-back-2 {
  background: linear-gradient(140deg, #2a5a3b, #3c7a54);
}

.story-back-3 {
  background: linear-gradient(140deg, #b99a6a, #8b6a3c);
}

@supports (-webkit-touch-callout: none) {
  .story-stack {
    --seam-safari: -2px;
  }

  @media (min-width: 901px) {
    .story-card:first-child,
    .story-card:nth-child(2) {
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
  }
}

@media (max-width: 900px) {
  .story-cards .section-head {
    margin-bottom: calc(0.8rem + 190px);
  }

  .story-track {
    height: 440svh;
    min-height: 2800px;
  }

  .story-sticky {
    top: 96px;
    transform: none;
    min-height: calc(100svh - 96px);
    display: flex;
    align-items: flex-start;
    overflow-x: clip;
  }

  .js-enabled .story-track.is-scrolltrigger .story-sticky {
    min-height: calc(100svh - 96px);
    padding: 0;
  }

  .story-card {
    width: min(268px, calc(100vw - 3.5rem));
    height: min(370px, 62vh);
    position: absolute;
    left: 50%;
    transform: translate3d(-50%, var(--card-y, 0px), 0) rotate(var(--card-rot, 0deg));
    border-radius: 18px;
    transform-origin: center 88%;
  }

  .story-stack {
    grid-template-columns: 1fr;
    min-height: 410px;
    overflow-x: clip;
  }

  .story-card:first-child,
  .story-card:nth-child(2),
  .story-card:last-child {
    border-radius: 18px;
  }

  .story-card-inner {
    transition: none;
    box-shadow: 0 14px 34px rgba(12, 30, 18, var(--card-shadow, 0));
  }
}

.values .card p {
  color: rgba(255, 255, 255, 0.85);
}

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: 0 12px 30px rgba(6, 18, 11, 0.25);
  backdrop-filter: blur(6px);
}

.product-immersive {
  position: relative;
  min-height: 100vh;
  padding: 6rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sand-100);
  overflow: hidden;
}

.product-immersive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 0;
  pointer-events: none;
}

.product-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.product-content h2 {
  font-size: clamp(2.6rem, 5vw, 4rem);
}

.product-content .btn {
  margin-top: 2rem;
}

.product-points {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.product-points h3 {
  font-size: 1.4rem;
}

.product-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.product-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(140px, 18vw, 280px);
  height: auto;
  transform: translate3d(
      calc(-50% + var(--x) + var(--tx, 0px)),
      calc(-50% + var(--y) + var(--ty, 0px)),
      0
    )
    rotate(var(--rot-dynamic, var(--rot, 0deg))) scale(var(--scale, 1));
  filter: blur(var(--blur, 0px));
  opacity: var(--opacity, 1);
  transition: transform 0.2s ease-out;
  will-change: transform;
  z-index: 1;
}

.product-item.leaf {
  width: clamp(180px, 22vw, 340px);
  opacity: var(--opacity, 0.5);
}

.product-item.mirror {
  transform: translate3d(calc(var(--x) + var(--tx, 0px)), calc(var(--y) + var(--ty, 0px)), 0)
    rotate(var(--rot-dynamic, var(--rot, 0deg))) scaleX(-1) scale(var(--scale, 1));
}

.product-item.foreground {
  width: clamp(180px, 24vw, 360px);
  z-index: 5;
}

.product-item.mid {
  z-index: 4;
  filter: blur(0px);
  opacity: 1;
}

.product-item.back {
  z-index: 1;
}

.product-immersive-tartufi {
  background: transparent;
  isolation: isolate;
}

.product-immersive-tartufi::after {
  content: "";
  position: absolute;
  inset: -8% 0;
  background-image: url("../img/sfondo-tartufo-prodotti.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateY(var(--tartufi-bg-shift, 0px)) scale(1.06);
  will-change: transform;
  z-index: 0;
  pointer-events: none;
}

.product-immersive-tartufi::before {
  background: linear-gradient(145deg, rgba(76, 48, 24, 0.6), rgba(111, 73, 42, 0.5));
  z-index: 1;
}

.product-immersive-tartufi .product-content {
  z-index: 2;
}

.product-immersive-tartufi h2,
.product-immersive-tartufi h3,
.product-immersive-tartufi p,
.product-immersive-tartufi .eyebrow {
  color: #fff;
}

.product-immersive-tartufi .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.product-immersive-tartufi .btn-primary {
  background: #fff;
  color: var(--green-900);
  border-color: #fff;
}

.product-immersive-tartufi .btn-primary:hover {
  background: transparent;
  color: #fff;
}

.hide-mobile {
  display: block;
}

@media (max-width: 900px) {
  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-meta > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
  }

  .product-immersive {
    padding: 5rem 0;
    min-height: 100vh;
  }

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

  .product-points > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: min(320px, 100%);
  }

  .product-item {
    width: clamp(120px, 28vw, 220px);
  }

  .product-item.leaf {
    width: clamp(160px, 34vw, 260px);
  }

  .hide-mobile {
    display: none;
  }
}

.product-info dl {
  margin: 0;
  display: grid;
  gap: 0.8rem;
}

.product-info div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.product-info dt {
  font-weight: 600;
  color: var(--text-700);
}

.product-info dd {
  margin: 0;
  color: var(--text-500);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
}

.checklist li {
  padding-left: 1.6rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: var(--hazel-400);
}

.territory-scroll {
  position: fixed;
  inset: 0;
  min-height: 100vh;
  background: transparent;
  overflow: hidden;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
}

.territory-overlay {
  position: absolute;
  inset: 0;
  background: var(--green-900);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.territory-wrap {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
  min-height: 100vh;
  padding: 6rem 0;
}

.territory-title h2 {
  max-width: 16ch;
}

.territory-title,
.territory-copy,
.territory-title h2,
.territory-copy p,
.territory-copy .eyebrow,
.territory-title .eyebrow {
  color: #fff;
}

.territory-copy .territory-text {
  font-size: 1.05rem;
  line-height: 1.7;
}

.territory-text span {
  opacity: 0;
  display: inline-block;
  will-change: opacity, transform;
}

@media (max-width: 900px) {
  .territory-wrap {
    grid-template-columns: 1fr;
  }

  .territory-copy .territory-text {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: pretty;
  }
}

.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid img {
  border-radius: var(--radius-md);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.contact-cta {
  position: relative;
  min-height: 100vh;
  padding: 6rem 0 0;
  overflow: hidden;
  color: #fff;
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-image: url("../img/sfondo-sezione-contatti.png");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.contact-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 46, 29, 0.55);
  z-index: 1;
}

.contact-foreground {
  position: absolute;
  right: -10px;
  top: 0;
  height: 100%;
  width: auto;
  z-index: 2;
  transform: translateX(var(--contact-shift, 0px));
  transition: transform 0.2s ease-out;
}

.contact-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2.5rem;
  margin-left: 0;
  min-height: calc(100vh - 6rem);
  align-items: end;
}

.contact-content h2,
.contact-content p,
.contact-content .eyebrow {
  color: #fff;
}

.contact-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
  margin: 1.2rem 0;
}

.contact-inline span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-700);
}

.contact-inline p {
  color: var(--text-900);
}

.contact-panel {
  position: relative;
  margin-top: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-900);
  border-radius: 26px 26px 0 0;
  padding: 2rem;
  box-shadow: 0 24px 60px rgba(15, 46, 29, 0.18);
  max-width: 620px;
  width: min(60vw, 620px);
  height: auto;
  min-height: calc(100vh - 6rem);
  overflow: visible;
  align-self: end;
  justify-self: start;
  margin-left: calc(10vw + 50px);
  z-index: 3;
}

.contact-panel-head .eyebrow,
.contact-panel-head h2,
.contact-panel-head p {
  color: var(--text-900);
}

.contact-panel::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -60px;
  height: 60px;
}

.contact-panel-form {
  display: grid;
  gap: 0.75rem;
}

.contact-panel-form button,
.contact-panel-form input,
.contact-panel-form textarea {
  position: relative;
  z-index: 4;
}

.contact-panel-form label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-700);
}

.contact-panel-form input,
.contact-panel-form textarea {
  border-radius: 14px;
  border: 1px solid var(--sand-300);
  padding: 0.62rem 0.82rem;
  font-family: inherit;
  background: #fff;
}

.contact-panel-form textarea {
  resize: none;
}

.contact-panel-form .form-note {
  min-height: 1.2rem;
  font-size: 0.85rem;
  color: var(--text-500);
}

.contact-cta-copy {
  justify-self: start;
  margin-top: 1.5rem;
  margin-left: calc(10vw + 50px);
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: stretch;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .contact-bg {
    background-size: cover;
    background-position: 62% center;
  }

  .contact-foreground {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    width: min(620px, 100vw);
    height: auto;
    max-width: none;
    transform: translate3d(calc(-50% + var(--contact-shift, 0px)), 0, 0);
  }

  .contact-panel {
    height: auto;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    justify-self: center;
  }
}

.story-page-hero {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 11rem 0 5rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  z-index: 0;
  --story-hero-shift: -24px;
  --story-hero-scale: 1.08;
  background: #0f2e1d;
}

.story-page-hero-bg {
  position: absolute;
  inset: -10vh 0 -10vh;
  background-image:
    linear-gradient(120deg, rgba(15, 46, 29, 0.86), rgba(15, 46, 29, 0.5)),
    url("../img/card-image-unica.png");
  background-size: cover;
  background-position: center;
  transform: translateY(var(--story-hero-shift, 0px)) scale(var(--story-hero-scale, 1));
  transition: transform 0.25s linear;
}

.story-page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.story-page-hero .lead {
  max-width: 54ch;
}

.story-page-hero h1,
.story-page-hero p,
.story-page-hero .eyebrow {
  color: #fff;
}

.history-intro {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: var(--green-900);
  padding: 8rem 0;
}

.history-intro h2,
.history-intro p,
.history-intro .eyebrow {
  color: #fff;
  max-width: 62ch;
}

.history-timeline {
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, #f5efe5 0%, #ece3d4 100%);
  padding: 0;
}

.history-timeline-head {
  padding-top: 4.5rem;
  padding-bottom: 2rem;
}

.history-timeline-track {
  height: 560vh;
  position: relative;
}

.history-timeline-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
}

.history-timeline-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 3.2rem;
  align-items: center;
  width: 100%;
}

.history-rail {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 1.2rem;
  align-items: start;
}

.history-rail-line {
  width: 4px;
  background: rgba(15, 46, 29, 0.18);
  min-height: 360px;
  position: relative;
  border-radius: 999px;
}

.history-rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--history-progress, 0%);
  background: var(--green-900);
  border-radius: inherit;
}

.history-rail-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.2rem;
}

.history-marker {
  opacity: 0.35;
  transform: translateX(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.history-marker span {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--green-900);
}

.history-marker p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  color: var(--text-700);
}

.history-marker-btn {
  appearance: none;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.history-marker-btn:hover,
.history-marker-btn:focus-visible {
  transform: scale(1.04);
}

.history-marker.is-active {
  opacity: 1;
  transform: translateX(8px);
}

.history-stage {
  position: relative;
  min-height: auto;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 46, 29, 0.08);
  box-shadow: 0 24px 60px rgba(15, 46, 29, 0.16);
  overflow: visible;
}

.history-point {
  position: relative;
  padding: 3rem;
  display: grid;
  align-content: center;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  border-bottom: 1px solid rgba(15, 46, 29, 0.08);
}

.history-point:last-child {
  border-bottom: 0;
}

.js-enabled .history-stage {
  min-height: 72vh;
  overflow: hidden;
}

.js-enabled .history-point {
  position: absolute;
  inset: 0;
  border-bottom: 0;
  opacity: 0;
  transform: translateY(34px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.js-enabled .history-point.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.history-year {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(15, 46, 29, 0.1);
  color: var(--green-900);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-point h3 {
  margin-bottom: 0.9rem;
  color: var(--green-900);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.history-point p {
  max-width: 68ch;
  margin: 0;
  color: var(--text-700);
  font-size: 1.02rem;
}

.history-point--timeline-bg {
  background-size: cover;
  background-position: center;
  border-radius: 22px;
}

.history-point--rinascita-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.89) 42%,
      rgba(255, 255, 255, 0.84) 58%,
      rgba(255, 255, 255, 0.42) 74%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/storia/assets/img/rinascita.png");
}

.history-point--nuovi-filari-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.89) 42%,
      rgba(255, 255, 255, 0.84) 58%,
      rgba(255, 255, 255, 0.42) 74%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/storia/assets/img/nuovi-filari.png");
}

.history-point--biologico-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.89) 42%,
      rgba(255, 255, 255, 0.84) 58%,
      rgba(255, 255, 255, 0.42) 74%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/storia/assets/img/biologico.png");
}

.history-point--filiera-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.89) 42%,
      rgba(255, 255, 255, 0.84) 58%,
      rgba(255, 255, 255, 0.42) 74%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/storia/assets/img/filiera-corta.png");
}

.history-point--premium-bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.89) 42%,
      rgba(255, 255, 255, 0.84) 58%,
      rgba(255, 255, 255, 0.42) 74%,
      rgba(255, 255, 255, 0.12) 88%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("/storia/assets/img/premium-qualita.png");
}

@media (max-width: 1180px) {
  .history-timeline-layout {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

  .history-rail {
    grid-template-columns: 1fr;
    row-gap: 1rem;
  }

  .history-rail-line {
    min-height: 2px;
    width: 100%;
  }

  .history-rail-progress {
    width: var(--history-progress, 0%);
    height: 100%;
  }

}

@media (max-width: 900px) {
  .story-page-hero {
    position: relative;
    min-height: auto;
    padding: 9rem 0 4rem;
  }

  .history-intro {
    min-height: auto;
    padding: 5rem 0;
  }

  .history-timeline-head {
    padding-top: 3.5rem;
  }

  .history-timeline-track {
    height: auto;
  }

  .history-timeline-sticky {
    position: static;
    min-height: auto;
    padding-bottom: 4rem;
  }

  .history-stage {
    min-height: 360px;
  }

  .history-point {
    position: relative;
    padding: 2rem;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    border-bottom: 1px solid rgba(15, 46, 29, 0.08);
  }

  .history-point:last-child {
    border-bottom: 0;
  }

  .history-timeline.is-mobile-tabs .history-timeline-head {
    padding-bottom: 1rem;
  }

  .history-timeline.is-mobile-tabs .history-timeline-track {
    height: 500vh;
  }

  .history-timeline.is-mobile-tabs .history-timeline-sticky {
    position: sticky;
    top: 82px;
    height: calc(100vh - 82px);
    padding-bottom: 0;
    align-items: center;
  }

  .history-timeline.is-mobile-tabs .history-timeline-layout {
    position: relative;
    align-content: center;
    gap: 1.2rem;
    height: 100%;
  }

  .history-timeline.is-mobile-tabs .history-rail {
    position: absolute;
    top: 16px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 460px;
    z-index: 8;
    margin: 0;
    padding: 0;
    background: transparent;
    border-bottom: 0;
  }

  .history-timeline.is-mobile-tabs .history-rail-line {
    display: block;
    min-height: 4px;
    width: 100%;
    margin: 0 auto 0.5rem;
  }

  .history-timeline.is-mobile-tabs .history-rail-steps {
    display: flex;
    justify-content: center;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0.2rem 0.15rem;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .history-timeline.is-mobile-tabs .history-rail-steps::-webkit-scrollbar {
    display: none;
  }

  .history-timeline.is-mobile-tabs .history-marker {
    flex: 0 0 auto;
    opacity: 1;
    transform: none;
    scroll-snap-align: center;
  }

  .history-timeline.is-mobile-tabs .history-marker p {
    display: none;
  }

  .history-timeline.is-mobile-tabs .history-marker-btn {
    white-space: nowrap;
    border: 0;
    border-radius: 0;
    padding: 0.08rem 0.25rem;
    background: transparent;
    transform: none;
  }

  .history-timeline.is-mobile-tabs .history-marker-btn:hover,
  .history-timeline.is-mobile-tabs .history-marker-btn:focus-visible {
    transform: none;
  }

  .history-timeline.is-mobile-tabs .history-marker.is-active .history-marker-btn {
    background: transparent;
    border-color: transparent;
  }

  .history-timeline.is-mobile-tabs .history-marker-btn span {
    font-size: 1.12rem;
    line-height: 1;
    color: rgba(15, 46, 29, 0.56);
    transition: color 0.25s ease;
  }

  .history-timeline.is-mobile-tabs .history-marker.is-active .history-marker-btn span {
    color: var(--green-900);
    font-weight: 700;
  }

  .history-timeline.is-mobile-tabs .history-stage {
    min-height: calc(100vh - 245px);
    padding-top: 92px;
  }

  .history-timeline.is-mobile-tabs .history-point {
    position: relative;
    overflow: hidden;
    padding: 1.4rem 1.35rem 1.7rem;
    border-bottom: 0;
    background-position: center right;
  }

  .history-timeline.is-mobile-tabs .history-point::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 0;
  }

  .history-timeline.is-mobile-tabs .history-year,
  .history-timeline.is-mobile-tabs .history-point h3,
  .history-timeline.is-mobile-tabs .history-point p {
    position: relative;
    z-index: 1;
  }

  .js-enabled .history-timeline.is-mobile-tabs .history-point {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
  }

  .js-enabled .history-timeline.is-mobile-tabs .history-point.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.story-products-cta {
  position: relative;
  z-index: 6;
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #efe6d8 0%, #f5efe5 100%);
}

.products-cinematic {
  position: relative;
  min-height: 100vh;
  background: #0b2618;
}

.products-cinematic-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  overflow: hidden;
}

.products-cinematic-head {
  position: relative;
  z-index: 8;
  padding-top: clamp(6.8rem, 10vh, 8.6rem);
  max-width: 1020px;
}

.products-cinematic-head .eyebrow,
.products-cinematic-head h1,
.products-cinematic-head .lead {
  color: #fff;
}

.products-cinematic-head h1 {
  max-width: 16ch;
}

.products-cinematic-head .lead {
  max-width: 58ch;
}

.products-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.products-selector-btn {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-radius: 999px;
  padding: 0.48rem 0.86rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.products-selector-btn.is-active {
  background: #fff;
  color: var(--green-900);
  border-color: #fff;
}

.products-selector-detail {
  position: relative;
  margin-top: 0.75rem;
  width: min(520px, 100%);
  min-height: 74px;
}

.products-selector-card {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(15, 46, 29, 0.4);
  border-radius: 16px;
  padding: 0.72rem 0.9rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  backdrop-filter: blur(6px);
}

.products-selector-card.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.products-selector-card h2 {
  color: #fff;
  margin: 0 0 0.25rem;
  font-size: 1.2rem;
}

.products-selector-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
}

.products-carousel {
  position: absolute;
  inset: 0;
}

.products-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
}

.products-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.products-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--slide-image) center center / cover no-repeat;
  transform: scale(1.06);
}

.products-slide-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 22%, rgba(63, 110, 76, 0.2) 0%, transparent 42%), linear-gradient(140deg, rgba(9, 28, 18, 0.78) 0%, rgba(9, 28, 18, 0.58) 44%, rgba(9, 28, 18, 0.4) 100%);
}

.products-slide-content {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 1.4rem;
  padding-bottom: 2rem;
}

.products-slide-copy {
  max-width: 520px;
}

.products-slide-copy span {
  font-size: 0.75rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.products-slide-copy h3,
.products-slide-copy p {
  color: #fff;
}

.products-slide-copy h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.62rem;
}

.products-hotspots {
  position: relative;
  width: min(410px, 100%);
  justify-self: end;
  height: 270px;
  margin-bottom: 0.8rem;
}

.products-hotspot {
  position: absolute;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--green-900);
  font-size: 1.3rem;
  line-height: 1;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

.products-hotspot[data-hotspot="calibro"],
.products-hotspot[data-hotspot="texture"],
.products-hotspot[data-hotspot="taglio"] {
  left: 10%;
  top: 28%;
}

.products-hotspot[data-hotspot="aroma"],
.products-hotspot[data-hotspot="uso"],
.products-hotspot[data-hotspot="croccantezza"] {
  right: 14%;
  top: 58%;
}

.products-hotspot-panel {
  position: absolute;
  max-width: 250px;
  border-radius: 14px;
  background: rgba(246, 242, 234, 0.94);
  border: 1px solid rgba(15, 46, 29, 0.16);
  padding: 0.7rem 0.76rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
}

.products-hotspot-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.products-hotspot-panel[data-hotspot-panel="calibro"],
.products-hotspot-panel[data-hotspot-panel="texture"],
.products-hotspot-panel[data-hotspot-panel="taglio"] {
  left: 0;
  top: 52%;
}

.products-hotspot-panel[data-hotspot-panel="aroma"],
.products-hotspot-panel[data-hotspot-panel="uso"],
.products-hotspot-panel[data-hotspot-panel="croccantezza"] {
  right: 0;
  top: 5%;
}

.products-hotspot-panel h4 {
  margin: 0 0 0.16rem;
  font-size: 1.03rem;
}

.products-hotspot-panel p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.products-cta {
  padding: 5rem 0 6rem;
  background: linear-gradient(180deg, #efe7d8 0%, #f7f2ea 100%);
}

.products-cta-shell {
  border-radius: 28px;
  border: 1px solid rgba(15, 46, 29, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 30px rgba(15, 46, 29, 0.1);
  padding: 2rem;
  text-align: center;
}

.products-cta-shell .lead {
  max-width: 62ch;
  margin: 0 auto 1.2rem;
}

.products-credit {
  margin-top: 0.82rem;
  font-size: 0.79rem;
  color: var(--text-500);
}

.products-sr7-hero {
  position: relative;
  min-height: 100vh;
  overflow: clip;
  --sr7-accent: #980c00;
  background: #1d173f;
}

.products-sr7-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.products-sr7-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 12, 39, 0.6) 0%, rgba(18, 12, 39, 0.24) 100%);
  background: linear-gradient(160deg, color-mix(in srgb, var(--sr7-accent) 48%, #120c27 52%) 0%, rgba(18, 12, 39, 0.24) 100%);
}

.products-sr7-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  overflow: clip;
  padding: 8.1rem 0 2.1rem;
}

.products-sr7-flavors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.products-sr7-flavor {
  border: 1px solid rgba(240, 236, 219, 0.45);
  border-radius: 999px;
  background: rgba(240, 236, 219, 0.08);
  color: #f0ecdb;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.43rem 0.7rem;
  cursor: pointer;
}

.products-sr7-flavor.is-active {
  background: #f0ecdb;
  color: var(--green-900);
}

.products-sr7-slides {
  position: relative;
  min-height: min(780px, calc(100vh - 10.2rem));
  max-width: 100%;
}

.products-sr7-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.49fr) minmax(0, 0.51fr);
  gap: 0.9rem;
  max-width: 100%;
  opacity: 0;
  pointer-events: none;
}

.products-sr7-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.products-sr7-left {
  background: url("/assets/img/products/hero/bg-texture-main.jpg") center center / cover no-repeat;
  border-radius: 10px;
  padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.3rem, 2.4vw, 2rem);
  color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.products-sr7-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.products-sr7-brand img:first-child {
  width: 42px;
  height: 54px;
}

.products-sr7-brand img:last-child {
  width: 128px;
  height: auto;
}

.products-sr7-step {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  color: #422600;
  margin: 0 0 0.1rem;
}

.products-sr7-left h1,
.products-sr7-left h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 6.2vw, 5.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 0.55rem;
  color: var(--accent, #980c00);
}

.products-sr7-left p {
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.78);
}

.products-sr7-btn {
  margin-top: 0.8rem;
  width: fit-content;
  border-radius: 8px;
  padding: 0.8rem 1.35rem;
  border: 0;
  background: var(--accent, #980c00);
  color: #f0ecdb;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.products-sr7-right {
  position: relative;
  overflow: clip;
}

.products-sr7-jarstage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(460px, 92%);
  aspect-ratio: 37 / 52;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

.products-sr7-shadow {
  position: absolute;
  inset: auto auto 2%;
  left: 5%;
  width: 88%;
  opacity: 0.7;
  filter: blur(8px);
}

.products-sr7-frontshadow {
  position: absolute;
  left: 58%;
  top: 42%;
  width: 31%;
  opacity: 0.8;
  mix-blend-mode: multiply;
}

.products-sr7-labelclip {
  position: absolute;
  left: 24%;
  top: 45.5%;
  width: 52%;
  height: 15.5%;
  border-radius: 999px;
  overflow: hidden;
  z-index: 5;
  transform: perspective(640px) rotateX(9deg) rotateY(-17deg) rotateZ(-9deg);
  transform-origin: center;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.products-sr7-label {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Fade at the sides simulates the curve wrapping around the jar. */
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

.products-sr7-jar {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 57%;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.products-sr7-controls {
  position: absolute;
  right: 2.2rem;
  bottom: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #f0ecdb;
  text-transform: uppercase;
}

.products-sr7-prev,
.products-sr7-next {
  border: 0;
  background: transparent;
  color: #f0ecdb;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  font-family: "Manrope", system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  padding: 0.35rem 0.4rem;
}

.products-sr7-controls span {
  color: rgba(240, 236, 219, 0.7);
}

.story-products-cta-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 2.2rem;
  align-items: center;
  background: #f6f1e8;
  border: 1px solid rgba(15, 46, 29, 0.1);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 18px 36px rgba(15, 46, 29, 0.12);
}

.story-products-copy .lead {
  max-width: 54ch;
}

.story-products-media {
  display: block;
  min-height: 260px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.story-products-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(15, 46, 29, 0.16));
}

@media (max-width: 900px) {
  .products-sr7-shell {
    padding-top: 6.4rem;
    padding-bottom: 2.8rem;
  }

  .products-sr7-flavors {
    gap: 0.35rem;
    margin-bottom: 0.75rem;
  }

  .products-sr7-flavor {
    font-size: 0.65rem;
    padding: 0.36rem 0.5rem;
  }

  .products-sr7-slides {
    min-height: auto;
  }

  .products-sr7-slide {
    position: relative;
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .products-sr7-slide:not(.is-active) {
    display: none;
  }

  .products-sr7-left {
    min-height: auto;
    padding: 1.2rem 1rem 1.1rem;
  }

  .products-sr7-brand img:first-child {
    width: 32px;
    height: 40px;
  }

  .products-sr7-brand img:last-child {
    width: 108px;
  }

  .products-sr7-step {
    font-size: 1.65rem;
  }

  .products-sr7-left h1,
  .products-sr7-left h2 {
    font-size: clamp(2.25rem, 10vw, 3.2rem);
    margin-bottom: 0.4rem;
  }

  .products-sr7-left p {
    font-size: 0.92rem;
    max-width: none;
  }

  .products-sr7-btn {
    font-size: 0.74rem;
    padding: 0.66rem 1rem;
  }

  .products-sr7-right {
    min-height: 360px;
    padding-bottom: 1.2rem;
  }

  .products-sr7-jarstage {
    width: min(360px, 95%);
  }

  .products-sr7-labelclip {
    top: 46%;
    width: 54%;
    left: 23%;
    height: 15%;
  }

  .products-sr7-controls {
    right: 50%;
    transform: translateX(50%);
    bottom: 0.7rem;
  }

  .products-cta-shell {
    padding: 1.35rem;
  }

  .story-products-cta-shell {
    grid-template-columns: 1fr;
    padding: 1.4rem;
  }

  .story-products-media {
    order: -1;
  }

  .story-products-media img {
    min-height: 220px;
  }
}

.products-story-hero,
.products-story-method,
.products-story-final {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

.products-story-hero {
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #f6f2ea;
  background: #0f2e1d;
}

.products-story-hero-media {
  position: absolute;
  inset: 0;
  background: url("../../le-nocciole/assets/img/Nocciole-sgusciate-cinematic-hero.png") center center / cover no-repeat;
  transform: scale(1.03);
}

.products-story-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 14%, rgba(103, 133, 82, 0.34) 0%, transparent 48%),
    linear-gradient(145deg, rgba(10, 56, 32, 0.78) 8%, rgba(15, 70, 42, 0.44) 58%, rgba(8, 40, 24, 0.8) 100%);
}

.products-story-hero-float {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.products-story-hero-float img {
  position: absolute;
  max-width: 100%;
  user-select: none;
}

.products-story-hero-leaf {
  width: min(760px, 56vw);
  left: -8%;
  top: 8%;
  opacity: 0.25;
}

.products-story-hero-hazelnut {
  width: min(420px, 32vw);
  right: 7%;
  top: 22%;
  opacity: 0.98;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.28));
}

.products-story-hero-kernel {
  width: min(210px, 18vw);
  right: 21%;
  bottom: 14%;
  opacity: 0.95;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.24));
}

.products-story-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: left;
  padding: 8.8rem 0 3rem;
}

.products-story-hero-inner h1 {
  margin: 0.4rem 0 0.9rem;
  font-size: clamp(2.8rem, 7.2vw, 5.8rem);
  line-height: 0.95;
  color: #fff;
}

.products-story-hero-inner .lead {
  max-width: 58ch;
  color: rgba(246, 242, 234, 0.9);
  margin-bottom: 1.5rem;
}

.products-story-hero-inner .eyebrow {
  color: #fff;
}

.products-story-pin {
  position: relative;
  background: linear-gradient(180deg, #f5f0e5 0%, #efe8d9 100%);
  margin-top: -100vh;
  z-index: 3;
  clip-path: circle(var(--products-reveal-radius, 0%) at 50% 50%);
  will-change: clip-path;
}

.js-enabled .products-story-pin {
  clip-path: circle(var(--products-reveal-radius, 0%) at 50% 50%);
}

.products-story-pin-track {
  min-height: 260vh;
}

.products-story-pin-sticky {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(0, 0.45fr);
  align-items: center;
  gap: clamp(1.1rem, 2vw, 2.4rem);
  padding: 7.4rem 0 2.2rem;
}

.products-story-visual {
  position: relative;
  min-height: clamp(410px, 72vh, 740px);
  max-width: 100%;
}

.products-story-ring-shell {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(560px, 96%);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.products-story-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  opacity: 0.95;
}

.products-story-ring-base {
  fill: none;
  stroke: rgba(15, 46, 29, 0.3);
  stroke-width: 4;
  stroke-dasharray: 9 12;
}

.products-story-ring-progress {
  fill: none;
  stroke: var(--green-900);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 1194;
  stroke-dashoffset: 1194;
}

.products-story-ring-point {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
  color: rgba(15, 46, 29, 0.75);
  transform: translate(-50%, -50%);
  transition: transform 220ms ease, color 220ms ease;
  z-index: 4;
}

.products-story-ring-point em {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #9ca691;
  display: grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 0.92rem;
  color: #f6f2ea;
}

.products-story-ring-point small {
  position: absolute;
  white-space: nowrap;
  font-size: 0.64rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(15, 46, 29, 0.78);
}

.products-story-ring-point.is-active {
  color: var(--green-900);
  transform: translate(-50%, -50%) scale(1.05);
}

.products-story-ring-point.is-lit em,
.products-story-ring-point.is-active em {
  background: var(--green-900);
  color: #f6f2ea;
}

.products-story-ring-point[data-ring-point="0"] {
  left: 50%;
  top: 13.5%;
}

.products-story-ring-point[data-ring-point="0"] small {
  top: -1.55rem;
}

.products-story-ring-point[data-ring-point="1"] {
  left: 81.2%;
  top: 68%;
}

.products-story-ring-point[data-ring-point="1"] small {
  left: calc(100% + 0.52rem);
  top: 50%;
  transform: translateY(-50%);
}

.products-story-ring-point[data-ring-point="2"] {
  left: 18.8%;
  top: 68%;
}

.products-story-ring-point[data-ring-point="2"] small {
  right: calc(100% + 0.52rem);
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  text-align: right;
}

.products-story-leaf,
.products-story-hazelnut,
.products-story-kernel {
  position: absolute;
  max-width: 100%;
  width: clamp(320px, 80%, 640px);
  will-change: transform, opacity;
  user-select: none;
  pointer-events: none;
}

.products-story-leaf {
  left: -3%;
  top: 2%;
  opacity: 0.24;
  filter: drop-shadow(0 12px 30px rgba(15, 46, 29, 0.18));
}

.products-story-hazelnut {
  left: 50%;
  top: 50%;
  opacity: 1;
  width: clamp(230px, 56%, 460px);
  z-index: 2;
  transform: translate(-50%, -50%);
}

.products-story-kernel {
  left: 55%;
  top: 58%;
  width: clamp(102px, 25%, 196px);
  opacity: 1;
  z-index: 4;
  transform: translate(-50%, -50%);
}

.products-story-content {
  position: relative;
  background: rgba(250, 247, 241, 0.92);
  border: 1px solid rgba(15, 46, 29, 0.12);
  border-radius: 28px;
  box-shadow: 0 20px 36px rgba(15, 46, 29, 0.11);
  padding: clamp(1.2rem, 2vw, 2.1rem);
}

.products-story-content h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.1vw, 2.6rem);
  line-height: 1.08;
}

.products-story-steps {
  position: relative;
  min-height: 320px;
}

.products-story-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(22px);
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
}

.products-story-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.products-story-step-tag {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(15, 46, 29, 0.66);
}

.products-story-step h3 {
  margin: 0 0 0.58rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.products-story-step p {
  margin: 0;
  line-height: 1.74;
  color: rgba(15, 46, 29, 0.86);
}

.products-story-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.46rem;
  margin-top: 1rem;
}

.products-story-dot {
  border: 1px solid rgba(15, 46, 29, 0.22);
  border-radius: 999px;
  background: rgba(15, 46, 29, 0.04);
  color: rgba(15, 46, 29, 0.75);
  font: 500 0.74rem/1.2 "Manrope", system-ui, -apple-system, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.44rem 0.72rem;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.products-story-dot.is-active,
.products-story-dot:hover {
  background: var(--green-900);
  color: #f6f2ea;
  transform: translateY(-1px);
}

.products-story-method {
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 20%, rgba(45, 94, 49, 0.16) 0%, transparent 48%),
    linear-gradient(160deg, #f1eadb 0%, #f7f2e8 100%);
  color: var(--green-900);
}

.products-story-method::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/storia/assets/img/biologico.png") center center / cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
}

.products-story-method-inner {
  padding: 8rem 0 4rem;
  position: relative;
  z-index: 1;
}

.products-story-method-copy {
  max-width: none;
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.products-story-manifesto-text {
  --manifesto-fill: 0;
  margin: 0;
  max-width: 62ch;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: rgba(15, 46, 29, 0.24);
  text-align: center;
  margin-inline: auto;
}

.products-story-manifesto-text .manifesto-char {
  display: inline;
  color: rgba(15, 46, 29, 0.24);
  transition: color 130ms linear;
}

.products-story-manifesto-text .manifesto-char.is-filled {
  color: rgba(15, 46, 29, 0.98);
}

.products-story-keyword {
  display: inline-block;
  white-space: nowrap;
  padding: 0.05em 0.42em 0.12em;
  border-radius: 25px;
  border: 1px solid rgba(15, 46, 29, 0);
  background: transparent;
  color: inherit;
  -webkit-text-fill-color: currentColor;
  transition: transform 0.28s ease, color 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.products-story-keyword.is-keyword-active {
  color: var(--green-900);
  background: rgba(39, 102, 68, 0.12);
  border-color: rgba(39, 102, 68, 0.4);
  transform: scale(1.06);
}

.products-story-final {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #0f2e1d 0%, #123927 100%);
  color: #f6f2ea;
  isolation: isolate;
  overflow: hidden;
}

.products-story-final-inner {
  text-align: center;
  max-width: 760px;
  padding: 8rem 0 3.5rem;
  position: relative;
  z-index: 2;
}

.products-story-final-inner .lead {
  color: rgba(246, 242, 234, 0.9);
  margin: 0.9rem auto 1.55rem;
  max-width: 56ch;
}

.products-story-final-inner h2 {
  margin: 0.4rem 0 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.96;
  color: #fff;
}

.products-story-final-inner .eyebrow {
  color: #fff;
}

.products-final-cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  mix-blend-mode: difference;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.products-final-fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.products-final-fall-back {
  z-index: 1;
}

.products-final-fall-front {
  z-index: 3;
}

.products-final-particle {
  position: absolute;
  width: var(--particle-size, 72px);
  height: auto;
  will-change: transform, opacity;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.24));
  opacity: 1;
}

.products-story-final.is-cursor-active .products-final-cursor {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.products-final-magnet {
  transition: transform 0.26s ease, filter 0.26s ease;
}

.products-final-magnet.is-hover {
  transform: scale(1.04);
  filter: contrast(1.22);
}

.products-story-final-inner .btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.products-story-final-inner .btn-primary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: -1;
}

.products-story-final.is-on-cta .products-story-final-inner .btn-primary {
  color: var(--green-900);
  border-color: #fff;
  transform: translateY(-1px);
}

.products-story-final.is-on-cta .products-story-final-inner .btn-primary::before {
  transform: translate(-50%, -50%) scale(16);
}

.products-story-final.is-on-cta .products-final-cursor {
  transform: translate(-50%, -50%) scale(0.08);
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .products-story-final {
    cursor: none;
  }

  .products-story-final a,
  .products-story-final button {
    cursor: none;
  }
}

@media (max-width: 900px) {
  .products-story-hero-inner {
    padding: 7.2rem 0 2.2rem;
  }

  .products-story-hero-inner h1 {
    font-size: clamp(2.3rem, 12.5vw, 3.8rem);
  }

  .products-story-hero-leaf {
    width: min(620px, 140vw);
    left: -38%;
    top: 6%;
    opacity: 0.2;
  }

  .products-story-hero-hazelnut {
    width: min(260px, 58vw);
    right: -12%;
    top: 21%;
  }

  .products-story-hero-kernel {
    width: min(150px, 36vw);
    right: 10%;
    bottom: 12%;
  }

  .products-story-pin-track {
    min-height: 220vh;
  }

  .products-story-pin-sticky {
    display: block;
    min-height: 100vh;
    padding: 5.5rem 0 1.4rem;
  }

  .products-story-visual {
    min-height: 312px;
    margin-bottom: 0.35rem;
  }

  .products-story-ring {
    width: 100%;
    height: 100%;
  }

  .products-story-ring-shell {
    width: min(360px, 94vw);
  }

  .products-story-ring-point em {
    width: 24px;
    height: 24px;
    font-size: 0.72rem;
  }

  .products-story-ring-point small {
    font-size: 0.56rem;
  }

  .products-story-leaf {
    left: 2%;
    top: 0;
    width: min(460px, 96%);
  }

  .products-story-hazelnut {
    left: 50%;
    top: 50%;
    width: min(228px, 52%);
    transform: translate(-10%, -50%);
  }

  .products-story-kernel {
    left: 57%;
    top: 60%;
    width: min(98px, 21%);
    transform: translate(-50%, -50%);
  }

  .products-story-content {
    border-radius: 22px;
    padding: 0.95rem 0.85rem;
    max-height: none;
    overflow: visible;
  }

  .products-story-content h2 {
    font-size: clamp(1.54rem, 7.2vw, 2rem);
    line-height: 1.1;
  }

  .products-story-steps {
    min-height: 0;
  }

  .products-story-step-tag {
    font-size: 0.7rem;
  }

  .products-story-step h3 {
    font-size: clamp(1.35rem, 6.2vw, 1.8rem);
    margin-bottom: 0.4rem;
  }

  .products-story-step p {
    font-size: 0.95rem;
    line-height: 1.56;
  }

  .products-story-step {
    position: relative;
    opacity: 1;
    transform: none;
    display: none;
  }

  .products-story-step.is-active {
    display: block;
  }

  .products-story-method-inner {
    padding: 8.2rem 0 7.2rem;
    min-height: 100svh;
    display: grid;
    align-content: center;
  }

  .products-story-manifesto-text {
    max-width: 100%;
    font-size: clamp(1.15rem, 4.4vw, 1.5rem);
    line-height: 1.48;
    color: rgba(15, 46, 29, 0.96);
  }

  .products-story-keyword {
    color: inherit;
    background: transparent;
    border-color: transparent;
    transform: none;
  }

  .products-story-final-inner {
    padding: 6.2rem 0 2.8rem;
  }

  .products-final-cursor {
    display: none;
  }

  .products-final-fall {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-story-step {
    transition: none !important;
  }
}

.site-footer {
  background: var(--green-900);
  color: #fff;
  padding: 3rem 0 2rem;
}

.contacts-hero {
  position: relative;
  min-height: 62vh;
  padding: 9.2rem 0 3rem;
  overflow: hidden;
  color: #fff;
  cursor: none;
}

.contacts-page {
  padding: 2rem 0 2.5rem;
}

.contacts-hero-map {
  position: absolute;
  inset: 0;
}

.contacts-hero-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
}

.contacts-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(4, 18, 12, 0.82), rgba(9, 30, 20, 0.66));
}

.contacts-hero .container {
  position: relative;
  z-index: 2;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contacts-hero .eyebrow,
.contacts-hero h1,
.contacts-hero .lead {
  color: #fff;
  pointer-events: none;
}

.contacts-hero .lead {
  max-width: 58ch;
  margin-bottom: 0;
}

.contacts-map-mobile-btn {
  display: none;
  pointer-events: auto;
}

.contacts-map-trigger {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  cursor: none;
}

.contacts-map-bubble {
  position: fixed;
  left: var(--map-bubble-x, 50vw);
  top: var(--map-bubble-y, 50vh);
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green-900);
  border-radius: 999px;
  width: 94px;
  height: 94px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  font-size: 0.7rem;
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: opacity 0.18s ease, transform 0.2s ease;
}

.contacts-map-trigger.is-hover .contacts-map-bubble {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.contacts-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 0.55fr);
  align-items: stretch;
}

.contacts-panel,
.contacts-form-wrap {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(15, 46, 29, 0.12);
  border-radius: 20px;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(15, 46, 29, 0.08);
}

.contacts-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.contacts-list li {
  padding: 0.65rem 0;
  border-top: 1px solid rgba(15, 46, 29, 0.1);
}

.contacts-list span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-500);
}

.contacts-list strong {
  display: block;
  font-size: 0.98rem;
  color: var(--text-900);
  margin-top: 0.24rem;
}

.contacts-list strong a {
  color: inherit;
}

.contacts-list em {
  display: block;
  margin-top: 0.05rem;
  line-height: 1.15;
}

.contacts-hours {
  margin-top: auto;
  border: 1px solid rgba(15, 46, 29, 0.14);
  border-radius: 14px;
  background: #f8f5ef;
  padding: 0.75rem 0.85rem;
}

.contacts-hours-title {
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-500);
}

.contacts-hours-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.52rem 0;
  border-top: 1px solid rgba(15, 46, 29, 0.1);
  font-size: 0.9rem;
}

.contacts-hours-row:first-of-type {
  border-top: 0;
}

.contacts-hours-row strong {
  color: var(--green-900);
}

.contacts-form {
  display: grid;
  gap: 0.85rem;
}

.contacts-form label {
  display: grid;
  gap: 0.38rem;
  font-size: 0.86rem;
  color: var(--text-700);
}

.contacts-form input,
.contacts-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 46, 29, 0.2);
  border-radius: 12px;
  background: #fff;
  color: var(--text-900);
  padding: 0.72rem 0.9rem;
  font: inherit;
}

.contacts-form textarea {
  resize: none;
  min-height: 130px;
}

.contacts-consent {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
}

.contacts-consent input {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
}

.field-error {
  display: block;
  min-height: 1em;
  color: #b53030;
  font-size: 0.78rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.contacts-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(15, 46, 29, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contacts-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contacts-modal-card {
  width: min(460px, 100%);
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(15, 46, 29, 0.12);
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
}

.contacts-modal-card h3 {
  margin-bottom: 0.5rem;
}

body.modal-open {
  overflow: hidden;
}

body.map-open {
  overflow: hidden;
}

.contacts-map-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1300;
  background: rgba(5, 19, 13, 0.92);
  opacity: 0;
  pointer-events: none;
  --map-open-x: 50vw;
  --map-open-y: 50vh;
  -webkit-clip-path: circle(0 at var(--map-open-x) var(--map-open-y));
  clip-path: circle(0 at var(--map-open-x) var(--map-open-y));
  transition: clip-path 2.5s cubic-bezier(0.2, 0.78, 0.22, 1), -webkit-clip-path 2.5s cubic-bezier(0.2, 0.78, 0.22, 1), opacity 0.45s ease;
}

.contacts-map-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
  -webkit-clip-path: circle(160vmax at var(--map-open-x) var(--map-open-y));
  clip-path: circle(160vmax at var(--map-open-x) var(--map-open-y));
}

.contacts-map-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.contacts-map-lightbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

.contacts-map-lightbox::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(7, 24, 16, 0.5), rgba(15, 46, 29, 0.28));
  pointer-events: none;
}

.contacts-map-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 46, 29, 0.9);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.contacts-map-route {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
}

.contacts-map-route svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

body.map-open .contacts-hero .container {
  opacity: 0;
  transform: translateY(16px);
}

@media (max-width: 900px) {
  .contacts-hero {
    min-height: 52vh;
    padding-top: 7rem;
    cursor: auto;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .contacts-panel,
  .contacts-form-wrap {
    padding: 1.1rem;
  }

  .contacts-map-trigger {
    cursor: pointer;
    pointer-events: none;
  }

  .contacts-map-bubble {
    display: none;
  }

  .contacts-map-mobile-btn {
    display: inline-flex;
    margin-top: 1rem;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--green-900);
    padding: 0.62rem 1rem;
    font: inherit;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-brand img {
  width: 56px;
  height: 56px;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.site-footer h4,
.site-footer p,
.site-footer a {
  color: #fff;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom .footer-dev {
  display: block;
  margin-top: 0.2rem;
}

@media (min-width: 901px) {
  .footer-bottom .footer-dev {
    display: inline;
    margin-top: 0;
    margin-left: 0.45rem;
  }
}

@media (min-width: 900px) {
  .product-grid,
  .territory-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .site-header .header-pill,
  .site-header.is-scrolled .header-pill,
  .site-header.is-shrinking .header-pill {
    background: rgba(246, 242, 234, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(15, 46, 29, 0.18);
    transition: max-height 0.3s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    max-height: 64px;
  }

  .header-inner {
    width: min(94vw, 560px);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 0;
    padding: 0.55rem 0.75rem;
    gap: 0.6rem;
  }

  .site-header .header-inner,
  .site-header.is-scrolled .header-inner,
  .site-header.is-shrinking .header-inner {
    width: min(94vw, 560px);
    padding: 0.55rem 0.75rem;
    gap: 0.6rem;
  }

  .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo span {
    transition: opacity 0.25s ease, transform 0.25s ease, max-width 0.25s ease;
    max-width: 160px;
    overflow: hidden;
    white-space: nowrap;
  }

  .btn-small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    margin-right: calc(0.15rem + 10px);
    align-self: center;
  }

  .menu-toggle.is-open span:nth-child(1) {
    top: 16px;
    transform: rotate(45deg);
  }

  .menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.is-open span:nth-child(3) {
    top: 16px;
    transform: rotate(-45deg);
  }

  .nav {
    display: none;
    width: 100%;
    order: 3;
    margin-top: 0.5rem;
    padding-top: 0.3rem;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    justify-items: start;
  }

  .nav a {
    display: inline-block;
    width: fit-content;
    padding: 0.4rem 0.2rem;
  }

  .site-header.menu-open .header-pill {
    max-height: 320px;
  }

  .site-header.menu-open .nav {
    display: grid;
  }

  html.menu-overlay-open,
  body.menu-overlay-open {
    overflow: hidden;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: var(--green-900);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    clip-path: circle(0 at calc(100% - 44px) 52px);
    transition:
      clip-path 0.52s cubic-bezier(0.22, 0.85, 0.24, 1),
      opacity 0.18s ease,
      visibility 0s linear 0.52s;
  }

  body.menu-overlay-open::before {
    opacity: 1;
    visibility: visible;
    clip-path: circle(160% at calc(100% - 44px) 52px);
    transition:
      clip-path 0.52s cubic-bezier(0.22, 0.85, 0.24, 1),
      opacity 0.18s ease,
      visibility 0s linear 0s;
  }

  body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 81;
    pointer-events: none;
    background:
      url("/assets/img/disegno-nocciole.png") no-repeat center calc(100% + 40px) / auto min(72vh, 520px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transition:
      opacity 0.18s ease 0s,
      transform 0.18s ease 0s,
      visibility 0s linear 0.18s;
  }

  body.menu-overlay-open::after {
    opacity: 0.75;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition:
      opacity 0.24s ease 0.38s,
      transform 0.24s ease 0.38s,
      visibility 0s linear 0s;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(11, 28, 18, 0.46) 0%, rgba(11, 28, 18, 0.2) 42%, rgba(11, 28, 18, 0) 76%);
  }

  .hero-content {
    z-index: 8;
  }

  .hero-foreground {
    background-position: -32vw bottom;
  }

  .hero-grass {
    --grass-base: calc(7% + 136px);
  }

  .page-loaded .hero-foreground {
    animation: heroFrontInMobile 0.9s ease 0.95s forwards;
  }
}

@keyframes heroFrontInMobile {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
  }
  to {
    opacity: 0.76;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .hero-bg,
  .hero-foreground,
  .hero-grass,
  .hero-copy,
  .header-inner {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .story-card {
    opacity: 1 !important;
    transform: none !important;
  }

  .story-card-inner {
    transform: none !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .product-item {
    transform: translate3d(var(--x), var(--y), 0) rotate(var(--rot, 0deg)) scale(var(--scale, 1)) !important;
  }
}
