/* ==========================================================================
   MR SERVICE WORLDWIDE — Global stylesheet
   Palette : nero tecnico + rosso industriale
   ========================================================================== */

/* --------------------------------------------------------------- 1. Reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
  padding: 0;
}

ul[class], ol[class] { list-style: none; }

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* ----------------------------------------------------------- 2. Variables */
:root {
  /* colours */
  --black:        #0c0c0e;
  --black-2:      #121215;
  --surface:      #1a1a1f;
  --surface-2:    #232329;
  --line:         #2c2c33;
  --light:        #f4f4f6;
  --light-2:      #e8e8ec;
  --white:        #ffffff;

  --red:          #d81f26;
  --red-dark:     #a8161c;
  --red-glow:     rgba(216, 31, 38, .35);

  --txt-on-dark:  #ffffff;
  --txt-mute-dark:#9c9ca6;
  --txt-on-light: #16161a;
  --txt-mute-light:#5b5b66;

  /* typography */
  --f-display: "Barlow Condensed", "Oswald", Impact, sans-serif;
  --f-body:    "Barlow", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* metrics */
  --header-h:   84px;
  --container:  1280px;
  --gutter:     clamp(20px, 4vw, 48px);
  --radius:     2px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------------------------------------------------- 3. Base rules */
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--txt-on-dark);
  background: var(--black);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: .005em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.05rem; letter-spacing: .04em; }

p { color: var(--txt-mute-dark); }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* --------------------------------------------------------- 4. Utilities */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding: clamp(64px, 9vw, 118px) 0; }
.section--tight { padding: clamp(48px, 6vw, 76px) 0; }

.section--light {
  background: var(--light);
  color: var(--txt-on-light);
}
.section--light p { color: var(--txt-mute-light); }

.section--surface { background: var(--black-2); }

.text-red { color: var(--red); }
.text-center { text-align: center; }

.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  max-width: 62ch;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* eyebrow / kicker */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-head.is-center .eyebrow::before { display: none; }
.section-head h2 + p { margin-top: 18px; }

/* ------------------------------------------------------------ 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--f-body);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--black); border-color: #fff; }

.btn--dark { border-color: var(--txt-on-light); color: var(--txt-on-light); }
.btn--dark:hover { background: var(--txt-on-light); color: #fff; }

.btn--sm { padding: 11px 22px; font-size: .74rem; }

/* arrow link */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
}
.arrow-link svg { transition: transform .25s var(--ease); }
.arrow-link:hover svg { transform: translateX(6px); }

/* ------------------------------------------------------------- 6. Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background .3s var(--ease), height .3s var(--ease),
              box-shadow .3s var(--ease);
}
/* Fondo e sfocatura stanno su ::before, non sull'header.
   `backdrop-filter` applicato all'header lo renderebbe il blocco contenitore
   dei suoi discendenti in position:fixed — il pannello del menu mobile
   verrebbe ritagliato all'altezza dell'header invece di coprire lo schermo. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.75), rgba(0,0,0,0));
  z-index: -1;
  transition: opacity .3s var(--ease);
}
.site-header.is-stuck,
.site-header.is-solid { height: 70px; }

.site-header.is-stuck::before,
.site-header.is-solid::before {
  background: rgba(12,12,14,.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck::after,
.site-header.is-solid::after { opacity: 0; }

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

/* logo lockup */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo__mark {
  width: 34px;
  height: 34px;
  color: var(--red);
  flex-shrink: 0;
}
.logo__text { line-height: 1; }
.logo__name {
  font-family: var(--f-display);
  font-size: 1.62rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
}
.logo__name span { color: var(--red); }
.logo__sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: .55rem;
  font-weight: 500;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--red);
}
.logo__sub::before,
.logo__sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--red);
  min-width: 10px;
}

/* nav */
.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}
.nav__link {
  position: relative;
  display: block;
  padding: 8px 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color .2s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .28s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { width: 100%; }
.nav__link.is-active { color: #fff; }

/* language switcher */
.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 22px;
  margin-left: 4px;
  border-left: 1px solid rgba(255,255,255,.2);
}
.lang__btn {
  padding: 5px 7px;
  background: none;
  border: 0;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { color: var(--red); }

.header-cta { flex-shrink: 0; }

/* burger */
.burger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 10px;
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------------------------------------------------------- 7. Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero--inner { min-height: 62vh; align-items: flex-end; }

.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: var(--img);
  transform: scale(1.06);
  transition: transform 8s linear;
}
.hero__slide.is-active::before { transform: scale(1); }
.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,10,.92) 0%, rgba(8,8,10,.72) 45%, rgba(8,8,10,.25) 100%),
    linear-gradient(180deg, rgba(8,8,10,.6) 0%, rgba(8,8,10,0) 35%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 200px;
  max-width: 720px;
}
.hero--inner .hero__content { padding-bottom: 74px; }

