/* ==========================================================================
   Konsulting S.a.S. — stylesheet
   ========================================================================== */

:root {
  --navy-950: #0b1330;
  --navy-900: #0f1b3c;
  --navy-800: #16224a;
  --navy-700: #1f2f5c;
  --ice-100: #eef2fb;
  --ice-200: #d7e3fa;
  --paper: #f6f7fb;
  --white: #ffffff;
  --ink: #1a2138;
  --muted: #5b6478;
  --muted-light: #8890a3;
  --accent: #2fa88a;
  --accent-dark: #227860;
  --accent-light: #e4f5f0;
  --line: #e5e8f0;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(15, 27, 60, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 27, 60, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 60, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--muted); }

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

section { padding: 88px 0; }
@media (max-width: 720px) { section { padding: 56px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 640px;
}

/* ---------------------------------- Buttons ---------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(47, 168, 138, 0.28);
}
.btn-primary:hover { background: var(--accent-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255,255,255,0.6); }

.btn-dark {
  background: var(--navy-900);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-800); }

.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-900); }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo .mark {
  width: 34px;
  height: 34px;
  flex: none;
}
.logo .sub {
  display: block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice-200);
  opacity: 0.75;
  margin-top: 2px;
}

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

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ice-100);
  font-size: 15px;
  font-weight: 500;
  opacity: 0.82;
  position: relative;
  padding: 6px 0;
  transition: opacity 0.15s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.active { opacity: 1; }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .nav-links { position: fixed; top: 82px; left: 0; right: 0; bottom: 0;
    background: var(--navy-950); flex-direction: column; gap: 0;
    padding: 12px 24px 32px; transform: translateY(-8px); opacity: 0;
    pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 17px; }
  .nav-cta .btn-primary { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  position: relative;
  background: radial-gradient(1100px 560px at 82% -10%, rgba(47, 168, 138, 0.28), transparent 60%),
              linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 60%, var(--navy-800) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 120px 0 110px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.5) 40%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.5) 40%, transparent 85%);
  opacity: 0.5;
  pointer-events: none;
}

.hero .container { position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 {
  color: var(--white);
  font-size: 52px;
  margin-bottom: 22px;
}
@media (max-width: 720px) { .hero h1 { font-size: 36px; } }

.hero .lead { color: var(--ice-200); font-size: 19px; max-width: 560px; }

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 40px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 13.5px; color: var(--ice-100);
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero-page {
  padding: 74px 0 74px;
}
.hero-page h1 { font-size: 42px; }
.hero-page .lead { max-width: 620px; }

/* Card graphic used in home hero */
.hero-panel {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel-title {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ice-200);
  opacity: 0.7;
  margin-bottom: 18px;
}
.hero-stat-list { display: grid; gap: 18px; }
.hero-stat {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat .num { font-family: var(--serif); font-size: 26px; color: var(--white); }
.hero-stat .label { font-size: 13.5px; color: var(--ice-200); opacity: 0.8; text-align: right; }

/* ---------------------------------- Sections ---------------------------------- */

.section-head {
  max-width: 680px;
  margin-bottom: 52px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-paper { background: var(--paper); }
.bg-navy { background: var(--navy-900); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: var(--ice-200); }

/* About snippet on homepage */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

.locations { display: grid; gap: 14px; margin-top: 28px; }
.location-chip {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.location-chip .icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.location-chip .name { font-weight: 600; color: var(--navy-900); font-size: 15px; }
.location-chip .addr { font-size: 13.5px; color: var(--muted); }

/* Service cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }

.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy-900); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14.5px; margin-bottom: 0; }
.card .num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted-light);
  margin-bottom: 14px;
  display: block;
}

/* Value props */
.value-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 8px; }
@media (max-width: 900px) { .value-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .value-list { grid-template-columns: 1fr; } }
.value-item .icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.value-item h3 { font-size: 17px; margin-bottom: 8px; }
.value-item p { font-size: 14px; margin-bottom: 0; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--navy-950), var(--navy-800));
  border-radius: 20px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(47,168,138,0.35), transparent 70%);
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; font-size: 28px; }
.cta-banner p { color: var(--ice-200); margin-bottom: 0; }
.cta-text { max-width: 460px; }
@media (max-width: 720px) { .cta-banner { flex-direction: column; text-align: center; padding: 40px 28px; } }

/* Long-form text page (Chi siamo) */
.prose { max-width: 760px; }
.prose p { font-size: 17px; color: var(--ink); }
.prose p:first-of-type {
  font-size: 20px;
  color: var(--navy-900);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.5;
}

/* Timeline / mission strip */
.strip {
  display: flex;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 56px 0;
}
.strip-item {
  flex: 1;
  padding: 28px 30px;
  border-right: 1px solid var(--line);
}
.strip-item:last-child { border-right: none; }
.strip-item .n { font-family: var(--serif); font-size: 30px; color: var(--accent-dark); display: block; margin-bottom: 6px; }
.strip-item .t { font-size: 14px; color: var(--muted); }
@media (max-width: 720px) { .strip { flex-direction: column; } .strip-item { border-right: none; border-bottom: 1px solid var(--line); } .strip-item:last-child{border-bottom:none;} }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}
.info-row {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: none; padding-bottom: 0; }
.info-row:first-child { padding-top: 0; }
.info-row .icon {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--accent-light); color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center;
}
.info-row .k { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); margin-bottom: 3px; }
.info-row .v { font-size: 15.5px; color: var(--navy-900); font-weight: 500; }
.info-row .v a:hover { color: var(--accent-dark); }

