/* ================================================================
   SOLUZIONI LOGISTICHE V3
   Ispirazione: Manuport Logistics + FreightConsol + Cargoful
   Accento: #F08700 | Dark: #111111
================================================================ */

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

:root {
  --black:        #080808;
  --dark:         #111111;
  --dark-mid:     #161616;
  --dark-light:   #1e1e1e;
  --border:       rgba(255,255,255,0.07);
  --grey-light:   #777777;
  --white:        #ffffff;
  --accent:       #ffbf00 ;
  --accent-dark:  #ffbf00 ;
  --accent-light: #ffbf00 ;
  --accent-glow:  rgba(240,135,0,0.14);

  --font: 'Inter', sans-serif;
  --r: 12px;
  --rs: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tr: 0.35s var(--ease);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
body.page-loading { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ----------------------------------------------------------------
   PAGE LOADER
---------------------------------------------------------------- */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.page-loader__inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.05em;
  animation: loaderPulse 0.9s ease infinite alternate;
}
@keyframes loaderPulse {
  from { opacity: 0.4; transform: scale(0.93); }
  to   { opacity: 1;   transform: scale(1); }
}
.loader-bar { width: 220px; height: 2px; background: rgba(255,255,255,0.07); border-radius: 10px; overflow: hidden; }
.loader-bar__fill { height: 100%; background: var(--accent); animation: loaderFill 1.1s ease forwards; }
@keyframes loaderFill { to { width: 100%; } }

/* ----------------------------------------------------------------
   SCROLL PROGRESS
---------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--accent);
  z-index: 2000;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(240,135,0,0.5);
}

/* ----------------------------------------------------------------
   TYPOGRAPHY
---------------------------------------------------------------- */
h1 { font-size: clamp(3rem, 7vw, 6.5rem); font-weight: 900; line-height: 1.0; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 700; }
h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey-light); }
p  { color: rgba(255,255,255,0.68); font-size: 1rem; line-height: 1.75; }

.accent    { color: var(--accent); }
em         { font-style: italic; color: var(--accent); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(240,135,0,0.3);
  border-radius: 100px;
}
.section-label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 2s ease infinite;
}
@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.7); opacity: 0.5; }
}

/* ----------------------------------------------------------------
   BUTTONS
---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--rs);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--tr);
  padding: 14px 28px;
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: var(--black);
  border-color: var(--accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(240,135,0,0.38);
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--black); }
.btn--lg  { padding: 17px 36px; font-size: 1rem; border-radius: 9px; }
.btn--xl  { padding: 20px 44px; font-size: 1.05rem; border-radius: 10px; }
.btn--sm  { padding: 8px 18px; font-size: 0.83rem; }
.btn--full { width: 100%; }

/* ----------------------------------------------------------------
   NAVBAR
---------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 24px 48px;
  transition: background var(--tr), padding var(--tr), box-shadow var(--tr);
}
.navbar.scrolled {
  background: rgba(8,8,8,0.96);
  padding: 14px 48px;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}
.navbar__logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: var(--black);
  font-size: 0.82rem;
  font-weight: 900;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-text { font-size: 1.2rem; font-weight: 900; letter-spacing: -0.025em; }
.navbar__nav ul { display: flex; align-items: center; gap: 4px; }
.navbar__nav a {
  font-size: 0.87rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--rs);
  color: rgba(255,255,255,0.72);
  transition: var(--tr);
}
.navbar__nav a:hover { color: var(--accent); background: rgba(240,135,0,0.08); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.navbar__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--tr);
}

/* ----------------------------------------------------------------
   HERO — Headline enorme stile Manuport
---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; }
.hero__img,
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero__img {
  filter: brightness(0.38) saturate(0.6);
  animation: kenBurns 16s ease-in-out infinite alternate;
}
.hero__video {
  display: block;
}
@keyframes kenBurns {
  from { transform: scale(1) translate(0,0); }
  to   { transform: scale(1.06) translate(-1%, 0.5%); }
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(8,8,8,1)    0%,
    rgba(8,8,8,0.85) 35%,
    rgba(8,8,8,0.55) 60%,
    rgba(8,8,8,0.25) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 64px 80px;
  max-width: 1400px;
  margin: 0 auto;
}
.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}
.tag-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulseDot 2s ease infinite;
}
.hero__title {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero__line {
  display: block;
  line-height: 1.0;
}
.hero__line--accent { color: var(--accent); }

.hero__bottom {
  display: flex;
  align-items: flex-end;
  gap: 64px;
  flex-wrap: wrap;
}
.hero__sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: rgba(255,255,255,0.65);
  max-width: 480px;
  line-height: 1.7;
}
.hero__sub strong { color: rgba(255,255,255,0.9); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }

.hero__scroll-hint {
  position: absolute;
  right: 64px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.35));
  animation: scrollLineAnim 2s ease infinite;
}
@keyframes scrollLineAnim {
  0%,100% { transform: scaleY(1); opacity: 0.4; }
  50%      { transform: scaleY(1.2); opacity: 1; }
}
.hero__scroll-hint span {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
}

/* HERO ENTRY ANIMATIONS */
.reveal-clip {
  display: block;
  overflow: hidden;
}
.reveal-clip::after {
  content: attr(data-text);
}
.reveal-clip {
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  transform: translateY(20px);
  transition: clip-path 0.75s var(--ease), opacity 0.75s ease, transform 0.75s var(--ease);
}
.reveal-clip.revealed {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
  transform: none;
}
.reveal-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-fade.revealed { opacity: 1; transform: none; }

