/* ADS Network — tema per il motore. Generato da costruisci-tema.py: main.css e ctx-plans.css
   del tema WordPress, più i raccordi col motore in fondo. Si corregge in raccordi.css. */
/* I caratteri del tema, serviti dal motore da /tema/fonts/ — niente Google Fonts. */
@font-face{font-family:'Inter';src:url('/tema/fonts/inter-var.woff2') format('woff2-variations'),url('/tema/fonts/inter-var.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
@font-face{font-family:'Fraunces';src:url('/tema/fonts/fraunces-600.woff2') format('woff2');font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:'Inter Fallback';src:local('Helvetica Neue'),local('Arial');size-adjust:107%;ascent-override:90%;descent-override:22%;line-gap-override:0%}
@font-face{font-family:'Fraunces Fallback';src:local('Georgia'),local('Times New Roman');size-adjust:104%;ascent-override:94%;descent-override:24%;line-gap-override:0%}

/* ═══════════════════════════════════════════════════════════════
   ADS Network Theme 2.0 — Design System
   Palette: bianco/nero + arancione brand #416AB2
   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:       #416AB2;
  --brand-d:     #33548F;
  --brand-l:     #6E92CC;
  --brand-ghost: rgba(65,106,178,.08);

  /* Neutrals */
  --ink:         #231F20;
  --ink-60:      rgba(35,31,32,.6);
  --ink-12:      rgba(35,31,32,.12);
  --ink-06:      rgba(35,31,32,.06);
  --paper:       #FFFFFF;
  --paper-2:     #F7F7F8;
  --paper-3:     #EFEFEF;
  --muted:       #8891A4;
  --muted-d:     #5C6478;

  /* Text */
  --text:        #231F20;
  --text-muted:  #8891A4;
  --text-light:  #FFFFFF;

  /* Border */
  --border:      rgba(35,31,32,.10);
  --border-dark: rgba(35,31,32,.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(35,31,32,.08),0 1px 2px rgba(35,31,32,.04);
  --shadow-md: 0 4px 16px rgba(35,31,32,.08),0 2px 6px rgba(35,31,32,.04);
  --shadow-lg: 0 12px 40px rgba(35,31,32,.12),0 4px 12px rgba(35,31,32,.06);
  --shadow-xl: 0 24px 64px rgba(35,31,32,.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(65,106,178,.3);
}
.btn-primary:hover {
  background: var(--brand-d);
  box-shadow: 0 8px 24px rgba(65,106,178,.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 {
  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); }
/* Menu: regole nel blocco MENU in fondo al file */
.nav-cta { margin-left: .5rem; }
/* Mobile toggle — definito nel blocco HEADER finale */
/* ── 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(65,106,178,.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(65,106,178,.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: 7 / 5;   /* proporzione dell'illustrazione */
}
.about-image-wrap img,
.about-image-wrap picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* ── 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(65,106,178,.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(65,106,178,.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-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;
}
/* ── 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: 7 / 5; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --section-y: 4rem; }
  .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-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .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(65,106,178,.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(65,106,178,.12);
  border: 1px solid rgba(65,106,178,.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(65,106,178,.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(65,106,178,.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 ─────────────────────────────────────────────────────── */
/* ── 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; }
}
/* ═══════════════════════════════════════════════════════════════
   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; }
/* 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; }
}
/* ═══════════════════════════════════════════════════════════════
   FIX MOBILE — Chi Siamo e layout pagine interne
═══════════════════════════════════════════════════════════════ */
/* Blocco visuale Chi Siamo — sostituisce gli stili inline */
.about-visual {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ink) 0%, #16213e 60%, #0f2847 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.about-visual::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: 40px 40px;
}
.about-visual-year {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 700;
  color: rgba(65,106,178,.22);
  letter-spacing: -.04em;
  line-height: 1;
}
/* Griglia Chi Siamo — stack pulito su mobile */
.about-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(3rem, 6vw, 4rem);
}
@media (max-width: 900px) {
  .about-page-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  /* L'immagine va sopra il testo su mobile */
  .about-page-grid > div:last-child { order: -1; }
  .about-visual { aspect-ratio: 16 / 9; }
}
/* Values grid responsive */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
@media (max-width: 560px) {
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 1.5rem; }
  .value-card-num { font-size: 2.2rem; }
}
/* Bottoni azione su mobile: full width e impilati */
@media (max-width: 560px) {
  .about-page-grid .btn,
  .service-page-content .btn {
    width: 100%;
    justify-content: center;
  }
}
/* Sidebar servizi: su mobile non sticky, margine sopra */
@media (max-width: 1024px) {
  .service-sidebar {
    position: static;
    margin-top: 2.5rem;
  }
}
/* Testo in grassetto dentro i paragrafi lead */
.lead strong,
.service-page-content p strong {
  color: var(--ink);
  font-weight: 600;
}
/* ═══════════════════════════════════════════════════════════════
   ██  RESPONSIVE CONSOLIDATO  ██
   Blocco finale — sovrascrive tutto ciò che viene prima.
   Ordine: desktop large → tablet → mobile → small mobile
═══════════════════════════════════════════════════════════════ */
/* ───────────────────────────────────────────────────────────────
   TABLET  ≤ 1024px
─────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav-menu ul { gap: 1.5rem; }

  #hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(3n) { border-right: 1px solid var(--border); }
  .service-item:nth-child(2n) { border-right: none; }
  .service-item:nth-last-child(-n+2) { border-bottom: none; }

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

  .about-grid,
  .about-page-grid,
  .faq-grid,
  .contact-grid,
  .service-page-grid,
  .blog-grid       { grid-template-columns: 1fr; }

  .service-sidebar,
  .blog-sidebar,
  .faq-visual      { position: static; margin-top: 2.5rem; }
  .team-grid       { grid-template-columns: repeat(2, 1fr); }
}
/* ───────────────────────────────────────────────────────────────
   MOBILE  ≤ 768px  —  include il menu a schermo pieno
─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* ── NAV: nasconde menu desktop, mostra hamburger ─────────── */
  #site-nav .nav-menu { display: none; }
  .nav-toggle         { display: flex; }
  .nav-phone          { display: none; }

  /* ── MENU MOBILE — pannello a schermo pieno ───────────────── */
  #site-nav .nav-menu.open {
    display: block;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #FFFFFF;
    padding: 1rem var(--content-x) 3rem;
    border-top: 1px solid var(--border);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 9998;
  }
  .admin-bar #site-nav .nav-menu.open { top: calc(60px + 46px); }
  body.nav-open { overflow: hidden; }

  /* ── HERO ─────────────────────────────────────────────────── */
  .hero-left  { padding: 3rem var(--content-x) 2.5rem; }
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.6rem); max-width: none; }
  .hero-desc  { font-size: var(--text-base); }
  .hero-pills { gap: .4rem; }
  .hero-pill-dark { font-size: .7rem; padding: .3rem .7rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.5rem 2rem; }
  .hero-stat-num { font-size: var(--text-2xl); }
  .hero-scroll { display: none; }

  /* ── GRIGLIE ──────────────────────────────────────────────── */
  .services-grid,
  .features-grid,
  .case-grid,
  .testi-grid,
  .team-grid,
  .values-grid,
  .features-inline,
  .about-kpi-grid  { grid-template-columns: 1fr !important; }

  .service-item {
    border-right: none !important;
    border-bottom: 1px solid var(--border) !important;
  }
  .service-item:last-child { border-bottom: none !important; }
  .service-num { font-size: 3.5rem; }

  /* ── SEZIONI ──────────────────────────────────────────────── */
  :root { --section-y: 3.5rem; }
  .section-header { margin-bottom: 2.5rem; }
  .headline { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  .lead { font-size: var(--text-base); }

  /* ── ABOUT ────────────────────────────────────────────────── */
  .about-page-grid > div:last-child { order: -1; }
  .about-visual { aspect-ratio: 16/9; }

  /* ── FORM ─────────────────────────────────────────────────── */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 1.5rem; }
  .form-submit-area { flex-direction: column; align-items: stretch; gap: .8rem; }
  .form-submit-area .btn { width: 100%; justify-content: center; }
  .form-note { text-align: center; }

  /* ── CTA BAND ─────────────────────────────────────────────── */
  .cta-band-inner { flex-direction: column; align-items: stretch; gap: 1.5rem; }
  .cta-band-title { font-size: clamp(1.5rem, 6vw, 2rem); max-width: none; }
  .cta-band-actions { flex-direction: column; }
  .cta-band-actions .btn { width: 100%; justify-content: center; }

  /* ── FOOTER ───────────────────────────────────────────────── */
  .footer-bar-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem 0 1.2rem;
  }
  .footer-bar-nav { gap: .5rem 1rem; }
  .footer-bar-nav a { font-size: .85rem; }
  .footer-bar-bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer-bar-copy { font-size: .78rem; line-height: 1.75; }
  .footer-bar-legal { gap: 1rem; }

  /* ── PAGINE INTERNE ───────────────────────────────────────── */
  .page-hero { padding: 2.5rem 0 2rem; }
  .page-hero-title { font-size: clamp(1.9rem, 8vw, 2.6rem); max-width: none; }
  .page-hero-desc { font-size: var(--text-base); }
  .breadcrumb { font-size: .7rem; }
  .service-page-content h2 { font-size: var(--text-xl); }
  .service-page-content ul li { font-size: var(--text-sm); }

  /* ── BLOG ─────────────────────────────────────────────────── */
  .blog-card { grid-template-columns: 1fr; }
  .blog-card-body { padding: 1.2rem; }
  .blog-card-thumb { aspect-ratio: 16/9; }

  /* ── FAQ ──────────────────────────────────────────────────── */
  .faq-question { font-size: var(--text-sm); padding: 1.1rem 0; }
  .faq-visual { padding: 1.8rem; }

  /* ── STRIP ────────────────────────────────────────────────── */
  .strip-item { font-size: .78rem; padding: 0 1.2rem; }
  #services-strip::before,
  #services-strip::after { width: 3rem; }
}
/* ───────────────────────────────────────────────────────────────
   SMALL MOBILE  ≤ 480px
─────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  :root { --content-x: 1.1rem; }

  .hero-title { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-stats { flex-direction: column; gap: 1.2rem; }
  .hero-stat { display: flex; align-items: baseline; gap: .6rem; }
  .hero-stat-num { font-size: var(--text-xl); margin-bottom: 0; }
  .hero-stat-label { font-size: .65rem; }

  .service-item,
  .feature-item,
  .testi-card,
  .value-card,
  .sidebar-card-body { padding: 1.4rem; }

  .contact-form-card { padding: 1.2rem; }
  .headline { font-size: 1.7rem; }
  .page-hero-title { font-size: 1.8rem; }

  .footer-bar-nav { flex-direction: column; gap: .5rem; }
  

  .about-kpi { padding: 1.3rem; }
  .about-kpi-val { font-size: var(--text-2xl); }
}
/* ───────────────────────────────────────────────────────────────
   ACCESSIBILITÀ E STAMPA
─────────────────────────────────────────────────────────────── */
/* Focus visibile per navigazione da tastiera */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Area di tocco minima 44px su touch device.
   NON tocchiamo 'display': sovrascriverebbe le regole che
   nascondono elementi (es. .nav-cta su mobile). */
