/* ═══════════════════════════════════════════════════
   COREX S.p.A. — style.css
   Palette: #1A1A1A · #D42B2B · #FFFFFF
   Fonts: DM Sans + DM Serif Display
═══════════════════════════════════════════════════ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ RESET & ROOT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #D42B2B;
  --red-dark:  #b02020;
  --black:     #1A1A1A;
  --white:     #FFFFFF;
  --off-white: #F8F8F8;
  --gray-lt:   #EFEFEF;
  --gray-mid:  #999999;
  --gray-dark: #444444;

  --font-body:    'DM Sans', sans-serif;
  --font-display: 'DM Serif Display', serif;

  --nav-h:  72px;
  --ease:   cubic-bezier(.4,0,.2,1);
  --radius: 3px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PRELOADER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.8rem;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Overlay bianco sulla hero: copre il nero finché le slide non sono pronte */
.hero-cover {
  position: absolute; inset: 0; z-index: 10;
  background: var(--white);
  opacity: 1;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.hero-cover.ready { opacity: 0; }

.preloader-logo {
  width: clamp(140px,22vw,200px); height: auto;
  animation: preloaderPulse 1.6s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0  0px rgba(212,43,43,0)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(212,43,43,.5)); }
}

.preloader-bar-wrap {
  width: clamp(180px,30vw,280px); height: 2px;
  background: var(--gray-lt); border-radius: 2px; overflow: hidden;
}
.preloader-bar {
  height: 100%; width: 0%; background: var(--red);
  border-radius: 2px; transition: width .12s linear;
}
.preloader-pct {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  color: var(--gray-mid); margin-top: .6rem; display: block;
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ NAVBAR ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(200,200,200,.18);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.18);
  transition: background .4s var(--ease), box-shadow .4s var(--ease),
              border-color .4s var(--ease), backdrop-filter .4s;
}
.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,.07);
  border-bottom-color: transparent;
}

.nav-inner {
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.nav-logo { display: flex; align-items: center; flex-shrink: 0; height: 36px; }
.nav-logo img { height: 100%; width: auto; transition: opacity .3s var(--ease); }
.nav-logo img:hover { opacity: .75; }

.nav-menu {
  display: flex; align-items: center; gap: .1rem;
  flex: 1; justify-content: center;
}

.nav-link {
  padding: .5rem .85rem;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--black);
  border-radius: var(--radius);
  transition: color .25s var(--ease);
  white-space: nowrap; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 1px; left: .85rem; right: .85rem;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease); border-radius: 1px;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--red); }

.nav-right { display: flex; align-items: center; gap: .8rem; flex-shrink: 0; }

.nav-lang { display: flex; align-items: center; gap: .1rem; }
.lang-btn {
  background: none; border: none;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; color: rgba(30,30,30,.55);
  cursor: pointer; padding: .25rem .4rem; border-radius: 2px;
  transition: color .2s; text-decoration: none;
}
.navbar.scrolled .lang-btn { color: var(--gray-mid); }
.lang-btn.active, .lang-btn:hover { color: var(--red) !important; }

.nav-cta {
  padding: .52rem 1.5rem; font-size: .78rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(135deg, #e03030, var(--red));
  color: var(--white); border-radius: 50px; border: none;
  box-shadow: 0 3px 14px rgba(212,43,43,.35);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap; cursor: pointer; display: inline-block;
}
.nav-cta:hover { box-shadow: 0 6px 22px rgba(212,43,43,.50); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem;
  width: 38px; height: 38px; flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--black); border-radius: 1px;
  transition: transform .3s var(--ease), opacity .3s;
}
.navbar.scrolled .hamburger span { background: var(--black); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   DROPDOWN PRODOTTI (desktop)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-item-dropdown { position: relative; }
.nav-link-dropdown { display: flex; align-items: center; }

.nav-submenu {
  position: fixed;
  top: var(--nav-h);
  left: auto;        /* ignora left, usiamo JS per allinearlo */
  transform: none;
  width: 220px;
  background: rgba(235,235,235,.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-radius: 0 0 10px 10px;
  border-top: 2px solid var(--red);
  border-bottom: 1px solid rgba(255,255,255,.4);
  border-left: 1px solid rgba(255,255,255,.3);
  border-right: 1px solid rgba(255,255,255,.3);
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  overflow: hidden;
  opacity: 0; visibility: hidden;
  padding-top: 0; margin-top: 0;
  transition: opacity .22s var(--ease), visibility .22s;
  z-index: 999;
  pointer-events: none;
}

/* Rimosso il ::after bridge — non serve più con position:fixed */

.nav-item-dropdown:hover .nav-submenu,
.nav-item-dropdown.submenu-open .nav-submenu {
  opacity: 1; visibility: visible;
  pointer-events: auto;
}

.nav-submenu-item {
  display: flex; align-items: center; gap: .7rem;
  padding: .72rem 1.2rem;
  font-size: .82rem; font-weight: 500;
  color: var(--black);
  transition: background .15s, color .15s, padding-left .18s;
  white-space: nowrap;
}
.nav-submenu-item:hover {
  background: rgba(255,255,255,.55);
  color: var(--red);
  padding-left: 1.5rem;
}
.nav-submenu-item + .nav-submenu-item {
  border-top: 1px solid rgba(0,0,0,.06);
}

.nav-submenu-footer {
  border-top: 1px solid rgba(0,0,0,.08);
  padding: .65rem 1.2rem;
  background: rgba(255,255,255,.25);
}
.nav-submenu-footer a {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--red); transition: letter-spacing .2s;
}
.nav-submenu-footer a:hover { letter-spacing: .11em; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   MOBILE DRAWER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.97);
  padding: calc(var(--nav-h) + 1.5rem) 1.5rem 2rem;
  z-index: 997;
  flex-direction: column; gap: 0;
  overflow-y: auto;
  box-shadow: none;
  border: none;
}