/* ----------------------------------------------------------------
   TICKER
---------------------------------------------------------------- */
.ticker {
  background: var(--dark-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.ticker::before,
.ticker::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.ticker::before { left: 0; background: linear-gradient(to right, var(--dark-mid), transparent); }
.ticker::after  { right: 0; background: linear-gradient(to left, var(--dark-mid), transparent); }
.ticker__track {
  display: inline-flex;
  gap: 20px;
  animation: tickerScroll 28s linear infinite;
}
.ticker__track span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
}
.ticker__sep { color: var(--accent) !important; opacity: 0.7; }
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   STATS STRIP
---------------------------------------------------------------- */
.stats-strip {
  background: var(--dark);
  padding: 56px 64px;
  position: relative;
}
.stats-strip::after {
  content: '';
  position: absolute;
  bottom: 0; left: 64px; right: 64px;
  height: 1px;
  background: var(--border);
}
.stats-strip__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
}
.stat-item { flex: 1; min-width: 160px; text-align: center; padding: 16px; }
.stat-item__num {
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.06em;
}
.stat-item__unit { font-size: 2rem; font-weight: 900; color: var(--accent); }
.stat-item p {
  font-size: 0.75rem;
  margin-top: 8px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.stat-divider { width: 1px; height: 60px; background: var(--border); }

/* ----------------------------------------------------------------
   MISSION — asimmetrico split stile Manuport
---------------------------------------------------------------- */
.mission { padding: 120px 64px; background: var(--dark); }
.mission__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto 80px;
}
.mission__heading {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-top: 8px;
}
.mission__heading em { font-style: italic; color: var(--accent); }
.mission__body { margin-bottom: 20px; }
.mission__right .btn { margin-top: 16px; }

.mission__image-full {
  position: relative;
  border-radius: var(--r);
  overflow: visible;
  max-width: 1400px;
  margin: 0 auto;
}
.mission__image-full .img-wipe-wrap {
  border-radius: var(--r);
  overflow: hidden;
  height: 560px;
}
.mission__image-full img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s ease;
}
.mission__image-full:hover img { transform: scale(1.03); }
.mission__image-badge {
  position: absolute;
  bottom: -24px; left: 48px;
  background: var(--accent);
  color: var(--black);
  padding: 18px 28px;
  border-radius: var(--rs);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 40px rgba(240,135,0,0.35);
  z-index: 3;
}
.mission__image-stat {
  position: absolute;
  top: -24px; right: 48px;
  background: var(--dark-light);
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: var(--rs);
  text-align: center;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}
