:root {
  --bg: #050e06;
  --g1: #2a8c3d;
  --g2: #3daa55;
  --g3: #1a5c28;
  --g4: #0d3318;
  --glow: rgba(42, 140, 61, .35);
  --glowb: rgba(42, 140, 61, .12);
  --white: #f0f9f2;
  --gray: #8aac8e;
  --muted: #4a6b4e;
  --text: #daeede;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito Sans', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='0,0 0,20 6,14 11,22 14,20 9,12 16,11' fill='%232a8c3d' stroke='%232a8c3d' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0, auto;
}

a,
button,
input,
select,
textarea,
.btn-g,
.btn-outline,
.nav-cta,
.sw {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpolygon points='0,0 0,20 6,14 11,22 14,20 9,12 16,11' fill='%232a8c3d' stroke='%232a8c3d' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0, pointer !important;
}

/* ═══ CANVAS BACKGROUND ═══ */
#leather-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}

/* ═══ GRAIN ═══ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  opacity: .03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ═══ NAV ═══ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 3.5rem;
  background: rgba(5, 14, 6, .8);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(42, 140, 61, .18);
  transition: padding .4s;
}

nav.scrolled {
  padding: .7rem 3.5rem
}

.nav-logo-img {
  height: 58px;
  transition: transform .3s
}

.nav-logo-img:hover {
  transform: scale(1.06)
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  align-items: center
}

nav ul a {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  text-decoration: none;
  position: relative;
  transition: color .25s;
}

nav ul a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 100%;
  height: 2px;
  background: var(--g1);
  transition: right .3s;
}

nav ul a:hover {
  color: var(--g2)
}

nav ul a:hover::after {
  right: 0
}

.nav-cta {
  padding: .55rem 1.6rem;
  background: var(--g1);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  box-shadow: 0 0 18px rgba(42, 140, 61, .4);
  transition: background .25s, box-shadow .25s, transform .2s;
}

.nav-cta:hover {
  background: var(--g2);
  box-shadow: 0 0 28px rgba(61, 170, 85, .6);
  transform: translateY(-2px);
  color: #fff
}

#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 6rem;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-pelle-bg {
  position: absolute;
  top: 58%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 900px;
  z-index: 1;
  /* Sotto il testo */
  pointer-events: none;
  opacity: 0;
}

/* Cerchio scuro fisso per coprire particelle */
.hero-pelle-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: #050a08;
  filter: blur(40px);
  border-radius: 50%;
  z-index: -1;
}

.hero-pelle-bg img {
  width: 100%;
  height: auto;
  display: block;
  -webkit-mask-image: radial-gradient(circle, black 60%, transparent 95%);
  mask-image: radial-gradient(circle, black 60%, transparent 95%);
  filter: url(#flagWave);
  /* Effetto ondulato sventolante */
}

.hero-content-wrapper {
  position: relative;
  z-index: 5;
  /* Sopra alla pelle (che è 1) */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg-circle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 140, 61, .22) 0%, transparent 70%);
  pointer-events: none;
}

.hbc1 {
  width: 800px;
  height: 800px;
  right: -200px;
  top: -200px;
  animation: pulse1 6s ease-in-out infinite
}

.hbc2 {
  width: 500px;
  height: 500px;
  right: 250px;
  bottom: -150px;
  animation: pulse2 8s ease-in-out infinite
}

@keyframes pulse1 {

  0%,
  100% {
    transform: scale(1);
    opacity: .6
  }

  50% {
    transform: scale(1.12);
    opacity: 1
  }
}

@keyframes pulse2 {

  0%,
  100% {
    transform: scale(1.1);
    opacity: .4
  }

  50% {
    transform: scale(.9);
    opacity: .8
  }
}

.hero-eyebrow {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: slideRight .8s .3s forwards;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--g1)
}

.hero-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(4.5rem, 5vw, 8rem);
  line-height: .88;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 14ch;
  opacity: 0;
  animation: slideRight .9s .5s forwards;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.hero-title .accent {
  color: var(--g2);
  text-shadow: 0 0 60px rgba(61, 170, 85, .5);
}