.navbar.drawer-open {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

@supports not (backdrop-filter: blur(1px)) {
  .nav-drawer { background: rgba(240,240,240,0.97); }
}

.nav-drawer.open { display: flex; }

/* Su mobile il submenu NON è fixed — è gestito dall'accordion nel drawer */
@media (max-width: 768px) {
  .nav-submenu { display: none !important; }
}

.drawer-link {
  display: block;
  padding: .9rem 0; font-size: .9rem; font-weight: 500;
  color: var(--gray-dark);
  border-bottom: 1px solid rgba(0,0,0,.08);
  transition: color .2s;
}
.drawer-link:hover { color: var(--red); }

.drawer-accordion { border-bottom: 1px solid rgba(0,0,0,.08); }

.drawer-accordion-toggle {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 0; font-size: .9rem; font-weight: 500;
  font-family: var(--font-body);
  color: var(--gray-dark); cursor: pointer;
  transition: color .2s;
}
.drawer-accordion-toggle:hover { color: var(--red); }

.drawer-chevron {
  transition: transform .28s var(--ease); flex-shrink: 0;
  color: var(--gray-mid);
}
.drawer-accordion.open .drawer-chevron { transform: rotate(180deg); }

.drawer-accordion-body {
  max-height: 0; overflow: hidden;
  transition: max-height .32s var(--ease), padding .32s var(--ease);
  padding: 0;
}
.drawer-accordion.open .drawer-accordion-body {
  max-height: 500px;
  padding: .3rem 0 .8rem;
}

.drawer-accordion-body a {
  display: flex; align-items: center; gap: .65rem;
  padding: .6rem .8rem; margin: .1rem 0;
  font-size: .86rem; font-weight: 500;
  color: var(--gray-dark); border-radius: 6px;
  transition: background .15s, color .15s;
}
.drawer-accordion-body a:hover {
  background: rgba(0,0,0,.04);
  color: var(--black);
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ DOT LINEE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.nsm-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.nsm-pasta    { background: #d2a028; }
.nsm-red      { background: #c42626; }
.nsm-green    { background: #3c823c; }
.nsm-oil      { background: #b48214; }
.nsm-sauce    { background: #d25a1e; }
.nsm-pesto    { background: #2d7837; }
.nsm-rice     { background: #b99b5a; }
.nsm-starters { background: #64468c; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ HERO ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.hero {
  position: relative; width: 100%; height: 100svh; min-height: 600px;
  overflow: hidden; background: var(--black);
}

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s var(--ease);
  animation: kenburns 14s ease-in-out infinite alternate;
  will-change: transform, opacity;
}
.slide.active { opacity: 1; }
.slide:nth-child(1) { animation-delay:  0s; }
.slide:nth-child(2) { animation-delay: -5s; }
.slide:nth-child(3) { animation-delay: -10s; }

@keyframes kenburns {
  0%   { transform: scale(1)    translate(0,0); }
  100% { transform: scale(1.07) translate(-1.5%,-1%); }
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.18) 0%, transparent 18%),
    radial-gradient(ellipse 70% 60% at 50% 50%,
      rgba(255,255,255,.55) 0%,
      rgba(255,255,255,.28) 40%,
      transparent 72%);
  z-index: 1;
}

.hero-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2rem; padding-top: var(--nav-h);
}

.hero-logo-wrap { margin-bottom: 2.5rem; }
.hero-logo {
  width: clamp(180px,26vw,300px); height: auto;
  animation: logoPulse 3.2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%,100% { transform: scale(1);    filter: drop-shadow(0 0  0px rgba(212,43,43,0)); }
  50%      { transform: scale(1.07); filter: drop-shadow(0 0 32px rgba(212,43,43,.6)); }
}

.hero-tag {
  font-size: clamp(.68rem,1.4vw,.8rem); font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: #2a2a2a;
  margin-bottom: .9rem; display: flex; align-items: center; gap: .8rem;
  text-shadow: 0 1px 6px rgba(255,255,255,.9), 0 2px 14px rgba(255,255,255,.6);
}
.hero-tag::before, .hero-tag::after {
  content: ''; flex-shrink: 0; width: 28px; height: 1px;
  background: #2a2a2a; opacity: .5;
}

.hero-headline {
  font-family: var(--font-body);
  font-size: clamp(2rem,5.5vw,4.2rem); font-weight: 700;
  color: var(--black); line-height: 1.1; margin-bottom: 1.4rem;
  max-width: 820px; letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.9), 0 2px 12px rgba(255,255,255,.7), 0 0 20px rgba(255,255,255,.5);
}
.hero-headline em { font-style: normal; font-weight: 300; color: var(--black); }

.hero-sub {
  font-size: clamp(.88rem,1.5vw,1rem); color: #2a2a2a; font-weight: 400;
  max-width: 460px; line-height: 1.75; margin-bottom: 2.5rem;
  text-shadow: 0 1px 6px rgba(255,255,255,.85), 0 2px 16px rgba(255,255,255,.6);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

.hero-dots {
  position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: .55rem;
}
.dot {
  width: 26px; height: 3px; background: rgba(200,200,200,.45);
  border-radius: 2px; cursor: pointer;
  transition: background .3s, width .35s var(--ease);
}
.dot.active { background: rgba(220,220,220,.9); width: 40px; }

.scroll-cue {
  position: absolute; bottom: 2.2rem; right: 2.5rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.45); font-size: .65rem;
  letter-spacing: .15em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px; background: rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,.75); animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim { 0% { top: -100%; } 100% { top: 100%; } }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ STRIP NUMERI ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.intro-strip {
  background: var(--white);
  border-top: 1px solid var(--gray-lt);
  border-bottom: 1px solid var(--gray-lt);
  padding: 3.5rem 0;
}
.intro-strip-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-around;
  gap: 1rem; flex-wrap: nowrap;
}

.strip-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .55rem; flex: 1; padding: .5rem 1rem;
  min-width: 0;
}

.strip-num {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700; color: var(--red);
  line-height: 1; letter-spacing: -.02em; white-space: nowrap;
}

.strip-label { font-size: .78rem; color: var(--gray-mid); line-height: 1.5; text-align: center; }
.strip-label strong { display: block; font-size: .88rem; font-weight: 600; color: var(--black); margin-bottom: .15rem; }

.strip-divider { width: 1px; height: 52px; background: var(--gray-lt); flex-shrink: 0; align-self: center; }

@media (max-width: 900px) {
  .intro-strip { padding: 2.5rem 0; }
  .intro-strip-inner { flex-wrap: wrap; justify-content: center; gap: 0; }
  .strip-divider { display: none; }
  .strip-item { width: 25%; padding: 1.4rem .8rem; }
}

@media (max-width: 540px) {
  .intro-strip { padding: 1.8rem 0; }
  .intro-strip-inner {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; padding: 0 1rem; width: 100%;
  }
  .strip-divider { display: none; }
  .strip-item { padding: 1.4rem .75rem; border: none; width: 100%; }
  .strip-num          { font-size: 1.75rem; }
  .strip-label        { font-size: .72rem; }
  .strip-label strong { font-size: .8rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SECTION PRODUCTS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.products-section {
  position: relative;
  padding: 7rem 0 6rem;
  background-image: url('../img/corex3.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed; background-repeat: no-repeat;
}
.products-section::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(6px) saturate(1.2);
  -webkit-backdrop-filter: blur(6px) saturate(1.2);
  z-index: 0;
}

.products-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}

.products-header { text-align: center; margin-bottom: 4rem; }

.products-eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: .8rem;
}
.products-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem,3.5vw,2.8rem); font-weight: 700;
  color: var(--black); line-height: 1.15; letter-spacing: -.02em; margin-bottom: .8rem;
}
.products-title em { font-style: normal; font-weight: 300; color: var(--gray-dark); }
.products-sub {
  font-size: .92rem; color: var(--gray-mid);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
}