.mission__image-stat span { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.mission__image-stat small {
  display: block;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* IMG WIPE — tenda arancio */
.img-wipe-wrap { position: relative; overflow: hidden; }
.img-wipe-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  z-index: 2;
  transform: translateX(-101%);
}
.img-wipe-wrap.wipe-active::after {
  animation: imgWipe 1s var(--ease) forwards;
}
@keyframes imgWipe {
  0%   { transform: translateX(-101%); }
  45%  { transform: translateX(0%); }
  100% { transform: translateX(101%); }
}
.img-wipe { opacity: 0; transition: opacity 0.01s 0.48s; }
.img-wipe-wrap.wipe-active .img-wipe { opacity: 1; }

/* popIn */
[data-animate="popIn"] {
  opacity: 0;
  transform: scale(0.65) translateY(10px);
  transition: opacity 0.5s cubic-bezier(0.34,1.56,0.64,1), transform 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
[data-animate="popIn"].is-visible { opacity: 1; transform: none; }

/* ----------------------------------------------------------------
   SERVICES — hover row con preview immagine
---------------------------------------------------------------- */
.services { background: var(--dark-mid); padding: 120px 0 0; }
.services__header {
  padding: 0 64px 64px;
  max-width: 1400px;
  margin: 0 auto;
}
.services__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1400px;
  margin: 0 auto;
}
.services__list {
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  align-items: center;
  gap: 0;
  padding: 32px 48px 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background var(--tr);
  position: relative;
}
.service-row::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.35s var(--ease);
}
.service-row:hover { background: rgba(255,255,255,0.025); }
.service-row:hover::before { transform: scaleY(1); }
.service-row__num {
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(240,135,0,0.35);
  letter-spacing: 0.08em;
  padding-left: 48px;
  flex-shrink: 0;
}
.service-row__content { padding: 0 16px; }
.service-row__content h3 { margin-bottom: 6px; transition: color var(--tr); }
.service-row:hover .service-row__content h3 { color: var(--accent); }
.service-row__content p { font-size: 0.85rem; }
.service-row__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  transition: var(--tr);
  flex-shrink: 0;
}
.service-row__arrow svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.3); transition: stroke var(--tr); }
.service-row:hover .service-row__arrow {
  background: var(--accent);
  border-color: var(--accent);
}
.service-row:hover .service-row__arrow svg { stroke: var(--black); }

.services__preview {
  position: sticky;
  top: 80px;
  height: calc(100vh - 80px);
  overflow: hidden;
}
.services__preview-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.5s ease;
  filter: brightness(0.55) saturate(0.7);
}
.services__preview-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to left, transparent 60%, rgba(22,22,22,0.6) 100%);
}

/* ----------------------------------------------------------------
   E-COMMERCE — full-bleed 50/50 split stile FreightConsol
---------------------------------------------------------------- */
.ecommerce {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 760px;
}
.ecommerce__image-half {
  position: relative;
  overflow: hidden;
}
.ecommerce__image-half .img-wipe-wrap {
  height: 100%;
  min-height: 560px;
}
.ecommerce__image-half img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.9s ease;
}
.ecommerce__image-half:hover img { transform: scale(1.04); }
.ecommerce__content-half {
  padding: 100px 80px 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ecommerce__content-half h2 { margin-bottom: 20px; }
.ecommerce__content-half > p { margin-bottom: 36px; }
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}
.ig-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--dark-mid);
  border: 1px solid var(--border);
  border-radius: var(--rs);
  transition: var(--tr);
  position: relative;
  overflow: hidden;
}
.ig-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.ig-item:hover { border-color: rgba(240,135,0,0.2); }
.ig-item:hover::after { transform: scaleX(1); }
.ig-item__icon {
  font-size: 1.3rem;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--rs);
  flex-shrink: 0;
}
.ig-item strong { display: block; color: var(--white); font-size: 0.87rem; margin-bottom: 2px; }
.ig-item p { font-size: 0.78rem; margin: 0; }