@media (hover: none) and (pointer: coarse) {
  .nav-menu a,
  .footer-bar-nav a,
  .sidebar-nav a { min-height: 44px; align-items: center; }
  .btn { min-height: 44px; }
}
@media print {
  #site-nav, #cta-band, #site-footer, .nav-toggle,
  #services-strip, .hero-scroll, .service-sidebar { display: none !important; }
  body { padding-top: 0; color: #000; background: #fff; }
  .page-hero { background: #fff !important; padding: 1rem 0; }
  .page-hero-title, .headline { color: #000 !important; }
  a { text-decoration: underline; color: #000; }
}
/* ═══════════════════════════════════════════════════════════════
   ██  HEADER — LAYOUT DEFINITIVO  ██
   Ultimo blocco del foglio: ha la precedenza su tutto.
═══════════════════════════════════════════════════════════════ */
/* ── Barra fissa ──────────────────────────────────────────────── */
#site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border);
}
/* Valore iniziale prima che il JS calcoli l'offset reale.
   Il JS poi anima top da 32px a 0 mentre la admin bar scorre via. */
.admin-bar #site-nav { top: 32px; }
@media (max-width: 782px) {
  /* Su mobile la admin bar è position:fixed: resta sempre visibile */
  .admin-bar #site-nav { top: 46px; }
}
/* Transizione fluida della posizione */
#site-nav { transition: box-shadow var(--dur-med), top .1s linear; }
/* ── Riga interna: logo · menu · azioni ──────────────────────── */
#site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
  flex-wrap: nowrap;
}
#site-nav .nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}
#site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
  margin-left: auto;
}
/* ── Hamburger ────────────────────────────────────────────────── */
#site-nav .nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex: 0 0 auto;
}
#site-nav .nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur-med) var(--ease-out),
              opacity var(--dur-fast);
  transform-origin: center;
}
#site-nav .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#site-nav .nav-toggle.open span:nth-child(2) { opacity: 0; }
#site-nav .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* ═══ DESKTOP ≥ 769px ═══════════════════════════════════════════ */
@media (min-width: 769px) {
  #site-nav .nav-menu {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
  }
  #site-nav .nav-cta   { display: inline-flex; }
  #site-nav .nav-toggle { display: none; }
}
/* ═══ MOBILE ≤ 768px ════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Menu chiuso: invisibile. CTA nascosta. Solo hamburger. */
  #site-nav .nav-menu   { display: none; }
  #site-nav .nav-cta    { display: none !important; }
  #site-nav .nav-phone  { display: none !important; }
  #site-nav .nav-toggle { display: flex; }

  #site-nav .nav-inner  { height: 60px; }
  #site-nav .nav-logo-text { font-size: 1.1rem; }

  /* Menu aperto: pannello a tutta pagina sotto la barra */
  #site-nav .nav-menu.open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;

    background: #FFFFFF !important;
    padding: 1rem var(--content-x) 3rem;
    border-top: 1px solid var(--border);

    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    z-index: 9998;
  }
  /* Il pannello del menu parte subito sotto la barra nav.
     Su mobile la admin bar è fixed, quindi l'offset è costante. */
  .admin-bar #site-nav .nav-menu.open { top: calc(60px + 46px); }

  /* CTA in fondo al menu aperto, a tutta larghezza */
  #site-nav .nav-menu.open::after { content: none; }
}
/* ── Offset del contenuto sotto la barra fissa ───────────────── */
body { padding-top: 68px; }
.admin-bar body { padding-top: 68px; }
@media (max-width: 768px) {
  body { padding-top: 60px; }
}
/* L'hero compensa già l'altezza della barra */
#hero { padding-top: 0; }
/* CTA dentro il menu mobile: nascosta su desktop */
.nav-menu-cta { display: none; }
@media (max-width: 768px) {
  #site-nav .nav-menu.open .nav-menu-cta {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    margin-top: 1.5rem;
    padding: 1rem;
    font-size: 1rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ██  MENU  ██
   Sottomenu classico: display:none → display:block al passaggio.
   Markup: .nav-menu > ul.menu > li > a  +  ul.sub-menu annidata
═══════════════════════════════════════════════════════════════ */
/* ── Contenitore ──────────────────────────────────────────────── */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: center;
}
/* ── Lista principale ─────────────────────────────────────────── */
.nav-menu .menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu .menu > li {
  position: relative;
  list-style: none;
}
.nav-menu .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .5rem 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--dur-fast);
}
.nav-menu .menu > li > a:hover,
.nav-menu .menu > li.current-menu-item > a {
  color: var(--ink);
}
/* Freccia sulle voci con sottomenu */
.nav-menu .menu > li.menu-item-has-children > a::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .5;
  margin-left: .1rem;
  transition: transform var(--dur-fast);
}
.nav-menu .menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
/* ── Sottomenu ────────────────────────────────────────────────── */
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(35,31,32,.12), 0 2px 6px rgba(35,31,32,.05);
  z-index: 1000;
}
/* Il sottomenu appare al passaggio del mouse sulla voce padre */
.nav-menu .menu > li:hover > .sub-menu,
.nav-menu .menu > li:focus-within > .sub-menu {
  display: block;
}
/* Ponte invisibile: il mouse può scendere senza chiudere il menu */
.nav-menu .menu > li.menu-item-has-children > a::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: .6rem;
}
.nav-menu .sub-menu li {
  list-style: none;
}
.nav-menu .sub-menu a {
  display: block;
  padding: .6rem .9rem;
  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 .sub-menu a:hover,
.nav-menu .sub-menu a:focus-visible {
  background: var(--paper-2);
  color: var(--brand);
}
/* Se il sottomenu esce dal bordo destro, si allinea a destra */
.nav-menu .menu > li:last-child .sub-menu,
.nav-menu .menu > li:nth-last-child(2) .sub-menu {
  left: auto;
  right: 0;
}
/* ── Mobile: accordion ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-menu .menu {
    display: block;
    gap: 0;
  }
  .nav-menu .menu > li {
    position: static;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu .menu > li > a {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
  }
  .nav-menu .menu > li.menu-item-has-children > a::before { display: none; }

  .nav-menu .sub-menu {
    position: static;
    min-width: 0;
    border: none;
    border-left: 3px solid var(--brand);
    border-radius: 0;
    box-shadow: none;
    background: var(--paper-2);
    margin: 0 0 .8rem;
    padding: .3rem 0;
  }
  /* Su mobile si apre al tap, non al passaggio */
  .nav-menu .menu > li:hover > .sub-menu { display: none; }
  .nav-menu .menu > li.open > .sub-menu  { display: block; }
  .nav-menu .menu > li.open > a::after   { transform: rotate(180deg); }

  .nav-menu .sub-menu a {
    padding: .7rem 1rem;
    font-size: .92rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ██  FOOTER  ██
   3 colonne widget + barra dati aziendali
═══════════════════════════════════════════════════════════════ */
#site-footer {
  background: var(--ink);
  color: rgba(255,255,255,.5);
}
/* ── Griglia colonne ──────────────────────────────────────────── */
.footer-cols {
  display: grid;
  /* Brand più largo + tre colonne di link: servizi, settori, utili */
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem 3rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(2.2rem, 4vw, 3rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col { min-width: 0; }
/* ── Colonna brand ────────────────────────────────────────────── */
.footer-logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.2rem;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -.02em;
  color: #fff;
}
.footer-logo em { font-style: normal; color: var(--brand); margin: 0 .18em; }
.footer-logo img { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-tagline {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(255,255,255,.45);
  max-width: 38ch;
  margin-bottom: 1.8rem;
}
.footer-social { display: flex; gap: .5rem; }
.footer-social-link {
  width: 2.4rem;
  height: 2.4rem;
  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: 15px; height: 15px;
  stroke: rgba(255,255,255,.65);
  fill: none;
  transition: stroke var(--dur-fast);
}
.footer-social-link:hover svg { stroke: #fff; }
/* ── Titoli colonna ───────────────────────────────────────────── */
.footer-col-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.3rem;
}
/* ── Menu delle colonne ───────────────────────────────────────── */
.footer-menu,
.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer-menu li,
.footer-widget li { list-style: none; }
.footer-menu a,
.footer-widget a {
  font-size: var(--text-sm);
  line-height: 1.5;
  color: rgba(255,255,255,.5);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
  display: inline-block;
}
.footer-menu a:hover,
.footer-widget a:hover {
  color: #fff;
  padding-left: .25rem;
}
/* Widget generici nel footer */
.footer-widget { margin-bottom: 1.5rem; }
.footer-widget:last-child { margin-bottom: 0; }
.footer-widget p { font-size: var(--text-sm); color: rgba(255,255,255,.45); line-height: 1.7; }
/* ── Barra inferiore ──────────────────────────────────────────── */
.footer-bar-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.8rem 0 2rem;
  flex-wrap: wrap;
}
.footer-bar-copy {
  font-size: .82rem;
  line-height: 1.8;
  color: rgba(255,255,255,.4);
  flex: 1;
  min-width: 0;
}
.footer-bar-legal {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-shrink: 0;
  flex-wrap: nowrap;      /* i tre link restano sempre su una riga */
  white-space: nowrap;
}
.footer-legal-sep {
  color: rgba(255,255,255,.25);
  font-size: var(--text-sm);
  line-height: 1;
  user-select: none;
}
.footer-bar-legal a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.45);
  transition: color var(--dur-fast);
  white-space: nowrap;
}
.footer-bar-legal a:hover { color: #fff; }
/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem 0 2.5rem;
  }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bar-bottom { flex-direction: column; gap: 1rem; }
  .footer-bar-copy { font-size: .78rem; }
  .footer-bar-legal {
    gap: .55rem;
    flex-wrap: nowrap;
    width: 100%;
  }
  .footer-bar-legal a { font-size: .8rem; }
  .footer-legal-sep { font-size: .8rem; }
  .footer-tagline { max-width: none; }
}
@media (max-width: 380px) {
  /* Schermi molto stretti: si riduce il testo, non si va a capo */
  .footer-bar-legal { gap: .4rem; }
  .footer-bar-legal a,
  .footer-legal-sep { font-size: .74rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ██  SERVIZI CORRELATI  ██  griglia 3×2
═══════════════════════════════════════════════════════════════ */
.related-services {
  background: var(--paper-2);
  border-top: 1px solid var(--border);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.related-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.related-header .headline {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: 1.8rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: border-color var(--dur-med),
              box-shadow var(--dur-med),
              transform var(--dur-med) var(--ease-out);
}
.related-card:hover {
  border-color: rgba(65,106,178,.3);
  box-shadow: 0 10px 28px rgba(35,31,32,.08);
  transform: translateY(-3px);
}
.related-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 7px;
  background: var(--brand-ghost);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  transition: background var(--dur-med);
}
.related-card-icon svg {
  width: 17px; height: 17px;
  stroke: var(--brand);
  fill: none;
  transition: stroke var(--dur-fast);
}
.related-card:hover .related-card-icon { background: var(--brand); }
.related-card:hover .related-card-icon svg { stroke: #fff; }
.related-card-title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: .5rem;
}
.related-card-desc {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 1.2rem;
}
.related-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--brand);
  transition: gap var(--dur-fast);
}
.related-card-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; }
.related-card:hover .related-card-link { gap: .65rem; }
/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .related-grid { grid-template-columns: 1fr; gap: 1rem; }
  .related-card { padding: 1.5rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ICONE — dimensioni vincolate
   Gli SVG inline senza width/height esplicito prendono la
   dimensione di default del browser: qui li limitiamo sempre.
═══════════════════════════════════════════════════════════════ */
.related-card-icon,
.service-icon,
.feature-icon,
.feature-inline-icon,
.contact-item-icon,
.faq-contact-link-icon,
.footer-social-link,
.sidebar-contact-item {
  flex-shrink: 0;
}
.related-card-icon svg,
.service-icon svg,
.feature-icon svg,
.feature-inline-icon svg,
.contact-item-icon svg,
.faq-contact-link-icon svg,
.footer-social-link svg,
.sidebar-contact-item svg,
.btn svg,
.related-card-link svg,
.service-link svg {
  flex-shrink: 0;
  max-width: 100%;
}
/* Servizi correlati: icona compatta */
.related-card-icon {
  width: 2.4rem;
  height: 2.4rem;
}
.related-card-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.related-card-link svg {
  width: 12px !important;
  height: 12px !important;
}
/* Altre icone del tema */
.service-icon svg,
.feature-icon svg      { width: 19px !important; height: 19px !important; }
.feature-inline-icon svg { width: 16px !important; height: 16px !important; }
.contact-item-icon svg,
.faq-contact-link-icon svg { width: 15px !important; height: 15px !important; }
.footer-social-link svg  { width: 15px !important; height: 15px !important; }
.sidebar-contact-item svg { width: 14px !important; height: 14px !important; }
.btn svg                 { width: 15px !important; height: 15px !important; }
.service-link svg        { width: 13px !important; height: 13px !important; }
/* ═══════════════════════════════════════════════════════════════
   ██  MENU — CONTRASTO  ██
   Nero inchiostro di base, grigio scuro all'hover.
   Più netto e leggibile del grigio freddo precedente.
═══════════════════════════════════════════════════════════════ */
/* ── Menu principale ──────────────────────────────────────────── */
.nav-menu .menu > li > a {
  color: var(--ink);
  font-weight: 500;
}
.nav-menu .menu > li > a:hover {
  color: #4A5160;
}
.nav-menu .menu > li.current-menu-item > a {
  color: var(--ink);
  font-weight: 600;
}
/* Freccia dei sottomenu: segue il colore del testo */
.nav-menu .menu > li.menu-item-has-children > a::after {
  border-top-color: currentColor;
  opacity: .45;
}
/* ── Voci del sottomenu ───────────────────────────────────────── */
.nav-menu .sub-menu a {
  color: var(--ink);
  font-weight: 500;
}
.nav-menu .sub-menu a:hover,
.nav-menu .sub-menu a:focus-visible {
  background: var(--paper-2);
  color: #4A5160;
}
/* ── Testi del corpo: grigio più scuro e leggibile ────────────── */
:root {
  /* Era #8891A4 — grigio freddo poco contrastato.
     Ora un grigio-inchiostro con contrasto AA garantito. */
  --text-muted: #55596B;
  --muted:      #55596B;
}
/* ── Footer: gerarchia più netta ──────────────────────────────── */
.footer-menu a,
.footer-widget a {
  color: rgba(255,255,255,.72);
  font-weight: 500;
}
.footer-menu a:hover,
.footer-widget a:hover { color: #fff; }
.footer-tagline    { color: rgba(255,255,255,.62); }
.footer-bar-copy   { color: rgba(255,255,255,.52); }
.footer-bar-legal a { color: rgba(255,255,255,.62); }
.footer-bar-legal a:hover { color: #fff; }
/* ── Card e sezioni scure ─────────────────────────────────────── */
.section--dark p    { color: rgba(255,255,255,.62); }
.feature-desc       { color: rgba(255,255,255,.6); }
.hero-desc          { color: rgba(255,255,255,.62); }
.page-hero-desc     { color: rgba(255,255,255,.62); }
.hero-stat-label    { color: rgba(255,255,255,.5); }
.breadcrumb,
.breadcrumb a       { color: rgba(255,255,255,.5); }
.breadcrumb-current { color: rgba(255,255,255,.72); }
.faq-visual p       { color: rgba(255,255,255,.62); }
/* ═══════════════════════════════════════════════════════════════
   ██  TESTI SU SFONDO SCURO  ██
   Blocco finale: garantisce leggibilità ovunque il fondo sia nero.
   Sovrascrive le regole del design originale, quando l'hero era chiaro.
═══════════════════════════════════════════════════════════════ */
/* ── HERO homepage ────────────────────────────────────────────── */
#hero .hero-title      { color: #FFFFFF; }
#hero .hero-title em   { color: var(--brand-l); font-style: italic; }
#hero .hero-desc       { color: rgba(255,255,255,.68); }
#hero .hero-eyebrow    { color: var(--brand-l); }
#hero .hero-stat-num   { color: #FFFFFF; }
#hero .hero-stat-num sup { color: var(--brand-l); }
#hero .hero-stat-label { color: rgba(255,255,255,.55); }
#hero .hero-pill-dark  { color: rgba(255,255,255,.7); }
#hero .btn-ghost-dark  { color: rgba(255,255,255,.85); }
/* ── PAGE HERO pagine interne ─────────────────────────────────── */
.page-hero .page-hero-title    { color: #FFFFFF; }
.page-hero .page-hero-title em { color: var(--brand-l); }
.page-hero .page-hero-desc     { color: rgba(255,255,255,.68); }
.page-hero .eyebrow            { color: var(--brand-l); }
.page-hero .breadcrumb,
.page-hero .breadcrumb a       { color: rgba(255,255,255,.55); }
.page-hero .breadcrumb a:hover { color: var(--brand-l); }
.page-hero .breadcrumb-current { color: rgba(255,255,255,.8); }
.page-hero .page-hero-tag      { color: var(--brand-l); }
/* ── SEZIONE COMPETENZE (fondo nero) ──────────────────────────── */
.section--dark              { color: rgba(255,255,255,.68); }
.section--dark .headline    { color: #FFFFFF; }
.section--dark .headline em { color: var(--brand-l); }
.section--dark .eyebrow     { color: var(--brand-l); }
.section--dark p,
.section--dark .lead        { color: rgba(255,255,255,.68); }
.feature-title              { color: #FFFFFF; }
.feature-desc               { color: rgba(255,255,255,.62); }
.feature-num                { color: rgba(255,255,255,.06); }
/* ── CTA BAND (fondo blu) ─────────────────────────────────────── */
#cta-band .cta-band-title { color: #FFFFFF; }
#cta-band .btn-white      { color: var(--brand); background: #fff; }
#cta-band .btn-ghost      { color: #FFFFFF; border-color: rgba(255,255,255,.45); }
#cta-band .btn-ghost:hover{ background: rgba(255,255,255,.12); border-color: #fff; }
/* ── BOX FAQ scuro ────────────────────────────────────────────── */
.faq-visual .headline     { color: #FFFFFF; }
.faq-visual p             { color: rgba(255,255,255,.68); }
.faq-contact-link         { color: rgba(255,255,255,.72); }
.faq-contact-link:hover   { color: var(--brand-l); }
/* ── SIDEBAR card testata scura ───────────────────────────────── */
.sidebar-card-head h4 { color: #FFFFFF; }
.sidebar-card-head p  { color: rgba(255,255,255,.55); }
/* ── FOOTER ───────────────────────────────────────────────────── */
#site-footer                   { color: rgba(255,255,255,.68); }
#site-footer .footer-col-title { color: #FFFFFF; }
#site-footer .footer-logo      { color: #FFFFFF; }
/* ── Elementi decorativi ──────────────────────────────────────── */
.team-avatar-initials { color: rgba(65,106,178,.5); }
.about-visual-year    { color: rgba(65,106,178,.22); }
/* ═══════════════════════════════════════════════════════════════
   ██  SITI PER SETTORE — directory  ██
═══════════════════════════════════════════════════════════════ */
.settori-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
}
.settori-group { min-width: 0; }
.settori-group-title {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  padding-bottom: .6rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.settori-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.settori-list li { list-style: none; }
.settori-list a {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--ink);
  transition: color var(--dur-fast), padding-left var(--dur-fast);
}
.settori-list a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
  opacity: .35;
  flex-shrink: 0;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.settori-list a:hover {
  color: var(--brand);
  padding-left: .25rem;
}
.settori-list a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}
@media (max-width: 900px) {
  .settori-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 2rem; }
}
@media (max-width: 560px) {
  .settori-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
/* ═══════════════════════════════════════════════════════════════
   ██  HERO — LAYOUT DEFINITIVO  ██
   Due colonne su desktop: messaggio a sinistra, competenze a destra.
   Blocco finale: sovrascrive ogni regola precedente.
═══════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: clamp(4rem, 9vh, 7rem) 0 clamp(3rem, 6vh, 5rem);
  min-height: auto;
  display: block;
}
/* Griglia sottile di sfondo */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 30% 40%, #000, transparent 75%);
  pointer-events: none;
}
/* Alone brand */
#hero::after {
  content: '';
  position: absolute;
  right: -10%;
  top: 10%;
  width: 45rem;
  height: 45rem;
  background: radial-gradient(circle, rgba(65,106,178,.14) 0%, transparent 65%);
  pointer-events: none;
}
/* ── Griglia principale ───────────────────────────────────────── */
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.hero-main { min-width: 0; }
/* ── Eyebrow ──────────────────────────────────────────────────── */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-l);
  margin-bottom: 1.6rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-l);
  animation: pulse 2.2s ease-in-out infinite;
}
/* ── Titolo: dimensionato per stare su 2-3 righe ─────────────── */
#hero .hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4.4vw, 4.2rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.035em;
  color: #FFFFFF;
  max-width: 15ch;
  margin: 0 0 1.4rem;
}
#hero .hero-title em {
  font-style: italic;
  color: var(--brand-l);
}
/* ── Descrizione ──────────────────────────────────────────────── */
#hero .hero-desc {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  color: rgba(255,255,255,.68);
  max-width: 46ch;
  margin: 0 0 2.2rem;
}
/* ── Bottoni ──────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.btn-primary-dark {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 18px rgba(65,106,178,.32);
}
.btn-primary-dark:hover {
  background: var(--brand-d);
  box-shadow: 0 8px 26px rgba(65,106,178,.45);
}
.btn-ghost-dark {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.16);
}
.btn-ghost-dark:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.32);
  color: #fff;
}
/* ── Statistiche ──────────────────────────────────────────────── */
.hero-stats {
  display: flex;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
  margin: 0;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.2vw, 2.1rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: .25rem;
}
.hero-stat-num sup { font-size: .5em; color: var(--brand-l); }
.hero-stat-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
/* ── Colonna destra: card competenze ──────────────────────────── */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}
.hero-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 1.6rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-card-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  margin-bottom: 1.2rem;
}
.hero-skills {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.hero-skill {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  list-style: none;
}
.hero-skill:last-child { border-bottom: none; }
.hero-skill-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 7px;
  background: rgba(65,106,178,.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-skill-icon svg {
  width: 15px !important;
  height: 15px !important;
  stroke: var(--brand-l);
  fill: none;
}
.hero-skill-text {
  display: flex;
  flex-direction: column;
  gap: .12rem;
  min-width: 0;
}
.hero-skill-text strong {
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.hero-skill-text small {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  line-height: 1.4;
}
.hero-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand-l);
  transition: gap var(--dur-fast);
}
.hero-card-link svg { width: 13px !important; height: 13px !important; stroke: currentColor; fill: none; }
.hero-card-link:hover { gap: .7rem; }
/* ── Badge disponibilità ──────────────────────────────────────── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  align-self: flex-start;
  padding: .55rem 1rem;
  border-radius: 30px;
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.25);
  font-size: .78rem;
  font-weight: 500;
  color: #4ADE80;
}
.hero-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  animation: pulse 2s ease-in-out infinite;
}
/* ── Indicatore scroll ────────────────────────────────────────── */
.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.hero-scroll-line {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,.3), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}
/* ── Nascondi elementi del vecchio layout ─────────────────────── */
.hero-left, .hero-right, .hero-pills { display: none; }
/* ═══ TABLET ≤ 1024px ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  #hero .hero-title { max-width: 18ch; }
  #hero .hero-desc  { max-width: 56ch; }
  .hero-aside { max-width: 480px; }
  .hero-scroll { display: none; }
}
/* ═══ MOBILE ≤ 768px ════════════════════════════════════════════ */
@media (max-width: 768px) {
  #hero { padding: 2.5rem 0 3rem; }
  #hero .hero-title {
    font-size: clamp(2.1rem, 9vw, 3rem);
    max-width: none;
  }
  #hero .hero-desc { font-size: 1rem; max-width: none; }
  .hero-actions { flex-direction: column; margin-bottom: 2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 1.2rem 2rem; padding-top: 1.5rem; }
  .hero-aside { max-width: none; }
  .hero-card { padding: 1.3rem; }
}
@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 1rem; }
  .hero-stat  { display: flex; align-items: baseline; gap: .6rem; }
  .hero-stat-num { margin-bottom: 0; }
}
/* ═══════════════════════════════════════════════════════════════
   CTA PAGINA RIVENDITORI
   Sostituisce la band globale su questa pagina.
═══════════════════════════════════════════════════════════════ */
.reseller-cta {
  background: var(--brand);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  position: relative;
  overflow: hidden;
}
.reseller-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,.14), transparent 60%);
  pointer-events: none;
}
.reseller-cta-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.reseller-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 22ch;
  margin-bottom: .7rem;
}
.reseller-cta-desc {
  font-size: var(--text-base);
  line-height: 1.65;
  color: rgba(255,255,255,.82);
  max-width: 46ch;
  margin: 0;
}
.reseller-cta-actions {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.reseller-cta .btn-white {
  background: #fff;
  color: var(--brand);
  font-weight: 700;
}
.reseller-cta .btn-white:hover { background: rgba(255,255,255,.9); }
.reseller-cta .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.45);
}
.reseller-cta .btn-ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}
@media (max-width: 768px) {
  .reseller-cta-inner { flex-direction: column; align-items: stretch; gap: 1.8rem; }
  .reseller-cta-title { max-width: none; }
  .reseller-cta-desc  { max-width: none; }
  .reseller-cta-actions { flex-direction: column; }
  .reseller-cta-actions .btn { width: 100%; justify-content: center; }
}
/* ═══════════════════════════════════════════════════════════════
   ██  ANTI-OVERFLOW ORIZZONTALE  ██
   Blocco finale: impedisce che qualsiasi elemento sfondi
   la larghezza della viewport su mobile.
═══════════════════════════════════════════════════════════════ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* Ogni griglia deve poter restringersi: minmax(0,…) evita che
   il contenuto imponga una larghezza minima maggiore della colonna */
