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

:root {
  --navy: #28385d;
  --navy-light: #334672;
  --red: #bd2c33;
  --red-light: #d4464d;
  --cream: #f5f0e6;
  --cream-dark: #ede5d4;
  --text-dark: #1a1a1a;
  --text-muted: #6b6b6b;
  --white: #ffffff;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Raleway', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(40, 56, 93, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(189,44,51,0.15);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-img { height: 52px; width: auto; display: block; }

.header-left { display: flex; align-items: center; gap: 0; }

.logo-mark, .logo-full {
  width: auto;
  transition: opacity 0.35s ease;
}
.logo-mark { height: 56px; }
.logo-full { height: 44px; display: none; }
header.scrolled .logo-mark { display: none; }
header.scrolled .logo-full { display: block; }

.header-name {
  font-family: 'EB Garamond', serif;
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.22em;
  line-height: 1.35;
  text-transform: uppercase;
  padding-left: 20px;
  margin-left: 20px;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: opacity 0.3s ease, max-width 0.35s ease, padding 0.35s ease, margin 0.35s ease, border-color 0.35s ease;
  max-width: 280px;
  overflow: hidden;
  white-space: nowrap;
}
.header-name span:first-child {
  font-style: italic;
  color: var(--red-light);
  letter-spacing: 0.18em;
}
header.scrolled .header-name {
  opacity: 0;
  max-width: 0;
  padding-left: 0;
  margin-left: 0;
  border-left-color: transparent;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav a {
  text-decoration: none;
  color: rgba(255,255,255,0.65);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}

nav a.active { color: var(--white); }

nav a .num {
  font-size: 8px;
  color: var(--red);
  margin-bottom: 1px;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  letter-spacing: 0.1em;
}

nav a:hover { color: var(--white); }

nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a.active::after,
nav a:hover::after { transform: scaleX(1); }

/* ── PAGE HERO ── */
.page-hero {
  padding-top: 80px;
  background:
    linear-gradient(to right, rgba(40,56,93,0.92) 0%, rgba(40,56,93,0.78) 55%, rgba(40,56,93,0.55) 100%),
    url('../images/header/clienti.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 45%;
  height: 100%;
  background:
    linear-gradient(135deg, transparent 40%, rgba(189,44,51,0.08) 100%);
  pointer-events: none;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 48px 80px;
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}

.breadcrumb a {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb a:hover { color: rgba(255,255,255,0.7); }

.breadcrumb-sep { color: rgba(255,255,255,0.2); font-size: 10px; }

.breadcrumb-current {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}

.page-hero-num {
  font-family: 'EB Garamond', serif;
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.2em;
  color: var(--red);
  margin-bottom: 20px;
}

.page-hero-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(52px, 7vw, 90px);
  font-weight: 400;
  line-height: 1.0;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 36px;
  max-width: 640px;
}

.page-hero-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  line-height: 2;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.hero-stats {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.hero-stat {
  padding: 32px 32px 32px 0;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.hero-stat:last-child { border-right: none; padding-left: 32px; }
.hero-stat:not(:first-child) { padding-left: 32px; }

.hs-number {
  font-family: 'EB Garamond', serif;
  font-size: 42px;
  font-weight: 400;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.hs-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
}

/* ── INTRO ── */
.intro {
  padding: 100px 0;
  background: var(--white);
}

.intro-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  align-items: start;
}

.intro-left {
  position: sticky;
  top: 120px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(40,56,93,0.45);
  margin-bottom: 24px;
}

.section-label::before {
  content: '';
  width: 28px; height: 1px;
  background: rgba(40,56,93,0.3);
}

.section-label.light { color: rgba(255,255,255,0.4); }
.section-label.light::before { background: rgba(255,255,255,0.25); }

.intro-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 28px;
}

.intro-accent-line {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin-bottom: 32px;
}

.intro-sidebar-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 2;
  font-weight: 300;
}

.intro-lead {
  font-family: 'EB Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--navy);
  margin-bottom: 36px;
  border-left: 3px solid var(--red);
  padding-left: 28px;
}

.intro-body {
  font-size: 13.5px;
  color: #3a3a3a;
  line-height: 2;
  font-weight: 300;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

/* ── TIPOLOGIE CLIENTI (mission-style grid) ── */
.tipologie-section {
  background: var(--cream);
  padding: 96px 0;
}

.tipologie-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.tipologie-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.tipologie-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 36px;
}

.tipologie-body {
  font-size: 13px;
  color: #4a4a4a;
  line-height: 2.1;
  font-weight: 300;
  margin-bottom: 20px;
}

.tipologie-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(40,56,93,0.1);
}

.tipologia-item {
  background: var(--cream);
  padding: 28px 36px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.25s;
}

.tipologia-item:hover { background: var(--navy); }
.tipologia-item:hover .ti-num { color: var(--white); }
.tipologia-item:hover .ti-text { color: rgba(255,255,255,0.75); }

.ti-num {
  font-family: 'EB Garamond', serif;
  font-size: 16px;
  font-style: italic;
  color: var(--red);
  letter-spacing: 0.15em;
  flex-shrink: 0;
  width: 36px;
  padding-top: 2px;
  transition: color 0.25s;
}

.ti-text {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.85;
  font-weight: 400;
  transition: color 0.25s;
}

/* ── SETTORI SERVITI (metodo-style 4 cards) ── */
.settori {
  padding: 100px 0;
  background: var(--navy);
  color: var(--white);
}

.settori-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.settori-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.settori-header {
}

.settori-title {
  font-family: 'EB Garamond', serif;
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 400;
  line-height: 1.1;
  color: var(--white);
}

.settori-intro {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 2;
  font-weight: 300;
}

.settori-grid {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.settore-card {
  background: var(--navy);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.settore-card:hover { background: var(--navy-light); }

.sc-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.settore-card:hover .sc-bar { transform: scaleX(1); }

.sc-num {
  font-family: 'EB Garamond', serif;
  font-size: 56px;
  font-weight: 400;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 20px;
}

.sc-title {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.sc-text {
  font-size: 11.5px;
  color: rgba(255,255,255,0.5);
  line-height: 1.9;
  font-weight: 300;
}

/* ── CITAZIONE / VALORI ── */
.valori {
  padding: 96px 0;
  background: var(--cream);
}

.valori-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

.valori-quote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--navy);
  max-width: 920px;
  border-left: 3px solid var(--red);
  padding-left: 36px;
  margin-bottom: 24px;
}

.valori-author {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
  padding-left: 39px;
}

/* ── STRIP CONTATTI ── */
.contact-strip {
  background: var(--red);
  padding: 24px 0;
}

.contact-strip-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cs-text {
  font-family: 'EB Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  font-style: italic;
  color: var(--white);
}

.cs-actions { display: flex; align-items: center; gap: 32px; }

.cs-phone {
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.cs-phone:hover { opacity: 0.8; }

.cs-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--white);
  color: var(--red);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.2s;
}

.cs-btn:hover { opacity: 0.85; }


#footer > .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(189,44,51,0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 36px;
}

.footer-brand-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-logo-img {
  height: 56px;
  width: auto;
}

.footer-tagline {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}

.footer-col-title {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 24px;
}

.footer-nav { display: flex; flex-direction: column; gap: 12px; }

.footer-nav a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--red); }
.footer-nav-legal {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-legal a {
  text-decoration: none;
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-nav-legal a:hover { color: var(--red); }



.contact-line {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  flex-direction: column;
}

.contact-item-label {
  font-size: 8px;
  letter-spacing: 0.25em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 3px;
}

.contact-item-value {
  font-size: 11px;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.5;
}

.contact-item-value a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-item-value a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 9px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.1em;
  font-weight: 300;
}

.footer-red-accent { display: flex; align-items: center; gap: 10px; }

.footer-red-line { width: 40px; height: 1px; background: var(--red); opacity: 0.35; }
.footer-red-dot { width: 4px; height: 4px; background: var(--red); opacity: 0.4; }

/* ── POWERED BY ── */
.powered {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 14px 48px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.powered a {
  font-size: 9px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.25);
  text-decoration: none;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s;
}

.powered a:hover { color: var(--red); }