/* ----------------------------------------------------------------
   WHY — 3 pillars stacked
---------------------------------------------------------------- */
.why { padding: 120px 64px; background: var(--dark-mid); }
.why__header {
  max-width: 1400px;
  margin: 0 auto 72px;
}
.why__pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1400px;
  margin: 0 auto 80px;
  background: var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.why-pillar {
  background: var(--dark-light);
  display: flex;
  flex-direction: column;
  transition: var(--tr);
}
.why-pillar:hover { background: rgba(240,135,0,0.04); }
.why-pillar__img {
  height: 260px;
  overflow: hidden;
  position: relative;
}
.why-pillar__img .img-wipe-wrap { height: 100%; }
.why-pillar__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.75s ease;
}
.why-pillar:hover .why-pillar__img img { transform: scale(1.06); }
.why-pillar__body { padding: 32px 28px 36px; flex: 1; }
.why-pillar__num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.why-pillar__body h3 { margin-bottom: 10px; font-size: 1.15rem; }
.why-pillar__body p  { font-size: 0.88rem; }

.comparison {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto;
}
.comparison__header {
  padding: 28px 40px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.comparison__header h3 { font-size: 1.2rem; }
.comparison__header p  { font-size: 0.83rem; margin: 0; }
.comparison__table { display: grid; grid-template-columns: 1fr 1fr; }
.comparison__col { padding: 28px 40px 36px; }
.comparison__col--bad { border-right: 1px solid var(--border); }
.comparison__col-head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
  color: var(--grey-light);
}
.comparison__col-head.accent { color: var(--accent); }
.comparison__col ul { display: flex; flex-direction: column; gap: 14px; }
.comparison__col--bad li {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.42);
  padding-left: 22px;
  position: relative;
}
.comparison__col--bad li::before { content: '✗'; position: absolute; left: 0; color: #bb3333; font-weight: 700; }
.comparison__col--good li {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.9);
  padding-left: 22px;
  position: relative;
}
.comparison__col--good li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ----------------------------------------------------------------
   TERRITORY
---------------------------------------------------------------- */
.territory { position: relative; padding: 140px 64px; overflow: hidden; }
.territory__bg { position: absolute; inset: 0; }
.territory__bg .img-parallax {
  width: 100%; height: 120%;
  object-fit: cover;
  filter: brightness(0.2) saturate(0.3);
  will-change: transform;
  top: -10%;
}
.territory__overlay {
  position: absolute; inset: 0;
  background: transparent;
}
.territory__content {
  position: relative; z-index: 2;
  max-width: 660px;
}
.territory__content h2 { margin: 16px 0 24px; }
.territory__content p  { margin-bottom: 40px; max-width: 520px; }
.territory__regions { display: flex; flex-wrap: wrap; gap: 10px; }
.territory__regions span {
  padding: 8px 20px;
  background: rgba(240,135,0,0.1);
  border: 1px solid rgba(240,135,0,0.25);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  transition: var(--tr);
}
.territory__regions span:hover {
  background: rgba(240,135,0,0.22);
  transform: translateY(-2px);
}

/* ----------------------------------------------------------------
   CTA STATEMENT — grande testo centrale
---------------------------------------------------------------- */
.cta-statement {
  background: var(--dark);
  padding: 120px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta-statement__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}
.cta-statement__text {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--white);
}

/* ----------------------------------------------------------------
   CONTACT
---------------------------------------------------------------- */
.contact { padding: 120px 64px; background: var(--dark-mid); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: start;
  max-width: 1400px;
  margin: 0 auto;
}
.contact__text .section-label { margin-bottom: 18px; }
.contact__text h2 { margin-bottom: 20px; }
.contact__text > p { margin-bottom: 36px; }
.contact__info { display: flex; flex-direction: column; gap: 16px; }
.contact__info li { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.68); }
.contact__info svg { width: 20px; height: 20px; stroke: var(--accent); flex-shrink: 0; }
.contact__info a:hover { color: var(--accent); }