.products-row { display: none; }

.prod-circle {
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 0;
}

.prod-circle-img {
  position: relative; width: 100%; aspect-ratio: 1/1;
  border-radius: 50%; overflow: hidden; background: var(--white);
  box-shadow:
    0 0 0 6px #ffffff, 0 0 0 10px #e8e8e8, 0 0 0 13px #f5f5f5,
    0 8px 32px rgba(0,0,0,.14),
    inset 0 2px 6px rgba(255,255,255,.9), inset 0 -2px 6px rgba(0,0,0,.06);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.prod-circle:hover .prod-circle-img {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 6px #ffffff, 0 0 0 10px #e0e0e0, 0 0 0 13px #f0f0f0,
    0 16px 48px rgba(0,0,0,.18),
    inset 0 2px 6px rgba(255,255,255,.9), inset 0 -2px 6px rgba(0,0,0,.06);
}

.prod-circle-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; border-radius: 50%;
  transition: transform .5s var(--ease);
}
.prod-circle:hover .prod-circle-img img { transform: scale(1.08); }

.prod-circle-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(212,43,43,.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .35s var(--ease);
}
.prod-circle:hover .prod-circle-overlay { opacity: 1; }

.prod-circle[href="pasta-line.php"]    .prod-circle-overlay { background: rgba(210,160,40,.88); }
.prod-circle[href="red-line.php"]      .prod-circle-overlay { background: rgba(196,38,38,.88);  }
.prod-circle[href="green-line.php"]    .prod-circle-overlay { background: rgba(60,130,60,.88);  }
.prod-circle[href="oil-vinegar.php"]   .prod-circle-overlay { background: rgba(180,130,20,.88); }
.prod-circle[href="pasta-sauces.php"]  .prod-circle-overlay { background: rgba(210,90,30,.88);  }
.prod-circle[href="pesto-sauces.php"]  .prod-circle-overlay { background: rgba(45,120,55,.88);  }
.prod-circle[href="rice-risottos.php"] .prod-circle-overlay { background: rgba(185,155,90,.88); }
.prod-circle[href="starters.php"]      .prod-circle-overlay { background: rgba(100,70,140,.88); }

