/* Nuova Elleci – UNIQUE V2 (HTML/CSS/JS)
   Design direction: "Soft Industrial" — precision B2B + tactile paper cues.
   - Big typography + generous whitespace
   - Subtle paper-noise texture
   - Gold accent derived from logo
   - More motion: stagger reveals, counters, scrollytelling, page transitions, progress bar
*/

:root{
  --bg: #ffffff;
  --bg2: #f7f8fc;
  --text: #0b0f1a;
  --muted: #55607a;
  --muted2: rgba(11,15,26,.62);
  --border: rgba(15, 23, 42, 0.14);
  --shadow: 0 18px 60px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.10);
  --radius: 26px;
  --radius-sm: 16px;
  --container: 1160px;
  --ease: cubic-bezier(.2,.8,.2,1);

  --gold: #b59a2a;
  --gold2: #e0c35b;
  --ink: #0b0f1a;
  --ink2: rgba(11,15,26,.9);

  --link: rgba(11,15,26,.92);

  /* motion */
  --reveal-y: 18px;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

/* Prevent accidental horizontal scrolling */
html, body{ overflow-x: hidden; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: radial-gradient(1200px 520px at 20% 0%, rgba(181,154,42,.10), transparent 62%),
              radial-gradient(900px 520px at 85% 35%, rgba(224,195,91,.10), transparent 58%),
              linear-gradient(180deg, var(--bg), var(--bg2));
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; }

::selection{ background: rgba(181,154,42,.20); }

.container{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.skip-link{
  position: absolute;
  left: 12px; top: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: #fff;
  border-radius: 10px;
  z-index: 9999;
  transform: translateY(-180%);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus{
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.progress{
  position: fixed;
  left: 0; top: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  z-index: 200;
  opacity: .85;
  transform: scaleX(0);
}

/* CSS scroll-driven animation when supported */
@supports (animation-timeline: scroll()){
  .progress{
    animation: grow-progress auto linear;
    animation-timeline: scroll();
    transform: none;
  }
  @keyframes grow-progress{
    from{ transform: scaleX(0); }
    to{ transform: scaleX(1); }
  }
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.70);
  border-bottom: 1px solid var(--border);
}

.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.brand img{
  height: 34px;
  width: auto;
  filter: drop-shadow(0 6px 12px rgba(11,15,26,0.10));
}
.brand .brand-text{
  display: flex; flex-direction: column;
  line-height: 1.05;
}
.brand .brand-text strong{ font-size: 14px; letter-spacing: .03em; }
.brand .brand-text span{ font-size: 12px; color: var(--muted); }

.nav-links{
  display: none;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.02);
}
.nav-links a{
  font-size: 13px;
  color: rgba(11,15,26,0.88);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background .18s var(--ease);
}
.nav-links a:hover{ background: rgba(15,23,42,0.06); }
.nav-links a.is-active{
  background: rgba(181,154,42,.16);
}

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

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.65);
  color: rgba(11,15,26,0.92);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
  cursor: pointer;
  user-select: none;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,0.82); border-color: rgba(15,23,42,0.22); }
.btn:active{ transform: translateY(0); box-shadow: 0 10px 24px rgba(15,23,42,0.03); }

.btn.primary{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: rgba(11,15,26,0.92);
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(181,154,42,0.18);
}
.btn.primary:hover{ filter: brightness(1.03); }

.icon-btn{
  width: 44px; height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.65);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
  -webkit-tap-highlight-color: transparent;
  appearance: none;
}
.icon-btn:hover{ background: rgba(255,255,255,0.82); }

.hamburger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hamburger .lines{
  width: 18px;
  height: 2px;
  position: relative;
  background: rgba(11,15,26,0.90);
  border-radius: 2px;
}
.hamburger .lines::before,
.hamburger .lines::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(11,15,26,0.90);
  border-radius: 2px;
}
.hamburger .lines::before{ top: -5px; }
.hamburger .lines::after{ top: 5px; }

.lang-pill{
  width: 52px;
  font-weight: 700;
  letter-spacing: .08em;
  justify-content: center;
}

.mobile-drawer{
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.55);
  backdrop-filter: blur(7px);
  display: none;
  z-index: 140;
}
.mobile-drawer[data-open="true"]{ display: block; }
.drawer-panel{
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(430px, 92vw);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-left: 1px solid rgba(15,23,42,0.16);
  padding: 22px;
  box-shadow: var(--shadow);
}
.drawer-panel header{
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.drawer-links{
  display: grid;
  gap: 10px;
}
.drawer-links a{
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.10);
  background: rgba(15,23,42,0.03);
}
.drawer-links a:hover{ background: rgba(15,23,42,0.06); }