.contact__form {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 48px;
  position: relative;
}
.contact__form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  border-radius: var(--r) var(--r) 0 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--dark);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--rs);
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--white);
  transition: var(--tr);
  appearance: none;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,135,0,0.14);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group select option { background: var(--dark); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-note { text-align: center; font-size: 0.76rem; color: rgba(255,255,255,0.3); margin-top: 12px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(240,135,0,0.08);
  border: 1px solid rgba(240,135,0,0.22);
  border-radius: var(--rs);
  padding: 16px 20px;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}
.form-success svg { width: 22px; height: 22px; stroke: var(--accent); flex-shrink: 0; }
.form-success.visible { display: flex; }

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer { background: var(--black); border-top: 1px solid var(--border); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 80px 64px 56px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer__brand p { font-size: 0.86rem; max-width: 280px; }
.footer__links h4 { margin-bottom: 20px; color: rgba(255,255,255,0.68); }
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 0.86rem; color: rgba(255,255,255,0.68); transition: var(--tr); }
.footer__links a:hover { color: var(--accent); padding-left: 4px; }
.footer__cta h4 { margin-bottom: 12px; color: rgba(255,255,255,0.68); }
.footer__cta p  { font-size: 0.86rem; margin-bottom: 20px; color: rgba(255,255,255,0.68); }
.footer__bottom { border-top: 1px solid var(--border); padding: 20px 64px; }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1400px;
  margin: 0 auto;
}
.footer__bottom p { font-size: 0.76rem; color: rgba(255, 255, 255, 0.68); }
.footer__bottom a { color: rgba(255,255,255,0.4); transition: var(--tr); }
.footer__bottom a:hover { color: var(--accent); }

/* ----------------------------------------------------------------
   SCROLL ANIMATIONS
---------------------------------------------------------------- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s var(--ease);
}
[data-animate="fadeUp"]    { transform: translateY(48px); }
[data-animate="fadeLeft"]  { transform: translateX(-48px); }
[data-animate="fadeRight"] { transform: translateX(48px); }
[data-animate="zoomIn"]    { transform: scale(0.94); }
[data-animate].is-visible  { opacity: 1; transform: none !important; }

/* ----------------------------------------------------------------
   DATA SECTION — logistica data-driven & risparmio
---------------------------------------------------------------- */
.data-section {
  background: var(--dark-mid);
  padding: 120px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.data-section__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

/* Header — 2 colonne */
.data-section__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.data-section__header-text h2 { margin: 8px 0 20px; }
.data-section__intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
}

/* SVG chart */
.data-section__header-chart {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 20px 16px;
  overflow: hidden;
}
.data-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Draw-on animation per le linee del grafico */
.chart-line--main {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22,1,0.36,1) 0.3s;
}
.chart-line--secondary {
  stroke-dasharray: 700;
  stroke-dashoffset: 700;
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22,1,0.36,1) 0.5s;
}
.data-section__header-chart.is-visible .chart-line--main,
.data-section__header-chart.is-visible .chart-line--secondary {
  stroke-dashoffset: 0;
}
.chart-area--main,
.chart-area--secondary {
  opacity: 0;
  transition: opacity 0.8s ease 1.2s;
}
.data-section__header-chart.is-visible .chart-area--main,
.data-section__header-chart.is-visible .chart-area--secondary {
  opacity: 1;
}
.chart-dot {
  opacity: 0;
  transform: scale(0);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.data-section__header-chart.is-visible .chart-dot:nth-child(1) { opacity:1; transform:scale(1); transition-delay:0.9s; }
.data-section__header-chart.is-visible .chart-dot:nth-child(2) { opacity:1; transform:scale(1); transition-delay:1.1s; }
.data-section__header-chart.is-visible .chart-dot:nth-child(3) { opacity:1; transform:scale(1); transition-delay:1.25s; }
.data-section__header-chart.is-visible .chart-dot:nth-child(4) { opacity:1; transform:scale(1); transition-delay:1.4s; }
.data-section__header-chart.is-visible .chart-dot:nth-child(5) { opacity:1; transform:scale(1); transition-delay:1.55s; }
.data-section__header-chart.is-visible .chart-dot:nth-child(6) { opacity:1; transform:scale(1); transition-delay:1.65s; }

/* Dashboard mockup */
.data-dashboard {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.data-dashboard__topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.db-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.db-dot--red    { background: #ff5f56; }
.db-dot--yellow { background: #ffbd2e; }
.db-dot--green  { background: #27c93f; }
.db-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-left: 10px;
  letter-spacing: 0.04em;
}
.data-dashboard__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--border);
}
.db-kpi {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  transition: background var(--tr);
}
.db-kpi:last-child { border-right: none; }
.db-kpi:hover { background: rgba(240,135,0,0.04); }
.db-kpi__val {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}
.db-kpi__unit { font-size: 1.5rem; font-weight: 900; }
.db-kpi p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  margin: 8px 0 16px;
  line-height: 1.4;
}
.db-kpi__bar {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  overflow: hidden;
}
.db-kpi__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1.4s var(--ease) 0.3s;
}
.db-kpi.is-visible .db-kpi__fill { width: var(--fill); }