/* Testi lunghi e URL non devono allargare il contenitore */
p, li, td, .service-page-content, .related-card-desc,
.hero-desc, .page-hero-desc, .footer-bar-copy {
  overflow-wrap: break-word;
  word-wrap: break-word;
}
/* Variante griglia con sidebar più stretta */
.service-page-grid--narrow { grid-template-columns: 1fr 320px; }
@media (max-width: 1024px) {
  /* Sotto i 1024px ogni griglia con sidebar diventa a colonna singola */
  .service-page-grid,
  .service-page-grid--narrow { grid-template-columns: 1fr !important; }
}
@media (max-width: 768px) {
  .services-grid,
  .related-grid,
  .settori-grid,
  .features-inline { grid-template-columns: 1fr !important; }
}
/* Checkbox "mostra password" nel form di reset */
/* ═══════════════════════════════════════════════════════════════
   ██  LOGIN AREA RISERVATA  ██
═══════════════════════════════════════════════════════════════ */
/* ── Testata scura ────────────────────────────────────────────── */
/* ── Corpo del form ───────────────────────────────────────────── */
/* Campo password con occhio */
/* Riga ricordami / password dimenticata */
/* ── Piede della card ─────────────────────────────────────────── */
/* ── Aiuto sotto la card ──────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ██  DASHBOARD PARTNER  ██
═══════════════════════════════════════════════════════════════ */
/* ── Statistiche in evidenza ──────────────────────────────────── */
/* ── Griglia principale ───────────────────────────────────────── */
/* ── Card ─────────────────────────────────────────────────────── */
/* ── Grafico a barre ──────────────────────────────────────────── */
/* ── Generatore link ──────────────────────────────────────────── */
/* ── Condivisione ─────────────────────────────────────────────── */
/* ── Tabella contatti ─────────────────────────────────────────── */
/* ── Elenco materiali ─────────────────────────────────────────── */
/* ── Responsive ───────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════
   ██  CATALOGO LINK REFERRAL  ██
═══════════════════════════════════════════════════════════════ */
/* ── Link personalizzato ──────────────────────────────────────── */
/* ── Filtro ───────────────────────────────────────────────────── */
/* ── Catalogo ─────────────────────────────────────────────────── */
/* Scrollbar discreta */
/* ═══════════════════════════════════════════════════════════════
   PAGINE RISERVATE — spaziature compatte
   Area Rivenditori e Diventa Rivenditore: hero e sezioni più stretti.
═══════════════════════════════════════════════════════════════ */
.page-template-page-area-rivenditori .page-hero,
.page-template-page-diventa-rivenditore .page-hero,
.page-template-page-recupera-password .page-hero {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.6rem, 3vw, 2.2rem);
}
.page-template-page-area-rivenditori .page-hero-title,
.page-template-page-diventa-rivenditore .page-hero-title,
.page-template-page-recupera-password .page-hero-title {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  margin-bottom: .8rem;
}
.page-template-page-area-rivenditori .page-hero-desc,
.page-template-page-diventa-rivenditore .page-hero-desc,
.page-template-page-recupera-password .page-hero-desc {
  font-size: var(--text-base);
  margin-bottom: 0;
  max-width: 60ch;
}
.page-template-page-area-rivenditori .breadcrumb,
.page-template-page-diventa-rivenditore .breadcrumb,
.page-template-page-recupera-password .breadcrumb {
  margin-bottom: .9rem;
}
.page-template-page-area-rivenditori .eyebrow,
.page-template-page-diventa-rivenditore .eyebrow,
.page-template-page-recupera-password .eyebrow {
  margin-bottom: .7rem;
}
/* Prima sezione dopo l'hero: meno stacco */
.page-template-page-area-rivenditori .section,
.page-template-page-diventa-rivenditore .section,
.page-template-page-recupera-password .section {
  padding-top: clamp(2rem, 4vw, 2.8rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
/* Intestazione dashboard più vicina */
@media (max-width: 768px) {
  .page-template-page-area-rivenditori .page-hero,
  .page-template-page-diventa-rivenditore .page-hero,
  .page-template-page-recupera-password .page-hero {
    padding: 1.6rem 0 1.4rem;
  }
  .page-template-page-area-rivenditori .section,
  .page-template-page-diventa-rivenditore .section,
  .page-template-page-recupera-password .section {
    padding-top: 1.8rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   PIANI DI MANUTENZIONE — da incollare in coda ad assets/css/main.css
   Usa i token del tema (--brand, --ink, --paper, --font-display).
   ═══════════════════════════════════════════════════════════════ */
/* colonna consigliata: sollevata, scura, con la dorsale del brand */
/* ═══════════════════════════════════════════════════════════════
   ARTICOLO SINGOLO
   ═══════════════════════════════════════════════════════════════ */
/* ── corpo del testo ── */
/* i diagrammi sono verticali: si leggono meglio a larghezza contenuta e centrati */
/* ── condivisione ── */
/* ── richiamo ai servizi ── */
/* ── navigazione ── */
/* ── correlati ── */
/* ── pulsante WhatsApp flottante ── */
/* CTA in coda agli articoli, generata dallo shortcode [adsn_cta] */
.btn-wa {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #25D366; color: #fff; border: 1.5px solid #25D366;
  padding: .85rem 1.4rem; border-radius: 3px; font-weight: 600;
  font-size: var(--text-sm); text-decoration: none;
}
.btn-wa svg { width: 18px; height: 18px; }
.btn-wa:hover { background: #1DB954; border-color: #1DB954; color: #fff; }
.wa-link { color: #128C7E; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wa-link:hover { color: #25D366; }
/* ── FIX: dentro .post-body la regola sui link vinceva sui pulsanti ──
   .post-body a  = specificità (0,1,1) e batteva .btn-primary (0,1,0):
   testo blu sottolineato su fondo blu, cioè invisibile.               */
/* pulsanti allineati in altezza e leggibili anche su schermo stretto */
/* ── FIX: [adsn_wa] in linea era un semplice link, ora è un pulsante ── */
:root {
  --wa-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12.04 2C6.58 2 2.13 6.45 2.13 11.91c0 1.75.46 3.45 1.32 4.95L2 22l5.25-1.38c1.45.79 3.08 1.21 4.79 1.21h.01c5.46 0 9.91-4.45 9.91-9.91 0-2.65-1.03-5.14-2.9-7.01A9.82 9.82 0 0 0 12.04 2m5.43 12.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.65.07-.3-.15-1.25-.46-2.38-1.47-.88-.78-1.48-1.75-1.65-2.05-.17-.3-.02-.46.13-.61.14-.13.3-.35.45-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51h-.57c-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48s1.06 2.88 1.21 3.08c.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.69.63.71.22 1.36.19 1.87.12.57-.09 1.76-.72 2.01-1.41.25-.7.25-1.29.17-1.42-.07-.13-.27-.2-.57-.35z'/%3E%3C/svg%3E");
}
/* ═══════════════════════════════════════════════════════════════
   BLOG — indice e archivi (sostituisce/estende le regole .blog-*)
   ═══════════════════════════════════════════════════════════════ */
/* filtro categorie */
/* conteggio risultati */
/* griglia a due colonne per le schede */
/* scheda in evidenza, a tutta larghezza */
/* barra laterale */
/* stato vuoto */


/* ═══════════════════════════════════════════════════════════════
   FONT NON CRITICI
   Caricati con main.css, dopo il primo paint. Nel frattempo
   il fallback metrico regge il layout senza spostamenti.
═══════════════════════════════════════════════════════════════ */
@font-face{
  font-family:'Fraunces';
  src:url('/tema/fonts/fraunces-700.woff2') format('woff2');
  font-weight:700; font-style:normal; font-display:swap;
}
@font-face{
  font-family:'Fraunces';
  src:url('/tema/fonts/fraunces-600-italic.woff2') format('woff2');
  font-weight:600; font-style:italic; font-display:swap;
}

/* ═══════════════════════════════════════════════════════════════
   CASE STUDY CORRELATI nelle pagine settore
═══════════════════════════════════════════════════════════════ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.case-card:hover {
  border-color: rgba(65,106,178,.3);
  box-shadow: 0 12px 32px rgba(35,31,32,.09);
  transform: translateY(-3px);
}
.case-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--paper-2); }
.case-card-img img { width: 100%; height: 100%; object-fit: cover; }
.case-card-body { display: flex; flex-direction: column; padding: 1.5rem; flex: 1; }
.case-card-label {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .6rem;
}
.case-card-title {
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  line-height: 1.25; color: var(--ink); margin-bottom: .6rem;
}
.case-card-desc {
  font-size: var(--text-sm); line-height: 1.6; color: var(--text-muted);
  flex: 1; margin-bottom: 1.1rem;
}
.case-card-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); transition: gap var(--dur-fast);
}
.case-card-link svg { width: 13px !important; height: 13px !important; stroke: currentColor; fill: none; }
.case-card:hover .case-card-link { gap: .7rem; }

@media (max-width: 768px) { .cases-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════════════════════
   BANNER INLINE — rimandi ai servizi dentro il testo
═══════════════════════════════════════════════════════════════ */
.inline-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0;
  padding: 1.4rem 1.6rem;
  background: var(--brand-ghost);
  border: 1px solid rgba(65,106,178,.18);
  border-left: 3px solid var(--brand);
  border-radius: 10px;
}
.inline-banner-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(65,106,178,.2);
  flex-shrink: 0;
}
.inline-banner-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke: var(--brand);
  fill: none;
}
.inline-banner-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  min-width: 0;
}
.inline-banner-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.inline-banner-text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--text-muted);
}
.inline-banner-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  padding: .6rem 1.1rem;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur-fast), gap var(--dur-fast);
}
.inline-banner-link svg { width: 13px !important; height: 13px !important; stroke: currentColor; fill: none; }
.inline-banner-link:hover { background: var(--brand-d); gap: .65rem; }

