/* ============================================================
   Experts Marketing — design system
   White + light blue theme (AI Media Group inspired)
   ============================================================ */
/* fraunces-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/fraunces-v38-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/fraunces-v38-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/fraunces-v38-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/fraunces-v38-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/fraunces-v38-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* fraunces-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/fraunces-v38-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 400;
  src: url('fonts/inter-v20-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-500italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 500;
  src: url('fonts/inter-v20-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-600italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 600;
  src: url('fonts/inter-v20-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Inter';
  font-style: italic;
  font-weight: 700;
  src: url('fonts/inter-v20-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
:root {
  /* Color */
  --bg:           #ffffff;
  --bg-alt:       #f3f7fc;
  --bg-soft:      #eaf2ff;
  --surface:      #ffffff;
  --ink:          #0a1f44;
  --ink-soft:     #4a5878;
  --ink-mute:     #8a93a8;
  --line:         #e6ecf3;
  --line-strong:  #cfdbeb;
  --accent:       #4a8cf7;
  --accent-deep:  #2563eb;
  --accent-soft:  #dbeafe;
  --accent-glow:  rgba(74, 140, 247, 0.18);
  --navy-card:    #0a1f44;
  --navy-deep:    #061534;

  /* Type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;

  /* Layout */
  --max:        1280px;
  --pad:        clamp(20px, 5vw, 64px);
  --radius:     18px;
  --radius-sm:  10px;
  --radius-lg:  28px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Type ---------- */
.display, h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1.02; }
h2 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.06; }
h3 { font-size: clamp(20px, 2vw, 28px); line-height: 1.25; }
em, .italic { font-style: italic; }
h1 em, h2 em { color: var(--accent); }

p  { margin: 0 0 1em; color: var(--ink-soft); font-size: 17px; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: var(#ffffff); max-width: 60ch; line-height: 1.5; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
}

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
section { padding: clamp(80px, 10vw, 140px) 0; }
.section-tight { padding: clamp(50px, 6vw, 90px) 0; }

.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); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary {
  background: var(--accent-deep); /* #2563eb — contrast 5.1:1 on white, WCAG AA ✓ */
  color: #fff;
  box-shadow: 0 10px 28px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(37, 99, 235, .35);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.btn-arrow::after {
  content: "→";
  font-weight: 400;
  transition: transform .2s ease;
}
.btn-arrow:hover::after { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 18px var(--pad);
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 32px; width: auto; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--ink-soft);
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { padding: 10px 18px; font-size: 14px; }
@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 9vw, 120px);
  position: relative;
  overflow: hidden;
  min-height: 600px;
}

/* Carosello: stack di slide in assoluto dietro il testo */
.hero-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 20s infinite;
  will-change: opacity;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 4s; }
.hero-slide:nth-child(3) { animation-delay: 8s; }
.hero-slide:nth-child(4) { animation-delay: 12s; }
.hero-slide:nth-child(5) { animation-delay: 16s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }
  25%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Overlay scuro per leggibilità */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 52, 0.78) 0%,
    rgba(6, 21, 52, 0.50) 55%,
    rgba(6, 21, 52, 0.35) 100%
  );
}

/* Testo sopra il carosello */
.hero > .container {
  position: relative;
  z-index: 1;
}

/* Colori testo su sfondo scuro */
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.70);
}
.hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.50);
}
.hero h1 {
  color: #fff;
}
.hero h1 em {
  color: var(--accent);
}
.hero .lead {
  color: rgb(255, 255, 255);
  margin-top: 30px;
  font-size: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.55);
}
.hero .actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* btn-ghost adattato per sfondo scuro */
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.hero .btn-ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero-meta {
  display: flex;
  gap: 22px;
  margin-top: 64px;
  font-size: 15px;
  color: #ffffff;
  letter-spacing: .04em;
  flex-wrap: wrap;
}
.hero-meta a {
  color: inherit;
  text-decoration: none;
  opacity: 2;
  transition: opacity .2s;
}
.hero-meta a:hover { opacity: 1; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 22px 50px -28px var(--accent-glow);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 12px; }
.card p { font-size: 15px; }

.service-card {
  display: flex; flex-direction: column;
  min-height: 280px;
  position: relative;
}
.service-card .num {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 16px;
}
.service-card ul {
  list-style: none; padding: 0; margin: 16px 0 24px;
  font-size: 14px; color: var(--ink-soft);
}
.service-card ul li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.service-card ul li:first-child { border-top: 0; }
.service-card .cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 14px;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.service-card .cta::after {
  content: "→"; transition: transform .2s ease;
}
.service-card:hover .cta::after { transform: translateX(4px); }