/* Pipeline tracker */
.db-pipeline {
  padding: 24px 28px;
}
.db-pipeline__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
}
.db-pipeline__steps {
  display: flex;
  align-items: center;
}
.db-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.db-step span {
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
}
.db-step__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: transparent;
  transition: var(--tr);
}
.db-step--done .db-step__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(240,135,0,0.4);
}
.db-step--done span { color: rgba(255,255,255,0.75); }
.db-step--active .db-step__dot {
  background: transparent;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(240,135,0,0.18);
  animation: activePulse 1.8s ease infinite;
}
@keyframes activePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240,135,0,0.18); }
  50%       { box-shadow: 0 0 0 8px rgba(240,135,0,0.08); }
}
.db-step--active span { color: var(--accent); font-weight: 700; }
.db-step__line {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 22px;
  min-width: 40px;
}
.db-step__line--done { background: var(--accent); opacity: 0.5; }

/* "Cosa controlli" grid */
.data-controls {
  background: var(--dark-light);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
}
.data-controls__header {
  padding: 28px 36px 24px;
  border-bottom: 1px solid var(--border);
}
.data-controls__header h3 { font-size: 1.15rem; }
.data-controls__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.dc-item {
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--tr);
  position: relative;
  overflow: hidden;
}
.dc-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.dc-item:hover { background: rgba(240,135,0,0.04); }
.dc-item:hover::after { transform: scaleX(1); }
.dc-item:nth-child(3n) { border-right: none; }
.dc-item:nth-child(n+4) { border-bottom: none; }
.dc-item__icon {
  width: 46px; height: 46px;
  background: rgba(240,135,0,0.09);
  border: 1px solid rgba(240,135,0,0.18);
  border-radius: var(--rs);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: var(--tr);
}
.dc-item:hover .dc-item__icon {
  background: rgba(240,135,0,0.18);
  border-color: rgba(240,135,0,0.35);
}
.dc-item__icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.dc-item h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
.dc-item p { font-size: 0.83rem; }