@media (max-width: 700px) {
  .inline-banner { flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.2rem; }
  .inline-banner-link { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — separatori tra i link legali
═══════════════════════════════════════════════════════════════ */
.footer-bar-legal {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════════
   ██  BOTTONE WHATSAPP FLOTTANTE  ██
   Stampato su ogni pagina da functions.php: il CSS deve stare
   qui, non in ctx-blog.css, altrimenti fuori dal blog compare
   come link senza stile.
═══════════════════════════════════════════════════════════════ */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;

  display: inline-flex;
  align-items: center;
  gap: .55rem;

  background: #25D366;
  color: #fff;
  padding: .85rem 1.3rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: var(--text-sm);
  line-height: 1;

  box-shadow: 0 6px 20px -6px rgba(37,211,102,.65),
              0 2px 6px rgba(35,31,32,.12);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), background var(--dur-fast);
}
.wa-float svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor;
  flex-shrink: 0;
}
.wa-float:hover,
.wa-float:focus-visible {
  background: #1DB954;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -6px rgba(37,211,102,.75),
              0 3px 8px rgba(35,31,32,.15);
}

/* ── Mobile: cerchio pieno, area di tocco adeguata ────────────── */
@media (max-width: 768px) {
  .wa-float {
    right: 1rem;
    bottom: 1rem;
    width: 56px;
    height: 56px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 50%;
    /* Bordo bianco: stacca il verde da qualsiasi fondo */
    border: 2px solid rgba(255,255,255,.9);
    box-shadow: 0 4px 16px rgba(35,31,32,.28);
  }
  .wa-float span { display: none; }
  .wa-float svg { width: 26px !important; height: 26px !important; }

  /* Non deve coprire i bottoni a tutta larghezza in fondo pagina */
  #site-footer { padding-bottom: 4.5rem; }

  /* La banda CTA ha bottoni a tutta larghezza: il tasto flottante
     ci finiva sopra, rendendo il numero di telefono intoccabile.
     Riduciamo la larghezza dei bottoni sul lato destro. */
  #cta-band .cta-band-actions { padding-right: 4.2rem; }
}

