/* ============================================================
   WDI Editorial — design layer 2026
   Caricato dopo i CSS esistenti; scope: body.wdi-2026
   Palette carta/inchiostro + accento terracotta.
   ============================================================ */


body.wdi-2026 {
  --paper: #f4f0e8;
  --paper-2: #ede8dd;
  --ink: #16130f;
  --muted: #6e675c;
  --line: #d8d0c2;
  --line-strong: #c3b9a7;
  --accent: #1d4ed8;
  --accent-bright: #9db8ff;
  --ok: #2f6b4f;
  --display: 'Geist Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: 'Geist Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, monospace;
  --pad: 5vw;
  --max: 1320px;
  --project-ratio: 949 / 453;
  --header-bg: rgba(244, 240, 232, 0.96);
  --inverse-bg: #16130f;
  --inverse-fg: #f4f0e8;

  margin: 0;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.wdi-2026 *,
body.wdi-2026 *::before,
body.wdi-2026 *::after { box-sizing: border-box; }

body.wdi-2026 ::selection { background: var(--accent); color: var(--paper); }

/* vecchi effetti decorativi: via */
body.wdi-2026 .bg-filter,
body.wdi-2026 .vignette,
body.wdi-2026 #webdev-mission-progress-sidebar,
body.wdi-2026 .webdev-hero-tech,
body.wdi-2026 .webdev-typewriter-line,
body.wdi-2026 .webdev-typewriter-cursor { display: none !important; }

/* ---------- tipografia ---------- */
body.wdi-2026 h1,
body.wdi-2026 h2,
body.wdi-2026 h3,
body.wdi-2026 h4 {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0;
}
body.wdi-2026 h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
body.wdi-2026 h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
body.wdi-2026 h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
body.wdi-2026 p { margin: 0 0 1rem; }
body.wdi-2026 a { color: inherit; text-decoration: none; }
body.wdi-2026 strong, body.wdi-2026 b { font-weight: 600; color: var(--ink) !important; }
body.wdi-2026 .wdi-work strong, body.wdi-2026 footer strong { color: inherit !important; }
body.wdi-2026 em { font-style: italic; }
body.wdi-2026 img { max-width: 100%; height: auto; }

body.wdi-2026 .webdev-headline,
body.wdi-2026 .webdev-about-title,
body.wdi-2026 .detail-title {
  font-family: var(--display) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  letter-spacing: -0.03em !important;
  line-height: 1.02 !important;
  -webkit-text-fill-color: currentColor !important;
  background: none !important;
}

/* ---------- layout ---------- */
.wdi-container { width: min(var(--max), calc(100% - 2 * var(--pad))); margin-inline: auto; }
.wdi-section { padding: clamp(72px, 9vw, 128px) 0; }
.wdi-section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.wdi-rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.wdi-eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.4rem;
}
.wdi-eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.wdi-eyebrow .wdi-num { color: var(--accent); }

.wdi-lede {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

.wdi-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin-top: 2.2rem; }

.wdi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.95em 1.5em;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--ink);
  color: var(--paper) !important;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.wdi-btn:hover { background: var(--accent); border-color: var(--accent); color: var(--paper) !important; }
.wdi-btn--ghost { background: transparent; color: var(--ink) !important; border-color: var(--line-strong); }
.wdi-btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper) !important; }

.wdi-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.25em;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.wdi-link:hover { color: var(--accent); border-color: var(--accent); }
.wdi-link::after { content: '→'; transition: transform 0.18s ease; }
.wdi-link:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
body.wdi-2026 header {
  position: sticky;
  top: 0;
  z-index: 100000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
body.wdi-2026 .webdev-main-navigation {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 0 !important;
}
body.wdi-2026 .webdev-main-navigation.nav-hidden { transform: none !important; pointer-events: auto !important; }
body.wdi-2026 .webdev-main-navigation > a:first-child {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1;
}
body.wdi-2026 .webdev-brand-logo {
  width: 30px !important;
  height: 30px !important;
  filter: brightness(0);
}
.wdi-wordmark {
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.wdi-2026 .webdev-nav-links {
  display: flex;
  align-items: center;
  gap: 1.55rem;
}
body.wdi-2026 .webdev-nav-item {
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted) !important;
  letter-spacing: 0;
  text-transform: none;
  position: relative;
  padding: 0.35rem 0;
}
body.wdi-2026 .webdev-nav-item:hover,
body.wdi-2026 .webdev-nav-item.active { color: var(--ink) !important; }
body.wdi-2026 .webdev-nav-item.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--accent);
}
.wdi-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink) !important;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}
.wdi-nav-cta:hover { background: var(--ink); color: var(--paper) !important; }

body.wdi-2026 .webdev-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0.4rem 0;
}
body.wdi-2026 .webdev-lang-btn svg { width: 15px; height: 15px; }
body.wdi-2026 .webdev-lang-dropdown { position: relative; }
body.wdi-2026 .webdev-lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 150px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.45rem;
  display: none;
  z-index: 20;
  box-shadow: 0 12px 30px rgba(22, 19, 15, 0.08);
}
body.wdi-2026 .webdev-lang-dropdown:hover .webdev-lang-dropdown-menu,
body.wdi-2026 .webdev-lang-dropdown.open .webdev-lang-dropdown-menu { display: block; }
body.wdi-2026 .webdev-lang-dropdown-item {
  display: block;
  padding: 0.5rem 0.65rem;
  border-radius: 0;
  font-size: 0.85rem;
  color: var(--ink) !important;
}
body.wdi-2026 .webdev-lang-dropdown-item:hover { background: var(--paper-2); }

body.wdi-2026 .webdev-menu-trigger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 0;
  cursor: pointer;
}
body.wdi-2026 .webdev-menu-trigger span {
  display: block;
  flex: 0 0 1.5px;
  width: 18px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 0;
}
body.wdi-2026 .webdev-menu-trigger.is-active span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
body.wdi-2026 .webdev-menu-trigger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.wdi-2026 .webdev-menu-trigger.is-active span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- home: hero ---------- */
.wdi-hero { padding: 82px 0 clamp(56px, 7vw, 88px); }
.wdi-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: end;
}
.wdi-hero h1 {
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 1.6rem;
}
.wdi-hero h1 em { color: var(--accent); font-style: italic; }
.wdi-hero .wdi-lede { max-width: 50ch; }
.wdi-hero-work { margin: 0; }
.wdi-hero-work a { display: block; }
.wdi-hero-work img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line-strong);
  filter: saturate(0.98);
}
.wdi-hero-work figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wdi-hero-work figcaption span:last-child { color: var(--accent); }

/* ---------- clienti ---------- */
.wdi-clients { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.wdi-clients-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 52px); flex-wrap: wrap; }
.wdi-clients-label {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-right: auto;
}
.wdi-client-name {
  font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.01em;
  color: var(--ink); white-space: nowrap;
}

/* ---------- numeri ---------- */
.wdi-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wdi-stat { border-top: 2px solid var(--ink); padding-top: 18px; }
.wdi-stat-value { display: block; font-family: var(--display); font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1; color: var(--accent); }
.wdi-stat-label { display: block; margin-top: 0.6rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- servizi ---------- */
.wdi-services-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.wdi-services-head h2 { max-width: 16ch; }
.wdi-services-head .wdi-lede { max-width: 44ch; justify-self: end; }
.wdi-service-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 0.9fr) minmax(0, 1.25fr) 32px;
  gap: clamp(18px, 3vw, 40px);
  align-items: baseline;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
  transition: color 0.18s ease, padding-left 0.2s ease;
}
.wdi-service-row:last-child { border-bottom: 1px solid var(--line); }
.wdi-service-row:hover { padding-left: 8px; }
.wdi-service-num { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.1em; }
.wdi-service-title { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1; margin: 0; }
.wdi-service-row:hover .wdi-service-title { color: var(--accent); }
.wdi-service-desc { margin: 0; color: var(--muted); font-size: 0.97rem; max-width: 52ch; }
.wdi-service-arrow { justify-self: end; color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.wdi-service-row:hover .wdi-service-arrow { color: var(--accent); transform: translateX(4px); }

/* ---------- lavori (sezione scura) ---------- */
.wdi-work { background: var(--ink); color: var(--paper); padding: clamp(72px, 9vw, 130px) 0; }
.wdi-work .wdi-eyebrow { color: rgba(244, 240, 232, 0.62); }
.wdi-work .wdi-eyebrow::before { background: var(--accent-bright); }
.wdi-work .wdi-eyebrow .wdi-num { color: var(--accent-bright); }
.wdi-work h2 { color: var(--paper); max-width: 20ch; }
.wdi-work-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(36px, 5vw, 64px); }
.wdi-work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 3vw, 44px); }
.wdi-work-card { display: block; grid-column: span 6; }
.wdi-work-card--wide { grid-column: span 7; }
.wdi-work-card--narrow { grid-column: span 5; }
.wdi-work-card--full { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(24px, 3vw, 44px); align-items: end; }
.wdi-work-card--full .wdi-work-media { grid-column: 1; }
.wdi-work-card--full .wdi-work-body { grid-column: 2; }
.wdi-work-card--full img { aspect-ratio: var(--project-ratio); }
.wdi-work-media { display: block; }
.wdi-work-body { display: block; }
.wdi-work-card img {
  display: block; width: 100%; aspect-ratio: var(--project-ratio); object-fit: cover;
  border: 1px solid rgba(244, 240, 232, 0.18);
  filter: saturate(0.95);
  transition: opacity 0.25s ease;
}
.wdi-work-card:hover img { opacity: 0.9; }
.wdi-work-caption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.8rem; }
.wdi-work-client { font-family: var(--display); font-size: 1.2rem; color: var(--paper); }
.wdi-work-meta { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(244, 240, 232, 0.58); text-align: right; }
.wdi-work-desc { color: rgba(244, 240, 232, 0.68); font-size: 0.92rem; margin-top: 0.5rem; max-width: 44ch; }
.wdi-work-all { margin-top: 2.4rem; }
.wdi-work .wdi-link { color: var(--paper); border-color: rgba(244, 240, 232, 0.35); }
.wdi-work .wdi-link:hover { color: var(--accent-bright); border-color: var(--accent-bright); }

/* ---------- manifesto ---------- */
.wdi-manifesto-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.wdi-manifesto-quote { font-family: var(--display); font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.02; letter-spacing: -0.03em; margin: 0; }
.wdi-manifesto-quote em { color: var(--accent); }
.wdi-principles { display: grid; gap: 0; }
.wdi-principle { padding: 1.3rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; }
.wdi-principle:last-child { border-bottom: 1px solid var(--line); }
.wdi-principle-num { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); padding-top: 0.35rem; }
.wdi-principle h3 { font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.35rem; }
.wdi-principle p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- processo ---------- */
.wdi-process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(32px, 4vw, 56px); }
.wdi-step { border-top: 2px solid var(--ink); padding-top: 18px; }
.wdi-step-num { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); letter-spacing: 0.1em; }
.wdi-step h3 { font-family: var(--display); font-size: 1.5rem; margin: 0.7rem 0 0.5rem; }
.wdi-step p { color: var(--muted); font-size: 0.92rem; margin: 0; }