/* Risparmio split */
.data-savings {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 100px;
  align-items: center;
}
.data-savings__left .section-label { margin-bottom: 18px; }
.data-savings__left h2 { margin-bottom: 20px; font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
.data-savings__left p  { margin-bottom: 32px; }
.data-savings__right {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.saving-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.saving-item:first-child { border-top: 1px solid var(--border); }
.saving-item__pct {
  font-size: clamp(2.8rem, 4vw, 3.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  min-width: 100px;
  text-align: right;
  flex-shrink: 0;
}
.saving-item__sym {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
  margin-right: 8px;
}
.saving-item__body strong {
  display: block;
  color: var(--white);
  font-size: 0.93rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.saving-item__body p { font-size: 0.83rem; margin: 0; }

/* ----------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1200px) {
  .navbar { padding: 20px 32px; }
  .navbar.scrolled { padding: 14px 32px; }
  .hero__content { padding: 0 40px 72px; }
  .hero__scroll-hint { right: 40px; }
  .stats-strip { padding: 48px 40px; }
  .mission { padding: 100px 40px; }
  .why { padding: 100px 40px; }
  .territory { padding: 120px 40px; }
  .cta-statement { padding: 100px 40px; }
  .contact { padding: 100px 40px; }
  .footer__inner { padding: 64px 40px 48px; }
  .footer__bottom { padding: 20px 40px; }
  .services__header { padding: 0 40px 56px; }
  .integration-grid { grid-template-columns: 1fr; }
  .ecommerce__content-half { padding: 72px 48px; }
  .data-section__inner { padding: 0 40px; gap: 60px; }
  .data-section__header { gap: 48px; }
  .data-savings { gap: 56px; }
}

@media (max-width: 1024px) {
  .services__body { grid-template-columns: 1fr; }
  .services__preview { display: none; }
  .services__list { border-right: none; }
  .ecommerce { grid-template-columns: 1fr; }
  .ecommerce__image-half .img-wipe-wrap { min-height: 380px; }
  .ecommerce__content-half { padding: 72px 40px; }
  .mission__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__inner { grid-template-columns: 1fr; gap: 60px; }
  .why__pillars { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .comparison__table { grid-template-columns: 1fr; }
  .comparison__col--bad { border-right: none; border-bottom: 1px solid var(--border); }
  .mission__image-full .img-wipe-wrap { height: 400px; }
  .mission__image-badge { bottom: 16px; left: 16px; }
  .mission__image-stat  { top: 16px; right: 16px; }
  .data-section__header { grid-template-columns: 1fr; gap: 40px; }
  .data-dashboard__grid { grid-template-columns: repeat(2, 1fr); }
  .db-kpi:nth-child(2) { border-right: none; }
  .db-kpi:nth-child(1),
  .db-kpi:nth-child(2) { border-bottom: 1px solid var(--border); }
  .data-controls__grid { grid-template-columns: repeat(2, 1fr); }
  .dc-item:nth-child(3n)  { border-right: 1px solid var(--border); }
  .dc-item:nth-child(2n)  { border-right: none; }
  .dc-item:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .dc-item:nth-child(n+5) { border-bottom: none; }
  .data-savings { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  h1 { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .navbar { padding: 18px 20px; }
  .navbar.scrolled { padding: 12px 20px; }
  .navbar__nav { display: none; }
  .navbar__nav.open {
    display: flex;
    position: fixed;
    inset: 0;
    background: rgba(8,8,8,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
  }
  .navbar__nav.open ul  { flex-direction: column; gap: 24px; }
  .navbar__nav.open a   { font-size: 1.4rem; }
  .navbar__toggle { display: flex; }
  .hero__content { padding: 0 24px 72px; }
  .hero__bottom { flex-direction: column; gap: 28px; }
  .hero__scroll-hint { display: none; }
  .stats-strip { padding: 40px 24px; }
  .stats-strip__grid { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; }
  .mission { padding: 80px 24px; }
  .mission__inner { gap: 36px; }
  .services__header { padding: 0 24px 48px; }
  .service-row { padding: 24px 24px 24px 0; }
  .service-row__num { padding-left: 24px; }
  .ecommerce__content-half { padding: 48px 24px; }
  .data-section { padding: 80px 0; }
  .data-section__inner { padding: 0 24px; gap: 48px; }
  .data-section__header { grid-template-columns: 1fr; gap: 32px; }
  .data-dashboard__grid { grid-template-columns: 1fr 1fr; }
  .db-pipeline__steps { flex-wrap: wrap; gap: 8px; }
  .db-step__line { min-width: 24px; }
  .data-controls__grid { grid-template-columns: 1fr; }
  .dc-item { border-right: none; }
  .dc-item:nth-child(3n)  { border-right: none; }
  .dc-item:nth-child(2n)  { border-right: none; }
  .dc-item:nth-child(n+4) { border-bottom: 1px solid var(--border); }
  .dc-item:nth-child(n+5) { border-bottom: 1px solid var(--border); }
  .dc-item:last-child { border-bottom: none; }
  .data-savings { grid-template-columns: 1fr; gap: 36px; }
  .saving-item__pct { font-size: 2.4rem; min-width: 72px; }
  .why { padding: 80px 24px; }
  .territory { padding: 100px 24px; }
  .cta-statement { padding: 80px 24px; }
  .cta-statement__text { font-size: clamp(1.8rem, 6vw, 2.8rem); }
  .contact { padding: 80px 24px; }
  .contact__form { padding: 28px; }
  .footer__inner { grid-template-columns: 1fr; padding: 56px 24px 40px; }
  .footer__bottom { padding: 16px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .integration-grid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