/* Con il menu mobile aperto il bottone sparisce */
body.nav-open .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) {
  .wa-float { transition: none; }
  .wa-float:hover { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   RIMANDO ALLA PAGINA PILASTRO
   Chiude le pagine figlie riportando alla panoramica del servizio.
═══════════════════════════════════════════════════════════════ */
.parent-link {
  margin-top: 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.parent-link a { color: var(--brand); }
.parent-link a:hover { color: var(--brand-d); text-decoration: underline; }


/* ═══════════════════════════════════════════════════════════════
   FOOTER — link legali sempre su una riga
   Privacy / Cookie / Note Legali restano affiancati a ogni
   larghezza: sono tre voci brevi, andare a capo le sparpaglia.
═══════════════════════════════════════════════════════════════ */
.footer-bar-legal {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: .55rem;
}
.footer-bar-legal a {
  white-space: nowrap;
  font-size: var(--text-sm);
}
.footer-legal-sep {
  color: rgba(255,255,255,.28);
  user-select: none;
  flex-shrink: 0;
}

/* Su schermi molto stretti riduciamo il carattere invece di
   mandare a capo: le tre voci ci stanno comunque. */
@media (max-width: 420px) {
  .footer-bar-legal { gap: .4rem; }
  .footer-bar-legal a { font-size: .78rem; }
  .footer-legal-sep  { font-size: .78rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  ARTICOLI CORRELATI — pagine servizio  ██
   Tre card affiancate, allineate all'immagine. Nessuna data:
   un approfondimento resta valido nel tempo.
═══════════════════════════════════════════════════════════════ */
.related-posts {
  /* Più spazio in basso: sotto arriva la banda CTA */
  padding: clamp(2.8rem, 6vw, 4.5rem) 0 clamp(3.2rem, 7vw, 5rem);
  background: var(--paper-2);
  border-top: 1px solid var(--border);
}

/* ── Intestazione ─────────────────────────────────────────── */
.related-posts-head { margin-bottom: clamp(1.6rem, 3.5vw, 2.4rem); }

.related-posts-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

/* ── Griglia ──────────────────────────────────────────────── */
.related-posts-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.related-post { display: flex; min-width: 0; }

.related-post-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-med), box-shadow var(--dur-med), transform var(--dur-med) var(--ease-out);
}
.related-post-link:hover,
.related-post-link:focus-visible {
  border-color: rgba(65,106,178,.32);
  box-shadow: 0 12px 30px -8px rgba(35,31,32,.14);
  transform: translateY(-3px);
  color: inherit;
}

/* ── Immagine ─────────────────────────────────────────────── */
.related-post-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2);
}
.related-post-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease-out);
}
.related-post-link:hover .related-post-media img { transform: scale(1.045); }