.hero{
  position: relative;
  overflow: clip;
  padding: 62px 0 24px;
}
.hero::before{
  content:"";
  position:absolute; inset:-200px -200px auto -200px;
  height: 520px;
  background:
    radial-gradient(420px 260px at 20% 35%, rgba(181,154,42,.26), transparent 62%),
    radial-gradient(360px 260px at 75% 40%, rgba(224,195,91,.22), transparent 60%);
  filter: blur(8px);
  animation: floatGlow 10s var(--ease) infinite alternate;
  pointer-events:none;
}
@keyframes floatGlow{
  from{ transform: translate3d(0,0,0) scale(1); opacity:.95; }
  to{ transform: translate3d(0,18px,0) scale(1.05); opacity:.80; }
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.hero h1{
  font-size: clamp(34px, 4.6vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin: 0 0 10px;
}
.hero p{
  margin: 0 0 18px;
  font-size: clamp(16px, 1.55vw, 20px);
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow{
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(11,15,26,0.62);
}

.hero .cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* Global CTA row (forms, sections) */
.cta{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.cta .btn{ white-space: nowrap; }

/* Consent row */
.consent{
  display:flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: rgba(11,15,26,0.78);
}
.consent input{
  width: 18px; height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.scroll-cue{
  margin-top: 18px;
  display:flex; align-items:center; gap:10px;
  color: rgba(11,15,26,0.66);
  font-size: 13px;
}
.scroll-cue .mouse{
  width: 22px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.22);
  position: relative;
  background: rgba(255,255,255,0.55);
}
.scroll-cue .mouse::after{
  content:"";
  position:absolute; left:50%; top:8px;
  width: 4px; height: 6px;
  margin-left:-2px;
  border-radius: 999px;
  background: rgba(11,15,26,0.70);
  animation: wheel 1.35s var(--ease) infinite;
}
@keyframes wheel{
  from{ transform: translateY(0); opacity: .9; }
  to{ transform: translateY(10px); opacity: .2; }
}

.kpis{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.kpi{
  padding: 14px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
}
.kpi strong{ display:block; font-size: 16px; letter-spacing:-0.02em; }
.kpi span{ color: var(--muted); font-size: 13px; }

.hero-media{
  position: relative;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.55);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-media img{ width: 100%; height: auto; }
.hero-media .chip{
  position:absolute;
  left: 16px; top: 16px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.70);
  backdrop-filter: blur(12px);
  font-size: 12px;
  color: rgba(11,15,26,0.78);
}

/* paper noise overlay */
.noise{
  pointer-events:none;
  position: fixed;
  inset: 0;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
  z-index: 5;
}

.section{
  padding: 62px 0;
}
.section-header{
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}
.section h2{
  margin: 0;
  font-size: clamp(22px, 2.4vw, 36px);
  letter-spacing: -0.02em;
  font-weight: 800;
}
.section .lead{
  margin: 0;
  color: var(--muted);
  max-width: 74ch;
}

/* Apple-ish emphasis without shouting */
.section .lead strong{ font-weight: 700; color: var(--text); }
.h3{ margin: 0; font-size: clamp(18px, 1.8vw, 24px); letter-spacing: -0.02em; font-weight: 800; }

.grid{ display:grid; gap: 14px; }
.grid.cols-3{ grid-template-columns: 1fr; }
.grid.cols-2{ grid-template-columns: 1fr; }

.card{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  transform: translateZ(0);
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card .pad{ padding: 18px; }
.card h3{ margin: 0 0 8px; letter-spacing: -0.02em; }
.card p{ margin: 0; color: var(--muted); }
.card .media{
  aspect-ratio: 16 / 9;
  background: rgba(15,23,42,0.04);
  overflow: hidden;
}
.card .media img{ width: 100%; height: 100%; object-fit: cover; }

.badges{ display:flex; flex-wrap: wrap; gap:8px; margin-top: 14px; }
.badge{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(15,23,42,0.02);
  color: rgba(11,15,26,0.76);
}

.split{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}
.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.62);
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.06);
}

.story{
  padding: 8px 0 62px;
}
.story-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.story-visual{
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.62);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.story-visual img{
  width: 100%;
  height: auto;
  transform: scale(1.02);
  transition: opacity .35s var(--ease), transform .45s var(--ease);
  opacity: 1;
}
.story-visual img.is-fading{ opacity: 0; transform: scale(1.06); }

.step{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.65);
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
  padding: 16px;
  margin-bottom: 12px;
  transition: transform .22s var(--ease), border-color .22s var(--ease), background .22s var(--ease);
}
.step.is-active{
  border-color: rgba(181,154,42,.45);
  background: rgba(181,154,42,.10);
  transform: translateY(-2px);
}
.step h3{ margin: 0 0 8px; letter-spacing:-0.02em; }
.step p{ margin: 0; color: var(--muted); }

.page-title{
  padding: 44px 0 10px;
}
.page-title h1{
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  letter-spacing: -0.04em;
}
.page-title p{
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 76ch;
}

.filters{
  display:flex; flex-wrap: wrap;
  gap:10px; align-items: center;
}
.pill{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.14);
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  font-size: 13px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.pill:hover{ transform: translateY(-1px); }
.pill[aria-pressed="true"]{
  background: rgba(181,154,42,.14);
  border-color: rgba(181,154,42,.40);
}

.footer{
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: rgba(11,15,26,0.78);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(12px);
}
.footer-grid{
  display:grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.footer a:hover{ text-decoration: underline; }
.footer small{ color: rgba(11,15,26,0.58); }

.toast{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(420px, calc(100% - 36px));
  border-radius: 16px;
  border: 1px solid rgba(15,23,42,0.18);
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 14px 14px;
  display: none;
  z-index: 190;
}
.toast[data-open="true"]{ display: block; }
.toast strong{ display: block; margin-bottom: 4px; }
.toast p{ margin: 0; color: var(--muted); }

.form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
.field label{ font-size: 13px; color: rgba(11,15,26,0.78); }
.field input, .field textarea, .field select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,0.18);
  background: rgba(255,255,255,0.88);
  outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color: rgba(181,154,42,0.65);
  box-shadow: 0 0 0 4px rgba(181,154,42,0.14);
}
.field textarea{ min-height: 150px; resize: vertical; }
.help{ font-size: 12px; color: rgba(11,15,26,0.60); }

