/* ═══════════════════════════════════════════════════════════════
   ADS Network Theme 2.0 — Design System
   Palette: bianco/nero + arancione brand #2D6BE4
   Typography: Inter (body) + Fraunces (display hero)
   Signature: griglia editoriale con numeri trasparenti come struttura
═══════════════════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ─────────────────────────────────────────────
   Fraunces: display serif con carattere — titoli hero
   Inter: corpo professionale e leggibile
   Caricati via functions.php, qui solo dichiarazione
──────────────────────────────────────────────────────────────── */

/* ── TOKENS ───────────────────────────────────────────────────── */
:root {
  /* Brand */
  --brand:       #2D6BE4;
  --brand-d:     #1A50C0;
  --brand-l:     #5A8FF0;
  --brand-ghost: rgba(45,107,228,.08);

  /* Neutrals */
  --ink:         #0A0A0F;
  --ink-60:      rgba(10,10,15,.6);
  --ink-12:      rgba(10,10,15,.12);
  --ink-06:      rgba(10,10,15,.06);
  --paper:       #FFFFFF;
  --paper-2:     #F7F7F8;
  --paper-3:     #EFEFEF;
  --muted:       #8891A4;
  --muted-d:     #5C6478;

  /* Text */
  --text:        #0A0A0F;
  --text-muted:  #8891A4;
  --text-light:  #FFFFFF;

  /* Border */
  --border:      rgba(10,10,15,.10);
  --border-dark: rgba(10,10,15,.20);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Scale */
  --text-xs:   .72rem;
  --text-sm:   .875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  2rem;
  --text-4xl:  2.75rem;
  --text-5xl:  3.75rem;
  --text-6xl:  5rem;
  --text-hero: clamp(3rem, 7vw, 6rem);

  /* Spacing */
  --section-y: clamp(5rem, 9vw, 9rem);
  --content-x: clamp(1.25rem, 4vw, 3rem);
  --max-w:     1200px;

  /* Motion */
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.55,0,1,.45);
  --dur-fast:  140ms;
  --dur-med:   260ms;
  --dur-slow:  420ms;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(10,10,15,.08),0 1px 2px rgba(10,10,15,.04);
  --shadow-md: 0 4px 16px rgba(10,10,15,.08),0 2px 6px rgba(10,10,15,.04);
  --shadow-lg: 0 12px 40px rgba(10,10,15,.12),0 4px 12px rgba(10,10,15,.06);
  --shadow-xl: 0 24px 64px rgba(10,10,15,.14);
}

/* ── RESET ────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
p { line-height: 1.75; color: var(--text-muted); }
strong { font-weight: 600; color: var(--text); }

/* ── LAYOUT HELPERS ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--content-x);
}
.section { padding: var(--section-y) 0; }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--text-light); }
.section--dark p { color: rgba(255,255,255,.55); }

/* ── TYPOGRAPHY SCALE ─────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.2rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.display {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: .96;
  letter-spacing: -.03em;
  color: var(--text);
}
.display em { font-style: italic; color: var(--brand); }

.headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.025em;
  color: var(--text);
}
.headline em { font-style: italic; color: var(--brand); }
.section--dark .headline { color: var(--text-light); }

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 1.8rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  border: none;
  transition: background var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(45,107,228,.3);
}
.btn-primary:hover {
  background: var(--brand-d);
  box-shadow: 0 8px 24px rgba(45,107,228,.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-dark);
}
.btn-outline:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-light);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.06);
}

.btn-text {
  background: transparent;
  color: var(--brand);
  padding-left: 0;
  padding-right: 0;
  font-weight: 600;
}
.btn-text::after { content: ' →'; transition: letter-spacing var(--dur-fast); }
.btn-text:hover::after { letter-spacing: .1em; }
.btn-text:hover { transform: none; }

/* ── NAVBAR ───────────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--dur-med);
}
#site-nav.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  color: var(--ink);
  flex-shrink: 0;
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo-text { color: var(--brand); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur-fast);
  position: relative;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  inset: auto 0 -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-med) var(--ease-out);
}
.nav-menu a:hover,
.nav-menu a.current-menu-item { color: var(--ink); }
.nav-menu a:hover::after,
.nav-menu a.current-menu-item::after { transform: scaleX(1); transform-origin: left; }

.nav-cta { margin-left: .5rem; }


/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--dur-med) var(--ease-out), opacity var(--dur-fast);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────────────────────── */
#hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Griglia editoriale in sottofondo — signature element */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--ink-06) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,.5) 30%, rgba(0,0,0,.5) 70%, transparent);
}
.hero-bg::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 50%;
  background: var(--paper-2);
}