.hero-title .italic {
  font-style: italic;
  font-weight: 300;
  font-size: .62em;
  color: var(--g1);
  display: block;
}

.hero-sub {
  margin-top: 2.5rem;
  font-family: 'Nunito', sans-serif;
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  max-width: 52ch;
  opacity: 0;
  animation: slideRight .9s .75s forwards;
  text-shadow: 0 5px 25px rgba(0, 0, 0, 0.8);
}

.hero-sub strong {
  color: var(--text);
  font-weight: 700;
  font-style: normal
}

.hero-actions {
  margin-top: 3.5rem;
  display: flex;
  gap: 1.4rem;
  opacity: 0;
  animation: fadeUp .8s .95s forwards;
}

.btn-g {
  padding: 1rem 2.8rem;
  background: var(--g1);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  box-shadow: 0 0 24px var(--glow);
  transition: background .25s, box-shadow .25s, transform .25s;
}

.btn-g:hover {
  background: var(--g2);
  box-shadow: 0 0 40px rgba(61, 170, 85, .7);
  transform: translateY(-3px)
}

.btn-outline {
  padding: 1rem 2.4rem;
  border: 2px solid rgba(42, 140, 61, .5);
  color: var(--g2);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: border-color .25s, background .25s;
}

.btn-outline:hover {
  border-color: var(--g2);
  background: rgba(42, 140, 61, .08)
}

.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
  z-index: 3;
}

.scroll-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--g1), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    transform: scaleY(1);
    opacity: .5
  }

  50% {
    transform: scaleY(.7);
    opacity: 1
  }
}

/* ═══ MARQUEE ═══ */
.marquee-bar {
  position: relative;
  z-index: 2;
  background: var(--g1);
  padding: .85rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, .1);
  border-bottom: 1px solid rgba(0, 0, 0, .3);
}

.marquee-inner {
  display: flex;
  gap: 0;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

.marquee-inner:hover {
  animation-play-state: paused
}

@keyframes marquee {
  to {
    transform: translateX(-50%)
  }
}

.marquee-item {
  padding: 0 2.5rem;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.marquee-item::after {
  content: '◆';
  font-size: .5rem;
  opacity: .6
}

/* ═══ SECTION COMMONS ═══ */
.section-tag {
  display: inline-block;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 1.2rem;
  position: relative;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--g1);
  vertical-align: middle;
  margin-right: .8rem;
}

.section-title-big {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 6vw, 7.5rem);
  line-height: .9;
  letter-spacing: -.02em;
  color: var(--white);
}

.section-title-big em {
  font-style: italic;
  font-weight: 300;
  color: var(--g2);
}

/* ═══ SERVICE BLOCKS ═══ */
.service-section {
  position: relative;
  z-index: 2;
  overflow: hidden
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 90vh;
  min-height: 720px;
  max-height: 850px;
  align-items: stretch;
  overflow: hidden;
}

.service-block.reverse {
  direction: rtl
}

.service-block.reverse>* {
  direction: ltr
}

.service-visual {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

/* TINTURA visual */
.sv-tintura {
  background:
    radial-gradient(ellipse 80% 80% at 40% 40%, rgba(180, 90, 10, .3) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 70% 70%, rgba(140, 40, 10, .25) 0%, transparent 60%),
    radial-gradient(ellipse 100% 100% at 50% 50%, rgba(42, 140, 61, .05) 0%, transparent 80%),
    linear-gradient(135deg, #0a0401 0%, #1c0a03 30%, #2a1208 50%, #0e0503 100%);
}

/* animated dye drops */
.sv-tintura::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 120px at 30% 40%, rgba(200, 100, 20, .18) 0%, transparent 70%),
    radial-gradient(circle 80px at 65% 25%, rgba(150, 50, 10, .22) 0%, transparent 70%),
    radial-gradient(circle 200px at 55% 65%, rgba(120, 30, 5, .15) 0%, transparent 70%),
    radial-gradient(circle 60px at 20% 70%, rgba(180, 80, 15, .2) 0%, transparent 70%);
  animation: dyeSwirl 8s ease-in-out infinite alternate;
}