/* reveal: supports stagger */
.reveal{
  opacity: 0;
  transform: translateY(var(--reveal-y));
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* View Transitions API (supported browsers) */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root){
  animation-duration: 280ms;
  animation-timing-function: var(--ease);
}
::view-transition-old(root){ animation-name: fadeOut; }
::view-transition-new(root){ animation-name: fadeIn; }
@keyframes fadeOut{ to{ opacity: 0; transform: translateY(6px); } }
@keyframes fadeIn{ from{ opacity: 0; transform: translateY(-6px);} to{ opacity: 1; transform: translateY(0);} }

@media (min-width: 900px){
  .nav-links{ display: flex; }
  .hamburger{ display: none; }
  .hero{ padding: 90px 0 30px; }
  .hero-grid{ grid-template-columns: 1.05fr .95fr; gap: 34px; }
  .kpis{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.cols-3{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split{ grid-template-columns: 1.05fr .95fr; gap: 22px; }
  .story-grid{ grid-template-columns: .95fr 1.05fr; gap: 22px; }
  .footer-grid{ grid-template-columns: 1.2fr 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior: auto !important; }
  .reveal{ transition: none; transform: none; opacity: 1; }
  .btn, .card, .pill{ transition: none; }
  .hero::before{ animation: none; }
  .scroll-cue .mouse::after{ animation: none; opacity: .8; transform: none; }
}


/* --- Dynamic lists (products + machinery) --- */
.stack{ display:flex; flex-direction:column; gap: 18px; }

.machine-grid{ gap: 0; }
.machine .pad{ padding: 20px; }
.machine .media{ aspect-ratio: 16 / 10; }

.carousel{ position: relative; }
.carousel .slides{ position: relative; width:100%; height:100%; }
.carousel .slides img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .55s var(--ease), transform .8s var(--ease);
}
.carousel .slides img.is-active{
  opacity: 1;
  transform: scale(1);
}

.car-btn{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.16);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  display:grid;
  place-items:center;
  cursor:pointer;
  user-select:none;
  box-shadow: 0 10px 30px rgba(15,23,42,0.18);
}
.car-btn.prev{ left: 10px; }
.car-btn.next{ right: 10px; }
.car-btn:hover{ transform: translateY(-50%) scale(1.05); }

.dots{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 10px;
  display:flex;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.22);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.22);
}
.dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.25);
  cursor:pointer;
}
.dot[aria-current="true"]{
  background: rgba(255,255,255,0.95);
  border-color: rgba(255,255,255,0.95);
}


/* V3 additions: gallery + timeline + badges */
.gallery{
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78%, 420px);
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar{ height: 10px; }
.gallery::-webkit-scrollbar-thumb{ background: rgba(15,23,42,0.14); border-radius: 999px; }
.gallery::-webkit-scrollbar-track{ background: transparent; }

.gallery .gitem{
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.70);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.gallery .gitem:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery .gitem .cap{
  padding: 14px 16px;
  color: rgba(11,15,26,0.74);
  font-size: 13px;
}
.gallery .gitem .cap strong{ color: rgba(11,15,26,0.92); }