/* ---------- CTA ---------- */
.wdi-cta { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wdi-cta-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.wdi-cta h2 { font-size: clamp(2.4rem, 5vw, 5rem); max-width: 15ch; }
.wdi-cta h2 em { color: var(--accent); }
.wdi-cta-side p { color: var(--muted); margin-bottom: 1.4rem; }
.wdi-cta-mail { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 0.2em; }
.wdi-cta-mail:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- footer ---------- */
body.wdi-2026 .webdev-classic-footer {
  background: var(--inverse-bg) !important;
  color: var(--inverse-fg) !important;
  padding: clamp(56px, 7vw, 88px) 0 28px;
  border: 0;
}
body.wdi-2026 .webdev-footer-top,
body.wdi-2026 .webdev-classic-footer-container,
body.wdi-2026 .webdev-classic-footer-bottom {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin-inline: auto;
}
body.wdi-2026 .webdev-footer-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px;
  padding-bottom: 2.2rem; border-bottom: 1px solid rgba(244, 240, 232, 0.16);
}
body.wdi-2026 .webdev-classic-footer-logo { display: flex; align-items: center; gap: 0.7rem; }
body.wdi-2026 .webdev-classic-footer-logo img { width: 30px; height: 30px; }
body.wdi-2026 .webdev-classic-footer-logo span { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--inverse-fg); }
body.wdi-2026 .webdev-classic-footer-contact { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; align-items: center; }
body.wdi-2026 .webdev-classic-footer-contact a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  color: rgba(244, 240, 232, 0.72) !important;
}
body.wdi-2026 .webdev-classic-footer-contact a:hover { color: var(--accent-bright) !important; }
body.wdi-2026 .webdev-classic-footer-contact svg { width: 15px; height: 15px; }
body.wdi-2026 .webdev-classic-footer-container {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px);
  padding: 3rem 0;
}
body.wdi-2026 .webdev-classic-footer-brand p { color: rgba(244, 240, 232, 0.66); font-size: 0.9rem; max-width: 40ch; }
body.wdi-2026 .webdev-footer-legal-info { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; color: rgba(244, 240, 232, 0.42); }
body.wdi-2026 .footer-heading { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.9rem; }
body.wdi-2026 .webdev-classic-footer-nav ul,
body.wdi-2026 .webdev-classic-footer-legal ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
body.wdi-2026 .webdev-classic-footer-nav a,
body.wdi-2026 .webdev-classic-footer-legal a { color: rgba(244, 240, 232, 0.72) !important; font-size: 0.9rem; }
body.wdi-2026 .webdev-classic-footer-nav a:hover,
body.wdi-2026 .webdev-classic-footer-legal a:hover { color: var(--paper) !important; }
body.wdi-2026 .webdev-classic-footer-bottom { border-top: 1px solid rgba(244, 240, 232, 0.16); padding-top: 1.4rem; }
body.wdi-2026 .webdev-classic-footer-bottom p { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.05em; color: rgba(244, 240, 232, 0.42); margin: 0; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-btn { color: var(--inverse-fg) !important; border: 1px solid rgba(244, 240, 232, 0.25) !important; border-radius: 0; padding: 0.45rem 0.7rem; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu { background: var(--inverse-bg) !important; border-color: rgba(244, 240, 232, 0.18) !important; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-item { color: var(--inverse-fg) !important; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-item:hover { background: rgba(244, 240, 232, 0.08); }

/* ---------- pagine interne: hero e contenitori ---------- */
body.wdi-2026 .webdev-about-page,
body.wdi-2026 .webdev-services-hero,
body.wdi-2026 .webdev-services-section,
body.wdi-2026 .webdev-faq-section,
body.wdi-2026 .webdev-contact-section,
body.wdi-2026 .webdev-projects-section,
body.wdi-2026 .webdev-legal-section,
body.wdi-2026 .webdev-detail-hero {
  background: transparent !important;
  color: var(--ink) !important;
  min-height: 0 !important;
  height: auto !important;
  padding-top: 46px !important;
  text-align: left !important;
}
body.wdi-2026 .webdev-about-page,
body.wdi-2026 .webdev-legal-section { padding-left: var(--pad) !important; padding-right: var(--pad) !important; }
body.wdi-2026 .webdev-agency-slogan {
  font-family: var(--mono) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin-bottom: 1rem !important;
}
body.wdi-2026 .webdev-agency-slogan::before {
  content: '';
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--accent);
  margin-right: 0.8rem;
  vertical-align: middle;
}
body.wdi-2026 .webdev-agency-slogan.webdev-brand-slogan { text-transform: none !important; letter-spacing: 0.1em !important; }

body.wdi-2026 main h1.webdev-headline,
body.wdi-2026 main h2.webdev-headline,
body.wdi-2026 .webdev-about-title {
  font-size: clamp(2.2rem, 5vw, 3.9rem) !important;
  color: var(--ink) !important;
  text-align: inherit !important;
}
body.wdi-2026 .webdev-about-lead,
body.wdi-2026 .webdev-about-body,
body.wdi-2026 .webdev-about-description,
body.wdi-2026 .webdev-legal-content,
body.wdi-2026 .detail-description,
body.wdi-2026 .webdev-contact-note { color: var(--muted) !important; }
body.wdi-2026 .webdev-about-body { text-align: left !important; }

/* contenitori centrati e leggibili */
body.wdi-2026 .webdev-about-container,
body.wdi-2026 .webdev-legal-section,
body.wdi-2026 .webdev-faq-section > *:not(.webdev-faq-list),
body.wdi-2026 .webdev-contact-section > *:not(form) { max-width: 1000px; }

/* ---------- divisori ---------- */
body.wdi-2026 .webdev-section-divider {
  width: 100% !important;
  height: 1px !important;
  background: var(--line) !important;
  margin: 0 !important;
  opacity: 1 !important;
  transition: none !important;
}

/* ---------- servizi (pagina) ---------- */
body.wdi-2026 .webdev-services-hero { padding-bottom: 64px !important; text-align: left !important; }
body.wdi-2026 .webdev-services-hero-inner { max-width: 1000px !important; margin: 0 !important; text-align: left !important; }
body.wdi-2026 .webdev-service-block {
  --svc-accent: var(--accent) !important;
  padding: clamp(48px, 6vw, 80px) var(--pad);
  border-top: 1px solid var(--line);
  background: transparent !important;
}
body.wdi-2026 .webdev-services-hero { padding-bottom: 48px !important; }
body.wdi-2026 .webdev-services-hero + .webdev-section-divider { display: none !important; }
body.wdi-2026 .webdev-service-kicker {
  color: var(--muted) !important;
  border: 1px solid var(--line) !important;
  background: transparent !important;
}
body.wdi-2026 .webdev-service-kicker > span { color: var(--accent) !important; }
body.wdi-2026 .webdev-service-block h2,
body.wdi-2026 .webdev-service-beauty-head h2,
body.wdi-2026 .webdev-services-final h2 {
  color: var(--ink) !important;
  font-family: var(--display) !important;
  font-weight: 500 !important;
}
body.wdi-2026 .webdev-service-block-desc,
body.wdi-2026 .webdev-service-block-list li,
body.wdi-2026 .webdev-service-beauty-desc,
body.wdi-2026 .webdev-beauty-card-desc,
body.wdi-2026 .webdev-services-final p { color: var(--muted) !important; }
body.wdi-2026 .webdev-service-block-list li::before { color: var(--accent) !important; }
body.wdi-2026 .webdev-service-block-visual {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.wdi-2026 .webdev-service-block-glow { display: none !important; }
body.wdi-2026 .webdev-service-block-icon {
  width: 100% !important; height: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--accent) !important;
}
body.wdi-2026 .webdev-service-block-icon svg { width: 92px; height: 92px; stroke-width: 0.8; }
body.wdi-2026 .webdev-service-beauty-inner {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.wdi-2026 .webdev-service-beauty-card {
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.wdi-2026 .webdev-service-beauty-card:hover { border-color: var(--accent) !important; transform: none !important; }
body.wdi-2026 .webdev-beauty-card-icon {
  background: transparent !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  color: var(--accent) !important;
}
body.wdi-2026 .webdev-service-beauty-card h3 { color: var(--ink) !important; }
body.wdi-2026 .webdev-service-beauty-card .webdev-service-block-list li::before { color: var(--accent) !important; }
body.wdi-2026 .webdev-services-final { background: transparent !important; }
body.wdi-2026 .webdev-service-block-inner { max-width: var(--max); }
body.wdi-2026 .webdev-service-block h2,
body.wdi-2026 .webdev-services-final h2 { color: var(--ink) !important; font-family: var(--display) !important; }
body.wdi-2026 .webdev-service-card,
body.wdi-2026 .webdev-service-block-content { color: var(--ink); }
body.wdi-2026 .webdev-service-visual { background: var(--paper-2) !important; border: 1px solid var(--line) !important; }

/* ---------- progetti ---------- */
body.wdi-2026 .webdev-projects-section { padding-bottom: 80px !important; text-align: left !important; }
body.wdi-2026 .webdev-projects-container { width: min(var(--max), calc(100% - 2 * var(--pad))); }
body.wdi-2026 .webdev-projects-section .webdev-headline { text-align: left !important; margin-bottom: 2.6rem !important; }
body.wdi-2026 .webdev-projects-grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: clamp(24px, 3vw, 44px) !important; }
body.wdi-2026 .webdev-project-card, body.wdi-2026 .webdev-project-image { min-width: 0 !important; height: auto !important; }
body.wdi-2026 .webdev-project-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
  background: var(--paper) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  transition: border-color .25s ease, transform .25s ease;
}
body.wdi-2026 .webdev-project-image {
  flex: 0 0 auto;
  overflow: hidden;
  border: 0 !important;
  border-bottom: 1px solid var(--line-strong) !important;
  background: var(--paper-2);
  aspect-ratio: var(--project-ratio);
}
body.wdi-2026 .webdev-project-image img { width: 100% !important; height: 100% !important; object-fit: cover; }
body.wdi-2026 .webdev-project-image picture { display: block; width: 100%; height: 100%; }
body.wdi-2026 .webdev-project-card img { aspect-ratio: var(--project-ratio); object-fit: cover; }
body.wdi-2026 .webdev-project-overlay {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch !important;
  justify-content: flex-start !important;
  background: var(--paper) !important;
  padding: 1.15rem 1.25rem 1.25rem !important;
  transform: none !important;
  text-align: left !important;
}
body.wdi-2026 .webdev-project-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: .7rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}
body.wdi-2026 .webdev-project-index { color: var(--accent); }
body.wdi-2026 .webdev-project-sector { text-align: right; }
body.wdi-2026 .webdev-project-title {
  font-family: var(--display) !important;
  font-size: clamp(1.3rem, 1.8vw, 1.55rem) !important;
  line-height: 1.15 !important;
  color: var(--ink) !important;
  margin: 0 0 .45rem !important;
  transition: color .2s ease;
}
body.wdi-2026 .webdev-project-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--muted) !important;
  font-size: .9rem !important;
  line-height: 1.55;
  margin: 0 !important;
}
body.wdi-2026 .webdev-view-btn {
  display: inline-flex !important;
  align-items: center;
  align-self: flex-start;
  gap: .35rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s ease;
}
body.wdi-2026 .webdev-project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- dettaglio progetto ---------- */
body.wdi-2026 .webdev-detail-hero { padding-bottom: 32px !important; }
body.wdi-2026 .webdev-detail-nav { margin-bottom: 21px !important; }
body.wdi-2026 .back-link { font-family: var(--mono) !important; color: var(--muted) !important; font-size: 0.7rem !important; letter-spacing: 0.08em; }
body.wdi-2026 .detail-title {
  font-size: clamp(2.2rem, 6vw, 4.8rem) !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin-bottom: 1rem !important;
}
body.wdi-2026 .detail-tag { border: 1px solid var(--line-strong) !important; color: var(--muted) !important; background: transparent !important; font-family: var(--mono) !important; font-size: 0.64rem !important; }
body.wdi-2026 .project-featured-image-container { padding: 0 var(--pad) 48px !important; }
body.wdi-2026 .project-featured-image-container img { border: 1px solid var(--line-strong); }
body.wdi-2026 .detail-grid { padding: 0 var(--pad) 80px !important; max-width: var(--max); margin: 0 auto; }
body.wdi-2026 .detail-section-title {
  font-family: var(--mono) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
  margin: 0 0 0.9rem !important;
}
body.wdi-2026 .detail-description h3 {
  font-family: var(--display) !important;
  font-size: 1.35rem !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  text-transform: none !important;
  color: var(--ink) !important;
  margin: 1.6rem 0 0.6rem !important;
}
body.wdi-2026 .detail-description h3:first-child { margin-top: 0 !important; }
body.wdi-2026 .detail-description p { color: var(--muted) !important; }
body.wdi-2026 .sidebar-box h3 {
  font-family: var(--mono) !important;
  font-size: 0.66rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--muted) !important;
}
body.wdi-2026 .sidebar-box p { color: var(--ink) !important; }
body.wdi-2026 .detail-description h3 { color: var(--accent) !important; }
body.wdi-2026 .sidebar-box { background: var(--paper-2) !important; border: 1px solid var(--line) !important; border-radius: 0 !important; }
body.wdi-2026 .sidebar-box h3 { color: var(--ink) !important; }
body.wdi-2026 .webdev-btn-stellar {
  background: var(--ink) !important; color: var(--paper) !important; border: 1px solid var(--ink) !important;
  border-radius: 0 !important; box-shadow: none !important;
}
body.wdi-2026 .webdev-btn-stellar:hover { background: var(--accent) !important; border-color: var(--accent) !important; }

/* ---------- contatti ---------- */
body.wdi-2026 .webdev-contact-section { padding-bottom: 80px !important; }
body.wdi-2026 .webdev-contact-section .webdev-headline { text-align: left !important; }
body.wdi-2026 .webdev-contact-note { background: var(--paper-2) !important; border: 1px solid var(--line) !important; border-radius: 0; }
body.wdi-2026 .webdev-contact-note p { color: var(--muted) !important; }
body.wdi-2026 .webdev-contact-note a { color: var(--accent) !important; }
body.wdi-2026 .webdev-contact-section form { background: var(--paper-2) !important; border: 1px solid var(--line) !important; border-radius: 0; padding: clamp(20px, 3vw, 34px) !important; }
body.wdi-2026 .webdev-contact-section label,
body.wdi-2026 .webdev-contact-section .form-label { color: var(--muted) !important; }
body.wdi-2026 .webdev-contact-section input,
body.wdi-2026 .webdev-contact-section select,
body.wdi-2026 .webdev-contact-section textarea {
  background: var(--paper) !important;
  border: 1px solid var(--line-strong) !important;
  color: var(--ink) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
body.wdi-2026 .webdev-contact-section input:focus,
body.wdi-2026 .webdev-contact-section select:focus,
body.wdi-2026 .webdev-contact-section textarea:focus { border-color: var(--accent) !important; outline: 2px solid rgba(184, 67, 26, 0.18); }
body.wdi-2026 .webdev-contact-section button[type="submit"] { background: var(--ink) !important; color: var(--paper) !important; border-radius: 0 !important; }

/* ---------- FAQ ---------- */
body.wdi-2026 .webdev-faq-section { padding-bottom: 80px !important; }
body.wdi-2026 .webdev-faq-item { margin: 0 !important; background: transparent !important; border: 0 !important; border-top: 1px solid var(--line) !important; border-radius: 0 !important; box-shadow: none !important; }
body.wdi-2026 .webdev-faq-item.open { background: var(--paper-2) !important; border-color: var(--line) !important; box-shadow: none !important; }
body.wdi-2026 .webdev-faq-item:hover { border-color: var(--line-strong) !important; box-shadow: none !important; }
body.wdi-2026 .webdev-faq-item.open .webdev-faq-number { color: var(--accent) !important; }
body.wdi-2026 .webdev-faq-item:last-child { border-bottom: 1px solid var(--line) !important; }
body.wdi-2026 .webdev-faq-question { color: var(--ink) !important; }
body.wdi-2026 .webdev-faq-question h3 { font-family: var(--display) !important; font-size: 1.25rem !important; color: var(--ink) !important; }
body.wdi-2026 .webdev-faq-answer { color: var(--muted) !important; }
body.wdi-2026 .webdev-faq-number { color: var(--accent) !important; font-family: var(--mono) !important; }

/* ---------- legal ---------- */
body.wdi-2026 .webdev-legal-content { color: var(--muted) !important; }
body.wdi-2026 .webdev-legal-content h2 { color: var(--ink) !important; border-color: var(--line) !important; font-family: var(--display) !important; }
body.wdi-2026 .webdev-legal-content a { color: var(--accent) !important; }

/* ---------- cookie banner ---------- */
body.wdi-2026 #webdev-cookie-banner {
  background: var(--paper) !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--line) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 16px 5% !important;
  gap: 14px !important;
}
body.wdi-2026 #webdev-cookie-banner p { color: var(--muted) !important; font-size: 0.8rem !important; }
body.wdi-2026 #webdev-cookie-banner a { color: var(--accent) !important; }
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar { padding: 0.75em 1.2em !important; font-size: 0.78rem !important; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-menu-trigger { display: flex; z-index: 100000; position: relative; }
  body.wdi-2026 .webdev-nav-links {
    position: fixed !important;
    inset: 0 !important;
    background: var(--paper) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    padding: 12vh var(--pad) 8vh !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99999;
  }
  body.wdi-2026 .webdev-nav-links.is-open { opacity: 1; pointer-events: auto; }
  body.wdi-2026 .webdev-nav-item { font-family: var(--display) !important; font-size: 2rem !important; color: var(--ink) !important; }
  body.wdi-2026 .wdi-nav-cta { margin-top: 1rem; font-size: 0.95rem; padding: 0.9rem 1.3rem; }
}