@keyframes dyeSwirl {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: .8
  }

  100% {
    transform: scale(1.08) rotate(4deg);
    opacity: 1
  }
}

/* color drips */
.dye-drip {
  position: absolute;
  width: 6px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(to bottom, transparent, rgba(200, 80, 10, .6));
  animation: drip 4s ease-in-out infinite;
}

.dye-drip:nth-child(1) {
  height: 80px;
  left: 22%;
  top: 0;
  animation-delay: 0s
}

.dye-drip:nth-child(2) {
  height: 120px;
  left: 44%;
  top: 0;
  animation-delay: 1.3s
}

.dye-drip:nth-child(3) {
  height: 60px;
  left: 62%;
  top: 0;
  animation-delay: .7s
}

.dye-drip:nth-child(4) {
  height: 100px;
  left: 78%;
  top: 0;
  animation-delay: 2s
}

.dye-drip:nth-child(5) {
  height: 70px;
  left: 35%;
  top: 0;
  animation-delay: 1.8s
}

.dye-drip.g {
  background: linear-gradient(to bottom, transparent, rgba(42, 140, 61, .7))
}

@keyframes drip {
  0% {
    transform: scaleY(0);
    transform-origin: top
  }

  30% {
    transform: scaleY(1);
    transform-origin: top
  }

  70% {
    transform: scaleY(1);
    transform-origin: top
  }

  100% {
    transform: scaleY(0);
    transform-origin: top
  }
}

/* SPACCATURA visual */
.sv-split {
  background:
    repeating-linear-gradient(90deg,
      rgba(42, 140, 61, .04) 0px, rgba(42, 140, 61, .04) 1px,
      transparent 1px, transparent 40px),
    repeating-linear-gradient(0deg,
      rgba(42, 140, 61, .03) 0px, rgba(42, 140, 61, .03) 1px,
      transparent 1px, transparent 40px),
    linear-gradient(160deg, #050e06 0%, #061409 40%, #040c05 100%);
}

.sv-split::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 60%, rgba(42, 140, 61, .12) 0%, transparent 70%);
  animation: machineGlow 3s ease-in-out infinite alternate;
}

@keyframes machineGlow {
  0% {
    opacity: .5
  }

  100% {
    opacity: 1
  }
}

/* blade lines */
.blade-lines {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  overflow: hidden;
}

.blade {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--g1), transparent);
  transform: scaleX(0);
  animation: bladeIn 2s cubic-bezier(.23, 1, .32, 1) forwards;
}

.blade:nth-child(1) {
  animation-delay: .1s
}

.blade:nth-child(2) {
  height: 80px;
  background: linear-gradient(90deg, transparent 10%, rgba(42, 140, 61, .04) 40%, rgba(42, 140, 61, .08) 50%, rgba(42, 140, 61, .04) 60%, transparent 90%);
  animation-delay: .2s
}

.blade:nth-child(3) {
  animation-delay: .4s
}

.blade:nth-child(4) {
  height: 120px;
  background: linear-gradient(90deg, transparent 5%, rgba(42, 140, 61, .05) 35%, rgba(42, 140, 61, .1) 50%, rgba(42, 140, 61, .05) 65%, transparent 95%);
  animation-delay: .6s
}

.blade:nth-child(5) {
  animation-delay: .8s
}

.blade:nth-child(6) {
  height: 80px;
  background: linear-gradient(90deg, transparent 10%, rgba(42, 140, 61, .04) 40%, rgba(42, 140, 61, .08) 50%, rgba(42, 140, 61, .04) 60%, transparent 90%);
  animation-delay: 1s
}

.blade:nth-child(7) {
  animation-delay: 1.2s
}

@keyframes bladeIn {
  to {
    transform: scaleX(1)
  }
}