.timeline{
  display: grid;
  gap: 12px;
}
.titem{
  border-radius: var(--radius);
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.66);
  padding: 16px;
  box-shadow: 0 10px 22px rgba(15,23,42,0.06);
  position: relative;
}
.titem .year{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.titem .dot{
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  box-shadow: 0 10px 18px rgba(181,154,42,.22);
}
.titem p{ margin: 10px 0 0; color: var(--muted); }

.brand-card{
  display:grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
}
.brand-card img{
  width: 74px; height: 74px;
  border-radius: 20px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.65);
  padding: 10px;
}

@media (min-width: 900px){
  .gallery{ grid-auto-columns: min(34%, 420px); }
}


/* ----------------------------
   Mobile fixes (V3.1)
   ---------------------------- */
@media (max-width: 900px){
  /* Sticky visual blocks can behave oddly on mobile; keep it simple */
  .story-visual{ position: relative; top: auto; }
}

@media (max-width: 680px){
  .container{ width: min(var(--container), calc(100% - 32px)); }
  .topbar{ padding: 10px 0; }
  .hero{ padding: 46px 0 18px; }
  .hero .kpis{ grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .panel{ padding: 14px; }
  .card .pad{ padding: 16px; }
}

@media (max-width: 520px){
  .container{ width: min(var(--container), calc(100% - 24px)); }
  .brand img{ height: 30px; }
  .brand .brand-text span{ display:none; }
  .brand .brand-text strong{ font-size: 13px; line-height: 1.15; }

  .nav-actions{ gap: 8px; }
  .nav-actions .btn.primary{ display:none; } /* CTA remains in drawer */

  .lang-pill{ width: 44px; height: 44px; padding: 0; min-width: 44px; }
  .icon-btn{ width: 44px; height: 44px; }

  .btn{ padding: 11px 14px; min-height: 44px; }
  .btn.small{ padding: 10px 12px; }

  .cta{ flex-direction: column; align-items: stretch; }
  .cta .btn{ width: 100%; justify-content:center; }

  .gallery{ gap: 12px; grid-auto-columns: min(86%, 420px); }
  .gitem img{ height: 210px; }

  .drawer-panel{ padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px){
  .hero h1{ font-size: 34px; }
  .kpi strong{ font-size: 18px; }
  .kpi span{ font-size: 12px; }
}


/* Video block */
.video-card{ padding: 0; }
.video-wrap{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(15,23,42,0.06);
}
.video-el{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.02) contrast(1.02);
}
.video-wrap::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(11,15,26,0.08), rgba(11,15,26,0.22));
  pointer-events:none;
}
.video-toggle{
  position:absolute;
  right: 12px; bottom: 12px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.video-toggle:hover{ background: rgba(255,255,255,0.20); }

@media (max-width: 520px){
  .video-wrap{ aspect-ratio: 4 / 3; }
  .video-toggle{ right: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce){
  .video-toggle{ display:none; }
}


/* Brand hero images */
.brand-hero{
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  display: block;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}
@media (max-width: 520px){
  .brand-hero{ height: 170px; }
}

/* Carousel controls (wraps existing .gallery scroller) */
.carousel{ position: relative; }
.car-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.16);
  background: rgba(255,255,255,0.78);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
}
.car-btn.prev{ left: -8px; }
.car-btn.next{ right: -8px; }
@media (max-width: 820px){
  .car-btn{ display:none; }
  .lang-pill{ width:44px; height:44px; padding:0; min-width:44px; }
}

.car-dots{
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top: 10px;
}
.car-dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(15,23,42,0.18);
  cursor:pointer;
}
.car-dot[aria-current="true"]{ background: rgba(15,23,42,0.60); }


/* Gallery */
.grid.gallery{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.g-item{
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  overflow:hidden;
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.g-item img{
  width:100%;
  height: 210px;
  object-fit: contain;
  background: #fff;
  padding: 14px;
  display:block;
  transform: scale(1.01);
  transition: transform .35s ease;
}
.g-item:hover img{ transform: scale(1.05); }

.toolbar{ display:flex; flex-wrap:wrap; gap:10px; }
.chip{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  color: inherit;
  cursor: pointer;
}
.chip.is-active{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.22);
}

.lightbox{
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(980px, 92vw);
  background: rgba(10,12,16,.92);
  color: #fff;
}
.lightbox::backdrop{ background: rgba(0,0,0,.6); }
.lightbox img{
  width:100%;
  height: auto;
  display:block;
  border-radius: 18px 18px 0 0;
}
.lightbox-caption{
  padding: 10px 14px 14px;
  opacity: .85;
}
.lightbox-close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
}