@media (max-width: 900px) {
  body.wdi-2026 .webdev-menu-trigger { display: flex; z-index: 100000; position: relative; }
  body.wdi-2026 .webdev-nav-links {
    position: fixed !important;
    inset: 0 !important;
    background: var(--paper) !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 0.8rem !important;
    padding: 12vh var(--pad) 8vh !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 99999;
  }
  body.wdi-2026 .webdev-nav-links.is-open { opacity: 1; pointer-events: auto; }
  body.wdi-2026 .webdev-nav-item { font-family: var(--display) !important; font-size: 2rem !important; color: var(--ink) !important; }
  body.wdi-2026 .wdi-nav-cta { margin-top: 1rem; font-size: 0.95rem; padding: 0.9rem 1.3rem; }
  .wdi-hero-grid { grid-template-columns: 1fr; }
  .wdi-hero h1 { font-size: clamp(2.7rem, 11vw, 4.2rem); }
  .wdi-clients-inner { gap: 1.2rem 2rem; }
  .wdi-clients-label { width: 100%; }
  .wdi-stats-grid { grid-template-columns: 1fr; gap: 0; }
  .wdi-stat { padding: 18px 0; border-top: 1px solid var(--line); }
  .wdi-stat:first-child { border-top: 2px solid var(--ink); }
  .wdi-services-head { grid-template-columns: 1fr; }
  .wdi-services-head .wdi-lede { justify-self: start; }
  .wdi-service-row { grid-template-columns: 40px 1fr 24px; gap: 14px; }
  .wdi-service-desc { grid-column: 2 / 4; }
  .wdi-work-head { flex-direction: column; align-items: flex-start; }
  .wdi-work-grid { grid-template-columns: 1fr; }
  .wdi-work-card, .wdi-work-card--wide, .wdi-work-card--narrow, .wdi-work-card--full { grid-column: auto; }
  .wdi-work-card--full { grid-template-columns: 1fr; }
  .wdi-manifesto-grid { grid-template-columns: 1fr; }
  .wdi-process-grid { grid-template-columns: 1fr; gap: 0; }
  .wdi-step { border-top: 1px solid var(--line); padding: 18px 0; }
  .wdi-step:first-child { border-top: 2px solid var(--ink); }
  .wdi-cta-grid { grid-template-columns: 1fr; }
  body.wdi-2026 .webdev-classic-footer-container { grid-template-columns: 1fr; gap: 2rem; }
  body.wdi-2026 .webdev-footer-top { flex-direction: column; }
  body.wdi-2026 .webdev-projects-grid { grid-template-columns: minmax(0, 1fr) !important; }
  body.wdi-2026 .webdev-about-page,
  body.wdi-2026 .webdev-services-hero,
  body.wdi-2026 .webdev-faq-section,
  body.wdi-2026 .webdev-contact-section,
  body.wdi-2026 .webdev-projects-section,
  body.wdi-2026 .webdev-legal-section,
  body.wdi-2026 .webdev-detail-hero { padding-top: 46px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.wdi-2026 *,
  body.wdi-2026 *::before,
  body.wdi-2026 *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Reveal: lo stato nascosto lo gestisce .wdi-reveal (JS).
   Senza JS i contenuti restano visibili. */
body.wdi-2026 [data-reveal]:not(.wdi-reveal) {
  opacity: 1;
  animation: none !important;
}
/* il vecchio observer .visible non deve sovrapporsi alla keyframe */
body.wdi-2026 [data-reveal].wdi-reveal:not(.is-revealed) {
  animation: none !important;
}

/* FAQ: spaziatura mobile più compatta */
@media (max-width: 600px) {
  body.wdi-2026 .webdev-faq-question { padding: 20px 0 !important; gap: 12px !important; }
  body.wdi-2026 .webdev-faq-number { width: 24px !important; }
  body.wdi-2026 .webdev-faq-question h3 { font-size: 1.12rem !important; line-height: 1.3 !important; }
  body.wdi-2026 .webdev-faq-list { margin-left: 0 !important; margin-right: 0 !important; }
}

/* Cookie banner: card compatta su desktop */
@media (min-width: 900px) {
  body.wdi-2026 #webdev-cookie-banner {
    left: 24px !important;
    right: auto !important;
    bottom: 24px !important;
    max-width: 460px !important;
    border: 1px solid var(--line) !important;
    border-radius: 0 !important;
    box-shadow: 0 16px 40px rgba(22, 19, 15, 0.10);
    justify-content: flex-start !important;
  }
}

/* ---------- chi siamo: layout editoriale ---------- */
.wdi-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(32px, 4vw, 56px);
  align-items: start;
}
.wdi-about-story p { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 58ch; }
.wdi-about-story strong { color: var(--ink) !important; }
.wdi-about-facts { border-top: 2px solid var(--ink); }
.wdi-fact { display: flex; align-items: baseline; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.wdi-fact-value { font-family: var(--display); font-size: clamp(2rem, 3vw, 2.8rem); line-height: 1; color: var(--accent); min-width: 3.2rem; }
.wdi-fact-label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
/* 2026-11-19: tolto max-width 760px — la linea di sezione ora corre a tutta
   larghezza container (il layout testo/CTA è gestito in coda al file). */
.wdi-about-values { margin-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 48px); }
.wdi-about-values h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 0.8rem; }
.wdi-about-values p { color: var(--muted); font-size: 1.02rem; }
@media (max-width: 900px) {
  .wdi-about-grid { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  body.wdi-2026 #webdev-cookie-banner { left: auto !important; right: 24px !important; }
}

/* Allineamento hero "Chi siamo" alle altre pagine */
body.wdi-2026 .wdi-about { padding-top: 46px; }
body.wdi-2026 .wdi-about h1 { font-size: clamp(2.2rem, 5vw, 3.9rem); }
@media (max-width: 900px) {
  body.wdi-2026 .wdi-about { padding-top: 46px; }
}

/* override specificità: la sezione progetti ha una regola con ID nei CSS legacy */
body.wdi-2026 #webdev-dynamic-content-wrapper .webdev-projects-section { padding-top: 46px !important; }
body.wdi-2026 .wdi-about { padding-top: 42px; }
@media (max-width: 900px) { body.wdi-2026 .wdi-about { padding-top: 42px; } }

/* ---------- 404 ---------- */
body.wdi-2026 .error-code { font-family: var(--display); color: var(--accent); letter-spacing: -0.04em; }
body.wdi-2026 .error-title { font-family: var(--display); color: var(--ink); }
body.wdi-2026 .error-message { color: var(--muted); }
body.wdi-2026 .error-btn { background: var(--ink) !important; color: var(--paper) !important; border-radius: 0 !important; box-shadow: none !important; }
body.wdi-2026 .error-links a { color: var(--muted) !important; }
body.wdi-2026 .error-links a:hover { color: var(--accent) !important; }

/* ============================================================
   Home v2 — impianto da studio: intro, indice lavori, studio,
   servizi, contatto. Niente hero gigante né sezioni numerate.
   ============================================================ */
.wdi-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.wdi-intro { padding: 64px 0 48px; }
.wdi-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.wdi-statement {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 22ch;
  margin: 0 0 1.4rem;
}
.wdi-note { color: var(--muted); font-size: 1rem; line-height: 1.65; max-width: 46ch; margin: 0; }
.wdi-intro-media { margin: 0; }
.wdi-intro-media img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 1px solid var(--line-strong);
}
.wdi-intro-media figcaption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.wdi-intro-media figcaption span:last-child { color: var(--accent); }

.wdi-index { border-top: 1px solid var(--line); padding: 0 0 clamp(48px, 6vw, 72px); }
.wdi-index-head {
  display: flex; justify-content: space-between; gap: 1rem; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.wdi-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 180px 24px 140px;
  gap: clamp(12px, 2vw, 28px);
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.18s ease;
}
.wdi-row-num { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); }
.wdi-row-client {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  line-height: 1.1; letter-spacing: -0.025em;
  transition: color 0.18s ease;
}
.wdi-row-sector { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wdi-row-arrow { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.wdi-row:hover .wdi-row-client,
.wdi-row:hover .wdi-row-arrow { color: var(--accent); }
.wdi-row:hover .wdi-row-arrow { transform: translateX(4px); }
.wdi-row-thumb {
  width: 140px; height: auto; aspect-ratio: var(--project-ratio); object-fit: cover; justify-self: end;
  border: 1px solid var(--line-strong); background: var(--paper-2);
}

.wdi-studio { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0; }
.wdi-studio-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.wdi-studio-text {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  line-height: 1.15; letter-spacing: -0.025em;
  max-width: 26ch; margin: 0;
}

.wdi-services-compact { border-top: 1px solid var(--line); padding: 0 0 clamp(48px, 6vw, 72px); }
.wdi-service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.wdi-service-item {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.wdi-service-item h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }
.wdi-service-item p { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; max-width: 38ch; }
.wdi-service-item > span { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.wdi-service-item:hover h3, .wdi-service-item:hover > span { color: var(--accent); }
.wdi-service-item:hover > span { transform: translateX(4px); }

.wdi-contact-section { border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0 clamp(64px, 8vw, 100px); }
.wdi-contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 5vw, 72px); align-items: end;
}
.wdi-contact-section h2 { font-size: clamp(2rem, 4vw, 3.5rem); max-width: 16ch; }
.wdi-contact-section .wdi-note { margin-bottom: 1.4rem; }
.wdi-cta-mail { display: inline-block; font-family: var(--display); font-size: clamp(1.1rem, 2vw, 1.5rem); border-bottom: 1px solid var(--line-strong); padding-bottom: 0.2em; margin-bottom: 0.4rem; }
.wdi-cta-mail:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 900px) {
  .wdi-intro { padding: 40px 0 36px; }
  .wdi-intro-grid, .wdi-studio-grid, .wdi-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .wdi-statement { font-size: clamp(1.9rem, 8vw, 2.7rem); }
  .wdi-row { grid-template-columns: 28px minmax(0, 1fr) 20px 88px; gap: 12px; }
  .wdi-row-sector { display: none; }
  .wdi-row-thumb { width: 88px; height: auto; }
  .wdi-row-client { font-size: 1.35rem; }
  .wdi-service-list { grid-template-columns: 1fr; }
  .wdi-studio-text { font-size: 1.55rem; max-width: none; }
}

/* niente numerini nei kicker dei servizi */
body.wdi-2026 .webdev-service-kicker > span { display: none; }

/* Servizi: niente riquadri-icona; testo e elenco, punto. */
body.wdi-2026 .webdev-service-block-visual { display: none !important; }
body.wdi-2026 .webdev-service-block-inner { display: block !important; max-width: 860px !important; margin: 0 !important; }
body.wdi-2026 .webdev-service-block-content { max-width: 860px; }

/* Servizi: due colonne (testo + elenco) per riempire la pagina */
body.wdi-2026 .webdev-service-block-inner { max-width: var(--max) !important; }
body.wdi-2026 .webdev-service-block-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
body.wdi-2026 .webdev-service-block-content .webdev-service-kicker { grid-column: 1 / -1; justify-self: start; }
body.wdi-2026 .webdev-service-block-content h2 { grid-column: 1; }
body.wdi-2026 .webdev-service-block-content .webdev-service-block-desc { grid-column: 1; }
body.wdi-2026 .webdev-service-block-content .webdev-service-block-list { grid-column: 2; grid-row: 2 / span 2; margin: 0; }
body.wdi-2026 .webdev-service-block-content > .webdev-btn-stellar { grid-column: 1; justify-self: start; margin-top: 0.4rem; }
@media (max-width: 900px) {
  body.wdi-2026 .webdev-service-block-content { display: block; }
  body.wdi-2026 .webdev-service-block-content .webdev-service-block-list { margin: 0 0 24px; }
}

/* ---------- Home v4: note studio, indice, lavoro in evidenza ---------- */
.wdi-intro { padding: 44px 0 32px; }
.wdi-intro-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.5fr);
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.wdi-intro-line {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.08; letter-spacing: -0.035em;
  max-width: 26ch; margin: 0 0 1rem;
}
.wdi-intro-side { border-top: 1px solid var(--ink); padding-top: 14px; }
.wdi-side-label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 0.5rem;
}
.wdi-side-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin: 0.5rem 0 0; }
.wdi-featured { padding: 0 0 clamp(48px, 6vw, 72px); }
.wdi-featured img {
  display: block; width: 100%; aspect-ratio: var(--project-ratio); object-fit: cover;
  border: 1px solid var(--line-strong); background: var(--paper-2);
}
.wdi-featured-caption {
  display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.7rem;
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}
.wdi-featured-caption span:last-child { color: var(--accent); }

/* niente pill: bottoni rettangolari e link */
.wdi-btn { border-radius: 0 !important; padding: 0.85em 1.2em !important; }
.wdi-btn--ghost { border-radius: 0 !important; }
.wdi-nav-cta {
  border: 0 !important; border-bottom: 1px solid var(--ink) !important;
  border-radius: 0 !important; padding: 0 0 0.2rem !important;
}
.wdi-nav-cta:hover { background: transparent !important; color: var(--accent) !important; border-color: var(--accent) !important; }

/* tag e kicker senza scatolette */
body.wdi-2026 .detail-tags { gap: 1.2rem !important; flex-wrap: wrap; }
body.wdi-2026 .detail-tag {
  border: 0 !important; background: none !important; padding: 0 !important;
  color: var(--muted) !important;
}
body.wdi-2026 .detail-tag:not(:last-child)::after {
  content: '·'; margin-left: 1.2rem; color: var(--line-strong);
}
body.wdi-2026 .webdev-service-kicker {
  border: 0 !important; padding: 0 !important; border-radius: 0 !important;
}

/* cookie: barra sobria, non card */
@media (min-width: 900px) {
  body.wdi-2026 #webdev-cookie-banner {
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    max-width: none !important; border: 0 !important; border-top: 1px solid var(--line) !important;
    border-radius: 0 !important; box-shadow: none !important;
    padding: 12px 5% !important; justify-content: center !important;
  }
}
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar {
  background: none !important; color: var(--ink) !important; border: 0 !important;
  padding: 0 !important; text-decoration: underline; text-underline-offset: 3px;
  font-size: 0.8rem !important; box-shadow: none !important;
}
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar:hover { color: var(--accent) !important; }

/* footer: niente icone, colophon */
body.wdi-2026 .webdev-classic-footer-contact svg { display: none !important; }
body.wdi-2026 .webdev-classic-footer-contact a { font-family: var(--mono); font-size: 0.68rem; }
.wdi-colophon {
  font-family: var(--mono); font-size: 0.64rem; line-height: 1.6;
  letter-spacing: 0.04em; color: rgba(244, 240, 232, 0.42);
  margin: 0 0 1rem; max-width: 70ch;
}