/* ---------- KPI ---------- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 50px -32px rgba(10, 31, 68, .12);
}
.kpi-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) {
  .kpi-grid, .kpi-grid.cols-3 { grid-template-columns: 1fr; }
}
.kpi {
  padding: 48px 38px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}
.kpi:last-child { border-right: 0; }
@media (max-width: 700px) {
  .kpi { border-right: 0; border-bottom: 1px solid var(--line); }
  .kpi:last-child { border-bottom: 0; }
}
.kpi .num {
  font-family: var(--font-serif);
  font-size: clamp(52px, 6.5vw, 84px);
  color: var(--accent);
  line-height: 1;
  font-style: italic;
  font-weight: 500;
}
.kpi .label {
  margin-top: 16px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
}
.kpi .desc { margin-top: 14px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Logos strip ---------- */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}
.logos-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 32px 32px;
}
@media (max-width: 900px) {
  .logos-grid { flex-wrap: wrap; }
}
.logo-mark {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 18px;
  color: var(--ink-soft);
  text-align: center;
  padding: 6px 0;
  opacity: .7;
  transition: opacity .2s ease, color .2s ease;
}
.logo-mark:hover { opacity: 1; color: var(--ink); }
@media (max-width: 560px) { .logos-grid { gap: 20px 28px; } }

/* ---------- Image blocks ---------- */
.img-block {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  position: relative;
}
.img-block img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.img-tall { aspect-ratio: 4 / 5; }
.img-wide { aspect-ratio: 16 / 9; }
.img-square { aspect-ratio: 1 / 1; }

