/* ═══════════════════════════════════════════════════
   MANNA RAPPRESENTANZE — Design System 2025
   Tema: LIGHT — sfondo grigio chiaro / bianco
   Accento: Rosso logo #eb212e
   Tipografia: Syne (display) + DM Sans (body)
   ═══════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Rossi dal logo */
  --red:        #eb212e;
  --red-dark:   #c41a25;
  --red-dim:    rgba(235,33,46,0.09);
  --red-dim2:   rgba(235,33,46,0.05);

  /* Neutri chiari */
  --white:      #ffffff;
  --gray-50:    #f7f6f5;
  --gray-100:   #efefee;
  --gray-200:   #e0dedd;
  --gray-300:   #c8c5c4;
  --gray-400:   #a09c9b;
  --gray-500:   #7a7574;
  --gray-700:   #3d3837;
  --gray-900:   #1a1718;

  /* Scuri (logo) */
  --dark:       #231f20;
  --dark-2:     #2d2829;

  /* Testi */
  --text-main:  #231f20;
  --text-sub:   #6b6665;
  --text-muted: #9c9898;

  /* Bordi */
  --border:     #e0dedd;
  --border-red: rgba(235,33,46,0.2);

  --font-d: 'Syne', sans-serif;
  --font-b: 'DM Sans', sans-serif;
  --radius: 2px;
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 3px rgba(35,31,32,0.07), 0 4px 16px rgba(35,31,32,0.06);
  --shadow-lg: 0 8px 40px rgba(35,31,32,0.12);
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-b);
  background: var(--gray-50);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── UTILITIES ── */
.container       { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.container-wide  { max-width: 1440px; margin: 0 auto; padding: 0 2rem; }

.eyebrow {
  font-family: var(--font-b);
  font-size: .7rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--red);
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--red); flex-shrink: 0; }

.section-header { margin-bottom: 3.5rem; }
.section-header h2 {
  font-family: var(--font-d);
  font-size: clamp(2rem,3.5vw,3rem); font-weight: 700; line-height: 1.1;
  color: var(--text-main);
}

em { font-style: italic; color: var(--red); }

.lead { font-size: clamp(1.05rem,1.4vw,1.2rem); font-weight: 300; line-height: 1.9; color: var(--text-sub); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.r2 { transition-delay: .1s; }
.r3 { transition-delay: .2s; }
.r4 { transition-delay: .3s; }

/* ── BUTTONS ── */
.btn-gold {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--red); color: #fff; text-decoration: none;
  font-family: var(--font-b); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background .25s, transform .25s, box-shadow .25s;
  border: none; cursor: pointer;
}
.btn-gold:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(235,33,46,.3); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: #fff; text-decoration: none;
  font-family: var(--font-b); font-weight: 500; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.4);
  transition: border-color .25s, background .25s;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }

.btn-dark {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--red); text-decoration: none;
  font-family: var(--font-b); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1.5px solid var(--red);
  transition: background .25s, color .25s, transform .25s;
}
.btn-dark:hover { background: var(--red); color: #fff; transform: translateY(-2px); }

.btn-outline-dark {
  display: inline-flex; align-items: center; gap: .6rem;
  background: transparent; color: var(--text-main); text-decoration: none;
  font-family: var(--font-b); font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  transition: border-color .25s, color .25s;
}
.btn-outline-dark:hover { border-color: var(--red); color: var(--red); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--red); text-decoration: none;
  font-family: var(--font-b); font-weight: 600; font-size: .88rem;
  letter-spacing: .04em; transition: gap .25s; margin-top: 1.5rem;
}
.link-arrow:hover { gap: .9rem; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: 92px;
  background: rgba(255,255,255,0);
  backdrop-filter: blur(0px);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, height .3s;
}
#nav.scrolled {
  height: 74px;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border), 0 4px 20px rgba(35,31,32,.06);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  width: auto;
  transition: height .3s, opacity .3s;
}
.nav-logo .logo-nav,
.nav-logo .logo-fixed {
  height: 62px;
  display: block;
  filter: brightness(0) invert(1);
}
.nav-logo .logo-scroll {
  height: 62px;
  display: none;
  filter: none;
}
#nav.scrolled .nav-logo .logo-nav,
#nav.scrolled .nav-logo .logo-fixed {
  display: none;
}
#nav.scrolled .nav-logo .logo-scroll {
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  text-decoration: none; font-family: var(--font-b); font-weight: 500;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.85); position: relative; padding-bottom: 3px;
  transition: color .2s;
}
/* When scrolled: dark links */
#nav.scrolled .nav-links a { color: var(--text-sub); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--red);
  transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--text-main); }
