:root {
  --blue: #2D7DD2;
  --blue-dark: #1F5FA3;
  --anthracite: #4A4A52;
  --anthracite-dark: #2E2E33;
  --bg: #FAFBFC;
  --bg-alt: #F0F3F6;
  --white: #FFFFFF;
  --text: #2A2A2E;
  --text-light: #6B6B72;
  --border: #E2E6EA;
  --shadow: 0 4px 20px rgba(42, 42, 46, 0.08);
  --shadow-hover: 0 8px 30px rgba(45, 125, 210, 0.15);
  --radius: 10px;
  --max-width: 1140px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text .name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.brand-text .sub {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--anthracite);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--anthracite);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.main-nav a:hover { color: var(--blue); }

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

.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--anthracite);
  border-radius: 2px;
  transition: 0.25s;
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .main-nav a.active::after { display: none; }
  .main-nav a.active { background: var(--bg-alt); }
  .nav-toggle { display: flex; }
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--anthracite-dark) 0%, var(--anthracite) 55%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 90px 24px 80px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FC6EC;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* page hero variant (shorter, for inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--anthracite-dark) 0%, var(--anthracite) 55%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 56px 24px 60px;
  text-align: center;
}

.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9FC6EC;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(45, 125, 210, 0.35);
}

.btn-primary:hover { background: var(--blue-dark); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }

.btn-block { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
section { padding: 72px 24px; }

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--anthracite-dark);
}

.section-head p {
  margin-top: 12px;
  color: var(--text-light);
  font-size: 1.02rem;
}

/* ===== CARDS / GRID ===== */
.grid {
  display: grid;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 125, 210, 0.25);
}

.card .icon-badge {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 18px;
  font-size: 1.4rem;
  font-weight: 800;
}

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--anthracite-dark);
}

.card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== MANDANTI GRID ===== */
.mandante-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.mandante-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(45, 125, 210, 0.25);
}

.mandante-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--blue);
  border: 1px solid var(--border);
}

.mandante-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--anthracite-dark);
  margin-bottom: 6px;
}

.mandante-card .settore {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue);
  background: rgba(45, 125, 210, 0.08);
  padding: 4px 12px;
  border-radius: 30px;
}

/* ===== STATS ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

.stat-item { text-align: center; }

.stat-item .num {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.stat-item .label {
  margin-top: 6px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ===== STEPS (come operiamo) ===== */
.steps {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step .step-num {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--anthracite-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.step h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--anthracite-dark);
  margin-bottom: 6px;
}

.step p {
  color: var(--text-light);
  font-size: 0.96rem;
}

/* ===== CONTACT ===== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: start;
}

@media (max-width: 800px) {
  .contact-wrap { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--anthracite-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px 30px;
}

.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.contact-line {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-line .ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-line .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9FC6EC;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-line .value {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--anthracite-dark);
  margin-bottom: 7px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(45, 125, 210, 0.12);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.show { display: block; }

.form-status.ok {
  background: rgba(45, 180, 110, 0.1);
  color: #1F8A52;
}

/* ===== CTA STRIP ===== */
.cta-strip {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}

.cta-strip h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--anthracite-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 50px 24px 26px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

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

.footer-brand img { height: 38px; }

.footer-brand .name {
  font-weight: 800;
  color: var(--white);
  font-size: 1rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col a, .footer-col p {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--white); }

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-credit img {
  height: 22px;
  width: auto;
  border-radius: 3px;
}

/* ===== PLACEHOLDER BLOCK (used while filling content together) ===== */
.placeholder-note {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(45, 125, 210, 0.06);
  border: 1.5px dashed rgba(45, 125, 210, 0.35);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--blue-dark);
  font-size: 0.92rem;
  text-align: center;
}