.hero-left {
  position: relative;
  z-index: 1;
  padding: clamp(3rem,8vh,7rem) var(--content-x) clamp(3rem,8vh,7rem) max(var(--content-x), calc((100vw - var(--max-w)) / 2 + var(--content-x)));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.035em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.hero-title em { font-style: italic; color: var(--brand); }

.hero-desc {
  font-size: var(--text-lg);
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 44ch;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3.5rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hero-stat {}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .2rem;
}
.hero-stat-num sup { font-size: .55em; color: var(--brand); }
.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem,8vh,7rem) max(var(--content-x), calc((100vw - var(--max-w)) / 2 + var(--content-x))) clamp(3rem,8vh,7rem) var(--content-x);
}

/* Floating cards in hero right */
.hero-visual {
  width: 100%;
  max-width: 460px;
  position: relative;
}
.hero-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out);
}
.hero-card:hover { transform: translateY(-4px); }
.hero-card + .hero-card { margin-top: 1rem; }

.hero-card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.hero-card-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.hero-card-delta {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #22c55e;
  margin-top: .25rem;
}
.hero-card-services {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .6rem;
}
.hero-pill {
  font-size: .68rem;
  font-weight: 600;
  padding: .22rem .65rem;
  border-radius: 20px;
  background: var(--brand-ghost);
  color: var(--brand);
  border: 1px solid rgba(45,107,228,.15);
}

/* ── SERVICES STRIP ───────────────────────────────────────────── */
#services-strip {
  padding: 1.1rem 0;
  background: var(--paper-2);
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Track scorrevole: contiene due copie identiche del contenuto */
.services-strip-track {
  display: flex;
  width: max-content;
  animation: strip-scroll 55s linear infinite;
}
/* Pausa al hover */
#services-strip:hover .services-strip-track {
  animation-play-state: paused;
}
@keyframes strip-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
/* Sfumatura bordi */
#services-strip::before,
#services-strip::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 6rem;
  z-index: 2;
  pointer-events: none;
}
#services-strip { position: relative; }
#services-strip::before {
  left: 0;
  background: linear-gradient(to right, var(--paper-2), transparent);
}
#services-strip::after {
  right: 0;
  background: linear-gradient(to left, var(--paper-2), transparent);
}
/* Un gruppo di voci (ripetuto due volte nel HTML) */
.services-strip-inner {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.strip-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 0 2rem;
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.strip-item:hover { color: var(--brand); }
.strip-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  opacity: .6;
}
@media (prefers-reduced-motion: reduce) {
  .services-strip-track { animation: none; }
}

/* ── SERVICES GRID ────────────────────────────────────────────── */
#services {
  padding: var(--section-y) 0;
  background: var(--paper);
}

.section-header {
  margin-bottom: clamp(3rem,5vw,5rem);
}
.section-header.centered { text-align: center; }
.section-header.centered .lead { margin: 0 auto; }
.section-header.centered .eyebrow { justify-content: center; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.service-item {
  padding: 2.5rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background var(--dur-med);
}
.service-item:nth-child(3n) { border-right: none; }
.service-item:nth-last-child(-n+3) { border-bottom: none; }
.service-item:hover { background: var(--paper-2); }

/* Numero editoriale in trasparenza — elemento signature */
.service-num {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--ink-06);
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  pointer-events: none;
  transition: color var(--dur-med);
  letter-spacing: -.04em;
}
.service-item:hover .service-num { color: rgba(45,107,228,.08); }