#nav.scrolled .nav-links a:hover { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }
#nav.scrolled .nav-links a.active { color: var(--text-main); }

.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 22px !important;
  border-radius: var(--radius);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--red-dark) !important; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s, background .3s; }
#nav.scrolled .burger span { background: var(--text-main); }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════
   HERO — FULLSCREEN IMAGE
══════════════════════════════════ */
.hero {
  height: 100vh; min-height: 620px;
  position: relative;
  display: flex; align-items: flex-end;
  overflow: hidden;
}

/* Background image fullscreen via Unsplash (infrastruttura/cantiere) */
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center 35%;
  transform: scale(1.04);
  transition: transform 8s var(--ease);
  will-change: transform;
}
.hero-bg.loaded { transform: scale(1); }

/* Multi-layer overlay: scuro in basso per testo, semitrasparente in alto */
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top,
      rgba(20,16,17,0.88) 0%,
      rgba(20,16,17,0.55) 35%,
      rgba(20,16,17,0.25) 65%,
      rgba(20,16,17,0.15) 100%);
}

/* Red accent stripe bottom */
.hero-red-stripe {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--red);
  z-index: 3;
}

.hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: 1200px;
  margin: 0 auto;
  padding: 100px 2.5rem 6rem;
}

.hero-tag {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-b); font-size: .9rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: 1.4rem;
}
.tag-dot { width: 5px; height: 5px; background: var(--red); border-radius: 50%; animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }

.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(3rem,6.5vw,7rem); font-weight: 800;
  line-height: .96; letter-spacing: -.025em;
  color: #fff;
  margin-bottom: 0;
  max-width: 11ch;
  text-shadow: 0 2px 20px rgba(0,0,0,.2);
}

.hero-sub {
  font-size: clamp(.95rem,1.3vw,1.1rem); font-weight: 300;
  line-height: 1.8; color: rgba(255,255,255,.72);
  max-width: 460px; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Bottom bar stats dentro hero */
.hero-stats {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  display: none; /* mostrata solo su desktop */
}

/* Scroll cue */
.hero-scroll {
  position: absolute; bottom: 2rem; right: 2.5rem; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.45);
}
.hero-scroll span { font-family: var(--font-b); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.scroll-line { width: 1px; height: 44px; background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent); }

/* ══════════════════════════════════
   TICKER
══════════════════════════════════ */
.ticker { background: var(--red); padding: .7rem 0; overflow: hidden; }
.ticker-track { display: flex; gap: 2.5rem; white-space: nowrap; animation: ticker 30s linear infinite; width: max-content; }
.ticker-track span { font-family: var(--font-d); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.92); }
.ticker-track .sep { font-size: .45rem; opacity: .5; align-self: center; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ══════════════════════════════════
   NUMBERS STRIP
══════════════════════════════════ */
.numbers-section { background: var(--white); border-bottom: 1px solid var(--border); }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  divide-x: 1px solid var(--border);
}
.num-item {
  padding: 2.8rem 2rem; text-align: center;
  border-right: 1px solid var(--border);
  position: relative; transition: background .3s;
}
.num-item:last-child { border-right: none; }
.num-item:hover { background: var(--gray-50); }
.num-item::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width .4s var(--ease); }
.num-item:hover::after { width: 100%; }
.num-row { display: flex; align-items: baseline; justify-content: center; gap: .1rem; }
.num-val { font-family: var(--font-d); font-size: clamp(2.2rem,3.5vw,3.5rem); font-weight: 800; color: var(--red); line-height: 1; }
.num-plus { font-family: var(--font-d); font-size: clamp(1.2rem,2vw,2rem); font-weight: 800; color: var(--red); }
.num-label { font-size: .8rem; font-weight: 400; color: var(--text-muted); margin-top: .4rem; line-height: 1.4; letter-spacing: .04em; }