.prod-circle-label {
  font-size: clamp(.72rem,1.1vw,.88rem); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--white); text-align: center; padding: 0 .8rem;
  line-height: 1.3; transform: scale(.85);
  transition: transform .35s var(--ease);
}
.prod-circle:hover .prod-circle-label { transform: scale(1); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRODUCTS CTA
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.products-cta-wrap {
  display: flex; justify-content: center;
  margin-top: 3.5rem;
}

.products-cta-link {
  position: relative;
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--black); padding: .3rem 0;
  transition: color .28s var(--ease);
}
.products-cta-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease); border-radius: 1px;
}
.products-cta-link:hover { color: var(--red); }
.products-cta-link:hover::after { transform: scaleX(1); }

.products-cta-link .cta-arrow {
  display: inline-block;
  transition: transform .28s var(--ease);
  color: var(--red); font-style: normal;
}
.products-cta-link:hover .cta-arrow { transform: translateX(5px); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRODUCTS CAROSELLO
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.products-carousel {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 0;
}

.products-carousel-track {
  display: flex;
  gap: 2rem;
  padding: 1.4rem calc(50vw - 11vw + 1rem) 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  scroll-padding-inline: calc(50vw - 11vw + 1rem);
}
.products-carousel-track:active { cursor: grabbing; }
.products-carousel-track::-webkit-scrollbar { display: none; }

.products-carousel-track .prod-circle {
  flex: 0 0 calc(22vw - 1rem);
  max-width: 280px;
  min-width: 160px;
  scroll-snap-align: center;
}

.products-carousel-track .prod-circle-overlay { opacity: 0; }
.products-carousel-track .prod-circle:hover .prod-circle-overlay { opacity: 1; }
.products-carousel-track .prod-circle-label { transform: scale(.85); }
.products-carousel-track .prod-circle:hover .prod-circle-label { transform: scale(1); }

.carousel-btn {
  display: flex;
  position: absolute;
  top: 50%; transform: translateY(-60%);
  z-index: 10;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 4px 18px rgba(0,0,0,.14);
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), box-shadow .2s var(--ease),
              transform .2s var(--ease), opacity .2s;
  opacity: 1;
}
.carousel-btn:hover {
  background: var(--white);
  box-shadow: 0 8px 28px rgba(0,0,0,.2);
  transform: translateY(-60%) scale(1.08);
}
.carousel-btn:active { transform: translateY(-60%) scale(.96); }
.carousel-btn.hidden { opacity: 0; pointer-events: none; }
.carousel-btn svg { display: block; flex-shrink: 0; }
.carousel-btn-prev { left: 1.5vw; }
.carousel-btn-next { right: 1.5vw; }

.carousel-dots {
  display: flex; justify-content: center; gap: .5rem;
  margin-top: 1.4rem; padding: 0 4vw;
}
.carousel-dot {
  width: 22px; height: 3px; border-radius: 2px;
  background: rgba(0,0,0,.15);
  transition: background .3s var(--ease), width .3s var(--ease);
  cursor: pointer;
}
.carousel-dot.active { background: var(--red); width: 36px; }

@media (max-width: 1024px) {
  .products-carousel-track .prod-circle { flex: 0 0 calc(30vw - 1rem); }
  .carousel-btn { width: 42px; height: 42px; }
}

/* Sostituire il blocco @media (max-width: 768px) della products-carousel-track */