.service-icon {
  width: 3rem;
  height: 3rem;
  background: var(--brand-ghost);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
  transition: background var(--dur-med), transform var(--dur-med);
}
.service-item:hover .service-icon {
  background: var(--brand);
  transform: scale(1.05);
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--brand); fill: none; transition: stroke var(--dur-fast); }
.service-item:hover .service-icon svg { stroke: #fff; }

.service-name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
  letter-spacing: -.01em;
}
.service-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  transition: gap var(--dur-fast);
}
.service-link:hover { gap: .6rem; }

/* ── ABOUT / COMPANY ──────────────────────────────────────────── */
#about {
  padding: var(--section-y) 0;
  background: var(--paper-2);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.about-kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.about-kpi {
  background: var(--paper);
  padding: 1.8rem;
}
.about-kpi-val {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
  margin-bottom: .3rem;
}
.about-kpi-val sup { font-size: .55em; color: var(--brand); }
.about-kpi-label { font-size: var(--text-sm); color: var(--text-muted); }

.about-image-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-3);
  aspect-ratio: 4/5;
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-box {
  position: absolute;
  bottom: 2rem;
  left: -1.5rem;
  background: var(--brand);
  color: #fff;
  padding: 1.2rem 1.5rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.about-accent-box-val {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}
.about-accent-box-label { font-size: var(--text-xs); opacity: .8; margin-top: .2rem; }

/* ── FEATURES / COMPETENZE ────────────────────────────────────── */
#features {
  padding: var(--section-y) 0;
  background: var(--ink);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 3.5rem;
}
.feature-item {
  background: var(--ink);
  padding: 2.2rem;
  position: relative;
  transition: background var(--dur-med);
}
.feature-item:hover { background: rgba(255,255,255,.03); }

.feature-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: rgba(255,255,255,.05);
  line-height: 1;
  position: absolute;
  top: .8rem;
  right: 1.2rem;
  pointer-events: none;
}

.feature-icon {
  width: 2.8rem;
  height: 2.8rem;
  background: rgba(45,107,228,.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}
.feature-icon svg { width: 18px; height: 18px; stroke: var(--brand); fill: none; }

.feature-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
  margin-bottom: .5rem;
}
.feature-desc { font-size: var(--text-sm); line-height: 1.65; color: rgba(255,255,255,.45); }

/* ── CASE STUDY / SERVIZI CAROUSEL ───────────────────────────── */
#case-studies {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.case-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--dur-med), transform var(--dur-med);
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.case-thumb {
  aspect-ratio: 4/3;
  background: var(--paper-3);
  overflow: hidden;
}
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.case-card:hover .case-thumb img { transform: scale(1.04); }
.case-body { padding: 1.4rem; }
.case-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
}
.case-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
#testimonials {
  padding: var(--section-y) 0;
  background: var(--paper-2);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.testi-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-med);
}
.testi-card:hover { box-shadow: var(--shadow-md); }
.testi-stars {
  display: flex;
  gap: .2rem;
  margin-bottom: 1rem;
}
.testi-star {
  width: 14px; height: 14px;
  fill: #FBBF24;
}
.testi-text {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.5rem;
  font-style: italic;
}
.testi-author { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testi-name {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--ink);
}
.testi-role { font-size: var(--text-xs); color: var(--text-muted); }

/* ── FAQ ──────────────────────────────────────────────────────── */
#faq {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem,6vw,7rem);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 1rem; }

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.3rem 0;
  cursor: pointer;
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--ink);
  gap: 1rem;
  user-select: none;
}
.faq-question:hover { color: var(--brand); }
.faq-icon {
  width: 20px; height: 20px;
  border: 1.5px solid var(--border-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-med), background var(--dur-fast), border-color var(--dur-fast);
}
.faq-icon::after {
  content: '+';
  font-size: .9rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--dur-med);
}
.faq-item.open .faq-icon {
  background: var(--brand);
  border-color: var(--brand);
}
.faq-item.open .faq-icon::after {
  content: '+';
  transform: rotate(45deg);
  color: #fff;
}
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--dur-slow) var(--ease-out), padding var(--dur-med);
}
.faq-answer p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--text-muted);
  padding-bottom: 1.3rem;
}
.faq-item.open .faq-answer { max-height: 300px; }