/* ══════════════════════════════════
   INTRO AGENZIA
══════════════════════════════════ */
.intro-section { padding: 7rem 0; background: var(--white); }
.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center;
  border-top: 1.5px solid var(--border); padding-top: 4rem;
}
.intro-left h2 { font-family: var(--font-d); font-size: clamp(2rem,3.5vw,3rem); font-weight: 700; line-height: 1.1; color: var(--text-main); }
.intro-right p { font-size: .97rem; font-weight: 300; line-height: 1.9; color: var(--text-sub); margin-bottom: 1rem; }

/* ══════════════════════════════════
   SETTORI
══════════════════════════════════ */
.settori-section { padding: 5rem 0 7rem; background: var(--gray-50); }
.settori-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); overflow: hidden; }
.settore-card {
  background: var(--white); padding: 2.6rem 2rem; text-decoration: none; color: inherit;
  position: relative; display: flex; flex-direction: column; min-height: 250px;
  transition: background .3s; overflow: hidden;
}
.settore-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.settore-card:hover { background: var(--gray-50); }
.settore-card:hover::after { transform: scaleX(1); }
.settore-icon { width: 36px; height: 36px; margin-bottom: 1.8rem; color: var(--red); opacity: .6; transition: opacity .3s; }
.settore-icon svg { width: 100%; height: 100%; }
.settore-card:hover .settore-icon { opacity: 1; }
.settore-num { font-family: var(--font-d); font-size: .65rem; font-weight: 700; letter-spacing: .28em; color: var(--red); opacity: .45; margin-bottom: .4rem; }
.settore-card h3 { font-family: var(--font-d); font-size: 1.08rem; font-weight: 700; margin-bottom: .65rem; line-height: 1.25; color: var(--text-main); }
.settore-card p { font-size: .86rem; font-weight: 300; line-height: 1.75; color: var(--text-sub); flex: 1; }
.card-arrow { margin-top: 1.4rem; font-size: 1.1rem; color: var(--red); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .3s; }
.settore-card:hover .card-arrow { opacity: 1; transform: translateX(0); }

/* ══════════════════════════════════
   QUOTE — sfondo scuro con immagine
══════════════════════════════════ */
.quote-section { position: relative; padding: 9rem 2rem; overflow: hidden; text-align: center; }
.quote-bg {
  position: absolute; inset: 0;
  background-image: url('../img/quote-bg.jpg');
  background-size: cover; background-position: center;
}
.quote-bg::before { content: ''; position: absolute; inset: 0; background: rgba(20,16,17,.32); }
.quote-bg::after { content: ''; position: absolute; top: 2.5rem; bottom: 2.5rem; left: 4rem; right: 4rem; border: 1px solid rgba(235,33,46,.18); border-radius: 2px; pointer-events: none; }
.quote-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.quote-mark { font-family: var(--font-d); font-size: 7rem; line-height: .5; color: var(--red); opacity: .2; display: block; margin-bottom: .8rem; }
blockquote { font-family: var(--font-d); font-size: clamp(1.5rem,2.8vw,2.4rem); font-weight: 700; line-height: 1.25; color: #fff; margin-bottom: 1.8rem; }
.quote-line { width: 32px; height: 2px; background: var(--red); margin: 0 auto .9rem; }
cite { font-family: var(--font-b); font-size: .75rem; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.45); font-style: normal; }

/* ══════════════════════════════════
   FILOSOFIA
══════════════════════════════════ */
.filosofia-section { padding: 7rem 0; background: var(--white); }
.filosofia-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 6rem; align-items: start; }
.filo-left h2 { font-family: var(--font-d); font-size: clamp(2rem,3vw,2.8rem); font-weight: 700; line-height: 1.1; color: var(--text-main); }
.filo-right { display: flex; flex-direction: column; }
.filo-item { display: flex; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--border); }
.filo-item:first-child { border-top: 1px solid var(--border); }
.filo-num { font-family: var(--font-d); font-size: .65rem; font-weight: 800; letter-spacing: .28em; color: var(--red); opacity: .6; flex-shrink: 0; width: 26px; padding-top: 2px; }
.filo-item h4 { font-family: var(--font-d); font-size: .97rem; font-weight: 600; margin-bottom: .35rem; color: var(--text-main); }
.filo-item p { font-size: .87rem; font-weight: 300; line-height: 1.75; color: var(--text-sub); }