.hero__title { margin-bottom: 22px; }
.hero__title span { display: block; }
.hero__title .hero__l2 { color: var(--red); }
.hero__text { font-size: 1.08rem; color: #cfcfd6; max-width: 50ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 172px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__dots .container { display: flex; gap: 10px; }
.hero__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero__dot.is-active { background: var(--red); transform: scale(1.3); }

/* hero feature strip */
.hero-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  background: rgba(16,16,19,.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.hero-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-strip__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 26px 26px;
  border-left: 1px solid var(--line);
  transition: background .25s var(--ease);
}
.hero-strip__item:first-child { border-left: 0; }
.hero-strip__item:hover { background: rgba(216,31,38,.09); }
.hero-strip__icon {
  width: 30px; height: 30px;
  color: var(--red);
  flex-shrink: 0;
}
.hero-strip__title {
  font-family: var(--f-display);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-strip__text {
  font-size: .82rem;
  line-height: 1.45;
  margin-top: 4px;
  color: var(--txt-mute-dark);
}

/* page hero (inner pages) */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 90px) 0 70px;
  background: var(--black-2);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: .28;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10,10,12,.95), rgba(10,10,12,.55));
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 16ch; }
.page-hero p { margin-top: 18px; max-width: 58ch; color: #c8c8d0; }

/* breadcrumb */
.crumb {
  display: flex;
  gap: 10px;
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt-mute-dark);
  margin-bottom: 20px;
}
.crumb a:hover { color: var(--red); }
.crumb span { color: var(--red); }

/* ---------------------------------------------------------- 8. Stats bar */
.stats {
  background: var(--light);
  color: var(--txt-on-light);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.09);
}
.stats--dark { background: var(--black-2); color: #fff; }
.stats--dark .stats__grid { background: var(--line); }
.stats--dark .stats__item { background: var(--black-2); }
.stats--dark .stats__label { color: var(--txt-mute-dark); }

.stats__item {
  background: var(--light);
  padding: 42px 20px;
  text-align: center;
}
.stats__icon {
  width: 34px; height: 34px;
  margin: 0 auto 14px;
  color: var(--red);
}
.stats__num {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
}
.stats__label {
  margin-top: 8px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--txt-mute-light);
}

/* -------------------------------------------------------- 9. Card grids */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* service card */
.card {
  position: relative;
  padding: 38px 32px 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .38s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: #3a3a44; }
.card:hover::before { transform: scaleX(1); }

.card__icon {
  width: 44px; height: 44px;
  color: var(--red);
  margin-bottom: 22px;
}
.card__title { margin-bottom: 12px; }
.card__text { font-size: .93rem; }
.card__list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}
.card__list li {
  position: relative;
  padding-left: 18px;
  font-size: .87rem;
  color: var(--txt-mute-dark);
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 7px; height: 2px;
  background: var(--red);
}
.card__num {
  position: absolute;
  right: 22px; bottom: 8px;
  font-family: var(--f-display);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255,255,255,.045);
  pointer-events: none;
}

.section--light .card {
  background: #fff;
  border-color: rgba(0,0,0,.09);
}
.section--light .card__text,
.section--light .card__list li { color: var(--txt-mute-light); }
.section--light .card__num { color: rgba(0,0,0,.05); }