.faq-visual {
  position: sticky;
  top: 100px;
  background: var(--ink);
  border-radius: 12px;
  padding: 2.5rem;
  color: #fff;
}
.faq-visual .headline { color: #fff; font-size: var(--text-2xl); margin-bottom: 1rem; }
.faq-visual p { color: rgba(255,255,255,.5); font-size: var(--text-sm); margin-bottom: 2rem; }
.faq-contact-links { display: flex; flex-direction: column; gap: .8rem; }
.faq-contact-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,.65);
  transition: color var(--dur-fast);
}
.faq-contact-link:hover { color: var(--brand); }
.faq-contact-link-icon {
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.faq-contact-link-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; }

/* ── CTA BAND ─────────────────────────────────────────────────── */
#cta-band {
  padding: clamp(4rem,7vw,7rem) 0;
  background: var(--brand);
  position: relative;
  overflow: hidden;
}
#cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.12), transparent);
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl));
  font-weight: 600;
  line-height: 1.1;
  color: #fff;
  max-width: 26ch;
  letter-spacing: -.02em;
}
.cta-band-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}
.btn-white:hover { background: rgba(255,255,255,.9); }

/* ── CONTACT ──────────────────────────────────────────────────── */
#contact {
  padding: var(--section-y) 0;
  background: var(--paper);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem,6vw,7rem);
  align-items: start;
}
.contact-info-title {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.5rem; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
}
.contact-item-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--brand-ghost);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}
.contact-item:hover .contact-item-icon { background: var(--brand); }
.contact-item-icon svg { width: 15px; height: 15px; stroke: var(--brand); fill: none; transition: stroke var(--dur-fast); }
.contact-item:hover .contact-item-icon svg { stroke: #fff; }
.contact-item-label { font-size: var(--text-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .15rem; }
.contact-item-value { font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.contact-item-value a { transition: color var(--dur-fast); }
.contact-item-value a:hover { color: var(--brand); }

/* Contact form */
.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-label em { font-style: normal; font-weight: 400; color: var(--brand); }
.form-input, .form-textarea, .form-select {
  background: var(--paper-2);
  border: 1.5px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: .75rem 1rem;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
  width: 100%;
  line-height: 1.5;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(45,107,228,.1);
  background: var(--paper);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-select option { background: var(--paper); }

.form-consent { display: flex; gap: .7rem; align-items: flex-start; }
.form-consent input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--brand); flex-shrink: 0; margin-top: .1rem; cursor: pointer; }
.form-consent label { font-size: var(--text-xs); line-height: 1.6; color: var(--text-muted); cursor: pointer; }
.form-consent a { color: var(--brand); }

.form-submit-area { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); }
.form-note strong { color: var(--ink); }

.form-alert {
  padding: .85rem 1.1rem;
  border-radius: 6px;
  font-size: var(--text-sm);
  line-height: 1.55;
  display: none;
}
.form-alert.show { display: block; }
.form-alert.ok { background: rgba(34,197,94,.07); border: 1px solid rgba(34,197,94,.2); color: #15803d; }
.form-alert.err { background: rgba(239,68,68,.07); border: 1px solid rgba(239,68,68,.2); color: #dc2626; }

/* ── FOOTER ───────────────────────────────────────────────────── */
#site-footer {
  background: var(--ink);
  color: var(--text-light);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.6fr;
  gap: 3rem;
  padding: 5rem 0 4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.2rem;
}
.footer-brand-logo img { height: 32px; width: auto; filter: brightness(0) invert(1); }
.footer-brand-logo span { font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; color: #fff; }
.footer-brand-logo span em { font-style: normal; color: var(--brand); }
.footer-tagline { font-size: var(--text-sm); line-height: 1.7; color: rgba(255,255,255,.4); max-width: 26ch; margin-bottom: 1.8rem; }

.footer-social { display: flex; gap: .5rem; }
.footer-social-link {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 6px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
}
.footer-social-link:hover { background: var(--brand); }
.footer-social-link svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.6); fill: none; transition: stroke var(--dur-fast); }
.footer-social-link:hover svg { stroke: #fff; }

.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.2rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast);
  line-height: 1.4;
}
.footer-links a:hover { color: #fff; }

.footer-newsletter-label { font-size: var(--text-sm); color: rgba(255,255,255,.45); margin-bottom: 1rem; line-height: 1.6; }
.footer-newsletter-form { display: flex; gap: .5rem; }
.footer-newsletter-input {
  flex: 1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  padding: .7rem .9rem;
  outline: none;
  transition: border-color var(--dur-fast);
}
.footer-newsletter-input::placeholder { color: rgba(255,255,255,.25); }
.footer-newsletter-input:focus { border-color: var(--brand); }
.footer-newsletter-btn {
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: .7rem 1.1rem;
  border-radius: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--dur-fast);
}
.footer-newsletter-btn:hover { background: var(--brand-d); }

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-copy { font-size: var(--text-xs); color: rgba(255,255,255,.25); line-height: 1.6; }
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a { font-size: var(--text-xs); color: rgba(255,255,255,.25); transition: color var(--dur-fast); }
.footer-legal a:hover { color: rgba(255,255,255,.7); }