/* ── Testo ────────────────────────────────────────────────── */
.related-post-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.3rem 1.35rem;
  min-width: 0;
}

.related-post-cat {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 0 .5rem;
}

.related-post-title {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 .55rem;
  overflow-wrap: break-word;

  /* Massimo tre righe: le card restano della stessa altezza */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-excerpt {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1rem;
  flex: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}

/* ── Link finale ──────────────────────────────────────────── */
.related-posts-more {
  margin: 2rem 0 0;
  text-align: center;
}
.related-posts-more a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand);
  transition: gap var(--dur-fast);
}
.related-posts-more a svg {
  width: 14px !important;
  height: 14px !important;
  stroke: currentColor;
  fill: none;
}
.related-posts-more a:hover { gap: .7rem; color: var(--brand-d); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .related-posts-list { grid-template-columns: repeat(2, 1fr); }
  /* Con due colonne la terza card resterebbe sola: la nascondiamo */
  .related-post:nth-child(3) { display: none; }
}

@media (max-width: 600px) {
  .related-posts-list { grid-template-columns: 1fr; gap: 1.1rem; }
  .related-post:nth-child(3) { display: flex; }
  .related-post-media { aspect-ratio: 2 / 1; }
  .related-post-text { padding: 1.1rem 1.15rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .related-post-link,
  .related-post-media img { transition: none; }
  .related-post-link:hover { transform: none; }
  .related-post-link:hover .related-post-media img { transform: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  DOMANDE FREQUENTI  ██
   Usa <details>: funziona senza JavaScript e resta accessibile.
═══════════════════════════════════════════════════════════════ */
.faq-block {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}
.faq-block-title {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 clamp(1.3rem, 3vw, 1.9rem);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 780px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color var(--dur-fast);
}
.faq-item[open] { border-color: rgba(65,106,178,.28); }
.faq-item:hover { border-color: rgba(65,106,178,.2); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: -2px;
}

/* Indicatore + / − disegnato in CSS */
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--brand);
  border-radius: 2px;
  transition: transform var(--dur-fast), opacity var(--dur-fast);
}
.faq-icon::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-icon::after  { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }

.faq-answer {
  padding: 0 1.3rem 1.2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.faq-answer p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  .faq-question { padding: .95rem 1.05rem; font-size: .95rem; }
  .faq-answer { padding: .9rem 1.05rem 1.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item, .faq-icon::before, .faq-icon::after { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  MEGA-MENU  ██

   Tre comportamenti distinti:
   ≥1025px  pannello a quattro colonne centrato sotto la barra
   769-1024 pannello a due colonne, più stretto
   ≤768px   accordion dentro il menu a tutta pagina
═══════════════════════════════════════════════════════════════ */

/* ── DESKTOP ≥ 769px ─────────────────────────────────────────── */
@media (min-width: 769px) {

  /* Il pannello esce dal flusso della voce e si estende */
  #site-nav .menu-item-mega { position: static; }

  #site-nav .sub-menu--mega {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);

    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 1.6rem 2rem;

    width: min(920px, calc(100vw - 3rem));
    padding: 1.6rem 1.8rem;
    margin: 0;

    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 18px 48px -12px rgba(35,31,32,.16);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur-fast), transform var(--dur-fast), visibility var(--dur-fast);
  }

  #site-nav .menu-item-mega:hover > .sub-menu--mega,
  #site-nav .menu-item-mega:focus-within > .sub-menu--mega {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  /* Colonna */
  #site-nav .mega-col { display: block; }

  #site-nav .mega-col-title {
    display: block;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--brand);
    padding: 0 0 .55rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
  }

  #site-nav .mega-col-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #site-nav .mega-col-list li { margin: 0; }
  #site-nav .mega-col-list a {
    display: block;
    padding: .42rem .55rem;
    margin-left: -.55rem;
    border-radius: 6px;
    font-size: var(--text-sm);
    line-height: 1.35;
    color: var(--text);
    white-space: normal;
    transition: background var(--dur-fast), color var(--dur-fast);
  }
  #site-nav .mega-col-list a:hover,
  #site-nav .mega-col-list a:focus-visible {
    background: var(--brand-ghost, rgba(65,106,178,.07));
    color: var(--brand-d);
  }

  /* Voce "Vedi tutti" nel sottomenu Settori */
  #site-nav .sub-menu .is-all a {
    margin-top: .35rem;
    padding-top: .6rem;
    border-top: 1px solid var(--border);
    font-weight: 600;
    color: var(--brand);
  }
}