/* progetti: griglia editoriale asimmetrica */
@media (min-width: 901px) {
  body.wdi-2026 .webdev-projects-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    align-items: start;
  }
  body.wdi-2026 .webdev-project-card:nth-child(1) { grid-column: span 7; }
  body.wdi-2026 .webdev-project-card:nth-child(2) { grid-column: span 5; margin-top: 64px; }
  body.wdi-2026 .webdev-project-card:nth-child(3) { grid-column: span 5; }
  body.wdi-2026 .webdev-project-card:nth-child(4) { grid-column: span 7; margin-top: 64px; }
}
@media (max-width: 900px) {
  .wdi-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .wdi-intro-line { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .wdi-featured img { aspect-ratio: var(--project-ratio); }
}


/* ---------- theme toggle ---------- */
.wdi-nav-actions { display: flex; align-items: center; gap: 10px; }
.wdi-theme-toggle {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; padding: 0; cursor: pointer; color: var(--muted);
}
.wdi-theme-toggle:hover { color: var(--ink); }
.wdi-theme-icon { width: 18px; height: 18px; }
.wdi-theme-moon { display: none; }
html[data-theme="dark"] .wdi-theme-sun { display: none; }
html[data-theme="dark"] .wdi-theme-moon { display: block; }

/* ---------- dark mode ---------- */
html[data-theme="dark"] body.wdi-2026 {
  --paper: #14120f;
  --paper-2: #1b1814;
  --ink: #f1ede5;
  --muted: #a39c90;
  --line: #2d2922;
  --line-strong: #48423a;
  --accent: #9db8ff;
  --accent-bright: #c3d4ff;
  --ok: #8fbf9f;
  --header-bg: rgba(20, 18, 15, 0.96);
  --inverse-bg: #0b0a08;
  --inverse-fg: #f1ede5;
}
html[data-theme="dark"] body.wdi-2026 .webdev-brand-logo { filter: none; }
html[data-theme="dark"] body.wdi-2026 .webdev-project-card,
html[data-theme="dark"] body.wdi-2026 .webdev-project-image { background: var(--paper-2); }
html[data-theme="dark"] body.wdi-2026 #webdev-cookie-banner { background: var(--paper); }

/* liste servizi: trattino editoriale, non checkmark da template */
body.wdi-2026 .webdev-service-block-list li::before {
  content: '';
  width: 10px;
  height: 1px;
  background: var(--accent);
  top: 0.65em;
}
body.wdi-2026 .wdi-colophon { color: rgba(244, 240, 232, 0.55); }

/* intro: su larghezze medie la colonna contatti va sotto, niente email compressa */
.wdi-cta-mail { overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .wdi-intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .wdi-intro-side { max-width: 480px; }
}

/* ---------- contatti: una sola testata, info + form ---------- */
.wdi-contact-details {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; margin: 24px 0 36px;
}
.wdi-contact-detail { min-width: 0; }
.wdi-detail-label {
  display: block; font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.35rem;
}
.wdi-contact-detail a, .wdi-contact-detail p { color: var(--ink) !important; font-size: 1rem; margin: 0; }
.wdi-contact-detail a { display: inline-block; vertical-align: baseline; border-bottom: 1px solid var(--line-strong); padding-bottom: 0.1em; overflow-wrap: anywhere; }
.wdi-contact-detail a:hover { color: var(--accent) !important; border-color: var(--accent); }
@media (max-width: 760px) {
  .wdi-contact-details { grid-template-columns: 1fr; gap: 0; }
  .wdi-contact-detail { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .wdi-contact-detail:last-child { border-bottom: 0; }
}

/* ---------- lingua: bottone più leggibile ---------- */
body.wdi-2026 .webdev-lang-btn {
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.08em;
  padding: 0.5rem 0.7rem; border: 1px solid var(--line-strong); color: var(--ink);
  gap: 0.4rem; background: transparent;
}
body.wdi-2026 .webdev-lang-btn::after {
  content: ''; width: 0; height: 0; margin-left: 0.35em;
  border-left: 3px solid transparent; border-right: 3px solid transparent;
  border-top: 4px solid currentColor; display: inline-block;
}
body.wdi-2026 .webdev-lang-btn svg { width: 16px; height: 16px; }
body.wdi-2026 .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu { display: block; }

/* ---------- menu mobile: elementi compatti e scrollabili ---------- */
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links {
    padding: 8vh 8vw 6vh !important;
    gap: 0.15rem !important;
    justify-content: flex-start !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.wdi-2026 .webdev-nav-item {
    font-size: 1.55rem !important;
    line-height: 1.2 !important;
    padding: 0.35rem 0 !important;
  }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown { margin-top: 0.7rem; }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-menu {
    position: static !important; display: none; min-width: 0; width: auto;
    left: auto !important; right: auto !important; transform: none !important;
    background: transparent; border: 0; padding: 0; box-shadow: none;
  }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu { display: block; }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-item { padding: 0.35rem 0; font-size: 1.05rem; }
}
@media (max-width: 600px) {
  body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu {
    right: auto !important; left: 0 !important; transform: none !important;
  }
}

/* ---------- sfondo: griglia tecnica da studio, non decorativa ---------- */
body.wdi-2026 {
  --grid-dot: rgba(22, 19, 15, 0.07);
  --grid-column: rgba(22, 19, 15, 0.032);
  --grid-column-strong: rgba(22, 19, 15, 0.055);
}
html[data-theme="dark"] body.wdi-2026 {
  --grid-dot: rgba(241, 237, 229, 0.06);
  --grid-column: rgba(241, 237, 229, 0.032);
  --grid-column-strong: rgba(241, 237, 229, 0.055);
}
/* matrice di punti + crocini tecnici: più da studio che da “graph paper” */
body.wdi-2026::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M48 42v12M42 48h12' stroke='%2316130f' stroke-opacity='.07' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
  background-size: 96px 96px, 24px 24px;
}
html[data-theme="dark"] body.wdi-2026::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cpath d='M48 42v12M42 48h12' stroke='%23f1ede5' stroke-opacity='.075' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
}
/* guide a 12 colonne, allineate al container del sito */
body.wdi-2026::after {
  content: '';
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(1320px, calc(100% - 10vw));
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-column) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  border-left: 1px solid var(--grid-column-strong);
  border-right: 1px solid var(--grid-column-strong);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 7%, #000 93%, transparent 100%);
}
@media (max-width: 900px) {
  body.wdi-2026::before { background-size: 84px 84px, 28px 28px; }
  body.wdi-2026::after { display: none; }
}
body.wdi-2026 > header { position: sticky; z-index: 100000; }
body.wdi-2026 > main,
body.wdi-2026 > footer { position: relative; z-index: 1; }

/* rifiniture contatti/lingua */
body.wdi-2026 .webdev-lang-btn {
  border-radius: 0 !important;
  color: var(--ink) !important;
  min-height: 38px;
}
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-btn {
  border-radius: 0 !important;
  color: var(--inverse-fg) !important;
  min-height: 38px;
}
body.wdi-2026 .webdev-contact-section form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* ---------- reel: tutte le immagini dei progetti in loop ---------- */
.wdi-reel-section { padding: 32px 0 clamp(48px, 6vw, 80px); }
.wdi-reel { overflow: hidden; }
.wdi-reel-track {
  display: flex;
  width: max-content;
  animation: wdi-reel-scroll 30s linear infinite;
  animation-delay: 0.8s;
  will-change: transform;
}
/* Il reel si ferma solo su dispositivi con hover reale (mouse/trackpad).
   Su touch resta sempre in movimento: tap/hover emulato non lo blocca. */
@media (hover: hover) and (pointer: fine) {
  .wdi-reel:hover .wdi-reel-track,
  .wdi-reel:focus-within .wdi-reel-track { animation-play-state: paused; }
}
.wdi-reel-set {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  padding-right: clamp(16px, 2vw, 28px);
}
.wdi-reel-item {
  flex: 0 0 auto;
  width: clamp(280px, 32vw, 460px);
  display: block;
}
.wdi-reel-item img {
  display: block;
  width: 100%;
  aspect-ratio: var(--project-ratio);
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  transition: opacity 0.2s ease;
}
.wdi-reel-item:hover img { opacity: 0.9; }
.wdi-reel-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.wdi-reel-caption span:last-child { color: var(--accent); }
@keyframes wdi-reel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 900px) {
  .wdi-reel-item { width: 78vw; }
  .wdi-reel-track { animation-duration: 22s; }
}
.wdi-reel-footer {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}
@media (prefers-reduced-motion: reduce) {
  .wdi-reel-track { animation: none; }
  .wdi-reel { overflow-x: auto; }
}

/* reel a tutta larghezza: più portfolio, meno “card in un contenitore” */
.wdi-reel-section { width: 100%; }
.wdi-reel-wrap { width: 100%; }
.wdi-reel { width: 100%; }


/* footer: allineamento e gerarchia */
body.wdi-2026 .webdev-footer-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; }
body.wdi-2026 .webdev-footer-top-right { display: flex; align-items: center; gap: 2rem; }
body.wdi-2026 .webdev-classic-footer-contact { display: flex; align-items: center; gap: 1.6rem; }
body.wdi-2026 .webdev-classic-footer-container { grid-template-columns: 1.5fr 0.8fr 0.8fr; align-items: start; }
body.wdi-2026 .webdev-classic-footer-brand p { max-width: 42ch; }
body.wdi-2026 .footer-heading { margin-bottom: 1rem; }
body.wdi-2026 .webdev-classic-footer-nav ul,
body.wdi-2026 .webdev-classic-footer-legal ul { gap: 0.55rem; }
body.wdi-2026 .webdev-classic-footer-bottom { display: flex; justify-content: space-between; align-items: center; }
@media (max-width: 900px) {
  body.wdi-2026 .webdev-footer-top { grid-template-columns: 1fr; gap: 18px; }
  body.wdi-2026 .webdev-footer-top-right { flex-wrap: wrap; gap: 1rem 1.6rem; }
  body.wdi-2026 .webdev-classic-footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.6rem; }
}

/* ---------- dropdown lingua: stesso linguaggio visivo ovunque ---------- */
body.wdi-2026 .webdev-lang-dropdown { position: relative; }
body.wdi-2026 .webdev-lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  display: none;
  z-index: 20;
}
body.wdi-2026 .webdev-lang-dropdown:hover .webdev-lang-dropdown-menu,
body.wdi-2026 .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu { display: block; }
body.wdi-2026 .webdev-lang-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--ink) !important;
}
body.wdi-2026 .webdev-lang-dropdown-item:hover { background: var(--paper-2); }
body.wdi-2026 .webdev-lang-dropdown-item.is-active {
  color: var(--accent) !important;
  background: var(--paper-2);
  font-weight: 600;
}
body.wdi-2026 .webdev-lang-dropdown-item.is-active::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu {
  top: auto;
  bottom: calc(100% + 8px);
  right: 0;
  background: var(--inverse-bg) !important;
  border-color: rgba(244, 240, 232, 0.22) !important;
}
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-item { color: var(--inverse-fg) !important; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-item:hover { background: rgba(244, 240, 232, 0.07) !important; }
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-item.is-active {
  color: var(--accent-bright) !important;
  background: rgba(244, 240, 232, 0.07) !important;
}
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-menu {
    position: static !important;
    top: auto;
    right: auto;
    width: 100%;
    max-width: 280px;
    margin-top: 6px;
    display: none;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 6px;
    box-shadow: none;
  }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu { display: block; }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-item { font-size: 1rem; padding: 0.55rem 0.7rem; }
}
@media (max-width: 600px) {
  body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu { right: auto; left: 0; }
}

/* FAQ: apertura fluida con grid rows, niente salto di max-height */
body.wdi-2026 .webdev-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  max-height: none !important;
  padding: 0 28px;
  overflow: hidden;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.3s ease,
              padding 0.35s ease;
}
body.wdi-2026 .webdev-faq-answer > p { overflow: hidden; min-height: 0; margin: 0; }
body.wdi-2026 .webdev-faq-item.open .webdev-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
  padding: 0 28px 24px;
}
@media (max-width: 600px) {
  body.wdi-2026 .webdev-faq-answer { padding-left: 0; padding-right: 0; }
  body.wdi-2026 .webdev-faq-item.open .webdev-faq-answer { padding: 0 0 18px; }
}

/* focus visibile per tastiera */
body.wdi-2026 a:focus-visible,
body.wdi-2026 button:focus-visible,
body.wdi-2026 input:focus-visible,
body.wdi-2026 select:focus-visible,
body.wdi-2026 textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-menu {
    width: auto;
    min-width: 200px;
  }
}

body.wdi-2026 .webdev-faq-answer p { color: var(--muted) !important; }
body.wdi-2026 .webdev-faq-answer a { color: var(--accent) !important; }

/* titoli semantici nelle etichette della home */
.wdi-index-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: inherit;
}

/* specificità: i titoli semantici non devono ereditare la scala H1/H2 */
body.wdi-2026 .wdi-intro-line {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}
body.wdi-2026 .wdi-index-label,
body.wdi-2026 .wdi-kicker {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 1.2rem;
}
body.wdi-2026 .wdi-index-label { margin: 0; color: inherit; }
body.wdi-2026 .wdi-service-item h3 { font-size: 1.5rem; }

@media (max-width: 900px) {
  body.wdi-2026 .webdev-classic-footer-container { grid-template-columns: 1fr; gap: 2rem; }
  body.wdi-2026 .webdev-footer-top-right { justify-content: flex-start; }
  body.wdi-2026 .webdev-classic-footer-brand p { max-width: 100%; }
}