/* floating spec numbers */
.spec-float {
  position: absolute;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  color: rgba(42, 140, 61, .12);
  pointer-events: none;
  animation: floatNum 10s ease-in-out infinite;
}

.spec-float.f1 {
  font-size: 8rem;
  right: 5%;
  top: 15%;
  animation-delay: 0s
}

.spec-float.f2 {
  font-size: 5rem;
  left: 8%;
  bottom: 20%;
  animation-delay: 3s
}

.spec-float.f3 {
  font-size: 6rem;
  right: 20%;
  bottom: 10%;
  animation-delay: 6s
}

@keyframes floatNum {

  0%,
  100% {
    transform: translateY(0) rotate(-5deg)
  }

  50% {
    transform: translateY(-20px) rotate(3deg)
  }
}

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 5rem;
  background: rgba(5, 14, 6, .6);
  position: relative;
}

.service-big-num {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 9rem;
  line-height: 1;
  color: rgba(42, 140, 61, .08);
  position: absolute;
  top: 2rem;
  right: 3rem;
  pointer-events: none;
}

.service-title {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 5.5vw, 6.5rem);
  line-height: .88;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.8rem;
}

.service-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--g2);
  display: block;
}

.service-desc {
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: var(--gray);
  max-width: 46ch;
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.service-desc strong {
  color: var(--text);
  font-style: normal;
  font-weight: 700
}

.feat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 2.5rem
}

.pill {
  padding: .38rem 1rem;
  border: 1.5px solid rgba(42, 140, 61, .35);
  border-radius: 50px;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: border-color .25s, color .25s, background .25s;
}

.pill:hover {
  border-color: var(--g2);
  color: var(--g2);
  background: rgba(42, 140, 61, .08)
}

.service-metric {
  display: flex;
  gap: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 140, 61, .15);
}

.metric-item .n {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 3rem;
  color: var(--g2);
  line-height: 1;
}

.metric-item .l {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .3rem;
}

/* ═══ PROCESSO ═══ */
#processo {
  position: relative;
  z-index: 2;
  padding: 8rem 6rem;
  background: rgba(42, 140, 61, .03);
  border-top: 1px solid rgba(42, 140, 61, .1);
  border-bottom: 1px solid rgba(42, 140, 61, .1);
}

.proc-header {
  text-align: center;
  margin-bottom: 6rem
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  gap: 2px;
}

.proc-connector {
  position: absolute;
  top: 45px;
  left: 12.5%;
  right: 12.5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--g1) 20%, var(--g1) 80%, transparent);
  opacity: .25;
}

/* animated connector line */
.proc-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--g2), transparent);
  animation: connFill 3s 1s ease forwards;
  opacity: .8;
}

@keyframes connFill {
  to {
    width: 100%
  }
}

.proc-step {
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-circle {
  width: 90px;
  height: 90px;
  border: 2px solid var(--g1);
  border-radius: 50%;
  background: var(--g4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--g2);
  box-shadow: 0 0 0 0 var(--glow);
  transition: box-shadow .3s, transform .3s, background .3s;
}

.proc-step:hover .step-circle {
  box-shadow: 0 0 0 12px var(--glowb), 0 0 30px var(--glow);
  transform: scale(1.08);
  background: rgba(42, 140, 61, .15);
}

.step-icon-lbl {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .65rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: .6rem;
}

.step-h {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: .8rem;
}

.step-p {
  font-size: .95rem;
  font-style: italic;
  color: var(--gray);
  line-height: 1.6;
}

/* ═══ PALETTE ═══ */
#colori {
  position: relative;
  z-index: 2;
  padding: 8rem 6rem;
}

.palette-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.palette-right p {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.palette-right p strong {
  color: var(--text);
  font-style: normal
}

.swatches {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 3px;
}

.sw {
  height: 100px;
  position: relative;
  overflow: hidden;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s cubic-bezier(.23, 1, .32, 1), filter .3s;
}

.sw.visible {
  transform: scaleY(1)
}

.sw:hover {
  filter: brightness(1.3);
  z-index: 2;
  transform: scaleY(1.12) !important
}

.sw-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, .7);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .55rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
  text-align: center;
  padding: .3rem 0;
  opacity: 0;
  transition: opacity .25s;
}