/* ── SCROLL REVEAL ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }
.reveal-delay-4 { transition-delay: 320ms; }
.reveal-delay-5 { transition-delay: 400ms; }
.reveal-delay-6 { transition-delay: 480ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── WP CORE ──────────────────────────────────────────────────── */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
body { padding-top: 68px; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  #hero { grid-template-columns: 1fr; min-height: auto; padding-top: 68px; }
  .hero-left { padding: 4rem var(--content-x); }
  .hero-right { padding: 2rem var(--content-x) 4rem; }
  .hero-bg::after { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-item:nth-child(2n) { border-right: none; }
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-image-wrap { aspect-ratio: 16/9; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-y: 4rem; }
  .nav-menu, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 68px 0 0;
    background: var(--paper);
    padding: 2rem var(--content-x);
    gap: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 999;
  }
  .nav-menu.open a { font-size: var(--text-lg); }
  .nav-cta { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none !important; }
  .testi-grid, .features-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band-inner { flex-direction: column; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   INNER PAGE COMPONENTS (pagine interne)
═══════════════════════════════════════════════════════════════ */

/* ── PAGE HERO (breadcrumb + titolo) ─────────────────────────── */
.page-hero {
  background: var(--ink);
  padding: clamp(4rem,7vw,7rem) 0 clamp(3rem,5vw,5rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -8rem; top: -8rem;
  width: 28rem; height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,107,228,.12), transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-xs);
  color: rgba(255,255,255,.35);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.35); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb-sep { color: rgba(255,255,255,.2); }
.breadcrumb-current { color: rgba(255,255,255,.55); }
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.03em;
  color: #fff;
  max-width: 18ch;
  margin-bottom: 1.2rem;
}
.page-hero-title em { font-style: italic; color: var(--brand); }
.page-hero-desc {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: rgba(255,255,255,.5);
  max-width: 52ch;
  margin-bottom: 2rem;
}
.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.page-hero-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 20px;
  background: rgba(45,107,228,.12);
  border: 1px solid rgba(45,107,228,.25);
  color: var(--brand-l);
  letter-spacing: .04em;
}

/* ── SERVICE PAGE LAYOUT ──────────────────────────────────────── */
.service-page-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.service-page-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.service-page-content h2:first-child { margin-top: 0; }
.service-page-content h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .6rem;
  margin-top: 2rem;
}
.service-page-content p {
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.service-page-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}
.service-page-content ul li {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--text-muted);
  padding: .4rem 0 .4rem 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.service-page-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}
.service-page-content ul li:last-child { border-bottom: none; }