/* piccoli schermi: form, testata, footer */
body.wdi-2026 .webdev-form-row,
body.wdi-2026 .webdev-form-group { min-width: 0; }
body.wdi-2026 .webdev-contact-form input,
body.wdi-2026 .webdev-contact-form select,
body.wdi-2026 .webdev-contact-form textarea {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
body.wdi-2026 .wdi-wordmark { white-space: nowrap; }
body.wdi-2026 .webdev-footer-top-right { justify-content: flex-start !important; width: 100%; }
body.wdi-2026 .webdev-classic-footer-contact { justify-content: flex-start; }
@media (max-width: 380px) {
  body.wdi-2026 .wdi-wordmark { font-size: 0.8rem; }
}

/* allineamento orizzontale: tutte le pagine usano lo stesso container */
body.wdi-2026 .webdev-faq-section,
body.wdi-2026 .webdev-contact-section,
body.wdi-2026 .webdev-projects-section,
body.wdi-2026 .webdev-legal-section,
body.wdi-2026 .webdev-detail-hero,
body.wdi-2026 .webdev-services-hero,
body.wdi-2026 .webdev-service-block,
body.wdi-2026 .webdev-service-beauty,
body.wdi-2026 .webdev-services-final {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.wdi-2026 .webdev-faq-section,
body.wdi-2026 .webdev-contact-section > .wdi-container,
body.wdi-2026 .webdev-projects-container,
body.wdi-2026 .webdev-legal-section,
body.wdi-2026 .webdev-detail-hero,
body.wdi-2026 .detail-grid,
body.wdi-2026 .webdev-services-hero-inner,
body.wdi-2026 .webdev-service-block-inner,
body.wdi-2026 .webdev-service-beauty-inner,
body.wdi-2026 .webdev-services-final-inner {
  width: min(var(--max), calc(100% - 2 * var(--pad))) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.wdi-2026 .webdev-legal-content { max-width: 760px; }
body.wdi-2026 .webdev-footer-top { padding-left: 0 !important; padding-right: 0 !important; }
body.wdi-2026 .webdev-footer-top-right { margin: 0 !important; }
body.wdi-2026 .webdev-classic-footer-contact { margin: 0 !important; text-align: left; }

/* footer e form: stessa larghezza del contenuto */
body.wdi-2026 .webdev-footer-top,
body.wdi-2026 .webdev-classic-footer-container,
body.wdi-2026 .webdev-classic-footer-bottom {
  width: min(var(--max), calc(100% - 2 * var(--pad))) !important;
  max-width: var(--max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.wdi-2026 .webdev-contact-section form {
  max-width: 960px !important;
  width: 100% !important;
  margin: 0 !important;
}
body.wdi-2026 .webdev-form-consent { display: flex; justify-content: flex-start; }
body.wdi-2026 .webdev-consent-label {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  width: auto;
  text-align: left;
}
body.wdi-2026 .webdev-consent-label input { width: auto !important; flex: 0 0 auto; margin-top: 2px; }
body.wdi-2026 .webdev-consent-label span { flex: 0 1 auto; }

body.wdi-2026 .webdev-faq-cta {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  padding: clamp(24px, 4vw, 40px) !important;
  text-align: left !important;
}
body.wdi-2026 .webdev-faq-cta p { color: var(--muted) !important; }
body.wdi-2026 .webdev-faq-cta .webdev-btn-stellar { margin-top: 1rem; }

/* footer: lockup identico alla navbar, hover leggibile anche in dark */
body.wdi-2026 .webdev-classic-footer-logo { gap: 0.6rem; }
body.wdi-2026 .webdev-classic-footer-logo img { width: 30px; height: 30px; }
body.wdi-2026 .webdev-classic-footer-logo .wdi-wordmark {
  color: var(--inverse-fg) !important;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
}
body.wdi-2026 .webdev-classic-footer-nav a:hover,
body.wdi-2026 .webdev-classic-footer-legal a:hover,
body.wdi-2026 .webdev-classic-footer-contact a:hover { color: var(--accent-bright) !important; }
body.wdi-2026 .webdev-classic-footer-bottom p { text-transform: none; }
@media (max-width: 900px) {
  body.wdi-2026 .webdev-classic-footer { padding: 48px 0 24px; }
  body.wdi-2026 .webdev-footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "logo lang" "social social";
    gap: 14px 20px;
    align-items: start;
  }
  body.wdi-2026 .webdev-classic-footer-logo { grid-area: logo; width: auto; }
  body.wdi-2026 .webdev-footer-top-right { display: contents; }
  body.wdi-2026 .webdev-classic-footer-contact {
    grid-area: social;
    display: flex;
    justify-content: flex-start;
    gap: 1.2rem;
    margin: 0;
  }
  body.wdi-2026 .webdev-classic-footer-lang { grid-area: lang; justify-self: end; }
  body.wdi-2026 .webdev-classic-footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding: 2.2rem 0;
  }
  body.wdi-2026 .webdev-classic-footer-brand { grid-column: 1 / -1; }
  body.wdi-2026 .webdev-classic-footer-brand p { max-width: 100%; }
  body.wdi-2026 .footer-heading { margin-bottom: 0.8rem; }
  body.wdi-2026 .webdev-classic-footer-bottom { padding-top: 1rem; }
}
@media (max-width: 360px) {
  body.wdi-2026 .webdev-classic-footer-container { grid-template-columns: 1fr; }
  body.wdi-2026 .webdev-classic-footer-brand { grid-column: auto; }
}

/* hero: statement + immagine reale, più presenza senza tornare al template */
body.wdi-2026 .wdi-intro { padding: 40px 0 28px; }
body.wdi-2026 .wdi-intro-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
body.wdi-2026 .wdi-intro-line {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
  max-width: 20ch;
  margin: 0 0 1.2rem;
}
body.wdi-2026 .wdi-intro-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
body.wdi-2026 .wdi-intro-actions .wdi-side-note { margin: 0; }
body.wdi-2026 .wdi-intro-media { margin: 0; }
body.wdi-2026 .wdi-intro-media img {
  display: block;
  width: 100%;
  aspect-ratio: var(--project-ratio);
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}
body.wdi-2026 .wdi-intro-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.65rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
body.wdi-2026 .wdi-intro-media figcaption span:last-child { color: var(--accent); }
@media (max-width: 1100px) {
  body.wdi-2026 .wdi-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  body.wdi-2026 .wdi-intro-line { font-size: clamp(2rem, 8vw, 3rem); max-width: none; }
}

/* servizi beauty: più respiro su mobile */
@media (max-width: 768px) {
  body.wdi-2026 .webdev-service-beauty-inner { padding: clamp(28px, 7vw, 44px) !important; }
  body.wdi-2026 .webdev-service-beauty-card { padding: clamp(22px, 6vw, 30px) !important; }
  body.wdi-2026 .webdev-service-beauty-head { padding: 0; }
}

/* progetti: griglia semplice e ordinata, niente stagger */
@media (min-width: 901px) {
  body.wdi-2026 .webdev-projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(32px, 4vw, 56px) !important;
    align-items: stretch;
  }
  body.wdi-2026 .webdev-project-card:nth-child(n) {
    grid-column: auto !important;
    margin-top: 0 !important;
  }
}

/* form contatti a tutta larghezza della sua zona */
body.wdi-2026 .webdev-contact-section form {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

/* cookie banner: pannello con scelte chiare */
body.wdi-2026 #webdev-cookie-banner {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  bottom: 20px !important;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px)) !important;
  max-width: none !important;
  background: var(--paper) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 20px 24px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  z-index: 99997 !important;
}
.webdev-cookie-inner { display: flex; flex-direction: column; gap: 9px; }
.webdev-cookie-inner strong { font-family: var(--sans); font-size: 0.9rem; color: var(--ink); }
body.wdi-2026 #webdev-cookie-banner p { color: var(--muted) !important; font-size: 0.82rem !important; line-height: 1.6; margin: 0 !important; }
.webdev-cookie-actions { display: flex !important; gap: 10px !important; flex-wrap: wrap !important; align-items: center !important; margin-top: 4px; }
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar {
  background: var(--ink) !important;
  color: var(--paper) !important;
  border: 1px solid var(--ink) !important;
  padding: 0.7em 1.1em !important;
  font-size: 0.78rem !important;
  text-decoration: none !important;
}
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar.is-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
@media (max-width: 600px) {
  body.wdi-2026 #webdev-cookie-banner { bottom: 12px !important; padding: 16px !important; }
  .webdev-cookie-actions { flex-direction: column; align-items: stretch; }
  body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar { width: 100%; }
}

/* ============================================================
   FIX 2026-11-14 — allineamenti, navbar, sfondo, hero, cookie
   ============================================================ */

/* la nav tiene la sua animazione d'ingresso; al termine (classe nav-ready,
   aggiunta da nav.js) non è più containing block del menu fixed:
   era la causa del menu alto 126px nel range 861–1120px */
body.wdi-2026 .webdev-main-navigation.nav-ready {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}

/* menu mobile: sempre a tutta altezza */
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links {
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: none !important;
  }
}

/* dropdown lingua: ancorato a destra del bottone, non centrato */
@media (min-width: 1121px) {
  body.wdi-2026 .webdev-lang-dropdown-menu {
    left: auto !important;
    right: 14px !important;
    transform: none !important;
  }
}
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu {
  top: calc(100% + 8px) !important;
  bottom: auto !important;
  left: auto !important;
  right: 0 !important;
  transform: none !important;
}

/* ---------- footer: due colonne, senza i testi rimossi ---------- */
body.wdi-2026 .webdev-classic-footer-container {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: clamp(28px, 6vw, 96px) !important;
  padding: 2.6rem 0 !important;
}
@media (max-width: 900px) {
  body.wdi-2026 .webdev-classic-footer-container {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.6rem !important;
  }
}
@media (max-width: 360px) {
  body.wdi-2026 .webdev-classic-footer-container { grid-template-columns: 1fr !important; }
}

/* ---------- sfondo: guide coerenti con il contenitore ---------- */
body.wdi-2026 { position: relative; }

body.wdi-2026::before,
body.wdi-2026::after {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: min(var(--max), calc(100% - 2 * var(--pad))) !important;
  height: auto !important;
  margin-inline: auto !important;
  transform: none !important;
  border: 0 !important;
  padding: 0 !important;
  background-origin: content-box !important;
  background-clip: content-box !important;
  background-repeat: repeat;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
}

/* VINCOLO: non rimuovere lo sfondo a griglia (punti + crocini + colonne).
   punti + crocini: i crocini cadono sulle linee delle 12 colonne */
body.wdi-2026::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1296' height='108' viewBox='0 0 1296 108'%3E%3Cpath d='M108 49v10M103 54h10 M216 49v10M211 54h10 M324 49v10M319 54h10 M432 49v10M427 54h10 M540 49v10M535 54h10 M648 49v10M643 54h10 M756 49v10M751 54h10 M864 49v10M859 54h10 M972 49v10M967 54h10 M1080 49v10M1075 54h10 M1188 49v10M1183 54h10' stroke='%2316130f' stroke-opacity='.075' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
  background-size: 100% 108px, 24px 24px;
  background-position: 0 0, -12px -12px;
  background-repeat: repeat-y, repeat;
}
html[data-theme="dark"] body.wdi-2026::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1296' height='108' viewBox='0 0 1296 108'%3E%3Cpath d='M108 49v10M103 54h10 M216 49v10M211 54h10 M324 49v10M319 54h10 M432 49v10M427 54h10 M540 49v10M535 54h10 M648 49v10M643 54h10 M756 49v10M751 54h10 M864 49v10M859 54h10 M972 49v10M967 54h10 M1080 49v10M1075 54h10 M1188 49v10M1183 54h10' stroke='%23f1ede5' stroke-opacity='.085' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
}

/* 12 colonne + bordi esterni, esattamente sopra il container */
body.wdi-2026::after {
  background-image:
    linear-gradient(to right, var(--grid-column-strong) 1px, transparent 1px),
    linear-gradient(to left, var(--grid-column-strong) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-column) 1px, transparent 1px);
  background-size: 1px 100%, 1px 100%, calc(100% / 12) 100%;
  background-position: left top, right top, left top;
  background-repeat: no-repeat, no-repeat, repeat;
}
@media (max-width: 900px) {
  /* VINCOLO: la griglia resta anche su tablet/telefono — 6 colonne, punti e crocini */
  body.wdi-2026::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1008' height='168' viewBox='0 0 1008 168'%3E%3Cpath d='M168 79v10M163 84h10 M336 79v10M331 84h10 M504 79v10M499 84h10 M672 79v10M667 84h10 M840 79v10M835 84h10' stroke='%2316130f' stroke-opacity='.075' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
      radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
    background-size: 100% 168px, 24px 24px;
    background-position: 0 0, -12px -12px;
    background-repeat: repeat-y, repeat;
  }
  html[data-theme="dark"] body.wdi-2026::before {
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1008' height='168' viewBox='0 0 1008 168'%3E%3Cpath d='M168 79v10M163 84h10 M336 79v10M331 84h10 M504 79v10M499 84h10 M672 79v10M667 84h10 M840 79v10M835 84h10' stroke='%23f1ede5' stroke-opacity='.085' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
      radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
  }
  body.wdi-2026::after {
    display: block !important;
    background-size: 1px 100%, 1px 100%, calc(100% / 6) 100%;
  }
}

/* ---------- hero: statement + reel progetti + scheda ---------- */
body.wdi-2026 .wdi-intro-line { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
body.wdi-2026 .wdi-intro-line em { color: var(--accent); font-style: normal; }

body.wdi-2026 .wdi-intro-grid > * { min-width: 0; }
.wdi-hero-reel { position: relative; display: flex; flex-direction: column; min-width: 0; }
.wdi-hero-reel .wdi-reel { position: relative; width: 100%; }
.wdi-hero-reel .wdi-reel::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 70px;
  background: linear-gradient(to right, rgba(244, 240, 232, 0), var(--paper) 85%);
  pointer-events: none;
}
.wdi-hero-reel .wdi-reel-track { animation-duration: 42s; animation-delay: 2.5s; }
.wdi-hero-reel .wdi-reel-footer { justify-content: flex-end; padding-top: 12px; }
.wdi-hero-reel .wdi-reel-footer a {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.wdi-hero-reel .wdi-reel-footer a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 1100px) {
  body.wdi-2026 .wdi-intro-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .wdi-hero-reel .wdi-reel-track { animation-duration: 30s; }
  .wdi-hero-reel .wdi-reel::after { display: none; }
}