.sw:hover .sw-label {
  opacity: 1
}

/* ═══ STATS ═══ */
#stats {
  position: relative;
  z-index: 2;
  padding: 7rem 6rem;
  background: linear-gradient(135deg, var(--g4) 0%, rgba(5, 14, 6, .8) 100%);
  border-top: 1px solid rgba(42, 140, 61, .2);
  border-bottom: 1px solid rgba(42, 140, 61, .2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(42, 140, 61, .12);
}

.stat-box {
  padding: 3.5rem 2.5rem;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background .3s;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 140, 61, .08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .4s;
}

.stat-box:hover::before {
  opacity: 1
}

.stat-box:hover {
  background: rgba(13, 51, 24, .6)
}

.stat-n {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(4rem, 6vw, 6rem);
  line-height: 1;
  color: var(--g2);
  text-shadow: 0 0 40px rgba(61, 170, 85, .4);
}

.stat-unit {
  color: var(--g1);
  font-size: .5em
}

.stat-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .8rem;
}

/* ═══ ABOUT ═══ */
#about {
  position: relative;
  z-index: 2;
  padding: 8rem 6rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}

.about-text .section-title-big {
  margin-bottom: 2.5rem;
  font-size: clamp(3rem, 5vw, 6rem)
}

.about-text p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--gray);
  margin-bottom: 1.4rem;
  line-height: 1.75;
}

.about-text p strong {
  color: var(--text);
  font-style: normal
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid rgba(42, 140, 61, .12);
}

.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: rgba(42, 140, 61, .1);
  border: 1px solid rgba(42, 140, 61, .25);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.info-detail strong {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: .2rem;
}

.info-detail a,
.info-detail span {
  color: var(--gray);
  font-size: 1rem;
  font-style: italic;
  text-decoration: none;
  transition: color .2s;
}

.info-detail a:hover {
  color: var(--g2)
}

.cert-block {
  border: 1px solid rgba(42, 140, 61, .2);
  padding: 2.5rem;
  background: rgba(13, 51, 24, .2);
  margin-top: 2rem;
  border-radius: 4px;
}

.cert-title {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 1.5rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .6rem 0;
}

.cert-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  background: var(--g1);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--glow);
}

.cert-item span {
  font-size: .95rem;
  font-style: italic;
  color: var(--gray)
}

/* ═══ CONTACT ═══ */
#contatti {
  position: relative;
  z-index: 2;
  padding: 8rem 6rem;
  background: rgba(42, 140, 61, .03);
  border-top: 1px solid rgba(42, 140, 61, .1);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-left .section-title-big {
  margin-bottom: 3rem;
  font-size: clamp(3rem, 5vw, 6rem)
}

.cform {
  display: flex;
  flex-direction: column;
  gap: 1.2rem
}

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem
}

.field label {
  display: block;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: .5rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  background: rgba(255, 255, 255, .03);
  border: 1.5px solid rgba(42, 140, 61, .2);
  border-radius: 4px;
  color: var(--text);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  padding: .85rem 1.1rem;
  outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--g1);
  background: rgba(42, 140, 61, .05);
  box-shadow: 0 0 0 3px rgba(42, 140, 61, .1);
}

.field textarea {
  height: 120px;
  resize: none
}

.field select option {
  background: var(--g4);
  color: var(--text)
}

.submit-btn {
  padding: 1.1rem 3rem;
  background: var(--g1);
  color: #fff;
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 0 24px var(--glow);
  transition: background .25s, box-shadow .25s, transform .2s;
  align-self: flex-start;
}

.submit-btn:hover {
  background: var(--g2);
  box-shadow: 0 0 40px rgba(61, 170, 85, .7);
  transform: translateY(-3px)
}