/* Feature cards inline */
.features-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.feature-inline-card {
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.4rem;
  transition: border-color var(--dur-med), box-shadow var(--dur-med);
}
.feature-inline-card:hover {
  border-color: rgba(255,94,19,.25);
  box-shadow: var(--shadow-sm);
}
.feature-inline-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: var(--brand-ghost);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
}
.feature-inline-icon svg { width: 16px; height: 16px; stroke: var(--brand); fill: none; }
.feature-inline-title { font-weight: 700; font-size: var(--text-sm); color: var(--ink); margin-bottom: .3rem; }
.feature-inline-desc { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.55; }

/* Sidebar sticky */
.service-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.sidebar-card-head {
  background: var(--ink);
  padding: 1.3rem 1.5rem;
}
.sidebar-card-head h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}
.sidebar-card-head p { font-size: var(--text-xs); color: rgba(255,255,255,.4); }
.sidebar-card-body { padding: 1.3rem 1.5rem; }

.sidebar-contact-items { display: flex; flex-direction: column; gap: .7rem; }
.sidebar-contact-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: var(--text-sm);
}
.sidebar-contact-item svg { width: 14px; height: 14px; stroke: var(--brand); fill: none; flex-shrink: 0; }
.sidebar-contact-item a { color: var(--text); transition: color var(--dur-fast); font-weight: 500; }
.sidebar-contact-item a:hover { color: var(--brand); }

.sidebar-nav { display: flex; flex-direction: column; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.5rem;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast), background var(--dur-fast), padding-left var(--dur-fast);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover { color: var(--brand); background: var(--paper-2); padding-left: 1.8rem; }
.sidebar-nav a.active { color: var(--brand); font-weight: 600; background: var(--brand-ghost); }
.sidebar-nav-arrow { font-size: .7rem; opacity: .4; }

/* ── CHI SIAMO ────────────────────────────────────────────────── */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  padding: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}
.value-card-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
  margin-bottom: .5rem;
}
.value-card-label { font-weight: 700; font-size: var(--text-sm); color: var(--ink); margin-bottom: .3rem; }
.value-card-desc { font-size: var(--text-xs); color: var(--text-muted); line-height: 1.55; }

/* Team grid */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.team-card { background: var(--paper-2); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.team-avatar {
  height: 180px;
  background: linear-gradient(135deg, var(--ink), #2a2a3e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.team-avatar-initials {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,94,19,.4);
}
.team-info { padding: 1.2rem; }
.team-name { font-weight: 700; font-size: var(--text-base); color: var(--ink); }
.team-role { font-size: var(--text-sm); color: var(--text-muted); margin-top: .15rem; }

/* ── BLOG ─────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: 1fr 300px; gap: 3.5rem; align-items: start; }
.blog-posts { display: flex; flex-direction: column; gap: 2rem; }
.blog-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow var(--dur-med);
}
.blog-card:hover { box-shadow: var(--shadow-md); }
.blog-card-thumb {
  background: var(--paper-3);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow); }
.blog-card:hover .blog-card-thumb img { transform: scale(1.04); }
.blog-card-body { padding: 1.4rem 1.4rem 1.4rem 0; }
.blog-card-cat { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .4rem; }
.blog-card-title { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: .7rem; }
.blog-card-title a { transition: color var(--dur-fast); }
.blog-card-title a:hover { color: var(--brand); }
.blog-card-excerpt { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.blog-card-meta { font-size: var(--text-xs); color: var(--text-muted); display: flex; gap: 1rem; }
.blog-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 1.2rem; }
.blog-sidebar-widget { background: var(--paper-2); border: 1px solid var(--border); border-radius: 8px; padding: 1.4rem; }
.blog-sidebar-widget h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; color: var(--ink); margin-bottom: 1rem; }

/* ── RESPONSIVE INNER ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-page-grid { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
  .about-page-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 768px) {
  .features-inline { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-body { padding: 1.2rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER BAR — barra orizzontale unica
═══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
  font-size: var(--text-sm);
}

/* Riga superiore: logo + nav + social */
.footer-bar-top {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-wrap: wrap;
}

.footer-bar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: #fff;
  text-decoration: none;
}
.footer-bar-logo img { height: 28px; width: auto; filter: brightness(0) invert(1); }

.footer-bar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem 1.2rem;
  flex: 1;
}
.footer-bar-nav a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.4);
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.footer-bar-nav a:hover { color: #fff; }

.footer-bar-social {
  display: flex;
  gap: .4rem;
  flex-shrink: 0;
}

/* Riga inferiore: copyright + dati fiscali + link legali */
.footer-bar-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.2rem 0 1.5rem;
  flex-wrap: wrap;
}