/* sector card with image */
.sector {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.sector::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(.55);
  transition: transform .6s var(--ease), filter .5s var(--ease);
}
.sector::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(9,9,11,.94) 5%, rgba(9,9,11,.25) 70%);
}
.sector:hover::before { transform: scale(1.07); filter: grayscale(.15) brightness(.62); }
.sector__body { position: relative; z-index: 2; }
.sector__title {
  font-family: var(--f-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.sector__text { font-size: .9rem; color: #b9b9c2; }
.sector__tag {
  position: absolute;
  top: 22px; left: 22px;
  z-index: 2;
  padding: 5px 12px;
  background: var(--red);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* split (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
.split__media {
  position: relative;
  aspect-ratio: 4 / 3.2;
  background: var(--surface) var(--img) center/cover no-repeat;
  border: 1px solid var(--line);
}
.split__media::after {
  content: "";
  position: absolute;
  right: -14px; bottom: -14px;
  width: 120px; height: 120px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  pointer-events: none;
}
.split__badge {
  position: absolute;
  left: -1px; bottom: 28px;
  padding: 18px 26px;
  background: var(--red);
  color: #fff;
}
.split__badge strong {
  display: block;
  font-family: var(--f-display);
  font-size: 2.4rem;
  line-height: 1;
}
.split__badge span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* checklist */
.checklist { display: grid; gap: 14px; margin-top: 28px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
}
.checklist svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 3px; }

/* ------------------------------------------------------------ 10. Process */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.process__step {
  background: var(--black-2);
  padding: 36px 28px 40px;
  position: relative;
}
.process__n {
  font-family: var(--f-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--red);
  margin-bottom: 16px;
  display: block;
}
.process__step h3 { margin-bottom: 10px; font-size: 1.2rem; }
.process__step p { font-size: .88rem; }

/* ---------------------------------------------------- 11. World map block */
.worldmap {
  position: relative;
  background: #08080a;
  overflow: hidden;
}
.worldmap__bg {
  position: absolute;
  inset: 0;
  background-image: var(--img);
  background-size: cover;
  background-position: center;
  opacity: .55;
}
.worldmap .container { position: relative; z-index: 2; }
.worldmap__inner {
  display: grid;
  grid-template-columns: minmax(0, 460px) 1fr;
  gap: 48px;
  align-items: center;
}
.worldmap__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px 18px;
  margin-top: 26px;
}
.worldmap__list li {
  font-size: .86rem;
  color: #c3c3cc;
  padding-left: 16px;
  position: relative;
}
.worldmap__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
}

/* ---------------------------------------------------------- 12. Projects */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 38px;
}
.filter {
  padding: 9px 20px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--txt-mute-dark);
  cursor: pointer;
  transition: all .22s var(--ease);
}
.filter:hover { color: #fff; border-color: #4a4a55; }
.filter.is-active { background: var(--red); border-color: var(--red); color: #fff; }

.project {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.project:hover { transform: translateY(-5px); border-color: #3a3a44; }
.project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #101013 var(--img) center/cover no-repeat;
  filter: grayscale(.85);
  transition: filter .4s var(--ease);
}
.project:hover .project__media { filter: grayscale(0); }
.project__flag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  background: rgba(12,12,14,.88);
  border-left: 2px solid var(--red);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.project__body { padding: 26px 24px 28px; flex: 1; }
.project__meta {
  display: flex;
  gap: 14px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.project__meta span:not(:first-child) { color: var(--txt-mute-dark); }
.project__body h3 { font-size: 1.2rem; margin-bottom: 10px; }
.project__body p { font-size: .89rem; }

/* --------------------------------------------------------- 13. CTA banner */
.cta {
  position: relative;
  padding: clamp(56px, 7vw, 92px) 0;
  background: var(--red);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 380px; height: 380px;
  border: 60px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.cta .container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}
.cta h2 { max-width: 20ch; }
.cta p { color: rgba(255,255,255,.9); margin-top: 12px; max-width: 46ch; }
.cta .btn--ghost { border-color: #fff; }
.cta .btn--ghost:hover { background: #fff; color: var(--red); }

/* ------------------------------------------------------------- 14. Footer */
.site-footer {
  background: #08080a;
  border-top: 1px solid var(--line);
  padding-top: clamp(52px, 6vw, 76px);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 52px;
}
.footer__about p {
  font-size: .9rem;
  margin-top: 20px;
  max-width: 34ch;
}
.footer h4 {
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.footer__links { display: grid; gap: 10px; }
.footer__links a {
  font-size: .88rem;
  color: var(--txt-mute-dark);
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}
.footer__links a:hover { color: var(--red); padding-left: 5px; }

.footer__contact { display: grid; gap: 14px; }
.footer__contact li {
  display: flex;
  gap: 12px;
  font-size: .88rem;
  color: var(--txt-mute-dark);
}
.footer__contact svg { width: 17px; height: 17px; color: var(--red); flex-shrink: 0; margin-top: 4px; }
.footer__contact a:hover { color: var(--red); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--txt-mute-dark);
}
.footer__bottom a:hover { color: var(--red); }

/* -------------------------------------------------------------- 15. Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.form { display: grid; gap: 20px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field label {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #d5d5dc;
}
.field label span { color: var(--red); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #fff;
  font-size: .95rem;
  transition: border-color .22s var(--ease), background .22s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #6a6a76; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface-2);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d81f26' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.field option { background: var(--surface); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .82rem;
  color: var(--txt-mute-dark);
}
.consent input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex-shrink: 0; }
.consent a { color: var(--red); text-decoration: underline; }

.form-note {
  padding: 14px 18px;
  border-left: 3px solid var(--red);
  background: rgba(216,31,38,.09);
  font-size: .9rem;
  display: none;
}
.form-note.is-visible { display: block; }
.form-note.is-ok { border-color: #2fa84f; background: rgba(47,168,79,.1); }

/* contact info panel */
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 30px;
}
.info-panel + .info-panel { margin-top: 24px; }
.info-list { display: grid; gap: 22px; margin-top: 4px; }
.info-list li { display: flex; gap: 16px; }
.info-list svg { width: 22px; height: 22px; color: var(--red); flex-shrink: 0; margin-top: 3px; }
.info-list strong {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 4px;
}
.info-list span, .info-list a { font-size: .93rem; color: var(--txt-mute-dark); }
.info-list a:hover { color: var(--red); }

.map-embed {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  filter: grayscale(1) invert(.92) contrast(.85);
  width: 100%;
}

/* ------------------------------------------------------- 16. Misc blocks */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 2px;
  background: var(--line);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -34px; top: 7px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 3px solid var(--red);
  background: var(--black);
}
.timeline__year {
  font-family: var(--f-display);
  font-size: 1.5rem;
  color: var(--red);
  line-height: 1;
  margin-bottom: 6px;
}
.timeline__item h3 { font-size: 1.15rem; margin-bottom: 6px; }
.timeline__item p { font-size: .9rem; }

.quote {
  border-left: 3px solid var(--red);
  padding: 6px 0 6px 26px;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.25;
  text-transform: uppercase;
  color: #fff;
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.logo-row div {
  background: var(--black-2);
  padding: 28px 14px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6c6c78;
  transition: color .25s var(--ease);
}
.logo-row div:hover { color: #fff; }

/* faq / accordion */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}
.acc__btn::after {
  content: "+";
  font-size: 1.6rem;
  color: var(--red);
  line-height: 1;
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.acc__item.is-open .acc__btn::after { transform: rotate(45deg); }
.acc__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.acc__panel p { padding-bottom: 24px; font-size: .93rem; max-width: 78ch; }

/* ------------------------------------------------- 17. Reveal animations */
/* Lo stato nascosto è applicato solo quando il JS è attivo (classe .js sul
   tag <html>): senza JavaScript il contenuto resta comunque visibile. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------- 18. Responsive */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__item:nth-child(3) { border-left: 0; }
  .worldmap__inner { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  /* il pulsante resta sopra il pannello: la X deve essere cliccabile */
  .burger { display: block; position: relative; z-index: 3; }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(340px, 86vw);
    margin: 0;
    display: block;
    z-index: 2;
    padding: calc(var(--header-h) + 20px) 30px 40px;
    background: #0f0f12;
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: 16px 0;
    font-size: .92rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--red); }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .lang {
    margin: 24px 0 0;
    padding: 20px 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .lang__btn { font-size: .85rem; padding: 6px 10px; }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility .3s;
    z-index: 90;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }

  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
  .hero__content { padding-bottom: 260px; }
  .hero__dots { bottom: 232px; }
}

@media (max-width: 640px) {
  :root { --header-h: 70px; }

  /* su schermo stretto il pannello occupa tutta la larghezza */
  .nav { width: 100%; border-left: 0; }

  /* la striscia servizi esce dal posizionamento assoluto e si impila
     sotto al contenuto: l'hero diventa una colonna */
  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
  }
  .hero__content { padding-top: calc(var(--header-h) + 64px); padding-bottom: 30px; }
  .hero__dots { position: static; margin-bottom: 34px; }
  .hero-strip { position: static; width: 100%; }
  .hero-strip__grid { grid-template-columns: 1fr; }
  .hero-strip__item { border-left: 0; border-top: 1px solid var(--line); padding: 18px 20px; }
  .hero-strip__item:first-child { border-top: 0; }
  .process { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 34px; }
  .logo__name { font-size: 1.35rem; }
  .cta .container { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------- 19. Print */
@media print {
  .site-header, .hero-strip, .cta, .burger { display: none; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------ 20. Immagini di sfondo
   I percorsi delle foto stanno qui, non nell'HTML: dentro una variabile CSS
   il browser risolve gli url() rispetto al foglio di stile, quindi si parte
   da assets/css/ e si risale con ../../ fino alla cartella images/.
   Per cambiare una foto basta sostituire il file in images/ mantenendo il
   nome; per usare un nome diverso, modificare la riga corrispondente.
   ---------------------------------------------------------------------- */
.bg-about-hero { --img: url("../../images/about-hero.jpg"), linear-gradient(120deg,#1a1a20,#0b0b0d); }
.bg-about { --img: url("../../images/about.jpg"), linear-gradient(135deg,#1d1d23,#0e0e11); }
.bg-contact-hero { --img: url("../../images/contact-hero.jpg"), linear-gradient(120deg,#1a1a20,#0b0b0d); }
.bg-hero-1 { --img: url("../../images/hero-1.jpg"), linear-gradient(115deg,#141419 0%,#0b0b0d 55%,#331315 100%); }
.bg-hero-2 { --img: url("../../images/hero-2.jpg"), linear-gradient(115deg,#1b1b21 0%,#0b0b0d 60%,#241214 100%); }
.bg-hero-3 { --img: url("../../images/hero-3.jpg"), linear-gradient(115deg,#101014 0%,#0b0b0d 50%,#2c1013 100%); }
.bg-sector-beverage { --img: url("../../images/sector-beverage.jpg"), linear-gradient(150deg,#242430,#0f0f13); }
.bg-sector-food { --img: url("../../images/sector-food.jpg"), linear-gradient(150deg,#2a2320,#0f0f13); }
.bg-sector-packaging { --img: url("../../images/sector-packaging.jpg"), linear-gradient(150deg,#20242c,#0f0f13); }
.bg-world-map { --img: url("../../images/world-map.jpg"), radial-gradient(circle at 50% 45%, #1a1a20 0%, #08080a 65%); }
.bg-project-1 { --img: url("../../images/project-1.jpg"), linear-gradient(140deg,#22222a,#0f0f12); }
.bg-project-2 { --img: url("../../images/project-2.jpg"), linear-gradient(140deg,#2a2320,#0f0f12); }
.bg-project-3 { --img: url("../../images/project-3.jpg"), linear-gradient(140deg,#1f242c,#0f0f12); }
.bg-projects-hero { --img: url("../../images/projects-hero.jpg"), linear-gradient(120deg,#1a1a20,#0b0b0d); }
.bg-project-4 { --img: url("../../images/project-4.jpg"), linear-gradient(140deg,#242028,#0f0f12); }
.bg-project-5 { --img: url("../../images/project-5.jpg"), linear-gradient(140deg,#1e232b,#0f0f12); }
.bg-project-6 { --img: url("../../images/project-6.jpg"), linear-gradient(140deg,#2b2222,#0f0f12); }
.bg-project-7 { --img: url("../../images/project-7.jpg"), linear-gradient(140deg,#202429,#0f0f12); }
.bg-project-8 { --img: url("../../images/project-8.jpg"), linear-gradient(140deg,#26212a,#0f0f12); }
.bg-project-9 { --img: url("../../images/project-9.jpg"), linear-gradient(140deg,#1f2530,#0f0f12); }
.bg-services-hero { --img: url("../../images/services-hero.jpg"), linear-gradient(120deg,#1a1a20,#0b0b0d); }
.bg-sectors-hero { --img: url("../../images/sectors-hero.jpg"), linear-gradient(120deg,#1a1a20,#0b0b0d); }
.bg-sector-dairy { --img: url("../../images/sector-dairy.jpg"), linear-gradient(150deg,#23262c,#0f0f13); }
.bg-sector-hpc { --img: url("../../images/sector-hpc.jpg"), linear-gradient(150deg,#2b2129,#0f0f13); }
.bg-sector-pharma { --img: url("../../images/sector-pharma.jpg"), linear-gradient(150deg,#1f2830,#0f0f13); }