/* ── TABLET 769-1024px: due colonne ──────────────────────────── */
@media (min-width: 769px) and (max-width: 1024px) {
  #site-nav .sub-menu--mega {
    grid-template-columns: repeat(2, 1fr);
    width: min(560px, calc(100vw - 2rem));
    gap: 1.2rem 1.5rem;
    padding: 1.3rem 1.4rem;
  }
  #site-nav .mega-col-list a { font-size: .85rem; padding: .38rem .5rem; }
}

/* ── MOBILE ≤ 768px: accordion ───────────────────────────────── */
@media (max-width: 768px) {

  #site-nav .sub-menu--mega {
    position: static;
    display: none;
    grid-template-columns: 1fr;
    width: 100%;
    padding: .2rem 0 .6rem;
    margin: 0;
    background: none;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }
  /* Il JS aggiunge .open al tap sulla voce genitore */
  #site-nav .menu-item-has-children.open > .sub-menu--mega { display: grid; }

  #site-nav .mega-col { padding: .3rem 0; }

  #site-nav .mega-col-title {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--brand);
    padding: .7rem 0 .35rem;
    border-bottom: none;
  }

  #site-nav .mega-col-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  #site-nav .mega-col-list a {
    display: block;
    padding: .55rem 0 .55rem .9rem;
    font-size: .95rem;
    color: rgba(255,255,255,.82);
    border-left: 2px solid rgba(255,255,255,.12);
  }
  #site-nav .mega-col-list a:active,
  #site-nav .mega-col-list a:focus-visible {
    color: #fff;
    border-left-color: var(--brand-l);
  }

  #site-nav .sub-menu .is-all a {
    margin-top: .4rem;
    font-weight: 600;
    color: var(--brand-l);
  }
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER — contatti nella colonna brand
═══════════════════════════════════════════════════════════════ */
.footer-contatti {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .8rem;
}
.footer-contatti li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: rgba(255,255,255,.62);
}
.footer-contatti svg {
  width: 15px !important;
  height: 15px !important;
  stroke: var(--brand-l);
  fill: none;
  flex-shrink: 0;
  margin-top: .2rem;
}
.footer-contatti a {
  color: rgba(255,255,255,.62);
  transition: color var(--dur-fast);
}
.footer-contatti a:hover { color: #fff; }

/* Il logo del footer non deve stare troppo attaccato al testo */
.footer-logo { display: inline-block; margin-bottom: .9rem; }

/* ═══════════════════════════════════════════════════════════════
   FOOTER — assestamento a quattro colonne
═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Il brand occupa la riga intera: contiene indirizzo e contatti */
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-col:nth-child(4) { grid-column: auto; }
  .footer-col:nth-child(4) .footer-menu { columns: 1; }
  .footer-contatti { flex-direction: row; flex-wrap: wrap; gap: .6rem 1.6rem; }
  .footer-contatti li { flex: 0 1 auto; }
}

@media (max-width: 560px) {
  .footer-contatti { flex-direction: column; gap: .7rem; }
}

/* ═══════════════════════════════════════════════════════════════
   ██  LOGO — immagine  ██
═══════════════════════════════════════════════════════════════ */
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo-img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 100%;
}

.footer-logo-img {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .nav-logo-img { height: 28px; }
}
@media (max-width: 400px) {
  .nav-logo-img { height: 25px; }
}

@media print {
  .nav-logo-img { height: 30px; }
}


/* ═══════════════════════════════════════════════════════════════
   PITTOGRAMMA DEL MARCHIO accanto al titolo
   La freccia del logo affiancata al testo, alta quanto le righe
   del titolo. Decorativa: aria-hidden nel markup.
═══════════════════════════════════════════════════════════════ */
.headline--pitto {
  display: flex;
  align-items: center;
  gap: clamp(.35rem, 1vw, .7rem);

  /* Il pittogramma occupa larghezza: senza ridurre il corpo il
     testo si spezzerebbe su quattro righe invece di due. */
  font-size: clamp(1.75rem, 2.7vw, 2.5rem);
}

.headline-testo {
  display: block;
  min-width: 0;
  /* Le due righe sono definite dal <br>: nessun altro ritorno a capo */
  white-space: nowrap;
}

.headline-pitto {
  display: block;
  flex-shrink: 0;

  /* Alta quanto il blocco di testo su due righe.
     Il tracciato ha proporzione 69:60, quindi la larghezza è
     l'altezza moltiplicata per 1,15. */
  width: 2.25em;
  color: var(--brand);
}
.headline-pitto svg {
  display: block;
  width: 100% !important;
  height: auto !important;
  fill: currentColor;
  stroke: none;
}

/* Su fondo scuro schiarisce da sola */
.page-hero .headline-pitto,
#cta-band .headline-pitto,
.hero .headline-pitto { color: var(--brand-l); }