@media (max-width: 980px){
  .grid.gallery{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g-item img{ height: 180px; }
}
@media (max-width: 640px){
  .grid.gallery{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-item img{ height: 160px; }
}


/* Products landing category visuals */
.cat-hero{
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: rgba(15,23,42,0.03);
  padding: 12px 14px;
  display:block;
  border-radius: 18px 18px 0 0;
  border-bottom: 1px solid rgba(15,23,42,0.10);
}
@media (max-width: 520px){
  .cat-hero{ height: 200px; padding: 10px 12px; }
}

/* Brand wordmarks */

.brand-logo{
  height: 44px;
  width: auto;
  margin-top: 10px;
  opacity: .95;
}

/* Product cards: packshots must not be cropped */
/* Product cards: packshots must not be cropped */
.product .media{
  
  position: relative;aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
}
.product .media img{
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform: scale(1.08);
  filter: drop-shadow(0 14px 20px rgba(15,23,42,0.18));
}
.loading-card{ grid-column: 1 / -1; }


/* Google Maps embed (responsive) */
.map-embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15,23,42,0.03);
}
.map-embed iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 520px){
  .map-embed{ aspect-ratio: 4 / 3; }
}


/* Premium product cards */
.product{
  position: relative;
}
.product .media{
  aspect-ratio: 1 / 1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 14px;
  background: radial-gradient(120% 90% at 50% 20%, rgba(255,255,255,0.96), rgba(255,255,255,0.86));
  border-bottom: 1px solid rgba(15,23,42,0.10);
}
.product .media img{
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(15,23,42,0.20));
  transform: translateY(2px) scale(1.10);
}
.product .pad{
  padding: 14px 14px 16px;
}
.product .meta{
  font-size: 13px;
  opacity: .82;
  line-height: 1.25;
}
.product .actions{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.product[data-open-modal="1"]{
  cursor: pointer;
}
.product[data-open-modal="1"]:hover{
  transform: translateY(-2px);
}

/* Product modal */
.pmodal{
  border: none;
  padding: 0;
  border-radius: 18px;
  width: min(1080px, 94vw);
  background: rgba(10,12,16,0.92);
  color: #fff;
}
.pmodal::backdrop{ background: rgba(0,0,0,.6); }
.pmodal .wrap{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border-radius: 18px;
}
.pmodal .left{
  background: radial-gradient(120% 100% at 50% 10%, rgba(255,255,255,.98), rgba(255,255,255,.88));
  padding: 18px;
  color: rgba(15,23,42,1);
  min-height: 520px;
}
.pmodal .right{
  padding: 18px 18px 16px;
}
.pmodal .close{
  position:absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  cursor:pointer;
}
.pmodal .hero{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 420px;
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.82);
}
.pmodal .hero img{
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 30px rgba(15,23,42,.22));
}
.pmodal .thumbs{
  display:flex;
  gap: 10px;
  margin-top: 12px;
  overflow:auto;
  padding-bottom: 6px;
}
.pmodal .thumbs button{
  width: 72px;
  height: 72px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(255,255,255,.88);
  cursor: pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
}
.pmodal .thumbs img{
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.pmodal h2{
  font-size: 22px;
  margin: 0 0 6px;
}
.pmodal .sub{
  opacity: .85;
  margin: 0 0 14px;
}
.pmodal .table{
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14px;
}
.pmodal .table td{
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.pmodal .table td:first-child{
  opacity: .78;
  padding-right: 14px;
}
.pmodal .cta{
  display:flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
@media (max-width: 980px){
  .pmodal .wrap{ grid-template-columns: 1fr; }
  .pmodal .left{ min-height: 420px; }
  .pmodal .hero{ height: 360px; }
}
@media (max-width: 520px){
  .pmodal{ width: 96vw; }
  .pmodal .hero{ height: 320px; }
  .pmodal .thumbs button{ width: 64px; height: 64px; }
}


/* Emboss carousel: polished, compact, scroll-friendly */
.carousel[data-carousel="emboss"]{
  position: relative;
  margin-top: 18px;
}
.carousel[data-carousel="emboss"]::before,
.carousel[data-carousel="emboss"]::after{
  display:none;
}


.carousel[data-carousel="emboss"] .car-btn{
  z-index: 2;
}

.emboss-gallery .gitem{
  position: relative;
}
.emboss-gallery img{
  width: 100%;
  height: 220px;
  display: block;
  object-fit: contain;
  background: transparent;
  transition: transform .35s var(--ease);
}
.emboss-gallery .gitem:hover img{
  transform: scale(1.04);
}

/* Caption as a modern pill overlay (reduces card height) */
.emboss-gallery .cap{
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(10px);
  color: rgba(11,15,26,0.78);
  font-size: 12px;
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}

@media (max-width: 820px){
  .carousel[data-carousel="emboss"]::before,
  .carousel[data-carousel="emboss"]::after{ display:none; }
  .emboss-gallery img{ height: 180px; }
  .emboss-gallery .cap{ left: 10px; bottom: 10px; }
}


/* Emboss carousel — premium final overrides */
/* Premium + mobile first peek (1.25 card), fixes oversized caption pill */
.carousel[data-carousel="emboss"]{
  margin-top: 18px;
}
.carousel[data-carousel="emboss"] .gallery{
  grid-auto-columns: clamp(260px, 32%, 440px);
  gap: 16px;
  padding: 8px 6px 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
  background: transparent;
}
.carousel[data-carousel="emboss"] .gallery::-webkit-scrollbar{ height: 0; }

.emboss-gallery .gitem{
  border-radius: 26px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 18px 44px rgba(15,23,42,0.10);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
}

.carousel[data-carousel="emboss"] .emboss-gallery img{
  width: 100%;
  height: 230px;
  display:block;
  object-fit: contain;          /* no ugly crop */
  object-position: center;
  padding: 16px;                /* designed look */
  background: radial-gradient(120% 100% at 50% 10%, rgba(255,255,255,0.95), rgba(255,255,255,0.75));
  transition: transform .35s var(--ease);
  cursor: zoom-in;
}
.carousel[data-carousel="emboss"] .emboss-gallery .gitem:hover img{
  transform: scale(1.03);
}

/* Caption pill: compact, never huge (mobile-safe) */
.carousel[data-carousel="emboss"] .emboss-gallery .cap{
  pointer-events: none;
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(10px);
  color: rgba(11,15,26,0.78);
  font-size: 11px;
  line-height: 1;
  max-width: calc(100% - 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}

/* Premium progress */
.carousel[data-carousel="emboss"] .car-progress{
  height: 4px;
  border-radius: 999px;
  background: rgba(15,23,42,0.10);
  margin: 10px 18px 0;
  overflow: hidden;
}
.carousel[data-carousel="emboss"] .car-progress span{
  display:block;
  height:100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: rgba(180,150,55,0.95);
  border-radius: 999px;
}

.emboss-hint{
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(15,23,42,0.60);
  padding-left: 6px;
}

/* Mobile: show ~1.25 cards (premium peek) */
@media (max-width: 820px){
  .carousel[data-carousel="emboss"] .gallery{
    grid-auto-columns: clamp(250px, 84%, 340px);
    gap: 14px;
    padding: 8px 8px 12px;
  }
  .carousel[data-carousel="emboss"] .emboss-gallery img{
    height: 185px;
    padding: 14px;
  }
  .carousel[data-carousel="emboss"] .car-btn{
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 420px){
  .carousel[data-carousel="emboss"] .emboss-gallery img{ height: 170px; }
}

/* Home hero photo (stabilimento) */
.hero-media--photo{
  aspect-ratio: 16/9;
}
.hero-media--photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 520px){
  .hero-media--photo{ aspect-ratio: 4/3; }
}



/* Emboss section – subtle machine texture */
.emboss-section{
  padding-bottom: 86px; position: relative; }
.emboss-section::before{
  content:"";
  position:absolute;
  inset: -40px -20px -60px -20px;
  background-image: url("../img/emboss/goffratore-2.webp");
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(0.9);
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(65% 55% at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0));
}
.emboss-section > .container{ position: relative; z-index: 1; }
@media (max-width: 520px){
  .emboss-section::before{ opacity: 0.04; filter: blur(16px) saturate(0.95); }
}

/* Emboss extras (integrated) */
.emboss-extras{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 28px;
  background: radial-gradient(120% 120% at 20% 0%, rgba(255,255,255,0.85), rgba(15,23,42,0.02));
  box-shadow: 0 16px 44px rgba(15,23,42,0.08);
  overflow: hidden;
}
.emboss-extras__media{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.emboss-shot{
  position: relative;
  border: 0;
  padding: 0;
  text-align: left;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  box-shadow: 0 18px 44px rgba(15,23,42,0.12);
  cursor: zoom-in;
  isolation: isolate;
}
.emboss-shot img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .5s var(--ease);
}
.emboss-shot::after{
  content: "";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(15,23,42,0.00) 42%, rgba(15,23,42,0.55) 100%);
  pointer-events:none;
}
.emboss-shot:hover img{ transform: scale(1.06); }
.emboss-shot__label{
  position:absolute;
  left: 12px;
  bottom: 10px;
  z-index: 2;
  font-size: 13px;
  font-weight: 650;
  color: rgba(255,255,255,0.92);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.40);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
}
.emboss-extras__copy .h3{ margin-top: 8px; }
.emboss-extras__copy .lead{ margin-top: 10px; }
.emboss-extras .machine-notes{ margin-top: 12px; }

@media (max-width: 980px){
  .emboss-extras{ grid-template-columns: 1fr; }
  .emboss-shot img{ height: 200px; }
}
@media (max-width: 520px){
  .emboss-extras{ padding: 12px; border-radius: 24px; }
  .emboss-extras__media{ grid-template-columns: 1fr; }
  .emboss-shot img{ height: 210px; }
}

/* Lightbox (site-wide) */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.lightbox.is-open{ display:block; }
.lightbox__backdrop{
  position:absolute;
  inset:0;
  background: rgba(11,15,26,0.62);
  backdrop-filter: blur(8px);
}
.lightbox__panel{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100% - 28px));
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.lightbox__img{ width: 100%; height: auto; display:block; }
.lightbox__cap{ padding: 12px 14px; font-size: 13px; color: rgba(11,15,26,0.70); }
.lightbox__close{
  position:absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,0.12);
  background: rgba(255,255,255,0.86);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}