/* ═══ FOOTER ═══ */
footer {
  position: relative;
  z-index: 2;
  padding: 2.5rem 6rem;
  border-top: 1px solid rgba(42, 140, 61, .12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo-img {
  height: 36px;
  opacity: .7;
  transition: opacity .3s
}

.footer-logo-img:hover {
  opacity: 1
}

.footer-copy {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: .65rem;
  letter-spacing: .1em;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.8rem
}

.footer-links a {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--g2)
}

/* ═══ SCROLL REVEAL ═══ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s, transform .8s
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity .8s, transform .8s
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0)
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .8s, transform .8s
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0)
}

/* ═══ KEYFRAMES ═══ */
@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-40px)
  }

  to {
    opacity: 1;
    transform: translateX(0)
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

/* ═══ RESPONSIVE ═══ */
/* Hamburger Toggle */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--g2);
  transition: all 0.3s ease;
}

@media(max-width:1024px) {
  nav {
    padding: 1rem 2rem
  }

  .nav-toggle {
    display: flex;
  }

  nav ul {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(5, 14, 6, .98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    padding-right: 2rem;
    gap: 2.5rem;
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    border-left: 1px solid rgba(42, 140, 61, .2);
    box-shadow: -10px 0 30px rgba(0, 0, 0, .5);
    z-index: 999;
  }

  nav ul.active {
    right: 0;
  }

  /* Hamburger Animation */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  #hero {
    padding: 0 1.5rem !important;
    overflow: visible !important;
  }

  .hero-content-wrapper {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 0.5rem !important;
  }

  .hero-title {
    font-size: clamp(3rem, 4vw, 5.5rem) !important;
    max-width: 100% !important;
    line-height: 1.2 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    overflow: visible !important;
    padding: 0 0.3rem !important;
  }

  .hero-title > em,
  .hero-title em {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    font-size: clamp(0.9rem, 3.5vw, 1.4rem) !important;
    display: block !important;
    width: 100% !important;
    margin-top: 0.2rem !important;
  }

  .hero-sub {
    font-size: 1.05rem !important;
    max-width: 100% !important;
    padding: 0 0.5rem !important;
  }

  .service-block {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .service-block.reverse {
    direction: ltr;
    flex-direction: column !important;
  }

  .service-visual {
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    order: 1;
  }

  .service-visual img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    max-height: none !important;
  }

  .service-content {
    padding: 3rem 2rem !important;
    order: 2;
    background: rgba(5, 14, 6, .6);
  }

  #processo {
    padding: 5rem 2rem
  }

  .proc-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem
  }

  .proc-connector {
    display: none
  }

  #colori {
    padding: 5rem 2rem
  }

  .palette-header {
    grid-template-columns: 1fr;
    gap: 2rem
  }

  .swatches {
    grid-template-columns: repeat(4, 1fr)
  }

  #stats {
    padding: 5rem 2rem
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  #about {
    grid-template-columns: 1fr;
    padding: 5rem 2rem;
    gap: 3rem
  }

  #contatti {
    grid-template-columns: 1fr;
    padding: 5rem 2rem;
    gap: 3rem
  }

  .frow {
    grid-template-columns: 1fr
  }

  footer {
    padding: 2rem;
    flex-direction: column;
    text-align: center
  }
}

@media(max-width:640px) {
  #hero {
    padding: 0 0.8rem !important;
  }

  .hero-content-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 0.4rem !important;
    box-sizing: border-box !important;
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem) !important;
    max-width: 100% !important;
    line-height: 1.25 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    width: 100% !important;
    padding: 0 0.25rem !important;
  }

  .hero-title em {
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    font-size: clamp(1.5rem, 4vw, 2.4rem) !important;
    margin-top: 0.1rem !important;
  }

  .hero-sub {
    font-size: 1rem !important;
    max-width: 100% !important;
    padding: 0 0.25rem !important;
  }

  .section-separator-img > div:first-child {
    background-attachment: scroll !important;
    background-position: center center !important;
  }
}