@media (max-width: 768px) {
  .products-section { padding: 4rem 0 3.5rem; background-attachment: scroll; }
  .carousel-btn { display: none; }
  .products-carousel-track {
    gap: 1.8rem;
    padding: 1rem 6vw 1.4rem;
  }
  .products-carousel-track .prod-circle {
    flex: 0 0 72vw;
    max-width: 260px;
    scroll-snap-align: center;
  }
  .products-cta-wrap { margin-top: 2rem; }
}
@media (max-width: 480px) {
  .products-section { padding: 3rem 0 2.5rem; }
  .products-inner   { padding: 0 1.2rem; }
  .products-carousel-track {
    gap: 1.4rem;
    padding: 1rem 5vw 1.4rem;
  }
  .products-carousel-track .prod-circle { flex: 0 0 76vw; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   CERT LOGOS STRIP
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cert-logos-strip {
  background: rgba(235,235,235,.65);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(200,200,200,.35);
  padding: 2.8rem 0;
}
.cert-logos-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.6rem;
}

.cert-label {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gray-mid);
  display: flex; align-items: center; gap: 1rem;
}
.cert-label::before, .cert-label::after {
  content: ''; flex-shrink: 0; width: 40px; height: 1px;
  background: var(--gray-mid); opacity: .45;
}

.cert-logos-row {
  display: flex; align-items: center; justify-content: space-around;
  gap: 1.5rem; flex-wrap: wrap; width: 100%;
}
.cert-logos-row img {
  height: 52px; width: auto; object-fit: contain;
  filter: grayscale(1) opacity(.6);
  mix-blend-mode: multiply;
  transition: filter .3s var(--ease), transform .3s var(--ease);
  flex-shrink: 0;
}
.cert-logos-row img:hover {
  filter: grayscale(0) opacity(1);
  transform: scale(1.07);
}

@media (max-width: 768px) {
  .cert-logos-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem 1rem;
    justify-items: center; align-items: center;
    padding: 0 .5rem;
  }
  .cert-logos-row img {
    height: auto; width: 100%;
    max-width: 90px; max-height: 56px; object-fit: contain;
  }
}

@media (max-width: 400px) {
  .cert-logos-row { gap: .8rem .6rem; padding: 0; }
  .cert-logos-row img { max-width: 72px; max-height: 44px; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PROCESS SECTION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.process-section {
  position: relative;
  padding: 7rem 0 6rem;
  background-image: url('../img/corex6.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.process-overlay {
  position: absolute; inset: 0;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(2px) saturate(1.1);
  -webkit-backdrop-filter: blur(2px) saturate(1.1);
  z-index: 0;
}

.process-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
}

.process-header {
  text-align: center;
  margin-bottom: 4rem;
}

.process-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--black);
  line-height: 1.15; letter-spacing: -.02em;
  margin-bottom: .8rem;
}
.process-title em {
  font-style: normal; font-weight: 300; color: var(--gray-dark);
  animation: titlePulse 3s ease-in-out infinite;
  display: inline-block;
}
@keyframes titlePulse {
  0%, 100% { opacity: 1; text-shadow: none; }
  50%       { opacity: .75; text-shadow: 0 0 18px rgba(26,26,26,.25); }
}

.process-sub {
  font-size: .92rem; color: var(--black);
  max-width: 520px; margin: 0 auto; line-height: 1.7;
  text-shadow: 0 1px 6px rgba(255,255,255,.8), 0 2px 12px rgba(255,255,255,.6);
}

.process-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.process-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  flex: 0 0 calc(20% - 1rem);
  max-width: 180px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.process-step.visible { opacity: 1; transform: translateY(0); }
.process-step[data-step="1"] { transition-delay: .0s; }
.process-step[data-step="2"] { transition-delay: .15s; }
.process-step[data-step="3"] { transition-delay: .30s; }
.process-step[data-step="4"] { transition-delay: .45s; }
.process-step[data-step="5"] { transition-delay: .60s; }

.process-icon-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 20px rgba(0,0,0,.1), 0 0 0 6px rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.process-step:hover .process-icon-wrap {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(212,43,43,.18), 0 0 0 6px rgba(255,255,255,.7);
}
.process-icon-wrap svg { width: 44px; height: 44px; }

.process-step-title {
  font-size: .92rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--black); margin-bottom: .55rem;
  text-shadow: 0 1px 4px rgba(255,255,255,.7);
}

.process-step-body {
  font-size: .78rem; color: var(--black);
  line-height: 1.6; max-width: 150px;
  text-shadow: 0 1px 4px rgba(255,255,255,.7);
}