/* ---------- Two-column with image ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
}
.testimonial::before {
  content: "\201C";
  position: absolute;
  top: 8px;
  left: 24px;
  font-family: var(--font-serif);
  font-size: 80px;
  line-height: 1;
  color: var(--accent-soft);
  font-style: italic;
}
.testimonial blockquote {
  position: relative;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 16px 0 22px;
  font-style: italic;
}
.testimonial cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: var(--ink-mute);
  font-weight: 500;
}
.testimonial cite strong { color: var(--ink); font-weight: 600; }

/* ---------- CTA banner ---------- */
.banner {
  background: var(--navy-deep);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(74, 140, 247, .35) 0%, transparent 60%),
    radial-gradient(500px 280px at 0% 100%, rgba(74, 140, 247, .25) 0%, transparent 60%);
  pointer-events: none;
}
.banner > * { position: relative; }
.banner h2 { color: #fff; }
.banner h2 em { color: #9cc1ff; }
.banner .eyebrow { color: #9cc1ff; }
.banner .eyebrow::before { background: #9cc1ff; }
.banner p { color: rgba(255,255,255,.78); margin: 18px auto 32px; max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq details {
  border-top: 1px solid var(--line);
  padding: 26px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 22px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 24px;
  color: var(--accent);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 16px;
  font-size: 16px;
  max-width: 70ch;
}

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 20px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form .row { grid-template-columns: 1fr; } }
.form label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .14em; color: var(--ink-mute);
  margin-bottom: 6px; display: block;
}
.form input, .form select, .form textarea {
  font: inherit;
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.form textarea { min-height: 130px; resize: vertical; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.step:hover { border-color: var(--accent); box-shadow: 0 22px 50px -28px var(--accent-glow); }
.step .step-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.step p { font-size: 15px; margin: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  margin-top: 0;
  background: var(--bg-alt);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 16px;
  font-weight: 600;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; font-size: 14px; }
.footer ul li a { color: var(--ink-soft); transition: color .15s ease; }
.footer ul li a:hover { color: var(--accent-deep); }
.footer .brand p { font-size: 14px; max-width: 36ch; margin-top: 12px; }
.footer .legal {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mute);
}
@media (max-width: 600px) { .footer .legal { flex-direction: column; gap: 8px; } }

/* ---------- Decorative accents ---------- */
.accent-line {
  width: 56px; height: 2px; background: var(--accent);
  margin-bottom: 28px;
}
.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Compare table ---------- */
.compare {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 15px;
}
.compare th, .compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th {
  background: var(--bg-alt);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.compare tr:last-child td { border-bottom: 0; }
.compare td:first-child { font-weight: 500; color: var(--ink); }

/* ---------- Section variants ---------- */
.bg-soft { background: var(--bg-alt); }
.bg-blue { background: var(--accent-soft); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.spacer-sm { height: 24px; }
.spacer { height: 48px; }
.spacer-lg { height: 80px; }

/* ---------- Nav hover underline ---------- */
.nav-links a:not(.btn) {
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:not(.btn):hover {
  border-bottom-color: currentColor;
}

/* ---------- Logos label ---------- */
.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .55;
  margin-bottom: 1.5rem;
}

/* ---------- Service card result tag ---------- */
.service-card .result {
  display: block;
  font-size: 14px;
  font-style: italic;
  opacity: .65;
  margin-top: 8px;
  margin-bottom: 4px;
}

/* ---------- KPI link ---------- */
.kpi-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.kpi-link:hover { text-decoration: underline; }

/* ---------- Footer LinkedIn link ---------- */
.footer-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  opacity: .65;
  text-decoration: none;
  color: inherit;
  margin-top: 10px;
  transition: opacity .2s;
}
.footer-linkedin:hover { opacity: 1; }

/* ---------- Footer legal links ---------- */
.footer .legal a {
  color: inherit;
  text-decoration: none;
  opacity: .6;
  transition: opacity .2s;
}
.footer .legal a:hover { opacity: 1; }
/* ---------- Page hero backgrounds ---------- */
.hero-bg-towers    { background-image: url('images/bcn-towers.webp'); }
.hero-bg-skyscrapers { background-image: url('images/bcn-skyscrapers.webp'); }
.hero-bg-encants   { background-image: url('images/bcn-encants.webp'); }
.hero-bg-mix       { background-image: url('images/bcn-mix.webp'); }
.hero-bg-museu     { background-image: url('images/bcn-museu-disseny.webp'); }

.hero-bg-towers,
.hero-bg-skyscrapers,
.hero-bg-encants,
.hero-bg-mix,
.hero-bg-museu {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-bg-towers::before,
.hero-bg-skyscrapers::before,
.hero-bg-encants::before,
.hero-bg-mix::before,
.hero-bg-museu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(6, 21, 52, 0.78) 0%,
    rgba(6, 21, 52, 0.50) 55%,
    rgba(6, 21, 52, 0.35) 100%
  );
  z-index: 0;
}

.hero-bg-towers > .container,
.hero-bg-skyscrapers > .container,
.hero-bg-encants > .container,
.hero-bg-mix > .container,
.hero-bg-museu > .container {
  position: relative;
  z-index: 1;
}

.hero-bg-towers h1, .hero-bg-skyscrapers h1,
.hero-bg-encants h1, .hero-bg-mix h1, .hero-bg-museu h1 { color: #fff; }

.hero-bg-towers h1 em, .hero-bg-skyscrapers h1 em,
.hero-bg-encants h1 em, .hero-bg-mix h1 em, .hero-bg-museu h1 em { color: var(--accent); }

.hero-bg-towers .eyebrow, .hero-bg-skyscrapers .eyebrow,
.hero-bg-encants .eyebrow, .hero-bg-mix .eyebrow, .hero-bg-museu .eyebrow { color: rgba(255,255,255,0.70); }

.hero-bg-towers .eyebrow::before, .hero-bg-skyscrapers .eyebrow::before,
.hero-bg-encants .eyebrow::before, .hero-bg-mix .eyebrow::before, .hero-bg-museu .eyebrow::before { background: rgba(255,255,255,0.50); }

.hero-bg-towers .lead, .hero-bg-skyscrapers .lead,
.hero-bg-encants .lead, .hero-bg-mix .lead, .hero-bg-museu .lead { color: rgba(255,255,255,0.78); }

.hero-bg-towers .btn-ghost, .hero-bg-skyscrapers .btn-ghost,
.hero-bg-encants .btn-ghost, .hero-bg-mix .btn-ghost, .hero-bg-museu .btn-ghost {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
/* ---------- Mobile hamburger menu ---------- */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  margin-left: 12px;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-burger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .3s ease, opacity .2s ease;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  overflow: hidden;
  max-height: 0; visibility: hidden;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid transparent;
  transition: max-height .35s ease, visibility .35s;
}
.nav-mobile.is-open {
  max-height: 440px; visibility: visible;
  border-top-color: var(--line);
}
.nav-mobile a {
  display: block;
  padding: 14px var(--pad);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: color .15s ease;
}
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .nav-cta {
  display: inline-flex;
  margin: 16px var(--pad) 20px;
  border-bottom: none;
  color: #fff;
}
.nav-mobile .nav-cta:hover { color: #fff; }

@media (max-width: 760px) {
  .nav-burger { display: flex; }
  .nav-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-burger span, .nav-mobile { transition: none; }
}

/* ============================================================
   Client logos — full color, uniform 32px height
   ============================================================ */
.logos-grid .logo-mark {
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  filter: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.logos-grid .logo-mark:hover {
  filter: none;
  opacity: 1;
}

/* ============================================================
   Hero glassmorphism box — compact desktop fit (v2)
   ============================================================ */
.hero {
  min-height: 600px;
  padding: clamp(40px, 6vw, 80px) 0 clamp(30px, 4vw, 60px);
}
.hero h1 {
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.05;
  margin-bottom: 12px;
}
.hero .lead {
  font-size: clamp(14px, 1vw, 16px);
  margin-top: 16px;
  margin-bottom: 0;
}
.hero .actions {
  margin-top: 24px;
}
.hero-meta {
  margin-top: 28px;
}

.hero-glass {
  background: rgba(6, 21, 52, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 820px;
  width: auto;
  padding: 28px 40px;
}
@media (max-width: 760px) {
  .hero-glass { padding: 32px 28px; }
}

/* ============================================================
   Mobile service links — always 2 per line
   ============================================================ */
@media (max-width: 760px) {
  .hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 8px;
  }
}
/* Fix Contrasto per Accessibilità 100/100 */
.btn-primary.nav-cta, .nav-mobile .nav-cta {
  background-color: #1d4ed8 !important; /* Un blu più intenso che stacca meglio sul bianco/chiaro */
  color: #ffffff !important;
}
.hero .eyebrow {
  color: #0369a1 !important; /* Un azzurro scuro che si legge perfettamente sullo sfondo della hero */
}