.legal-box {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 28px 30px;
  font-size: 14px;
  color: var(--muted);
  margin-top: 24px;
}
.legal-box strong { color: var(--navy-900); }
.legal-box .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.legal-box .row:last-child { border-bottom: none; }

.form-card {
  background: var(--navy-900);
  border-radius: var(--radius);
  padding: 34px;
  color: var(--white);
}
.form-card h3 { color: var(--white); }
.form-card p { color: var(--ice-200); font-size: 14.5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; letter-spacing: 0.04em; color: var(--ice-200); opacity: 0.85; }
.form-field input, .form-field textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--sans);
  font-size: 14.5px;
  resize: vertical;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(255,255,255,0.4); }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: 12.5px; color: rgba(255,255,255,0.55); margin-top: 14px; margin-bottom: 0; }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-top: 24px;
  filter: grayscale(0.15);
}
.map-frame iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--navy-950);
  color: var(--ice-200);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(238,242,251,0.65); max-width: 300px; }

.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(238,242,251,0.75); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; font-size: 13px; color: rgba(238,242,251,0.5);
  flex-wrap: wrap; gap: 10px;
}

/* ---------------------------------- Utilities ---------------------------------- */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* ---------------------------------- Referenze page ---------------------------------- */

.ref-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ref-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.ref-item:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }

.ref-head { margin-bottom: 14px; }
.ref-head h3 { font-size: 19px; margin: 0; max-width: 720px; }

.ref-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 30px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}
.ref-meta strong { color: var(--navy-900); font-weight: 600; }

.ref-bullets { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ref-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink);
}
.ref-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-footnote {
  text-align: center;
  font-size: 13px;
  color: var(--muted-light);
  font-style: italic;
  margin: 40px 0 0;
}

/* ---------------------------------- Language switch ---------------------------------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-right: 6px;
}
.lang-switch a {
  color: var(--ice-100);
  opacity: 0.55;
  padding: 4px 2px;
  transition: opacity 0.15s ease;
}
.lang-switch a:hover { opacity: 0.85; }
.lang-switch a.active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent);
}
.lang-switch .sep { color: var(--ice-100); opacity: 0.3; font-weight: 400; }