.process-arrow {
  flex: 0 0 80px;
  display: flex; align-items: center; justify-content: center;
  margin-top: -2.5rem;
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.process-arrow.visible { opacity: 1; }

.arrow-svg { width: 80px; height: 24px; overflow: visible; }

.arrow-path {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  transition: stroke-dashoffset .8s var(--ease);
}
.arrow-head {
  opacity: 0;
  transition: opacity .3s var(--ease) .7s;
}
.process-arrow.visible .arrow-path { stroke-dashoffset: 0; }
.process-arrow.visible .arrow-head { opacity: 1; }

.process-dots {
  display: none;
  justify-content: center; gap: .5rem;
  margin-top: 1.6rem;
}
.process-dot {
  width: 22px; height: 3px; border-radius: 2px;
  background: rgba(0,0,0,.15);
  transition: background .3s var(--ease), width .3s var(--ease);
  cursor: pointer;
}
.process-dot.active { background: var(--red); width: 36px; }

@media (max-width: 768px) {
  .process-section { padding: 4rem 0 3.5rem; background-attachment: scroll; }
  .process-header  { margin-bottom: 2.5rem; }
  .process-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.5rem;
    padding: 1rem 8vw 1.4rem;
    justify-content: flex-start;
  }
  .process-track::-webkit-scrollbar { display: none; }
  .process-arrow { display: none; }
  .process-step {
    flex: 0 0 72vw;
    max-width: 280px;
    scroll-snap-align: center;
    opacity: 1; transform: none;
    background: rgba(255,255,255,.88);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
  }
  .process-step-title,
  .process-step-body { text-shadow: none; }
  .process-dots { display: flex; }
}