.wdi-intro-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink); margin-top: clamp(30px, 4vw, 52px);
}
.wdi-intro-fact { padding: 16px 22px 0 0; border-right: 1px solid var(--line); }
.wdi-intro-fact:last-child { border-right: 0; padding-right: 0; }
.wdi-intro-fact > span {
  display: block; margin-bottom: .45rem; font-family: var(--mono);
  font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.wdi-intro-fact strong { display: block; font-weight: 400; font-size: .95rem; line-height: 1.4; color: var(--ink); }
@media (max-width: 1100px) {
  .wdi-intro-facts { grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .wdi-intro-fact { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
  .wdi-intro-fact:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .wdi-intro-facts { grid-template-columns: 1fr; }
  .wdi-intro-fact { border-bottom: 1px solid var(--line) !important; }
  .wdi-intro-fact:last-child { border-bottom: 0 !important; }
}

/* ---------- cookie: entra dal basso restando centrato; hover leggibile ---------- */
@keyframes wdiCookieIn {
  from { transform: translate(-50%, 18px); opacity: 0; }
  to   { transform: translate(-50%, 0); opacity: 1; }
}
body.wdi-2026 #webdev-cookie-banner {
  animation: wdiCookieIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both !important;
}
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar:hover {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: var(--paper) !important;
}
body.wdi-2026 #webdev-cookie-banner .webdev-btn-stellar.is-secondary:hover {
  background: var(--paper-2) !important;
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

/* footer mobile: social in riga, allineati a sinistra */
@media (max-width: 900px) {
  body.wdi-2026 .webdev-classic-footer-contact {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.2rem !important;
  }
}

/* copyright del footer allineato al resto */
body.wdi-2026 .webdev-classic-footer-bottom p {
  text-align: left !important;
  margin: 0 !important;
}
body.wdi-2026 .webdev-classic-footer-bottom {
  justify-content: flex-start !important;
}

/* ============================================================
   Pagine legali — documento con indice
   ============================================================ */
body.wdi-2026 .wdi-legal {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 46px 0 clamp(64px, 8vw, 110px) !important;
}
.wdi-legal-head { padding-bottom: clamp(22px, 3vw, 34px); border-bottom: 1px solid var(--line); }
body.wdi-2026 .wdi-legal-title { margin: .55rem 0 1.1rem; font-size: clamp(2.2rem, 4vw, 3.6rem); scroll-margin-top: 96px; }
.wdi-legal-head-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.8rem;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.wdi-legal-head-meta span:last-child { color: var(--accent); }

.wdi-legal-layout {
  display: grid; grid-template-columns: 220px minmax(0, 760px);
  gap: clamp(40px, 5vw, 84px); align-items: start;
  padding-top: clamp(32px, 4vw, 52px);
}
.wdi-legal-aside { position: sticky; top: 96px; }
.wdi-legal-aside-label {
  margin: 0 0 .7rem; font-family: var(--mono); font-size: .6rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.wdi-legal-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.wdi-legal-toc li { margin: 0; }
.wdi-legal-toc a {
  display: block; padding: .34rem 0 .34rem 14px; margin-left: -1px;
  border-left: 2px solid transparent; font-size: .78rem; line-height: 1.4;
  color: var(--muted); text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.wdi-legal-toc a:hover { color: var(--ink); }
.wdi-legal-toc a.is-active { color: var(--ink); border-color: var(--accent); }
.wdi-legal-aside-note { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wdi-legal-aside-note .wdi-legal-aside-label { margin-bottom: .45rem; }
.wdi-legal-mail { font-size: .82rem; color: var(--ink); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.wdi-legal-mail:hover { color: var(--accent); border-color: var(--accent); }
.wdi-legal-top {
  display: inline-flex; gap: .4em; margin-top: 1.6rem;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
.wdi-legal-top:hover { color: var(--accent); border-color: var(--accent); }

body.wdi-2026 .wdi-legal-content { font-size: 1.02rem; line-height: 1.75; color: var(--muted); }
body.wdi-2026 .wdi-legal-content > * { max-width: 68ch; }
body.wdi-2026 .wdi-legal-content h2 {
  max-width: none; font-size: clamp(1.35rem, 1.9vw, 1.65rem); line-height: 1.2;
  margin: 2.8rem 0 .9rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  color: var(--ink); letter-spacing: -.02em; scroll-margin-top: 96px;
}
body.wdi-2026 .wdi-legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
body.wdi-2026 .wdi-legal-content h3 { margin: 1.8rem 0 .5rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
body.wdi-2026 .wdi-legal-content p { margin: 0 0 1rem; }
body.wdi-2026 .wdi-legal-content ul { margin: .2rem 0 1.3rem; padding: 0; list-style: none; }
body.wdi-2026 .wdi-legal-content li { position: relative; padding-left: 1.25rem; margin: .32rem 0; }
body.wdi-2026 .wdi-legal-content li::before { content: ''; position: absolute; left: 0; top: .78em; width: 9px; height: 1px; background: var(--accent); }
body.wdi-2026 .wdi-legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
body.wdi-2026 .wdi-legal-content strong { color: var(--ink); font-weight: 600; }
body.wdi-2026 .wdi-legal-content .webdev-legal-meta {
  max-width: none; margin-top: 2.6rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.6;
}

@media (max-width: 900px) {
  .wdi-legal-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 28px; }
  .wdi-legal-aside, .wdi-legal-toc { min-width: 0; max-width: 100%; }
  .wdi-legal-aside { position: static; }
  body.wdi-2026 .wdi-legal-content { width: 100%; max-width: none !important; }
  .wdi-legal-aside-note, .wdi-legal-top { display: none; }
  .wdi-legal-toc ol {
    display: flex; gap: 0; overflow-x: auto;
    border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    -webkit-overflow-scrolling: touch;
  }
  .wdi-legal-toc li { flex: 0 0 auto; }
  .wdi-legal-toc a {
    border-left: 0; border-bottom: 2px solid transparent;
    margin: 0; padding: .7rem .9rem .7rem 0; white-space: nowrap; font-size: .66rem;
  }
  .wdi-legal-toc a.is-active { border-color: var(--accent); }
}

/* ============================================================
   Hover underline coerente: navbar e footer
   ============================================================ */
body.wdi-2026 { --underline: rgba(29, 78, 216, 0.5); }
html[data-theme="dark"] body.wdi-2026 { --underline: rgba(157, 184, 255, 0.66); }

body.wdi-2026 .webdev-nav-item {
  background-image: linear-gradient(90deg, var(--underline), var(--underline));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: color .25s ease, background-size .45s cubic-bezier(.22, 1, .36, 1);
}
body.wdi-2026 .webdev-nav-item:hover,
body.wdi-2026 .webdev-nav-item.active { background-size: 100% 1px; }
body.wdi-2026 .webdev-nav-item::after { display: none !important; content: none !important; }

body.wdi-2026 .webdev-classic-footer-nav a,
body.wdi-2026 .webdev-classic-footer-legal a {
  background-image: linear-gradient(90deg, var(--underline), var(--underline));
  background-size: 0% 1px;
  background-position: left bottom;
  background-repeat: no-repeat;
  transition: background-size .45s cubic-bezier(.22, 1, .36, 1), color .3s ease, transform .3s ease;
}
body.wdi-2026 .webdev-classic-footer-nav a:hover,
body.wdi-2026 .webdev-classic-footer-legal a:hover { background-size: 100% 1px; }

/* ============================================================
   Reveal on scroll — discreto, una volta sola
   ============================================================ */
body.wdi-2026 .wdi-reveal {
  opacity: 0;
  translate: 0 8px;
  /* Lo stato nascosto è immediato. La comparsa usa una keyframe
     animation: è più affidabile di una transition aggiunta nello
     stesso frame in cui arriva .is-revealed (Safari incluso). */
  transition: none;
  will-change: opacity, translate;
}
body.wdi-2026 .wdi-reveal.is-revealed {
  animation: wdi-reveal-in 1.15s cubic-bezier(.4, 0, .2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
  will-change: auto;
}
@keyframes wdi-reveal-in {
  from { opacity: 0; translate: 0 8px; }
  to { opacity: var(--reveal-opacity, 1); translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.wdi-2026 .wdi-reveal,
  body.wdi-2026 .wdi-reveal.is-revealed {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* tabelle nelle pagine legali (cookie/consenso): leggibili e scrollabili su mobile */
body.wdi-2026 .wdi-legal-content table {
  display: block; width: 100%; max-width: 100%;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; margin: 1rem 0 1.4rem;
  font-size: .9rem; line-height: 1.5;
}
body.wdi-2026 .wdi-legal-content th,
body.wdi-2026 .wdi-legal-content td {
  padding: .6rem .75rem; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; min-width: 7rem;
}
body.wdi-2026 .wdi-legal-content th { color: var(--ink); font-weight: 600; }

/* ---------- dropdown lingua: apertura morbida ---------- */
@media (min-width: 1121px) {
  body.wdi-2026 .webdev-main-navigation .webdev-lang-dropdown-menu {
    display: block !important;
    opacity: 0; visibility: hidden; pointer-events: none;
    translate: 0 -6px;
    transition: opacity .22s ease, translate .22s ease, visibility 0s linear .22s;
  }
  body.wdi-2026 .webdev-main-navigation .webdev-lang-dropdown:hover .webdev-lang-dropdown-menu,
  body.wdi-2026 .webdev-main-navigation .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0;
    transition: opacity .22s ease, translate .22s ease, visibility 0s;
  }
}
body.wdi-2026 .webdev-classic-footer-lang .webdev-lang-dropdown-menu {
  display: block !important;
  opacity: 0; visibility: hidden; pointer-events: none;
  translate: 0 6px;
  transition: opacity .22s ease, translate .22s ease, visibility 0s linear .22s;
}
body.wdi-2026 .webdev-classic-footer-lang:hover .webdev-lang-dropdown-menu,
body.wdi-2026 .webdev-classic-footer-lang.is-open .webdev-lang-dropdown-menu {
  opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0;
  transition: opacity .22s ease, translate .22s ease, visibility 0s;
}

/* ---------- menu mobile: voci in dissolvenza con stagger ---------- */
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links .webdev-nav-item,
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown {
    opacity: 0;
    translate: 0 10px;
    transform: none !important;
    transition: opacity .3s ease, translate .3s ease;
  }
  body.wdi-2026 .webdev-nav-links.is-open .webdev-nav-item,
  body.wdi-2026 .webdev-nav-links.is-open .webdev-lang-dropdown {
    opacity: 1;
    translate: none;
  }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(1) { transition-delay: .04s; }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(2) { transition-delay: .08s; }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(3) { transition-delay: .12s; }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(4) { transition-delay: .16s; }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(5) { transition-delay: .20s; }
  body.wdi-2026 .webdev-nav-links .webdev-nav-item:nth-child(6) { transition-delay: .24s; }
  body.wdi-2026 .webdev-nav-links.is-open .webdev-lang-dropdown { transition-delay: .28s; }
}

/* ---------- cambio tema: colori in dissolvenza ---------- */
html.wdi-theme-switching body.wdi-2026,
html.wdi-theme-switching body.wdi-2026 *,
html.wdi-theme-switching body.wdi-2026 *::before,
html.wdi-theme-switching body.wdi-2026 *::after {
  transition-property: background-color, color, border-color, fill, stroke, box-shadow !important;
  transition-duration: .35s !important;
  transition-timing-function: ease !important;
  transition-delay: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  html.wdi-theme-switching body.wdi-2026,
  html.wdi-theme-switching body.wdi-2026 *,
  html.wdi-theme-switching body.wdi-2026 *::before,
  html.wdi-theme-switching body.wdi-2026 *::after {
    transition: none !important;
  }
}

/* hamburger: apertura/chiusura fluida */
body.wdi-2026 .webdev-menu-trigger span {
  transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
}

/* lingua nel menu mobile: espansione morbida */
@media (max-width: 1120px) {
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown-menu {
    display: block !important;
    max-height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .3s ease, opacity .25s ease, padding .25s ease, visibility 0s linear .3s;
  }
  body.wdi-2026 .webdev-nav-links .webdev-lang-dropdown.is-open .webdev-lang-dropdown-menu {
    max-height: 240px;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    opacity: 1;
    visibility: visible;
    transition: max-height .3s ease, opacity .25s ease, padding .25s ease, visibility 0s;
  }
}

/* chiusura morbida del banner cookie */
body.wdi-2026 #webdev-cookie-banner.is-closing {
  animation: none !important;
  opacity: 0 !important;
  translate: 0 12px;
  transition: opacity .25s ease, translate .25s ease;
  pointer-events: none;
}

/* ---------- footer bottom: riga legale + copyright ---------- */
body.wdi-2026 .webdev-classic-footer-bottom {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: space-between !important;
  align-items: flex-start;
  gap: 10px 32px;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(244, 240, 232, 0.16);
}
body.wdi-2026 .wdi-footer-legal-meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 4px 24px; max-width: 900px;
  font-family: var(--mono); font-size: .64rem; line-height: 1.6;
  letter-spacing: .04em; color: rgba(244, 240, 232, 0.52);
}
body.wdi-2026 .wdi-footer-legal-company,
body.wdi-2026 .wdi-footer-legal-contact {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 11px;
}
body.wdi-2026 .wdi-footer-legal-meta a {
  color: inherit !important;
  border-bottom: 1px solid rgba(244, 240, 232, 0.24);
  padding-bottom: 1px;
}
body.wdi-2026 .wdi-footer-legal-meta a:hover {
  color: var(--accent-bright) !important;
  border-color: var(--accent-bright);
}
body.wdi-2026 .wdi-footer-sep { opacity: .45; }
body.wdi-2026 .wdi-footer-copyright {
  margin: 0 !important;
  text-align: right !important;
  font-family: var(--mono); font-size: .64rem; letter-spacing: .05em;
  color: rgba(244, 240, 232, 0.42); white-space: nowrap;
}
@media (max-width: 900px) {
  body.wdi-2026 .webdev-classic-footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
  body.wdi-2026 .wdi-footer-copyright { text-align: left !important; white-space: normal; }
  body.wdi-2026 .wdi-footer-legal-meta { max-width: 100%; gap: 8px 12px; }
  body.wdi-2026 .wdi-footer-sep { display: none; }
}

/* ---------- pagine legali: nessuna animazione di pagina ---------- */
body.wdi-2026.wdi-legal-page .webdev-main-navigation {
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  will-change: auto !important;
}
body.wdi-2026.wdi-legal-page #webdev-cookie-banner {
  animation: none !important;
}

/* ============================================================
   Cookie consent — pannello strutturato
   ============================================================ */
body.wdi-2026 #webdev-cookie-banner {
  width: min(860px, calc(100% - 24px)) !important;
  padding: 22px 26px !important;
  bottom: 20px !important;
}
.wdi-cookie-inner { display: flex; flex-direction: column; gap: 14px; }
.wdi-cookie-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.wdi-cookie-eyebrow {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.wdi-cookie-head-meta {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.wdi-cookie-body {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(18px, 3vw, 34px); align-items: start;
}
.wdi-cookie-copy p {
  margin: 0 !important; font-size: .88rem !important; line-height: 1.65 !important;
  color: var(--muted) !important;
}
.wdi-cookie-copy a {
  color: var(--accent) !important; text-decoration: underline;
  text-underline-offset: 2px;
}
.wdi-cookie-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.wdi-cookie-cats li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: .62rem; letter-spacing: .03em;
  color: var(--muted);
}
.wdi-cookie-cats li:first-child { border-top: 1px solid var(--line); }
.wdi-cookie-cats em {
  font-style: normal; color: var(--accent); text-align: right; white-space: nowrap;
}
.wdi-cookie-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
body.wdi-2026 #webdev-cookie-banner .wdi-cookie-actions .webdev-btn-stellar {
  background: var(--ink) !important; color: var(--paper) !important;
  border: 1px solid var(--ink) !important; padding: .8em 1.25em !important;
  font-size: .8rem !important; text-decoration: none !important; box-shadow: none !important;
}
body.wdi-2026 #webdev-cookie-banner .wdi-cookie-actions .webdev-btn-stellar:hover {
  background: var(--accent) !important; border-color: var(--accent) !important;
  color: var(--paper) !important;
}
body.wdi-2026 #webdev-cookie-banner .wdi-cookie-actions .webdev-btn-stellar.is-secondary {
  background: transparent !important; color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
body.wdi-2026 #webdev-cookie-banner .wdi-cookie-actions .webdev-btn-stellar.is-secondary:hover {
  background: var(--paper-2) !important; color: var(--ink) !important;
  border-color: var(--ink) !important;
}
@media (max-width: 640px) {
  body.wdi-2026 #webdev-cookie-banner {
    bottom: 10px !important; padding: 18px !important;
  }
  .wdi-cookie-body { grid-template-columns: 1fr; gap: 14px; }
  .wdi-cookie-actions { flex-direction: column; align-items: stretch; }
  body.wdi-2026 #webdev-cookie-banner .wdi-cookie-actions .webdev-btn-stellar { width: 100%; }
  .wdi-cookie-cats li { font-size: .6rem; }
}

/* ============================================================
   Chi siamo — team e persone
   ============================================================ */
body.wdi-2026 .wdi-team {
  margin-top: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
  padding-top: clamp(32px, 4vw, 56px);
}
body.wdi-2026 .wdi-team-head {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px); align-items: start;
  margin-bottom: clamp(24px, 4vw, 40px);
}
body.wdi-2026 .wdi-team-head h2 {
  margin: 0; font-size: clamp(1.9rem, 3.2vw, 2.8rem); letter-spacing: -.03em;
}
body.wdi-2026 .wdi-team-head .wdi-lede { margin: 0; max-width: 54ch; }
body.wdi-2026 .wdi-team-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
}
body.wdi-2026 .wdi-person { border-top: 2px solid var(--ink); padding-top: 18px; min-width: 0; }
body.wdi-2026 .wdi-person-top {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
body.wdi-2026 .wdi-person-initials {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  font-family: var(--display); font-size: 1rem; letter-spacing: .02em; color: var(--accent);
}
body.wdi-2026 .wdi-person-role {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
body.wdi-2026 .wdi-person h3 {
  font-size: clamp(1.5rem, 2vw, 2rem); margin: .8rem 0 .6rem; letter-spacing: -.03em;
}
body.wdi-2026 .wdi-person-bio {
  color: var(--muted); font-size: .98rem; line-height: 1.7;
  max-width: 48ch; margin: 0 0 1rem;
}
body.wdi-2026 .wdi-person-skills {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; line-height: 1.7;
  color: var(--ink); border-top: 1px solid var(--line); padding-top: 10px; margin: 0 0 1rem;
}
body.wdi-2026 .wdi-person-link {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
body.wdi-2026 .wdi-person-link:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 800px) {
  body.wdi-2026 .wdi-team-head { grid-template-columns: 1fr; gap: 12px; }
  body.wdi-2026 .wdi-team-grid { grid-template-columns: 1fr; }
}

/* schede team: foto, formazione, lingue */
body.wdi-2026 .wdi-person-top { align-items: flex-start; }
body.wdi-2026 .wdi-person-photo {
  width: 88px; height: 88px; object-fit: cover;
  border: 0; background: transparent;
  filter: saturate(.92);
}
body.wdi-2026 .wdi-person-role { padding-top: 4px; text-align: right; }
body.wdi-2026 .wdi-person-meta {
  display: grid; gap: 6px; margin: 0 0 1rem;
  padding-top: .7rem; border-top: 1px solid var(--line);
}
body.wdi-2026 .wdi-person-meta > div {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px;
  font-size: .86rem; line-height: 1.5; color: var(--muted);
}
body.wdi-2026 .wdi-person-meta dt {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); padding-top: .25em;
}
body.wdi-2026 .wdi-person-meta dd { margin: 0; }
@media (max-width: 480px) {
  body.wdi-2026 .wdi-person-photo { width: 76px; height: 76px; }
  body.wdi-2026 .wdi-person-meta > div { grid-template-columns: 5.4rem minmax(0, 1fr); }
}

/* competenze come tag: le prime quattro sono il focus */
body.wdi-2026 .wdi-person-skills {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start;
  border-top: 1px solid var(--line); padding-top: 10px; margin: 0 0 1rem;
}
body.wdi-2026 .wdi-person-skills > span {
  display: inline-block; padding: 3px 7px; border: 1px solid var(--line);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .03em;
  line-height: 1.25; color: var(--ink); white-space: nowrap;
}
body.wdi-2026 .wdi-person-skills > span:nth-child(-n+4) {
  color: var(--accent); border-color: var(--line-strong);
}

/* link team: LinkedIn e GitHub */
body.wdi-2026 .wdi-team-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--row-space); }
body.wdi-2026 .wdi-team-links { display: flex; flex-wrap: wrap; gap: 10px 16px; }
body.wdi-2026 .wdi-team-link {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
body.wdi-2026 .wdi-team-link:hover { color: var(--accent); border-color: var(--accent); }
body.wdi-2026 .wdi-person-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }

/* pagina 404 coerente con il sito */
body.wdi-2026 .wdi-error-page { padding: clamp(72px, 10vw, 130px) 0 clamp(64px, 8vw, 110px); }
body.wdi-2026 .wdi-error-page .error-code {
  font-size: clamp(5rem, 14vw, 10rem); line-height: .9; letter-spacing: -.07em;
  color: var(--accent); margin: 0 0 1.2rem;
}
body.wdi-2026 .wdi-error-page .error-title { font-size: clamp(2rem, 4vw, 3.6rem); margin: 0 0 1rem; }
body.wdi-2026 .wdi-error-page .error-message {
  color: var(--muted); max-width: 52ch; font-size: 1.05rem; line-height: 1.7; margin: 0 0 2rem;
}
body.wdi-2026 .wdi-error-page .error-links {
  display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 2rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line); font-family: var(--mono);
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
}
body.wdi-2026 .wdi-error-page .error-links a {
  color: var(--muted); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
}
body.wdi-2026 .wdi-error-page .error-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ============================================================
   Progetti /projects — full-bleed editoriale
   Un progetto per riga, immagine a tutta larghezza viewport,
   didascalia sotto senza card/bordo/superficie.
   ============================================================ */
body.wdi-2026 .webdev-projects-grid {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.wdi-2026 .webdev-project-card {
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  margin: 0 0 clamp(56px, 8vw, 112px) !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
  height: auto !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
  transform: none !important;
  transition: none !important;
}
body.wdi-2026 .webdev-project-image {
  width: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--paper-2) !important;
  overflow: hidden !important;
  aspect-ratio: var(--project-ratio) !important;
}
body.wdi-2026 .webdev-project-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
body.wdi-2026 .webdev-project-overlay {
  display: block !important;
  width: min(var(--max), calc(100% - 2 * var(--pad))) !important;
  max-width: none !important;
  margin: clamp(16px, 2vw, 26px) auto 0 !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
body.wdi-2026 .webdev-project-meta {
  margin: 0 0 .7rem;
  padding: 0;
  font-family: var(--mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
body.wdi-2026 .webdev-project-index { color: var(--accent); }
body.wdi-2026 .webdev-project-title {
  max-width: 28ch;
  margin: 0 0 .5rem !important;
  font-family: var(--display) !important;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem) !important;
  line-height: 1.06 !important;
  color: var(--ink) !important;
}
body.wdi-2026 .webdev-project-text {
  max-width: 62ch;
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: var(--muted) !important;
  font-size: .98rem !important;
  line-height: 1.65;
  margin: 0 !important;
}
body.wdi-2026 .webdev-view-btn {
  display: inline-flex !important;
  align-items: center;
  gap: .4rem;
  margin-top: 1rem;
  padding: 0 0 .25rem;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink);
}
body.wdi-2026 .webdev-project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width: 900px) {
  body.wdi-2026 .webdev-project-card { margin-bottom: 56px !important; }
  body.wdi-2026 .webdev-project-overlay { width: calc(100% - 2 * var(--pad)) !important; }
}

/* Full-bleed: su desktop la didascalia vive sopra l'immagine,
   con un gradiente per la leggibilità; su mobile resta sotto. */