/* ══════════════════════════════════
   PARTNERS MARQUEE
══════════════════════════════════ */
.partners-section { padding: 5rem 0 6rem; background: var(--gray-50); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.marquee-wrap { position: relative; overflow: hidden; margin-top: 2.5rem; }
.marquee-mask { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none; }
.marquee-mask.left  { left: 0;  background: linear-gradient(to right, var(--gray-50), transparent); }
.marquee-mask.right { right: 0; background: linear-gradient(to left,  var(--gray-50), transparent); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 1rem; width: max-content; animation: marqueeScroll 35s linear infinite; }
@keyframes marqueeScroll { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.partner-pill {
  display: inline-flex; align-items: center; padding: .65rem 1.8rem;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-b); font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); text-decoration: none; white-space: nowrap;
  transition: color .25s, border-color .25s, box-shadow .25s;
  box-shadow: var(--shadow);
}
.partner-pill:hover { color: var(--red); border-color: var(--red); box-shadow: 0 4px 16px rgba(235,33,46,.12); }

/* ══════════════════════════════════
   CTA BAND
══════════════════════════════════ */
.cta-band { padding: 5rem 0; background: var(--red); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band-inner h2 { font-family: var(--font-d); font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 700; color: #fff; }
.cta-band-inner p { font-size: .95rem; font-weight: 300; color: rgba(255,255,255,.75); margin-top: .4rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #fff; color: var(--red); text-decoration: none;
  font-family: var(--font-b); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 28px; border-radius: var(--radius);
  transition: background .25s, transform .25s; border: none; cursor: pointer;
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }

/* ══════════════════════════════════
   PAGE HERO (inner pages)
══════════════════════════════════ */
.page-hero {
  min-height: 50vh; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 92px 2.5rem 4rem; position: relative; overflow: hidden;
  background: var(--dark);
}
.page-hero.short { min-height: 42vh; }
.page-hero-noise {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(235,33,46,.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 0% 100%, rgba(235,33,46,.05) 0%, transparent 45%),
    linear-gradient(150deg, #1a1718 0%, #2d2829 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 1200px; }
.page-hero-content h1 {
  font-family: var(--font-d); font-size: clamp(2.4rem,5.5vw,5rem);
  font-weight: 800; line-height: .98; letter-spacing: -.025em;
  color: #fff; margin-top: .5rem;
}
.page-hero-scroll-line { position: absolute; bottom: 0; left: 2.5rem; width: 1px; height: 55px; background: linear-gradient(to bottom, var(--red), transparent); opacity: .6; }

/* ══════════════════════════════════
   CHI SIAMO
══════════════════════════════════ */
.cs-intro { padding: 5rem 0 4rem; background: var(--white); }
.cs-intro-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4rem; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: 4rem; }
.cs-intro-badge { display: flex; justify-content: flex-end; }
.badge-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 160px; height: 160px; border: 1.5px solid var(--red); border-radius: 50%; text-align: center; gap: .25rem; }
.badge-num { font-family: var(--font-d); font-size: 3rem; font-weight: 800; color: var(--red); line-height: 1; }
.badge-num sup { font-size: 1.4rem; }
.badge-text { font-size: .72rem; font-weight: 400; color: var(--text-sub); letter-spacing: .04em; line-height: 1.4; max-width: 80px; }

/* VISION / MISSION */
.vision-section { padding: 6rem 0; background: var(--gray-50); }
.mission-section { padding: 6rem 0; background: var(--white); }
.vision-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.vision-grid.reverse { direction: rtl; }
.vision-grid.reverse > * { direction: ltr; }
.vision-img-wrap { position: relative; }
.vision-img {
  aspect-ratio: 4/3; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.vision-img::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 35%; background: var(--red); z-index: 1; }
.vision-img-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.vision-label { position: absolute; bottom: -1rem; right: -1rem; background: var(--red); color: #fff; font-family: var(--font-d); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; padding: .5rem 1rem; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(235,33,46,.3); }
.vision-text h2 { font-family: var(--font-d); font-size: clamp(1.8rem,2.8vw,2.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem; color: var(--text-main); }
.vision-text p { font-size: .95rem; font-weight: 300; line-height: 1.85; color: var(--text-sub); margin-bottom: .9rem; }

/* VALORI */
.valori-section { padding: 6rem 0; background: var(--gray-100); }
.valori-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); overflow: hidden; }
.valore-card { background: var(--white); padding: 2.4rem 1.8rem; transition: background .3s; position: relative; overflow: hidden; }
.valore-card::after { content: ''; position: absolute; top: 0; left: 0; width: 2px; height: 0; background: var(--red); transition: height .4s var(--ease); }
.valore-card:hover { background: var(--gray-50); }
.valore-card:hover::after { height: 100%; }
.valore-icon { width: 36px; height: 36px; color: var(--red); margin-bottom: 1.4rem; opacity: .55; transition: opacity .3s; }
.valore-icon svg { width: 100%; height: 100%; }
.valore-card:hover .valore-icon { opacity: 1; }
.valore-card h4 { font-family: var(--font-d); font-size: .95rem; font-weight: 600; margin-bottom: .6rem; color: var(--text-main); }
.valore-card p { font-size: .86rem; font-weight: 300; line-height: 1.7; color: var(--text-sub); }

/* ══════════════════════════════════
   PRODOTTI
══════════════════════════════════ */
.prod-intro { padding: 4rem 0 2rem; background: var(--white); }
.prodotto-section { padding: 5rem 0; background: var(--white); }
.prodotto-section.alt { background: var(--gray-50); }
.prodotto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.prodotto-grid.reverse { direction: rtl; }
.prodotto-grid.reverse > * { direction: ltr; }
.prodotto-visual { position: relative; }
.prodotto-img {
  aspect-ratio: 1; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.prodotto-img::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 28%; background: var(--red); z-index: 1; }
.prodotto-img-num { position: absolute; bottom: 1rem; right: 1.2rem; font-family: var(--font-d); font-size: 5rem; font-weight: 800; color: rgba(255,255,255,.07); line-height: 1; z-index: 1; }
.prodotto-svg { width: 42%; height: auto; position: relative; z-index: 2; filter: drop-shadow(0 2px 12px rgba(0,0,0,.35)); }
/* overlay scuro sopra la foto di sfondo */
.prodotto-img-overlay { position: absolute; inset: 0; background: rgba(10,16,40,.45); z-index: 0; }
.prodotto-tag-vertical { position: absolute; bottom: -1rem; left: -1rem; background: var(--red); color: #fff; font-family: var(--font-d); font-weight: 700; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; padding: .5rem 1rem; border-radius: var(--radius); box-shadow: 0 4px 12px rgba(235,33,46,.25); }
.prodotto-content h2 { font-family: var(--font-d); font-size: clamp(1.8rem,2.8vw,2.5rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; color: var(--text-main); }
.prodotto-content p { font-size: .95rem; font-weight: 300; line-height: 1.85; color: var(--text-sub); margin-bottom: .9rem; }
.prodotto-list { list-style: none; margin-top: 1.4rem; display: flex; flex-direction: column; }
.prodotto-list li { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; font-weight: 300; color: var(--text-sub); }
.prodotto-list li::before { content: ''; width: 3px; height: 3px; background: var(--red); border-radius: 50%; flex-shrink: 0; }
.prodotto-sublist-label { font-family: var(--font-d); font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--red); opacity: .75; margin-top: 1.4rem; margin-bottom: .4rem; }

/* ══════════════════════════════════
   LAVORI — griglia senza filtri
══════════════════════════════════ */
.lavori-section { padding: 3rem 0 7rem; background: var(--gray-50); }
.lavori-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 2rem; }
.lavoro-item { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 2px; cursor: pointer; box-shadow: var(--shadow); }
.lavoro-item.hidden { display: none; }
.lavoro-card-inner { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transition: transform .6s var(--ease); }
.lavoro-card-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.lavoro-item:hover .lavoro-card-inner { transform: scale(1.07); }
.lavoro-img-placeholder { width: 38%; height: 38%; display: flex; align-items: center; justify-content: center; opacity: .18; }
.lavoro-img-placeholder svg { width: 100%; height: 100%; }

/* Overlay sempre visibile in basso */
.lavoro-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,16,17,.9) 0%, rgba(20,16,17,.4) 45%, transparent 75%);
  padding: 1rem; display: flex; flex-direction: column; justify-content: flex-end;
  opacity: 1; /* sempre visibile */
  transition: background .35s;
}
.lavoro-item:hover .lavoro-overlay {
  background: linear-gradient(to top, rgba(20,16,17,.97) 0%, rgba(20,16,17,.55) 55%, transparent 80%);
}
.lavoro-overlay.always-on { opacity: 1; }