@media (max-width: 480px) {
  .process-step  { flex: 0 0 80vw; }
  .process-track { padding: 1rem 5vw 1.4rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ MISSION SECTION ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.mission-section {
  position: relative; padding: 7rem 0;
  background-image: url('../img/corex4.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed; overflow: hidden;
}
.mission-overlay { position: absolute; inset: 0; background: rgba(255,255,255,.78); z-index: 0; }

.mission-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: 3fr 2fr;
  gap: 5rem; align-items: center;
}

.mission-text { display: flex; flex-direction: column; gap: 0; }

.mission-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700;
  color: var(--black); line-height: 1.12;
  letter-spacing: -.025em; margin-top: .6rem; margin-bottom: 0;
}
.mission-title em { font-style: normal; font-weight: 300; color: var(--red); }

.mission-divider { width: 48px; height: 2px; background: var(--red); border-radius: 2px; margin: 1.8rem 0; }

.mission-body {
  font-size: clamp(.9rem, 1.4vw, 1.02rem); color: var(--gray-dark); line-height: 1.8; margin-bottom: 1.1rem;
}
.mission-body strong { color: var(--black); font-weight: 600; }
.mission-body:last-of-type { margin-bottom: 0; }

.mission-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

.mission-visual { display: flex; align-items: center; justify-content: center; }

.mission-plate-wrap {
  position: relative;
  width: clamp(240px, 28vw, 400px); aspect-ratio: 1/1; border-radius: 50%;
  box-shadow:
    0 0 0 8px #ffffff, 0 0 0 14px #e8e8e8, 0 0 0 18px #f5f5f5,
    0 20px 60px rgba(0,0,0,.18),
    inset 0 2px 8px rgba(255,255,255,.9), inset 0 -2px 8px rgba(0,0,0,.06);
  overflow: hidden; animation: plateFloat 5s ease-in-out infinite;
}
.mission-plate { width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 50%; display: block; }

@keyframes plateFloat {
  0%, 100% { transform: translateY(0)    rotate(0deg); }
  50%       { transform: translateY(-10px) rotate(.4deg); }
}

@media (max-width: 900px) {
  .mission-section { padding: 5rem 0; background-attachment: scroll; }
  .mission-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
  .mission-divider { margin: 1.5rem auto; }
  .mission-actions { justify-content: center; }
  .mission-visual { order: -1; }
  .mission-plate-wrap { width: clamp(180px, 48vw, 280px); }
}
@media (max-width: 480px) {
  .mission-section { padding: 3.5rem 0; }
  .mission-inner { padding: 0 1.2rem; gap: 2rem; }
  .mission-actions { flex-direction: column; align-items: center; }
  .mission-plate-wrap { width: clamp(160px, 60vw, 220px); }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PRIVATE LABEL CTA ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.private-label-strip {
  background: var(--off-white); border-bottom: 1px solid var(--gray-lt);
  padding: 5rem 2rem; text-align: center;
}
.private-label-inner {
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.2rem;
}
.pl-question { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; color: var(--black); letter-spacing: -.02em; line-height: 1.2; }
.pl-sub { font-size: clamp(.88rem, 1.4vw, 1rem); color: var(--gray-mid); line-height: 1.7; max-width: 520px; }

@media (max-width: 600px) {
  .private-label-strip { padding: 3.5rem 1.5rem; }
  .pl-question { font-size: 1.5rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BUTTONS ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 2.4rem; font-family: var(--font-body);
  font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  border: 1.5px solid transparent; border-radius: 50px;
  cursor: pointer; text-decoration: none; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn::before {
  content: ''; position: absolute; top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.22) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left .55s var(--ease); pointer-events: none;
}
.btn:hover::before { left: 135%; }
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-red {
  background: linear-gradient(135deg, #e03030 0%, var(--red) 50%, #b02020 100%);
  color: var(--white); border-color: transparent;
  box-shadow: 0 4px 16px rgba(212,43,43,.35), 0 1px 0 rgba(255,255,255,.12) inset;
}
.btn-red:hover { box-shadow: 0 8px 28px rgba(212,43,43,.50), 0 1px 0 rgba(255,255,255,.12) inset; }

.btn-ghost {
  background: rgba(255,255,255,.82); color: var(--gray-dark);
  border-color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.5) inset;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.96); color: var(--black); border-color: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,.22), 0 1px 0 rgba(255,255,255,.5) inset;
}

.btn-outline {
  background: transparent; color: var(--red); border-color: var(--red);
  box-shadow: 0 2px 10px rgba(212,43,43,.1);
}
.btn-outline:hover {
  background: linear-gradient(135deg, #e03030, var(--red)); color: var(--white);
  box-shadow: 0 6px 20px rgba(212,43,43,.35);
}

.btn-dark {
  background: linear-gradient(135deg, #2e2e2e, var(--black)); color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.3), 0 1px 0 rgba(255,255,255,.08) inset;
}
.btn-dark:hover { box-shadow: 0 8px 28px rgba(0,0,0,.4), 0 1px 0 rgba(255,255,255,.08) inset; }

.btn-yellow {
  background: linear-gradient(135deg, #f0c020 0%, #d4a800 50%, #b08800 100%);
  color: var(--black); border-color: transparent;
  box-shadow: 0 4px 16px rgba(212,168,0,.35), 0 1px 0 rgba(255,255,255,.2) inset;
}
.btn-yellow:hover { box-shadow: 0 8px 28px rgba(212,168,0,.55), 0 1px 0 rgba(255,255,255,.2) inset; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FOOTER ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer { background: var(--black); color: rgba(255,255,255,.5); padding: 5rem 0 2.5rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem; margin-bottom: 4rem;
}
.footer-brand img { height: 28px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .85rem; line-height: 1.75; max-width: 270px; }

.footer-social { display: flex; gap: .6rem; margin-top: 1.5rem; }
.social-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600; color: rgba(255,255,255,.45);
  transition: border-color .2s, color .2s; text-decoration: none;
}
.social-btn:hover { border-color: var(--red); color: var(--red); }

.footer-col h5 {
  font-size: .7rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--white); margin-bottom: 1.4rem;
}
.footer-col li + li { margin-top: .55rem; }
.footer-col a { font-size: .84rem; color: rgba(255,255,255,.45); transition: color .2s; }
.footer-col a:hover { color: var(--red); }

.footer-contact p {
  font-size: .84rem; line-height: 1.65;
  display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .65rem;
}
.footer-contact .ico { flex-shrink: 0; opacity: .6; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; font-size: .78rem;
}
.footer-bottom a { color: rgba(255,255,255,.35); transition: color .2s; }
.footer-bottom a:hover { color: var(--red); }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ PAGE HERO (pagine interne) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  background-image: url('../img/corex2.jpg');
  background-size: cover; background-position: center;
  text-align: center; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(26,26,26,.25) 0%,
      rgba(26,26,26,.45) 40%,
      rgba(26,26,26,.62) 100%
    );
}
.page-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.page-hero-title {
  font-family: var(--font-body);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700; color: var(--white);
  line-height: 1.1; letter-spacing: -.025em; margin: 0;
}
.page-hero-title em { font-style: normal; font-weight: 300; color: rgba(255,255,255,.55); }
.page-hero-sub {
  font-size: clamp(.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.65); line-height: 1.75;
  max-width: 560px; margin: 0;
}
.page-hero .products-eyebrow { color: rgba(255,255,255,.5); }

@media (max-width: 600px) {
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 1.5rem 2.5rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ CTA FINALE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cta-finale {
  position: relative; padding: 7rem 2rem;
  background-image: url('../img/corex6.jpg');
  background-size: cover; background-position: center;
  background-attachment: fixed;
  text-align: center; overflow: hidden;
}
.cta-finale::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(26,26,26,.75);
}
.cta-finale-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  display: flex; flex-direction: column;
  align-items: center; gap: 1.4rem;
}
.cta-finale-title {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -.025em; line-height: 1.15;
}
.cta-finale-title em { font-style: normal; font-weight: 300; color: rgba(255,255,255,.55); }
.cta-finale-sub {
  font-size: clamp(.88rem, 1.4vw, 1rem);
  color: rgba(255,255,255,.65); line-height: 1.75; max-width: 500px;
}
.cta-finale-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  justify-content: center; margin-top: .5rem;
}

@media (max-width: 900px) { .cta-finale { background-attachment: scroll; } }
@media (max-width: 600px) { .cta-finale { padding: 4rem 1.5rem; } }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ RESPONSIVE GLOBALE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .nav-submenu { width: 360px; }
}