/* =========================================================
   v3.7.18 — Mobile rework + palette/surfaces unification
   Goal: reduce “white vs warm” contrast, improve mobile rhythm,
   and make cards/sections feel like one premium system.
   ========================================================= */

:root{
  /* Softer, warmer paper-like base to avoid harsh white blocks */
  --bg: #fbfaf7;
  --bg2: #f5f3ee;

  /* Slightly lighter borders + calmer shadows */
  --border: rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.10);
  --shadow: 0 22px 70px rgba(15, 23, 42, 0.14);
}

/* Page background: keep the brand warmth, but dial it down */
body{
  background:
    radial-gradient(1200px 520px at 20% 0%, rgba(181,154,42,.06), transparent 64%),
    radial-gradient(900px 520px at 85% 35%, rgba(224,195,91,.05), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg2));
}

/* Surfaces: tint them slightly so they blend with the page */
.topbar{
  background: rgba(255,253,248,0.74);
  border-bottom-color: rgba(15,23,42,0.08);
}
.card{
  background: rgba(255,253,248,0.82);
  border-color: rgba(15,23,42,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel{
  background: rgba(255,253,248,0.78);
  border-color: rgba(15,23,42,0.10);
}
.btn, .icon-btn{
  background: rgba(255,253,248,0.74);
}

/* Hero glow: less “giallo” on small screens */
@media (max-width: 680px){
  .hero::before{
    background:
      radial-gradient(420px 260px at 18% 35%, rgba(181,154,42,.16), transparent 64%),
      radial-gradient(360px 260px at 78% 40%, rgba(224,195,91,.12), transparent 62%);
    filter: blur(12px);
    opacity: .88;
  }
}

/* Emboss extras box: match the overall warm palette */
.emboss-extras{
  border: 1px solid rgba(15,23,42,0.08);
  background: radial-gradient(120% 120% at 20% 0%,
    rgba(255,253,248,0.92),
    rgba(181,154,42,0.05));
}

/* ---------- Mobile rhythm polish ---------- */
@media (max-width: 520px){
  /* tighter but not cramped */
  .section{ padding: 52px 0; }

  /* keep headings strong but not oversized */
  .section h2{
    font-size: clamp(22px, 7.2vw, 30px);
    line-height: 1.10;
  }
  .section .lead{
    font-size: 15px;
    line-height: 1.55;
  }

  /* hero typography + spacing */
  .hero{ padding: 56px 0 18px; }
  .hero h1{ font-size: clamp(30px, 9.5vw, 44px); }
  .hero p{ font-size: 15px; }

  /* cards: reduce “big white blocks” feeling */
  .card{ border-radius: 22px; box-shadow: 0 10px 26px rgba(15,23,42,0.10); }

  /* Emboss photos: fit better vertically */
  .emboss-shot img{ height: 170px; }
  .emboss-shot__label{ font-size: 12px; padding: 7px 9px; }
}

/* Extra-small phones */
@media (max-width: 380px){
  .section{ padding: 48px 0; }
  .hero{ padding: 52px 0 16px; }
  .hero h1{ font-size: clamp(28px, 10.2vw, 40px); }
}


/* v3.7.19 — overflow-x guard */
html, body{ overflow-x: clip; }
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}



.preloader{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 30% 10%, rgba(181,154,42,.10), transparent 60%),
    radial-gradient(700px 420px at 80% 40%, rgba(224,195,91,.08), transparent 62%),
    linear-gradient(180deg, var(--bg, #fbfaf7), var(--bg2, #f5f3ee));
  transition: opacity .35s ease, visibility .35s ease;
}

.preloader__inner{
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px 20px;
}

.preloader__logo{
  width: 164px;
  height: auto;
  filter: drop-shadow(0 12px 34px rgba(15,23,42,.14));
  transform: translateY(2px);
}

.preloader__bar{
  width: min(320px, 72vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

.preloader__bar span{
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(181,154,42,.75), rgba(224,195,91,.95));
  transform: translateX(-110%);
  animation: preloaderSlide 1.05s ease-in-out infinite;
}

@keyframes preloaderSlide{
  0%{ transform: translateX(-110%); opacity: .7; }
  50%{ opacity: 1; }
  100%{ transform: translateX(220%); opacity: .7; }
}

.preloader.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce){
  .preloader__bar span{ animation: none; transform: none; width: 100%; opacity: .9; }
  .preloader{ transition: none; }
}


/* Preloader — premium (v3.7.26) */
.preloader{
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background:
    radial-gradient(900px 420px at 30% 10%, rgba(181,154,42,.10), transparent 60%),
    radial-gradient(700px 420px at 80% 40%, rgba(224,195,91,.08), transparent 62%),
    linear-gradient(180deg, var(--bg, #fbfaf7), var(--bg2, #f5f3ee));
  transition: opacity .45s ease, visibility .45s ease, transform .45s ease, filter .45s ease;
  will-change: opacity, transform, filter;
}

.preloader__inner{
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 22px 20px;
  transform: translateY(2px) scale(.985);
  opacity: 0;
  animation: preIn .75s cubic-bezier(.16,1,.3,1) .05s forwards;
}

.preloader__logo{
  width: 168px;
  height: auto;
  filter: drop-shadow(0 18px 46px rgba(15,23,42,.16));
  transform: translateY(0);
  animation:
    logoFloat 5.6s ease-in-out .9s infinite;
}

.preloader__bar{
  width: min(320px, 72vw);
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.08);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.80),
    0 10px 24px rgba(15,23,42,.08);
}

.preloader__bar span{
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg,
    rgba(181,154,42,0.05) 0%,
    rgba(181,154,42,0.65) 22%,
    rgba(224,195,91,0.95) 50%,
    rgba(181,154,42,0.65) 78%,
    rgba(181,154,42,0.05) 100%);
  background-size: 200% 100%;
  animation: preShimmer 1.25s linear infinite;
  opacity: .95;
}

@keyframes preIn{
  from{ opacity: 0; transform: translateY(6px) scale(.98); filter: blur(4px); }
  to  { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes preShimmer{
  from{ background-position: 0% 50%; }
  to  { background-position: 200% 50%; }
}

@keyframes logoFloat{
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-4px); }
}

.preloader.is-exit{
  opacity: 0;
  visibility: hidden;
  transform: scale(.985);
  filter: blur(4px);
  pointer-events: none;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .preloader__inner{ animation: none; opacity: 1; transform: none; }
  .preloader__bar span{ animation: none; background-position: 50% 50%; }
  .preloader__logo{ animation: none; }
  .preloader{ transition: none; }
}


/* Footer credit */
.footer-dev{
  display: inline-block;
  margin-top: 8px;
  color: rgba(11,15,26,0.62);
  font-size: 12px;
  letter-spacing: 0.01em;
}


/* Food-contact mark (asciugatutto) */
.product .media{ position: relative; overflow: hidden; }

.food-mark{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  padding: 0;
  z-index: 6;
  cursor: help;
}

.food-mark img{
  width: 26px;
  height: 26px;
  opacity: .92;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.18));
}

.food-mark::after{
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  transform: translateY(-50%) translateX(8px);
  opacity: 0;
  pointer-events: none;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(11,15,26,.76);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0,0,0,.24);
  backdrop-filter: blur(8px);
  transition: opacity .18s ease, transform .18s ease;
}

.food-mark:hover::after,
.food-mark:focus-visible::after{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 520px){
  .food-mark{ top: 10px; right: 10px; width: 26px; height: 26px; }
  .food-mark img{ width: 24px; height: 24px; }
}

@media (hover:none){
  .food-mark::after{ display: none; }
}



/* Contact form anti-spam honeypot */
.hp{
  position:absolute;
  left:-9999px;
  width:1px;
  height:1px;
  overflow:hidden;
}


/* Contact form loading state */
.btn.is-loading{
  opacity:.75;
  cursor:progress;
}
.btn.is-loading::after{
  content:'';
  width:16px;
  height:16px;
  margin-left:10px;
  border-radius:999px;
  border:2px solid currentColor;
  border-right-color: transparent;
  display:inline-block;
  vertical-align:-3px;
  animation: spin .7s linear infinite;
}
@keyframes spin{to{transform:rotate(360deg);}}