/* ═══ ANIMATED SLIDER ═══ */
.slider-container {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  direction: ltr;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  min-height: 0;
  min-width: 0;
  display: block; /* Assicura che non subisca problemi di flex */
}

.slide img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-caption {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  padding: 6rem 2.5rem 3.5rem;
  background: linear-gradient(to top, rgba(5, 14, 6, 0.98) 0%, rgba(5, 14, 6, 0.8) 35%, rgba(5, 14, 6, 0.4) 65%, transparent 100%);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  text-align: left;
  z-index: 10;
  direction: ltr;
  pointer-events: none;
}

.slide-caption h4 {
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--g2);
  letter-spacing: -0.02em;
}

.slide-caption p {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
  font-family: 'Nunito Sans', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ SLIDER DOTS ═══ */
.slider-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem !important;
  left: auto !important;
  display: flex;
  gap: 1rem;
  z-index: 100 !important;
  direction: ltr;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--g2);
  transform: scale(1.3);
  box-shadow: 0 0 10px var(--glow);
  border-color: #fff;
}

/* Remove CSS animation */
@keyframes slideAnim {
  from {
    opacity: 1;
  }

  to {
    opacity: 1;
  }
}

/* ═══ POLICY PAGE & COOKIE BANNER ═══ */
.policy-page {
  position: relative;
  z-index: 2;
}

.policy-hero {
  padding: 6rem 6rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.policy-hero .hero-sub {
  max-width: 58ch;
  margin: 1.5rem auto 0;
  color: rgba(218, 238, 222, 0.85);
}

.policy-hero .hero-actions {
  justify-content: center;
}

.policy-content {
  max-width: 1180px;
  margin: 0 auto 6rem;
  padding: 0 6rem;
  display: grid;
  gap: 2rem;
}

.policy-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(42, 140, 61, 0.14);
  border-radius: 22px;
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}

.policy-card h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  margin-bottom: 1rem;
  color: #fff;
}

.policy-card p,
.policy-card ul,
.policy-card li {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(218, 238, 222, 0.85);
}

.policy-card ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
}

.policy-card li {
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.85rem;
}

.policy-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--g2);
  line-height: 1.4;
}

.policy-callout {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  background: rgba(42, 140, 61, 0.12);
  border: 1px solid rgba(42, 140, 61, 0.2);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
}

.policy-callout strong {
  font-weight: 800;
  color: #fff;
}

.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(5, 14, 6, 0.98);
  border: 1px solid rgba(61, 170, 85, .25);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .4);
  z-index: 1000;
  backdrop-filter: blur(12px);
}

.cookie-banner p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.94);
  max-width: 70%;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 1001;
}

.cookie-modal.active {
  opacity: 1;
  visibility: visible;
}

.cookie-modal-card {
  width: min(100%, 720px);
  background: rgba(5, 14, 6, 0.96);
  border: 1px solid rgba(61, 170, 85, .18);
  border-radius: 22px;
  padding: 2rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
}

.cookie-modal-card h2 {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.cookie-modal-card p,
.cookie-modal-card ul {
  color: rgba(218, 238, 222, .9);
  line-height: 1.85;
  font-family: 'Nunito Sans', sans-serif;
}

.cookie-modal-card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.cookie-modal-card li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.75rem;
}

.cookie-modal-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--g2);
  top: 0;
}

.cookie-modal-card .btn-g {
  margin-top: 1.5rem;
}

@media(max-width:1024px) {
  .policy-hero,
  .policy-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .cookie-banner {
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .cookie-banner p {
    max-width: 100%;
  }
}

@media(max-width:640px) {
  .policy-hero {
    padding: 4rem 1.2rem 2.5rem;
  }

  .policy-content {
    padding: 0 1.2rem 4rem;
  }

  .policy-card {
    padding: 1.8rem;
  }

  .policy-callout {
    flex-direction: column;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .cookie-actions button {
    flex: 1;
  }
}