.footer-bar-copy {
  font-size: .65rem;
  line-height: 1.7;
  color: rgba(255,255,255,.22);
  flex: 1;
  min-width: 0;
}

.footer-bar-legal {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
  align-items: center;
}
.footer-bar-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,.25);
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.footer-bar-legal a:hover { color: rgba(255,255,255,.7); }

/* Nascondi completamente le widget area footer se WordPress le renderizza */
#footer-1, #footer-2,
.widget-area-footer,
.footer-widgets { display: none !important; }

@media (max-width: 768px) {
  .footer-bar-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .footer-bar-nav { gap: .3rem .9rem; }
  .footer-bar-bottom { flex-direction: column; gap: .8rem; }
  .footer-bar-legal { flex-wrap: wrap; gap: .8rem; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX: ADMIN BAR WordPress
   La admin bar è alta 32px (46px su mobile).
   Compensiamo il padding-top del body e il top del nav sticky.
═══════════════════════════════════════════════════════════════ */
.admin-bar #site-nav {
  top: 32px;
}
.admin-bar body,
.admin-bar #hero {
  padding-top: calc(68px + 32px);
}
@media (max-width: 782px) {
  .admin-bar #site-nav { top: 46px; }
  .admin-bar body,
  .admin-bar #hero     { padding-top: calc(68px + 46px); }
}

/* ── NAV LOGO con immagine reale ──────────────────────────────── */
.nav-logo img {
  height: 38px;
  width: auto;
  display: block;
  /* Il logo originale è scuro su sfondo bianco — OK */
}
.nav-logo-fallback {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
/* Nascondi fallback se l'immagine carica */
.nav-logo img:not([style*="display:none"]) + .nav-logo-fallback { display: none; }

/* ── DROPDOWN SOTTOMENU ───────────────────────────────────────── */
.nav-item { position: relative; }

.nav-item > a {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.nav-caret {
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform var(--dur-fast);
  margin-top: 1px;
}
.nav-item:hover .nav-caret,
.nav-item.open .nav-caret { transform: rotate(180deg); }

.nav-sub {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 1001;
  /* Animazione */
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
/* Arrow */
.nav-sub::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: var(--paper);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}

.nav-item:hover .nav-sub,
.nav-item.open .nav-sub {
  display: flex;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.nav-sub a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 5px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.nav-sub a:hover {
  background: var(--paper-2);
  color: var(--brand);
}
.nav-sub a::after { display: none; }

/* Menu mobile: sottomenu come lista espandibile */
@media (max-width: 768px) {
  .nav-sub {
    position: static;
    transform: none;
    opacity: 1;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand-ghost);
    border-radius: 0;
    margin: .3rem 0 .3rem 1rem;
    padding: .3rem 0;
    display: none;
  }
  .nav-sub::before { display: none; }
  .nav-item.open .nav-sub { display: flex; }
  .nav-sub a { font-size: var(--text-sm); padding: .45rem .75rem; }
}

/* ── HERO RIDISEGNATA — più elegante e professionale ─────────── */
/* Sostituisce il layout a 2 colonne con uno statement hero centrato + card floating */

#hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

/* Pattern di sfondo — griglia sottile */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent);
  pointer-events: none;
}