@media (min-width: 901px) {
  body.wdi-2026 .webdev-project-card { position: relative !important; }
  body.wdi-2026 .webdev-project-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 52%;
    background: linear-gradient(to top, rgba(8, 8, 7, .92) 0%, rgba(8, 8, 7, .68) 40%, rgba(8, 8, 7, .22) 72%, transparent 100%);
    pointer-events: none;
    z-index: 1;
  }
  body.wdi-2026 .webdev-project-overlay {
    position: absolute !important;
    left: 50% !important;
    bottom: clamp(28px, 4vw, 52px) !important;
    transform: translateX(-50%) !important;
    width: min(var(--max), calc(100% - 2 * var(--pad))) !important;
    margin: 0 !important;
    z-index: 2;
  }
  body.wdi-2026 .webdev-project-meta { color: rgba(255, 255, 255, .76); }
  body.wdi-2026 .webdev-project-index { color: #fff; }
  body.wdi-2026 .webdev-project-title { color: #fff !important; text-shadow: 0 1px 18px rgba(0, 0, 0, .35); }
  body.wdi-2026 .webdev-project-text { color: rgba(255, 255, 255, .86) !important; }
  body.wdi-2026 .webdev-view-btn { color: #fff; border-color: rgba(255, 255, 255, .55); }
}

/* Full-bleed: niente effetti hover ereditati dalle vecchie card */
body.wdi-2026 .webdev-project-overlay::before { display: none !important; }
body.wdi-2026 .webdev-project-card:hover .webdev-view-btn {
  color: var(--ink) !important;
  border-color: var(--line-strong) !important;
}
@media (min-width: 901px) {
  body.wdi-2026 .webdev-project-card:hover .webdev-view-btn {
    color: #fff !important;
    border-color: rgba(255, 255, 255, .55) !important;
  }
}

/* Limite full-bleed: su schermi grandi l'immagine non supera 1600px
   (≈764px di altezza con ratio 949/453) e resta centrata. */
body.wdi-2026 {
  --project-max-width: 1600px;
}
body.wdi-2026 .webdev-projects-grid {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}
body.wdi-2026 .webdev-project-card {
  width: 100% !important;
  max-width: min(100vw, var(--project-max-width)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Margini progressivi: ~10vw su desktop, 5vw su mobile; tetto 1200px.
   A 1200px CSS il srcset 2600 copre anche DPR2 senza upscaling. */
body.wdi-2026 { --project-max-width: 1200px; }
body.wdi-2026 .webdev-projects-grid {
  padding-left: clamp(24px, 10vw, 260px) !important;
  padding-right: clamp(24px, 10vw, 260px) !important;
}
@media (max-width: 900px) {
  body.wdi-2026 .webdev-projects-grid {
    padding-left: 5vw !important;
    padding-right: 5vw !important;
  }
}

/* niente ombra: il progetto non deve sembrare una card */
body.wdi-2026 .webdev-project-card { box-shadow: none !important; }

/* 10px laterali globali sui contenitori: staccano il contenuto dalle
   linee verticali della griglia di sfondo. */
body.wdi-2026 .wdi-container,
body.wdi-2026 .webdev-projects-container,
body.wdi-2026 .webdev-classic-footer-container {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Contenitori senza .wdi-container: stesso respiro laterale globale. */
body.wdi-2026 .webdev-faq-section,
body.wdi-2026 .webdev-contact-section > .wdi-container,
body.wdi-2026 .webdev-detail-hero,
body.wdi-2026 .detail-grid,
body.wdi-2026 .webdev-services-hero-inner,
body.wdi-2026 .webdev-service-block-inner,
body.wdi-2026 .webdev-service-beauty-inner,
body.wdi-2026 .webdev-services-final-inner {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Note legali/antispam: blocchi redazionali allineati al contenuto */
body.wdi-2026 .webdev-projects-grid .webdev-project-card:last-child { margin-bottom: 0 !important; }
body.wdi-2026 .webdev-projects-note {
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  max-width: 86ch;
}
body.wdi-2026 .webdev-projects-note p {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.65;
}
body.wdi-2026 .webdev-form-note {
  margin: 1.35rem 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 62ch;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.6;
  text-align: left;
}

/* ---------- testi legali: contrasto alto e grassetti reali ---------- */
body.wdi-2026 {
  --legal-text: #3f3a32;
  --legal-muted: #514b42;
}
html[data-theme="dark"] body.wdi-2026 {
  --legal-text: #ded8cc;
  --legal-muted: #c3bcae;
}
body.wdi-2026 .webdev-legal-content,
body.wdi-2026 .webdev-legal-content p,
body.wdi-2026 .webdev-legal-content li,
body.wdi-2026 .webdev-legal-content ul,
body.wdi-2026 .webdev-legal-content ol,
body.wdi-2026 .webdev-legal-content td {
  color: var(--legal-text) !important;
}
body.wdi-2026 .webdev-legal-content strong,
body.wdi-2026 .webdev-legal-content b {
  font-weight: 700 !important;
  color: var(--ink) !important;
}
body.wdi-2026 .webdev-legal-content a {
  color: var(--accent) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
body.wdi-2026 .wdi-legal-head-meta,
body.wdi-2026 .wdi-legal-aside-label,
body.wdi-2026 .wdi-legal-toc a {
  color: var(--legal-muted) !important;
}
body.wdi-2026 .wdi-legal-toc a.is-active { color: var(--ink) !important; }

/* reveal a tendina: niente particelle, clip-path + movimento */
body.wdi-2026 .wdi-reveal {
  opacity: 0;
  translate: 0 10px;
  /* il clip-path resta solo nella keyframe: se lo mettiamo qui,
     l'IntersectionObserver vede intersezione zero e non rivela
     finché non si arriva in fondo alla pagina. */
  transition: none;
  will-change: opacity, translate;
}
body.wdi-2026 .wdi-reveal.is-revealed {
  animation: wdi-reveal-in 1.15s cubic-bezier(.4, 0, .2, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
  will-change: auto;
}
@keyframes wdi-reveal-in {
  0%   { opacity: 0; translate: 0 10px; clip-path: inset(0 100% 0 0); }
  55%  { opacity: 1; }
  100% { opacity: var(--reveal-opacity, 1); translate: none; clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) {
  body.wdi-2026 .wdi-reveal,
  body.wdi-2026 .wdi-reveal.is-revealed {
    opacity: 1 !important;
    translate: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
}


/* navbar: in tema chiaro il logo resta nero anche in hover */
body.wdi-2026 .webdev-main-navigation a:hover .webdev-brand-logo {
  filter: brightness(0);
}
html[data-theme="dark"] body.wdi-2026 .webdev-main-navigation a:hover .webdev-brand-logo {
  filter: none;
}

/* gerarchia legale: titoli, etichette e voce attiva ben distinti */
body.wdi-2026 .webdev-legal-content h2,
body.wdi-2026 .webdev-legal-content h3 {
  font-weight: 600 !important;
}
body.wdi-2026 .wdi-legal-aside-label { font-weight: 600 !important; }
body.wdi-2026 .wdi-legal-toc a.is-active { font-weight: 600 !important; }

/* Testi: comparsa lettera per lettera da sinistra a destra.
   L'elemento resta intersecante (niente clip); i caratteri sono nascosti
   finché il target non riceve .is-revealed. */
body.wdi-2026 .wdi-reveal.wdi-text-reveal {
  opacity: 1 !important;
  translate: none !important;
  clip-path: none !important;
  animation: none !important;
}
body.wdi-2026 .wdi-reveal.wdi-text-reveal.is-revealed { animation: none !important; }
body.wdi-2026 .wdi-text-reveal .wdi-word {
  display: inline-block;
  white-space: nowrap;
}
body.wdi-2026 .wdi-text-reveal .wdi-char {
  display: inline-block;
  opacity: 0;
  translate: 0 7px;
}
body.wdi-2026 .wdi-text-reveal.is-revealed .wdi-char {
  animation: wdi-char-in .42s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(var(--reveal-delay, 0ms) + var(--char-delay, 0ms));
}
@keyframes wdi-char-in {
  from { opacity: 0; translate: 0 7px; }
  to   { opacity: 1; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
  body.wdi-2026 .wdi-text-reveal .wdi-char {
    opacity: 1 !important;
    translate: none !important;
    animation: none !important;
  }
}

/* ---------- dettaglio progetto: sidebar editoriale ---------- */
body.wdi-2026 .detail-sidebar {
  position: sticky;
  top: 110px;
  align-self: start;
  gap: 22px;
}
body.wdi-2026 .project-box-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
body.wdi-2026 .project-box-index {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
}
body.wdi-2026 .project-challenge {
  background: transparent !important;
  border: 0 !important;
  border-left: 2px solid var(--accent) !important;
  padding: 2px 0 4px 22px !important;
}
body.wdi-2026 .project-challenge .project-box-head { margin-bottom: 12px; }
body.wdi-2026 .project-challenge p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink) !important;
  font-size: .95rem;
  line-height: 1.7;
}
body.wdi-2026 .project-details {
  background: var(--paper-2) !important;
  border: 1px solid var(--line) !important;
  padding: 20px 22px 18px !important;
}
body.wdi-2026 .project-details .project-box-head { margin-bottom: 4px; }
body.wdi-2026 .project-facts { margin: 0; padding: 0; }
body.wdi-2026 .project-fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
body.wdi-2026 .project-fact:last-child { border-bottom: 0; padding-bottom: 2px; }
body.wdi-2026 .project-fact dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
body.wdi-2026 .project-fact dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: .92rem;
  line-height: 1.45;
}
body.wdi-2026 .project-status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 1023px) {
  body.wdi-2026 .detail-sidebar { position: static; gap: 18px; }
}

/* ---------- griglia di sfondo: colonne a piena larghezza e croci sulle linee ---------- */
body.wdi-2026 {
  --grid-cols: 12;
  --grid-row: 108px;
  --grid-col: calc(min(var(--max), calc(100% - 2 * var(--pad))) / 12);
  --grid-left: calc(50% - 6 * var(--grid-col));
  --grid-right: calc(50% + 6 * var(--grid-col));
  --grid-cross-offset: calc(50% - 6.5 * var(--grid-col));
  --grid-dot-size: 24px;
}
body.wdi-2026::before,
body.wdi-2026::after {
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
}
body.wdi-2026::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 45v10M45 50h10' stroke='%2316130f' stroke-opacity='.075' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
  background-size: var(--grid-col) var(--grid-row), var(--grid-dot-size) var(--grid-dot-size);
  background-position: var(--grid-cross-offset) 0, -12px -12px;
  background-repeat: repeat, repeat;
}
html[data-theme="dark"] body.wdi-2026::before {
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 45v10M45 50h10' stroke='%23f1ede5' stroke-opacity='.085' stroke-width='1' fill='none'/%3E%3C/svg%3E"),
    radial-gradient(circle at center, var(--grid-dot) 1px, transparent 1.1px);
}
body.wdi-2026::after {
  display: block !important;
  /* I due fili ai bordi del container hanno lo stesso peso delle linee
     orizzontali di sezione; restano leggere solo le 12 colonne interne. */
  background-image:
    linear-gradient(to right, var(--section-line) 1px, transparent 1px),
    linear-gradient(to left, var(--section-line) 1px, transparent 1px),
    linear-gradient(to right, var(--grid-column) 1px, transparent 1px);
  background-size: 1px 100%, 1px 100%, var(--grid-col) 100%;
  background-position: var(--grid-left) top, var(--grid-right) top, var(--grid-left) top;
  background-repeat: no-repeat, no-repeat, repeat;
}
@media (max-width: 900px) {
  body.wdi-2026 {
    --grid-cols: 6;
    --grid-row: 168px;
    --grid-col: calc(min(var(--max), calc(100% - 2 * var(--pad))) / 6);
    --grid-left: calc(50% - 3 * var(--grid-col));
    --grid-right: calc(50% + 3 * var(--grid-col));
    --grid-cross-offset: calc(50% - 3.5 * var(--grid-col));
    --grid-dot-size: 28px;
  }
}

/* ---------- gerarchia linee: sezione vs contenuto ---------- */
body.wdi-2026 {
  --section-line: #b2a58f;
  /* filo interno alla sezione: un pelo meno contrastato di --section-line */
  --content-line: #d5ccbd;
}
html[data-theme="dark"] body.wdi-2026 {
  --section-line: #5b5347;
  --content-line: #3b362e;
}
/* niente divisori verticali tra i fact della home */
body.wdi-2026 .wdi-intro-fact { border-right: 0 !important; }

/* --- linee di SEZIONE: tutte 1px, stesso colore --- */
body.wdi-2026 .wdi-index,
body.wdi-2026 .wdi-studio,
body.wdi-2026 .wdi-services-compact,
body.wdi-2026 .wdi-contact-section,
body.wdi-2026 .wdi-about-values,
body.wdi-2026 .wdi-contact-details,
body.wdi-2026 .webdev-projects-note,
body.wdi-2026 .webdev-form-note,
body.wdi-2026 .wdi-legal-head,
body.wdi-2026 .wdi-legal-aside-note,
body.wdi-2026 .wdi-legal-top,
body.wdi-2026 .wdi-cta,
body.wdi-2026 .wdi-team,
body.wdi-2026 .webdev-service-block,
body.wdi-2026 .wdi-intro-facts,
body.wdi-2026 .wdi-about-facts {
  border-color: var(--section-line) !important;
}
/* i blocchi che usavano un filo nero da 2px rientrano nello stile comune */
body.wdi-2026 .wdi-intro-facts,
body.wdi-2026 .wdi-about-facts {
  border-top: 1px solid var(--section-line) !important;
}

/* NOTA: --grid-left/--grid-right/--grid-cross-offset (sopra) sono già
   allineati al container. NON aggiungere compensazioni di mezza colonna:
   background-position in % è relativa a (contenitore - 1px), non alla
   larghezza della colonna. Una compensazione di C/2 sposta i fili di 54px
   a destra a 1440px (bug corretto il 2026-11-18). */

/* --- linee INTERNE alla sezione (contenuto): un pelo più chiare --- */
body.wdi-2026 .wdi-row,
body.wdi-2026 .wdi-index-head,
body.wdi-2026 .wdi-fact,
body.wdi-2026 .wdi-intro-fact,
body.wdi-2026 .wdi-service-item,
body.wdi-2026 .wdi-person,
body.wdi-2026 .wdi-person-meta,
body.wdi-2026 .wdi-person-skills,
body.wdi-2026 .wdi-legal-content h2,
body.wdi-2026 .wdi-legal-content .webdev-legal-meta,
body.wdi-2026 .project-box-head,
body.wdi-2026 .project-fact,
body.wdi-2026 .webdev-faq-item,
body.wdi-2026 .webdev-faq-cta,
body.wdi-2026 .webdev-service-beauty-inner,
body.wdi-2026 .webdev-service-beauty-card,
body.wdi-2026 .webdev-beauty-card-icon,
body.wdi-2026 .webdev-contact-form,
body.wdi-2026 .webdev-contact-section .webdev-contact-form,
body.wdi-2026 .sidebar-box,
body.wdi-2026 .wdi-legal-toc ol,
body.wdi-2026 .wdi-contact-detail,
body.wdi-2026 .wdi-legal-content th,
body.wdi-2026 .wdi-legal-content td {
  border-color: var(--content-line) !important;
}
/* il filo delle schede persona era da 2px: resta 1px (gerarchia) ma usa la
   linea di sezione, più visibile della linea di contenuto: le schede altrimenti
   sembrano sospese senza struttura */
body.wdi-2026 .wdi-person {
  border-top: 1px solid var(--section-line) !important;
}
body.wdi-2026 .webdev-faq-item:last-child {
  border-bottom-color: var(--content-line) !important;
}
/* la barra accento delle "Sfide tecniche" resta accent: è una barra 2px,
   non una linea gerarchica (la regola .sidebar-box qui sopra la sovrascriveva) */
body.wdi-2026 .project-challenge {
  border-left-color: var(--accent) !important;
}

/* ============================================================
   Ritmo verticale uniforme — 2026-11-18
   Ogni blocco delimitato da linee ha gap sopra = gap sotto:
   - sezioni (linea di sezione)  → --section-space
   - divisori interni (righe)    → --row-space o valore già simmetrico
   Non tocca colori/spessori delle linee né la struttura HTML.
   ============================================================ */
body.wdi-2026 {
  --section-space: clamp(48px, 6vw, 72px);
  --row-space: 18px;
}

/* ---------- home ---------- */
/* indice lavori / servizi compatto / studio / contatto: padding-block uniforme */
.wdi-index,
.wdi-services-compact,
.wdi-studio,
.wdi-contact-section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}
/* la prima riga interna non aggiunge gap: lo dà il padding della sezione */
body.wdi-2026 .wdi-index-head { padding-top: 0; }
/* i fact di hero chiudono con il loro padding di riga: niente padding extra */
body.wdi-2026 .wdi-intro { padding-bottom: 0; }
.wdi-intro-fact {
  padding-top: var(--row-space);
  padding-bottom: var(--row-space);
}
@media (max-width: 1100px) {
  .wdi-intro-fact { padding-top: 14px; padding-bottom: 14px; }
}
/* la descrizione nella riga servizio non deve allargare il gap sotto la riga */
body.wdi-2026 .wdi-service-item p { margin: 0; }
/* lo statement della sezione studio non deve allungare la colonna */
body.wdi-2026 .wdi-studio-text { margin: 0; }

/* ---------- chi siamo ---------- */
/* team e valori: 72px sopra e sotto la loro linea di sezione */
body.wdi-2026 .wdi-team {
  margin-top: var(--section-space);
  padding-top: var(--section-space);
}
body.wdi-2026 .wdi-team-head { margin-bottom: var(--row-space); }
body.wdi-2026 .wdi-about-values {
  margin-top: calc(var(--section-space) - var(--row-space));
  padding-top: var(--section-space);
}
body.wdi-2026 .wdi-about { padding-bottom: var(--section-space); }
/* schede persona: righe interne a --row-space, niente margini residui a fondo cella */
body.wdi-2026 .wdi-person { padding-bottom: var(--row-space); }
body.wdi-2026 .wdi-person-meta { padding-top: var(--row-space); }
body.wdi-2026 .wdi-person-skills {
  padding-top: var(--row-space);
  padding-bottom: 0;
  margin-bottom: 0;
}
/* i tag non devono toccare i link LinkedIn/GitHub: lo spazio vive nell'ultima
   riga della subgrid, quindi l'allineamento tra le due schede resta invariato
   (il margine entra nel sizing della riga, uguale in entrambe le celle) */
body.wdi-2026 .wdi-person-links { margin-top: var(--row-space); }

/* ---------- pagina servizi ---------- */
body.wdi-2026 .webdev-services-hero { padding-bottom: var(--section-space) !important; }
body.wdi-2026 .webdev-service-block {
  padding-top: var(--section-space) !important;
  padding-bottom: var(--section-space) !important;
}
/* l'elenco a destra non deve allungare il blocco oltre il bottone */
body.wdi-2026 .webdev-service-block-content .webdev-service-block-list { margin-bottom: 0; }
/* kicker allineato al bordo superiore (inline-flex creava un offset di riga base) */
body.wdi-2026 .webdev-service-kicker { display: block !important; width: fit-content; }
/* la fascia beauty si allinea al ritmo delle sezioni; le card non si stirano */
body.wdi-2026 .webdev-service-beauty {
  padding-top: var(--section-space) !important;
  padding-bottom: var(--section-space) !important;
}
body.wdi-2026 .webdev-services-final { padding-top: var(--section-space) !important; }
body.wdi-2026 .webdev-service-beauty-grid { align-items: start; }
/* i link LinkedIn/GitHub chiudono la scheda al padding della cella */
body.wdi-2026 .wdi-person-meta { margin-bottom: var(--row-space); }
body.wdi-2026 .webdev-services-final { padding-bottom: var(--section-space) !important; }

/* ---------- pagina contatti ---------- */
body.wdi-2026 .webdev-contact-section { padding-bottom: var(--section-space) !important; }
/* margini simmetrici intorno alla striscia dettagli; il <p> non allarga la cella */
body.wdi-2026 .wdi-contact-details { margin: var(--row-space) 0 34px; }
body.wdi-2026 .wdi-contact-detail p { margin: 0; }
/* nota dentro il form: stesso respiro sopra e sotto la sua linea */
body.wdi-2026 .webdev-form-note {
  margin-top: var(--row-space);
  padding-top: var(--row-space);
}

/* ---------- FAQ ---------- */
body.wdi-2026 .webdev-faq-section { padding-bottom: var(--section-space) !important; }
body.wdi-2026 .webdev-faq-cta { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- progetti (full-bleed: solo verticale) ---------- */
body.wdi-2026 .webdev-projects-section { padding-bottom: var(--section-space) !important; }
body.wdi-2026 .webdev-projects-note {
  margin-top: var(--row-space);
  padding-top: var(--row-space);
}

/* ---------- dettaglio progetto ---------- */
body.wdi-2026 .detail-grid { padding-bottom: var(--section-space) !important; }
body.wdi-2026 .project-featured-image-container { padding-bottom: 32px !important; }
body.wdi-2026 .project-details { padding-bottom: 20px !important; }

/* ---------- pagine legali ---------- */
body.wdi-2026 .wdi-legal { padding-bottom: var(--section-space) !important; }
/* testata: sotto la linea il layout riprende lo stesso valore della testata */
.wdi-legal-layout { padding-top: clamp(22px, 3vw, 34px); }
/* divisori di capitolo: sopra e sotto la linea lo stesso gap.
   Filo superiore: (a) paragrafo -> filo = margin-top 2.8rem (collassa con il
   mb del p) ≈ (b) filo -> testo = padding-top 2.8rem.
   Filo inferiore: padding-bottom = margin-bottom = 0.75rem, così il testo
   del capitolo non resta sospeso (titolo -> paragrafo ≈ 25px, come prima). */
body.wdi-2026 .wdi-legal-content h2 {
  padding-top: 2.8rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}
body.wdi-2026 .wdi-legal-content .webdev-legal-meta { padding-top: 2.6rem; }
.wdi-legal-aside-note { padding-top: 2rem; }

/* ---------- 404 ---------- */
body.wdi-2026 .wdi-error-page { padding-bottom: var(--section-space); }
body.wdi-2026 .wdi-error-page .error-links { padding-top: 2rem; }

/* ============================================================
   Mobile (≤900px): niente margine esterno laterale.
   Il committente: su telefono il padding globale (10px) basta,
   il margine del container (5vw) è doppio rientro. Con --pad: 0
   i container `min(--max, 100% - 2*--pad)` diventano pieni e il
   contenuto resta a 10px dal bordo. Sopra 900px nessun cambio.
   ============================================================ */
@media (max-width: 900px) {
  body.wdi-2026 { --pad: 0px; }
  /* La nav e il menu mobile non sono .wdi-container: mantengono il
     respiro laterale globale di 10px al posto del vecchio 5vw. */
  body.wdi-2026 .webdev-main-navigation { padding-left: 10px; padding-right: 10px; }
  body.wdi-2026 .webdev-nav-links.is-open { padding: 12vh 10px 8vh !important; }
  /* footer-top / footer-bottom hanno la stessa larghezza dei container
     ma nessun padding laterale: a piena larghezza il contenuto (logo,
     selettore lingua, copyright) toccherebbe il bordo. */
  body.wdi-2026 .webdev-footer-top,
  body.wdi-2026 .webdev-classic-footer-bottom { padding-left: 10px !important; padding-right: 10px !important; }
}

/* <picture> come wrapper block dimensionato (compatibile Safari/iOS) */
body.wdi-2026 .wdi-reel-item picture { display: block; width: 100%; }
body.wdi-2026 .wdi-row picture { display: block; width: 140px; justify-self: end; }
@media (max-width: 900px) {
  body.wdi-2026 .wdi-row picture { width: 88px; }
}

/* ============================================================
   Layout Chi siamo — 2026-11-19
   1) Schede team (≥801px, 2 colonne): le due schede condividono le
      stesse righe (subgrid): FORMAZIONE/LINGUE, competenze e link
      partono alla stessa altezza in entrambe le schede. La bio più
      corta lascia il vuoto dentro la sua riga, non dopo.
   2) .wdi-about-values a tutta larghezza container: testo a sinistra
      (max 62ch), CTA in basso a destra; sotto 901px impilata.
   3) Il gap intro team → schede torna a clamp(24px,4vw,40px):
      i 18px di --row-space erano un ritmo da divisore interno,
      troppo stretto tra un paragrafo e le card.
   ============================================================ */
body.wdi-2026 .wdi-team-head { margin-bottom: clamp(24px, 4vw, 40px); }

@media (min-width: 801px) {
  /* il row-gap del padre vale anche sull'asse subgrid delle righe
     interne: azzero (in 2 colonne esiste una sola riga di schede) */
  body.wdi-2026 .wdi-team-grid { row-gap: 0; }
  body.wdi-2026 .wdi-person {
    display: grid;
    grid-template-rows: subgrid; /* 6 figli: top, h3, bio, meta, skills, links */
    grid-row: span 6;
    row-gap: 0;
  }
}
/* fallback senza subgrid: solo il blocco meta scende a fondo scheda */
@supports not (grid-template-rows: subgrid) {
  @media (min-width: 801px) {
    body.wdi-2026 .wdi-person { display: flex; flex-direction: column; }
    body.wdi-2026 .wdi-person-meta { margin-top: auto; }
  }
}

/* valori: linea a tutta larghezza, testo a sinistra e CTA a destra */
body.wdi-2026 .wdi-about-values p { max-width: 62ch; }
@media (min-width: 901px) {
  body.wdi-2026 .wdi-about-values {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: clamp(24px, 4vw, 56px);
    align-items: end;
  }
  body.wdi-2026 .wdi-about-values h2 { grid-column: 1; }
  body.wdi-2026 .wdi-about-values p { grid-column: 1; }
  body.wdi-2026 .wdi-about-values .wdi-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    justify-self: end;
    margin-top: 0;
  }
}