@media (max-width: 768px) {
  .nav-menu, .nav-right { display: none; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  :root { --nav-h: 62px; }
  .hero-actions    { flex-direction: column; align-items: center; }
  .btn             { width: 100%; max-width: 290px; justify-content: center; }
  .scroll-cue      { display: none; }
  .hero-dots       { bottom: 1.5rem; }
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   COOKIE BANNER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -4px 32px rgba(0,0,0,.10);
  transform: translateY(110%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.cookie-banner.cookie-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-banner-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.4rem 2rem;
  display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
}

.cookie-text {
  flex: 1; min-width: 220px;
}
.cookie-text strong {
  display: block; font-size: .88rem; font-weight: 600;
  color: var(--black); margin-bottom: .35rem;
}
.cookie-text p {
  font-size: .82rem; color: var(--gray-dark); line-height: 1.65; margin: 0;
}
.cookie-link {
  color: var(--red); text-decoration: underline; text-underline-offset: 2px;
  transition: opacity .2s;
}
.cookie-link:hover { opacity: .75; }

.cookie-actions {
  display: flex; gap: .7rem; flex-wrap: wrap; flex-shrink: 0;
}
.btn-cookie {
  padding: .6rem 1.4rem;
  font-size: .75rem;
}

/* Pannello gestione preferenze */
.cookie-prefs {
  border-top: 1px solid rgba(0,0,0,.07);
  background: var(--off-white);
}
.cookie-prefs[hidden] { display: none; }
.cookie-prefs-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1.4rem 2rem;
}
.cookie-prefs-inner h3 {
  font-size: .88rem; font-weight: 700;
  color: var(--black); margin-bottom: 1.2rem;
  letter-spacing: .05em; text-transform: uppercase;
}

.cookie-toggle {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .85rem 0;
  border-top: 1px solid rgba(0,0,0,.06);
  cursor: pointer;
}
.cookie-toggle input { display: none; }

.cookie-toggle-label {
  flex: 1; font-size: .82rem; line-height: 1.5;
}
.cookie-toggle-label strong {
  display: block; color: var(--black); font-weight: 600; margin-bottom: .2rem;
}
.cookie-toggle-label span { color: var(--gray-mid); }

.cookie-toggle-slider {
  flex-shrink: 0; margin-top: 2px;
  width: 40px; height: 22px;
  background: var(--gray-lt); border-radius: 11px;
  position: relative;
  transition: background .25s var(--ease);
  cursor: pointer;
}
.cookie-toggle-slider::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  transition: left .25s var(--ease);
}
.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--red);
}
.cookie-toggle input:checked + .cookie-toggle-slider::after { left: 21px; }
.cookie-toggle-slider.disabled { opacity: .5; cursor: not-allowed; }

.cookie-prefs-actions { margin-top: 1.2rem; }

@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.2rem 1.2rem; }
  .cookie-actions { justify-content: stretch; }
  .btn-cookie { flex: 1; text-align: center; justify-content: center; }
  .cookie-prefs-inner { padding: 1.2rem; }
}


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PRIVACY PAGE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.privacy-main { padding: 5rem 0 7rem; background: var(--white); }
.privacy-inner {
  max-width: 820px; margin: 0 auto; padding: 0 2rem;
}

.privacy-updated {
  font-size: .78rem; color: var(--gray-mid);
  margin-bottom: 3rem; letter-spacing: .05em;
}

.privacy-block { margin-bottom: 3rem; }
.privacy-block h2 {
  font-family: var(--font-body);
  font-size: 1.25rem; font-weight: 700;
  color: var(--black); margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 1.5px solid var(--gray-lt);
}
.privacy-block h3 {
  font-size: 1rem; font-weight: 600;
  color: var(--black); margin: 1.6rem 0 .7rem;
}
.privacy-block p { font-size: .92rem; color: var(--gray-dark); line-height: 1.8; margin-bottom: .9rem; }
.privacy-block ul {
  margin: .5rem 0 1rem 1.2rem; list-style: disc;
}
.privacy-block ul li {
  font-size: .92rem; color: var(--gray-dark); line-height: 1.75; margin-bottom: .4rem;
}
.privacy-block a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.privacy-block a:hover { opacity: .75; }
.privacy-block code {
  font-family: 'Courier New', monospace; font-size: .82rem;
  background: var(--gray-lt); padding: .1rem .4rem; border-radius: 3px; color: var(--black);
}

.privacy-table {
  width: 100%; border-collapse: collapse;
  margin: 1rem 0; font-size: .84rem;
}
.privacy-table th {
  background: var(--gray-lt); color: var(--black);
  font-weight: 600; text-align: left;
  padding: .65rem 1rem; border: 1px solid rgba(0,0,0,.08);
}
.privacy-table td {
  padding: .6rem 1rem; border: 1px solid rgba(0,0,0,.06);
  color: var(--gray-dark); vertical-align: top; line-height: 1.55;
}
.privacy-table tr:nth-child(even) td { background: rgba(0,0,0,.018); }

@media (max-width: 600px) {
  .privacy-main { padding: 3rem 0 5rem; }
  .privacy-inner { padding: 0 1.2rem; }
  .privacy-table { font-size: .76rem; }
  .privacy-table th,
  .privacy-table td { padding: .5rem .65rem; }
}