/* Blob arancione in background */
#hero::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 30%;
  transform: translate(-50%, -50%);
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(45,107,228,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 1;
  padding: clamp(4rem,8vh,8rem) var(--content-x) clamp(3rem,5vh,5rem);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 2rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s ease-in-out infinite;
}

/* Titolo hero: grande, bianco, serif */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -.04em;
  color: #fff;
  margin-bottom: 1.8rem;
  max-width: 16ch;
}
.hero-title em { font-style: italic; color: var(--brand); }

/* Desc */
.hero-desc {
  font-size: clamp(var(--text-base), 1.5vw, var(--text-lg));
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  max-width: 50ch;
  margin-bottom: 2.5rem;
}

/* CTA */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.btn-primary-dark {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(45,107,228,.35);
}
.btn-primary-dark:hover {
  background: var(--brand-d);
  box-shadow: 0 8px 30px rgba(45,107,228,.5);
  transform: translateY(-2px);
}
.btn-ghost-dark {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.75);
  border: 1.5px solid rgba(255,255,255,.15);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  flex-wrap: wrap;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .2rem;
}
.hero-stat-num sup { font-size: .55em; color: var(--brand); }
.hero-stat-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

/* Pills servizi in evidenza */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2.5rem;
}
.hero-pill-dark {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.hero-pill-dark:hover {
  background: rgba(45,107,228,.12);
  border-color: rgba(255,94,19,.25);
  color: var(--brand-l);
}

/* Nascondi hero-right nel nuovo layout */
.hero-right { display: none; }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(255,255,255,.2);
  font-size: var(--text-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.2), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Services strip ora su sfondo chiaro */
/* strip override rimosso — gestito nel blocco principale */

@media (max-width: 768px) {
  .hero-title { max-width: none; }
  .hero-stats { gap: 1.5rem; }
  .hero-scroll { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   LOGO TESTO — ADS·Network
═══════════════════════════════════════════════════════════════ */
.nav-logo-text {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0;
}
.nav-logo-dot {
  color: var(--brand);
  font-size: 1em;
  line-height: 1;
  margin: 0 .2em;
  display: inline-flex;
  align-items: center;
  align-self: center;
  position: static;
  top: auto;
}
/* Versione bianca per header su sfondo scuro */
.nav-logo-white .nav-logo-text { color: #fff; }

/* ── CORREZIONE menu WordPress nativo con Walker ─────────────────
   Quando si usa un menu creato da Aspetto → Menu, WordPress
   wrappa tutto in <ul>. Il Walker scrive .nav-item come <div>
   ma WordPress li mette dentro <ul><li>. Assicuriamo che
   il container del menu sia flessibile. */
.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-menu > ul > li {
  position: relative;
}
/* Se WordPress scrive li.menu-item-has-children → gestire dropdown */
.nav-menu li.menu-item-has-children { position: relative; }
.nav-menu li.menu-item-has-children > a::after {
  content: ' ⌄';
  font-size: .65rem;
  color: var(--text-muted);
  transition: transform var(--dur-fast);
  display: inline-block;
  margin-left: .2rem;
}
.nav-menu li.menu-item-has-children:hover > a::after { transform: rotate(180deg); }

/* Sub-menu WordPress nativo */
.nav-menu ul ul {
  position: absolute;
  top: calc(100% + .6rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  display: none;
  flex-direction: column;
  gap: 0;
  z-index: 1001;
}
.nav-menu ul ul::before {
  content: '';
  position: absolute;
  top: -5px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: var(--paper);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.nav-menu li.menu-item-has-children:hover > ul { display: flex; }
.nav-menu ul ul li { position: static; }
.nav-menu ul ul a {
  display: block;
  padding: .55rem .85rem;
  border-radius: 5px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-menu ul ul a:hover { background: var(--paper-2); color: var(--brand); }
.nav-menu ul ul a::after { display: none !important; }

/* Mobile: sub-menu impilati */
@media (max-width: 768px) {
  .nav-menu ul ul {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--brand-ghost);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    padding: .3rem 0 .3rem 1rem;
    margin-top: .3rem;
  }
  .nav-menu ul ul::before { display: none; }
}