.lavoro-cat { font-family: var(--font-b); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red); margin-bottom: .25rem; }
.lavoro-overlay h3 { font-family: var(--font-d); font-size: .85rem; font-weight: 700; line-height: 1.2; color: #fff; }

/* ══════════════════════════════════
   CONTATTI
══════════════════════════════════ */
.contact-cards-section { padding: 5rem 0 3rem; background: var(--white); }
.contact-cards-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 3px; overflow: hidden; }
.contact-card { background: var(--white); padding: 2.4rem 2rem; transition: background .3s; position: relative; overflow: hidden; }
.contact-card::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--red); transition: width .4s var(--ease); }
.contact-card:hover { background: var(--gray-50); }
.contact-card:hover::after { width: 100%; }
.contact-card-icon { color: var(--red); margin-bottom: 1.1rem; }
.contact-card-label { font-family: var(--font-b); font-size: .68rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .5rem; }
.contact-card-value { display: block; font-family: var(--font-d); font-size: 1.02rem; font-weight: 600; color: var(--text-main); text-decoration: none; transition: color .2s; }
.contact-card-value:hover { color: var(--red); }
.contact-card-note { font-size: .78rem; color: var(--text-muted); margin-top: .4rem; }

.form-section { padding: 4rem 0 7rem; background: var(--gray-50); }
.form-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; align-items: start; }
.form-left h2 { font-family: var(--font-d); font-size: clamp(2rem,3vw,2.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 1.2rem; color: var(--text-main); }
.form-left p { font-size: .95rem; font-weight: 300; line-height: 1.85; color: var(--text-sub); }
.form-info-items { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.form-info-item { display: flex; align-items: center; gap: .75rem; font-size: .87rem; font-weight: 300; color: var(--text-sub); }
.fii-dot { width: 4px; height: 4px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

.contact-form-box { background: var(--white); border: 1px solid var(--border); border-radius: 3px; padding: 2.8rem; box-shadow: var(--shadow); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-family: var(--font-b); font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .45rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; background: var(--gray-50); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 15px; color: var(--text-main);
  font-family: var(--font-b); font-size: .93rem; font-weight: 300;
  outline: none; transition: border-color .25s, background .25s, box-shadow .25s; appearance: none;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--text-muted); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--red); background: var(--white); box-shadow: 0 0 0 3px rgba(235,33,46,.08); }
.form-field textarea { min-height: 128px; resize: vertical; }
.select-wrap { position: relative; }
.select-chevron { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }
.form-field select option { background: var(--white); color: var(--text-main); }
.privacy-check .check-label { display: flex; align-items: flex-start; gap: .65rem; cursor: pointer; text-transform: none; font-size: .82rem; font-weight: 300; color: var(--text-sub); letter-spacing: 0; }
.privacy-check input[type="checkbox"] { display: none; }
.check-box { width: 16px; height: 16px; border: 1.5px solid var(--gray-300); border-radius: 2px; flex-shrink: 0; margin-top: 2px; position: relative; transition: background .2s, border-color .2s; }
.privacy-check input:checked + .check-box { background: var(--red); border-color: var(--red); }
.privacy-check input:checked + .check-box::after { content: ''; position: absolute; top: 2px; left: 5px; width: 5px; height: 8px; border: 2px solid #fff; border-top: none; border-left: none; transform: rotate(40deg); }
.privacy-check a { color: var(--red); text-decoration: none; }
.privacy-check a:hover { text-decoration: underline; }
.form-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: .7rem; background: var(--red); color: #fff; border: none; cursor: pointer; font-family: var(--font-b); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; padding: 15px; border-radius: var(--radius); transition: background .25s, transform .25s, box-shadow .25s; margin-top: .5rem; }
.form-submit:hover { background: var(--red-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(235,33,46,.28); }
.form-submit:disabled { opacity: .6; cursor: wait; transform: none; }
.form-success { display: none; align-items: center; gap: .6rem; margin-top: 1rem; padding: 1rem 1.2rem; background: rgba(235,33,46,.06); border: 1px solid rgba(235,33,46,.2); border-radius: var(--radius); font-size: .87rem; color: var(--red); }
.form-success.show { display: flex; }

/* ══════════════════════════════════
   FOOTER — scuro (contrasto col sito chiaro)
══════════════════════════════════ */
footer { background: var(--dark); border-top: 3px solid var(--red); }
.footer-top { padding: 5rem 0 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem; }
.footer-logo { height: 120px; width: auto; margin-bottom: 1.2rem; display: block; }
.footer-brand p { font-size: .87rem; font-weight: 300; line-height: 1.8; color: var(--gray-400); max-width: 270px; }
.social-links { display: flex; gap: .7rem; margin-top: 1.4rem; }
.social-links a { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gray-400); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.social-links a:hover { border-color: var(--red); color: #fff; background: var(--red); }
.footer-col h5 { font-family: var(--font-b); font-size: .68rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin-bottom: 1.3rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { text-decoration: none; font-size: .87rem; font-weight: 300; color: var(--gray-400); transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .btn-gold { color: #fff; }
.footer-col .btn-gold:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 1.4rem 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; }
.footer-bottom span { font-size: .76rem; color: rgba(255,255,255,.22); }
.footer-bottom a { font-size: .76rem; color: rgba(255,255,255,.22); text-decoration: none; transition: color .2s; }
.footer-bottom a:hover { color: var(--red); }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */

/* ── 1100px tablet landscape ── */
@media (max-width: 1100px) {
  .settori-grid { grid-template-columns: repeat(2,1fr); }
  .valori-grid  { grid-template-columns: repeat(2,1fr); }
  .footer-grid  { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .lavori-grid  { grid-template-columns: repeat(3,1fr); }
  .filosofia-grid { grid-template-columns: 1fr 1.3fr; gap: 3.5rem; }
  .form-grid    { gap: 3.5rem; }
}

/* ── 900px tablet portrait ── */
@media (max-width: 900px) {
  /* Nav */
  #nav { padding: 0 1.5rem; height: 80px; }
  #nav.scrolled { height: 70px; }
  .nav-logo .logo-nav,
  .nav-logo .logo-fixed,
  .nav-logo .logo-scroll { height: 54px; }
  .nav-links {
    display: none; position: fixed;
    top: 80px; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: rgba(255,255,255,.99); padding: 1rem 1.5rem 1.5rem; gap: 0;
    border-bottom: 2px solid var(--red);
    box-shadow: 0 8px 30px rgba(35,31,32,.12);
    z-index: 199;
    transition: top .3s;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: .9rem 0;
    border-bottom: 1px solid var(--border);
    font-size: .9rem;
    color: var(--text-sub) !important;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-cta {
    margin-top: .8rem !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 12px 20px !important;
    color: #fff !important; /* sovrascrive il grigio del menu mobile */
  }
  .burger { display: flex; }

  /* Hero — titolo mai troncato */
  .hero { min-height: 100svh; padding-top: 72px; }
  .hero-content { padding: 90px 1.5rem 5rem; }
  .hero-h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
    max-width: 100%;
    word-break: keep-all;
  }
  .hero-sub { font-size: .95rem; max-width: 100%; }
  .hero-scroll { display: none; }
  .hero-red-stripe { height: 3px; }

  /* Sections */
  .container, .container-wide { padding: 0 1.5rem; }
  .numbers-grid   { grid-template-columns: repeat(2,1fr); }
  .intro-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .intro-grid .intro-right { border-top: 1px solid var(--border); padding-top: 2rem; }
  .settori-grid   { grid-template-columns: repeat(2,1fr); }
  .filosofia-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .valori-grid    { grid-template-columns: repeat(2,1fr); }
  .prodotto-grid  { grid-template-columns: 1fr; gap: 2.5rem; }
  .prodotto-grid.reverse { direction: ltr; }
  .prodotto-visual { max-width: 100%; margin: 0 auto; }
  .vision-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .vision-grid.reverse { direction: ltr; }
  .cs-intro-grid  { grid-template-columns: 1fr; }
  .cs-intro-badge { justify-content: flex-start; }
  .lavori-grid    { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .form-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row-2     { grid-template-columns: 1fr; }
  .contact-form-box { padding: 2rem 1.5rem; }
  .cta-band       { padding: 4rem 0; }
  .cta-band-inner { flex-direction: column; gap: 1.5rem; }
  .footer-grid    { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand   { grid-column: 1 / -1; }

  /* Page heroes */
  .page-hero { padding: 88px 1.5rem 3rem; min-height: 44vh; }
  .page-hero.short { min-height: 38vh; }
  .page-hero-content h1 { font-size: clamp(2.2rem, 8vw, 4rem); }

  /* Quote */
  .quote-section { padding: 6rem 1.5rem; }
  .quote-bg::after { left: 1rem; right: 1rem; top: 1rem; bottom: 1rem; }
  blockquote { font-size: clamp(1.4rem, 4vw, 2rem); }

  /* Partners marquee masks smaller */
  .marquee-mask { width: 60px; }
}

/* ── 640px mobile landscape / small tablet ── */
@media (max-width: 640px) {
  .settori-grid { grid-template-columns: 1fr; }
  .valori-grid  { grid-template-columns: 1fr; }
  .lavori-grid  { grid-template-columns: repeat(2,1fr); gap: 4px; }
  .footer-grid  { grid-template-columns: 1fr; }
  .footer-brand p { max-width: 100%; }

  .hero-h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); line-height: 1; }
  .hero-content { padding: 80px 1.25rem 4.5rem; }
  .hero-tag { font-size: .78rem; }
  .hero-sub { font-size: .9rem; }
  .hero-actions { flex-direction: column; gap: .75rem; }
  .hero-actions a { text-align: center; justify-content: center; width: 100%; }

  .num-item { padding: 1.6rem 1rem; }
  .prodotto-visual { max-width: 100%; }

  /* filtri lavori su mobile */
  .lavori-filters { padding: 1.25rem 0 0 !important; gap: .5rem !important; }

  .cta-band-inner h2 { font-size: 1.5rem; }
  .cta-band-inner .btn-white { width: 100%; justify-content: center; }

  .contact-form-box { padding: 1.5rem 1.2rem; }
  .section-header h2 { font-size: 1.6rem; }
}

/* ── 400px small phones ── */
@media (max-width: 400px) {
  .hero-h1 { font-size: 2rem; }
  .hero-tag { font-size: .72rem; }
  .numbers-grid { grid-template-columns: repeat(2,1fr); }
  .num-item { padding: 1.4rem .75rem; }
  .num-val { font-size: 1.9rem; }
  .num-plus { font-size: 1rem; }
  .lavori-grid { grid-template-columns: repeat(2,1fr); gap: 3px; }
  .footer-logo { height: 90px; }
  #nav { height: 72px; }
  #nav.scrolled { height: 64px; }
  .nav-logo .logo-nav,
  .nav-logo .logo-fixed,
  .nav-logo .logo-scroll { height: 48px; }
  .nav-links { top: 72px; }
}

/* ── FILTER BUTTONS (lavori.html) ── */
.filter-btn {
  font-family: var(--font-b);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  color: var(--text-sub);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* ══════════════════════════════════
   STICKY CALL BUTTON — mobile only
══════════════════════════════════ */
.sticky-call {
  display: none; /* nascosto su desktop */
}
@media (max-width: 900px) {
  .sticky-call {
    display: flex;
    align-items: center;
    gap: .65rem;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 300;
    background: var(--red);
    color: #fff;
    text-decoration: none;
    font-family: var(--font-b);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .08em;
    padding: 13px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(235,33,46,.45);
    white-space: nowrap;
    transition: background .2s, transform .2s, box-shadow .2s;
  }
  .sticky-call:hover,
  .sticky-call:focus { background: var(--red-dark); box-shadow: 0 6px 28px rgba(235,33,46,.55); }
  /* padding bottom su body per non coprire contenuto con il tasto */
  body { padding-bottom: 72px; }
}

/* ══════════════════════════════════
   ANCHOR NAV — prodotti.html
══════════════════════════════════ */
.prod-anchor-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 92px; /* allineato alla navbar desktop */
  z-index: 100;
  transition: top .3s;
}
#nav.scrolled ~ .prod-anchor-nav { top: 74px; }
.prod-anchor-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.prod-anchor-list::-webkit-scrollbar { display: none; }
.prod-anchor-link {
  display: block;
  padding: .85rem 1.25rem;
  font-family: var(--font-b);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-sub);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.prod-anchor-link:hover { color: var(--red); border-bottom-color: var(--red); }
.prod-anchor-link.active { color: var(--red); border-bottom-color: var(--red); }
@media (max-width: 900px) {
  .prod-anchor-nav { top: 80px; }
  #nav.scrolled ~ .prod-anchor-nav { top: 70px; }
  .prod-anchor-link { padding: .75rem 1rem; font-size: .68rem; }
}