/* Tablet: la colonna si stringe, riduciamo ancora */
@media (max-width: 1100px) {
  .headline--pitto { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
}

@media (max-width: 600px) {
  .headline--pitto { gap: .45rem; font-size: clamp(1.55rem, 6.4vw, 2rem); }
  /* Sotto questa larghezza il testo deve poter andare a capo */
  .headline-testo { white-space: normal; }
  .headline-pitto { width: 1.9em; align-self: flex-start; margin-top: .15em; }
}


/* ═══ ctx-plans.css ═══ */
/* Piani e offerte — ADS Network */
.plans-intro { max-width: 44rem; margin: 0 auto 3rem; text-align: center; }
.plans-eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin: 0 0 .75rem;
}
.plans-sub { color: var(--text-muted); font-size: var(--text-lg); margin: 1rem 0 0; }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto repeat(5, auto) auto auto;
  gap: 0 1.25rem;
  max-width: 68rem;
  margin: 0 auto;
  align-items: start;
}
.plan {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--paper);
  padding: 2rem 1.75rem 2.25rem;
  position: relative;
}
.plan--top {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--text-light);
  margin-top: -1.5rem;
  padding-top: 3.5rem;
  padding-bottom: 2.75rem;
  box-shadow: 0 18px 40px -18px rgba(35, 31, 32, .45);
}
.plan--top::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; background: var(--brand);
}
.plan-flag {
  position: absolute; top: 1.25rem; left: 1.75rem;
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brand-l);
}
.plan-name {
  font-family: var(--font-display); font-size: var(--text-2xl);
  font-weight: 600; letter-spacing: -.01em; margin: 0 0 .4rem;
}
.plan-for {
  font-size: var(--text-sm); line-height: 1.55; color: var(--text-muted);
  margin: 0 0 1.75rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border);
}
.plan--top .plan-for { color: rgba(255,255,255,.66); border-bottom-color: rgba(255,255,255,.18); }
.plan-row { padding: 0 0 1.15rem; }
.plan-label {
  display: block; font-size: var(--text-xs); font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: .2rem;
}
.plan--top .plan-label { color: rgba(255,255,255,.55); }
.plan-value { font-size: var(--text-base); font-weight: 500; line-height: 1.4; }
.plan-value.is-off { color: var(--text-muted); font-weight: 400; }
.plan--top .plan-value.is-off { color: rgba(255,255,255,.5); }
.plan-value.is-on { color: var(--brand); font-weight: 600; }
.plan--top .plan-value.is-on { color: var(--brand-l); }
.plan-price { padding-top: 1.5rem; border-top: 1px solid var(--border); }
.plan--top .plan-price { border-top-color: rgba(255,255,255,.18); }
.plan-figure {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 2.6rem); font-weight: 600;
  letter-spacing: -.03em; line-height: 1;
}
.plan-period {
  display: block; font-size: var(--text-sm);
  color: var(--text-muted); margin-top: .45rem; line-height: 1.4;
}
.plan--top .plan-period { color: rgba(255,255,255,.66); }
.plan-cta {
  display: block; margin-top: 1.5rem; align-self: end;
  text-align: center; padding: .95rem 1rem; border-radius: 3px;
  font-size: var(--text-sm); font-weight: 600; text-decoration: none;
  border: 1.5px solid var(--ink); color: var(--ink); background: transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.plan-cta:hover, .plan-cta:focus-visible { background: var(--ink); color: var(--text-light); }
.plan--top .plan-cta { background: var(--brand); border-color: var(--brand); color: #fff; }
.plan--top .plan-cta:hover, .plan--top .plan-cta:focus-visible {
  background: #fff; border-color: #fff; color: var(--ink);
}
.plans-note {
  max-width: 68rem; margin: 2.5rem auto 0;
  font-size: var(--text-sm); line-height: 1.6;
  color: var(--text-muted); text-align: center;
}
.plans-guarantee {
  max-width: 68rem; margin: 2.5rem auto 0;
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.75rem; border: 1px solid var(--border);
  border-left: 4px solid var(--brand); border-radius: 4px; background: var(--paper);
}
.plans-guarantee p { margin: .4rem 0 0; color: var(--text-muted); font-size: var(--text-sm); line-height: 1.6; }
.plans-guarantee-icon { color: var(--brand); flex-shrink: 0; }
.plans-guarantee-icon svg { width: 28px; height: 28px; }
@media (max-width: 62rem) {
  .plans-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none; gap: 1.25rem; max-width: 34rem;
  }
  .plan { grid-row: auto; grid-template-rows: none; display: block; }
  .plan--top { order: -1; margin-top: 0; padding-top: 3.25rem; }
  .plans-guarantee { flex-direction: column; gap: .75rem; }
}
@media (max-width: 30rem) {
  .plan { padding: 1.75rem 1.35rem 2rem; }
  .plan--top { padding-top: 3rem; }
  .plan-flag { left: 1.35rem; }
}


/* ═══════════════════════════════════════════════════════════════
   Raccordi col motore
   Il foglio del motore (clean.css) resta caricato: le pagine dei moduli
   — area clienti, preventivi, blog, ricerca — sono disegnate con quello.
   Qui si mette d'accordo con quello del tema WordPress, che arriva dopo.
═══════════════════════════════════════════════════════════════ */
body { background: var(--paper); font-family: var(--font-body); color: var(--text); }
h1, h2, h3, h4 { letter-spacing: normal; }

/* le domande frequenti: la domanda è un titolo vero (h3), perché il motore
   ne ricava da solo i dati strutturati FAQPage; qui torna a sembrare testo */
.faq-question h3 { font: inherit; margin: 0; color: inherit; letter-spacing: inherit; line-height: inherit; }
.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }

/* il modulo di contatto ricevuto dal Tracking */
.ads-modulo { position: relative; }
.ads-modulo .form-alert { margin-bottom: 1.2rem; }
.ads-modulo .captcha { margin: .8rem 0; }
.ads-modulo .form-consent a { color: var(--brand); text-decoration: underline; }

/* articoli e casi correlati, dal vivo */
.ads-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.2rem; }
.ads-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.ads-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.ads-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.ads-card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.ads-card-body strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.25; color: var(--ink); }
.ads-card-body small { color: var(--text-muted); font-size: var(--text-sm); line-height: 1.55; }

/* ── le pagine del motore dentro la cornice del tema ── */
.page-single, .post-single, .blog-page, .archive-page, .search-page, .por-area, .error-page { padding-top: 1rem; }
.article-body a, .por-area a:not(.btn), .hp-section a:not(.btn) { color: var(--brand); }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body ol { list-style: decimal; padding-left: 1.4em; margin: 0 0 1.2em; }
.article-body p { color: var(--text); margin: 0 0 1.1em; }
.article-body h2 { margin: 1.8em 0 .6em; font-size: clamp(1.45rem, 3vw, 2rem); }
.article-body h3 { margin: 1.5em 0 .5em; font-size: 1.3rem; }
.article-title { font-family: var(--font-display); }

/* ── i pulsanti del motore col colore del tema ── */
.btn:not(.btn-primary):not(.btn-white):not(.btn-ghost):not(.btn-outline):not(.btn-primary-dark):not(.btn-ghost-dark) { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ═══ la pagina unica dei settori ═══ */
.settori-apertura { padding-bottom: 2rem; }
.settori-intro { max-width: 760px; }
.settori-intro p { font-size: var(--text-lg); margin-bottom: 1rem; }
.settori-intro a { color: var(--brand); text-decoration: underline; }
.settori-indice { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1.6rem 2rem; margin-top: 2.6rem; padding: 2rem; border: 1px solid var(--border); border-radius: 14px; background: var(--paper-2); }
.settori-indice-titolo { display: block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .7rem; }
.settori-indice ul { display: flex; flex-direction: column; gap: .35rem; }
.settori-indice li a { color: var(--ink); font-size: var(--text-sm); }
.settori-indice li a:hover { color: var(--brand); text-decoration: underline; }
.settori-gruppo { scroll-margin-top: 80px; }
.settori-griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.4rem; }
@media (max-width: 860px) { .settori-griglia { grid-template-columns: 1fr; } }
.settore { background: var(--paper); border: 1px solid var(--border); border-radius: 14px; padding: 1.8rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .9rem; scroll-margin-top: 90px; }
.settore:target { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ghost); }
.settore-eyebrow { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.settore-titolo { font-size: 1.55rem; line-height: 1.15; color: var(--ink); }
.settore-lead { color: var(--ink); font-weight: 500; }
.settore p { font-size: var(--text-sm); line-height: 1.7; }
.settore-punti { display: flex; flex-direction: column; gap: .55rem; margin: .2rem 0; }
.settore-punti li { position: relative; padding-left: 1.2rem; font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; }
.settore-punti li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.settore-punti strong { display: block; color: var(--ink); }
.settore-dettagli { border-top: 1px solid var(--border); padding-top: .8rem; }
.settore-dettagli summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); color: var(--ink); }
.settore-dettagli ul { list-style: disc; padding-left: 1.2rem; margin-top: .6rem; display: flex; flex-direction: column; gap: .3rem; }
.settore-dettagli li { font-size: var(--text-sm); color: var(--text-muted); }
.settore-cta { margin-top: auto; padding-top: .4rem; font-weight: 600; font-size: var(--text-sm); color: var(--brand); }
.settore-cta:hover { text-decoration: underline; }

/* le domande della home sono <div> che il tema apre con .open: senza questo,
   le regole scritte per <details> lasciavano vedere una riga della risposta chiusa */
.faq-item:not(details) .faq-answer { padding-top: 0; padding-bottom: 0; border-top: 0; }
.faq-item.open:not(details) .faq-answer { padding: 1rem 1.3rem 1.2rem; border-top: 1px solid var(--border); }

/* Sulle pagine dell'area riservata il corpo ha la classe «portale», e il foglio
   del Portale ridisegna ogni .btn: nella barra si torna a quelli del tema. */
#site-nav .nav-menu-cta { display: none; }
#site-nav .btn { padding: .9rem 1.8rem; min-height: 0; border: none; border-radius: 2px; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; letter-spacing: .03em; line-height: normal; }
#site-nav .btn:hover { filter: none; }

/* Il mega-menu a tre livelli: le liste dentro le colonne restano nella
   colonna. La regola «.nav-menu ul ul» del tema (pensata per le tendine a due
   livelli) le faceva uscire tutte come una tendina sola, una sopra l'altra. */
#site-nav .sub-menu--mega .mega-col-list {
  position: static; top: auto; left: auto; transform: none;
  display: flex; flex-direction: column; min-width: 0; width: auto;
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0;
}
#site-nav .sub-menu--mega .mega-col-list::before,
#site-nav .sub-menu--mega::before { display: none; }
#site-nav .sub-menu--mega .mega-col-list a { white-space: normal; font-weight: 500; }
@media (max-width: 768px) {
  #site-nav .sub-menu--mega .mega-col-list { border-left: 0; padding: 0; }
  /* il menu mobile è bianco: i link scritti per un fondo scuro non si vedevano */
  #site-nav .sub-menu--mega .mega-col-list a { color: var(--text); border-left: 2px solid var(--border); background: none; text-decoration: none; }
  #site-nav .sub-menu--mega .mega-col-list a:active,
  #site-nav .sub-menu--mega .mega-col-list a:focus-visible { color: var(--brand); border-left-color: var(--brand); }
}

/* Il biscottino per riaprire le preferenze: 30px più su di quello del motore,
   così non si appoggia al bottone di WhatsApp */
.ck-riapri { bottom: 80px; }
