/* ==========================================================
   Chiodo Consulting — tema 2026
   Minimal, tipografico, a tu per tu.
   ========================================================== */

:root {
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --ink: #0e1a2b;
  --ink-2: #26344a;
  --muted: #5d6676;
  --line: #dcd7cc;
  --blue: #1c9ad6;      /* ciano del logo */
  --deep: #14467f;      /* blu profondo del logo */
  --on-dark: #f5f3ee;
  --on-dark-muted: #a9b3c2;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--deep); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue); color: #fff; }

.screen-reader-text, .sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 11vw, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* ---------- tipografia ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.display {
  font-family: var(--sans); font-weight: 800; letter-spacing: -.045em; line-height: .92;
  font-size: clamp(56px, 12.5vw, 196px); margin: 0;
}
.display em, .h2 em, .big-quote em, .contact-title em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--blue);
}
.h2 { font-weight: 800; letter-spacing: -.035em; line-height: 1; font-size: clamp(40px, 6.4vw, 92px); margin: 0 0 24px; }
.lead { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 36ch; margin: 0; }
.muted { color: var(--muted); }
.kicker { font-size: 15px; color: var(--muted); max-width: 52ch; margin: 0; }

/* ---------- bottoni ---------- */
.btn {
  --b: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; border: 1px solid var(--b);
  background: var(--b); color: var(--paper); font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { color: var(--paper); background: var(--deep); border-color: var(--deep); transform: translateY(-2px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.light { --b: var(--paper); color: var(--ink); }
.btn.light:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.sm { padding: 11px 18px; font-size: 14px; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 42px; width: auto; }
.brand span { font-size: 13px; line-height: 1.2; color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; }
.brand span b { display: block; color: var(--ink); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { white-space: nowrap; display: block; padding: 9px 13px; border-radius: 999px; text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover, .nav .current-menu-item > a { background: var(--paper-2); color: var(--ink); }
.nav .btn { margin-left: 10px; }
.nav .area-link { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.nav .area-link svg { width: 16px; height: 16px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 14px; right: 14px; height: 2px; background: var(--ink); top: 50%; transition: transform .3s var(--ease); }
.burger::before { transform: translateY(-4px); }
.burger::after { transform: translateY(3px); }
.nav-open .burger::before { transform: translateY(-1px) rotate(45deg); }
.nav-open .burger::after { transform: translateY(-1px) rotate(-45deg); }

@media (max-width: 1120px) {
  .brand span { display: none; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch;
    padding: 24px var(--gutter) 40px; gap: 18px; overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { font-size: 30px; font-weight: 700; letter-spacing: -.03em; padding: 10px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .sub-menu { position: static !important; opacity: 1 !important; visibility: visible !important; transform: none !important; box-shadow: none !important; border: 0 !important; background: none !important; padding: 0 0 0 16px !important; min-width: 0 !important; }
  .nav .sub-menu a { font-size: 20px; font-weight: 600; }
  .nav ul a:hover { background: none; color: var(--blue); }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .nav .area-link { padding: 8px 0; }
  .nav-open { overflow: hidden; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 8vw, 110px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; }
.hero .display { margin-bottom: clamp(28px, 4vw, 48px); }
.hero .display .line { display: block; overflow: hidden; }
.hero .display .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.hero .display .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-body { display: grid; gap: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hello {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 420px;
}
.hello .who { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hello .avatar {
  width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, var(--blue), var(--deep)); color: #fff; font: italic 26px/1 var(--serif);
}
.hello .who b { display: block; font-size: 16px; }
.hello .who small { color: var(--muted); font-size: 13px; }
.hello p { margin: 0 0 16px; font-size: 16px; color: var(--ink-2); }
.hello .status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hello .status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 4px rgba(43, 182, 115, .18); }
.hello .quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.35fr 1fr; }
  .hero-grid .display { grid-column: 1 / -1; }
  .hello { justify-self: end; }
}

/* nastro delle discipline */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--paper); }
.ticker-track { display: flex; gap: 0; width: max-content; animation: scroll 38s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker span { font-size: clamp(22px, 3vw, 36px); font-weight: 700; letter-spacing: -.03em; white-space: nowrap; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker span::after { content: "✦"; font-size: .55em; color: var(--blue); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- manifesto (scuro) ---------- */
.dark { background: var(--ink); color: var(--on-dark); }
.dark .eyebrow, .dark .muted { color: var(--on-dark-muted); }
.dark a:hover { color: var(--blue); }
.manifesto { padding: clamp(80px, 12vw, 180px) 0; }
.big-quote { font-weight: 700; letter-spacing: -.035em; line-height: 1.04; font-size: clamp(34px, 5.6vw, 84px); margin: 0; max-width: 18ch; }
.manifesto-list { display: grid; gap: clamp(48px, 8vw, 110px); }
.manifesto-item { display: grid; gap: 14px; }
.manifesto-item:nth-child(2) { justify-self: end; text-align: right; }
.manifesto-item:nth-child(2) .big-quote { margin-left: auto; }
.manifesto-item small { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }

/* ---------- chi sono / tutto comunica ---------- */
.about-grid { display: grid; gap: clamp(32px, 6vw, 96px); }
.about-text { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.6; color: var(--ink-2); }
.about-text p { margin: 0 0 1em; }
.about-text strong { color: var(--ink); font-weight: 700; background: linear-gradient(transparent 62%, rgba(28, 154, 214, .22) 62%); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 40px; }
.stat { border-top: 1px solid var(--ink); padding-top: 14px; }
.stat b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.stat span { font-size: 14px; color: var(--muted); }
.about-side { display: grid; gap: 22px; align-content: start; }
.about-side figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--paper-2); }
.about-side figure img { width: 100%; height: 100%; object-fit: cover; }
.about-side figcaption { font: italic 22px/1.3 var(--serif); padding: 18px 2px 0; }
.socials { display: flex; gap: 10px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); text-decoration: none; }
.socials a:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.socials svg { width: 18px; height: 18px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.5fr 1fr; } }

/* ---------- metodo ---------- */
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) { .section-head { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.steps { display: grid; grid-template-columns: 1fr; counter-reset: s; border-top: 1px solid var(--ink); }
.step { padding: 28px 0 32px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; position: relative; }
.step .n { font: italic 22px/1 var(--serif); color: var(--blue); }
.step h3 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: 0; }
.step .you { font-weight: 600; font-size: 18px; margin: 4px 0 0; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .step { padding: 32px 28px 40px; border-bottom: 0; border-left: 1px solid var(--line); min-height: 340px; align-content: start; }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step .n { margin-bottom: 60px; }
}

/* ---------- lavori ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips a, .chips button {
  display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  font: 500 14px/1 var(--sans); color: var(--ink); text-decoration: none; cursor: pointer;
}
.chips a:hover, .chips button:hover, .chips .on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.works { display: grid; grid-template-columns: 1fr; gap: clamp(14px, 2vw, 24px); margin-top: 36px; }
.work { position: relative; display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden; background: var(--paper-2); aspect-ratio: 4 / 3.2; isolation: isolate; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14, 26, 43, .78)); z-index: 1; }
.work .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; z-index: 2; color: #fff; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.work h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.work .go { width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; flex-shrink: 0; transform: scale(.8); opacity: 0; transition: .35s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work:hover .go { transform: none; opacity: 1; }
.work:hover { color: #fff; }
@media (min-width: 680px) { .works { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .works { grid-template-columns: repeat(12, 1fr); }
  .work { grid-column: span 4; }
  .work.big:nth-child(odd) { grid-column: span 7; }
  .work.big:nth-child(even) { grid-column: span 5; }
  .work.big { aspect-ratio: auto; height: 460px; }
  .works.grid3 .work { grid-column: span 4; }
}

/* ---------- storie clienti ---------- */
.stories { border-top: 1px solid var(--ink); }
.story { display: grid; grid-template-columns: 72px 1fr; gap: 18px 24px; padding: 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; align-items: center; transition: padding .35s var(--ease); }
.story .logo { width: 72px; height: 72px; border-radius: 16px; background: #fff; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; }
.story .logo img { width: 100%; height: 100%; object-fit: contain; }
.story h3 { margin: 0; font-size: clamp(24px, 3.2vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.story p { grid-column: 2; margin: 0; color: var(--muted); font-size: 16px; max-width: 70ch; }
.story .more { grid-column: 2; font-weight: 600; font-size: 15px; }
.story:hover { color: var(--ink); }
.story:hover h3 { color: var(--deep); }
@media (min-width: 900px) {
  .story { grid-template-columns: 88px 1.1fr 1.4fr auto; gap: 32px; padding: 30px 0; }
  .story .logo { width: 88px; height: 88px; }
  .story p, .story .more { grid-column: auto; }
  .story:hover { padding-left: 12px; padding-right: 12px; background: #fff; }
}

/* ---------- servizi ---------- */
.services { border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  padding: 26px 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1;
}
.service summary::-webkit-details-marker { display: none; }
.service summary .n { font: italic 20px/1 var(--serif); color: var(--blue); width: 36px; }
.service summary .plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .35s var(--ease), background .25s; font-weight: 400; font-size: 22px; }
.service[open] summary .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.service summary:hover { color: var(--deep); }
.service .body { padding: 0 0 30px 56px; max-width: 760px; color: var(--ink-2); font-size: 18px; }
.service .body p { margin: 0; }
@media (max-width: 600px) { .service .body { padding-left: 0; } }

/* ---------- loghi clienti ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 40px; }
.logos a { background: var(--paper); aspect-ratio: 1.4; display: grid; place-items: center; padding: 18px; transition: background .25s; }
.logos a:hover { background: #fff; }
.logos img { max-height: 110px; max-width: 100%; width: auto; filter: grayscale(1); opacity: .9; transition: .3s; mix-blend-mode: multiply; }
.logos a:hover img { filter: none; opacity: 1; }
@media (min-width: 700px) { .logos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- contatti ---------- */
.contact { padding: clamp(80px, 11vw, 160px) 0; }
.contact-title { font-weight: 800; letter-spacing: -.045em; line-height: .95; font-size: clamp(48px, 9vw, 140px); margin: 0 0 28px; }
.contact-title em { color: var(--blue); }
.contact-grid { display: grid; gap: clamp(36px, 6vw, 80px); margin-top: clamp(36px, 6vw, 70px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.direct { display: grid; gap: 0; align-content: start; border-top: 1px solid rgba(255, 255, 255, .18); }
.direct a, .direct div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); text-decoration: none; font-size: 18px; }
.direct small { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); padding-top: 5px; }
.direct a:hover { color: var(--blue); }
.form { display: grid; gap: 16px; }
.form .need { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 6px; }
.form .need legend { font-size: 15px; color: var(--on-dark-muted); margin-bottom: 12px; padding: 0; }
.form .need label { position: relative; }
.form .need input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.form .need span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); font-size: 14px; transition: .2s; }
.form .need input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.form .need input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--on-dark-muted); letter-spacing: .02em; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); color: var(--on-dark);
  font: 400 19px/1.4 var(--sans); padding: 10px 0 12px; border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .row2 { grid-template-columns: 1fr 1fr; } }
.consent { display: flex; gap: 12px; font-size: 14px; color: var(--on-dark-muted); align-items: flex-start; }
.consent input { margin-top: 4px; accent-color: var(--blue); width: 18px; height: 18px; flex-shrink: 0; }
.consent a { color: var(--on-dark); }
.hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 12px; font-size: 15px; margin-bottom: 8px; }
.notice.ok { background: rgba(43, 182, 115, .15); color: #c5f2da; border: 1px solid rgba(43, 182, 115, .4); }
.notice.err { background: rgba(220, 70, 70, .15); color: #ffd3d3; border: 1px solid rgba(220, 70, 70, .4); }
/* Contact Form 7 dentro la sezione scura */
.dark .wpcf7 input:not([type=submit]):not([type=checkbox]), .dark .wpcf7 textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .3); color: var(--on-dark); font: 400 19px/1.4 var(--sans); padding: 10px 0 12px; }
.dark .wpcf7 input[type=submit] { background: var(--paper); color: var(--ink); border: 0; border-radius: 999px; padding: 15px 26px; font: 600 16px/1 var(--sans); cursor: pointer; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); border-top: 1px solid rgba(255, 255, 255, .12); padding: 56px 0 36px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--on-dark); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { color: var(--on-dark); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand img { height: 44px; width: auto; margin-bottom: 14px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }

/* ---------- pagine interne / singolo lavoro ---------- */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(32px, 5vw, 60px); }
.page-hero .h1 { font-weight: 800; letter-spacing: -.045em; line-height: .95; font-size: clamp(48px, 9vw, 132px); margin: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 26px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.story-intro { font-size: clamp(19px, 1.8vw, 24px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.prose { font-size: 18px; max-width: 760px; }
.prose h2, .prose h3 { letter-spacing: -.03em; line-height: 1.1; }
.prose a { color: var(--deep); }
.entry { padding-bottom: clamp(56px, 8vw, 110px); }
.entry > p, .entry > h1, .entry > h2, .entry > h3, .entry > h4, .entry > ul, .entry > ol { max-width: 760px; }
.entry > p:first-of-type { font-size: clamp(19px, 1.8vw, 23px); color: var(--ink-2); }

/* gallerie: WP nativa, blocco Gallery e "WP Canvas Gallery" (wc-gallery) */
.entry .wc-gallery, .entry .gallery, .entry .wp-block-gallery { margin: 40px 0 0 !important; }
.entry .gallery, .entry .wp-block-gallery.has-nested-images {
  display: block !important; columns: 2 320px; column-gap: 18px; height: auto !important;
}
.entry .gallery .gallery-item, .entry .wp-block-gallery .wp-block-image {
  position: static !important; width: auto !important; max-width: none !important; float: none !important;
  display: block; break-inside: avoid; margin: 0 0 18px !important; padding: 0 !important; transform: none !important;
  border-radius: 14px; overflow: hidden; background: var(--paper-2);
}
.entry .gallery .gallery-icon { margin: 0 !important; }
.entry .gallery img, .entry .wp-block-gallery img { width: 100% !important; height: auto !important; border: 0 !important; display: block; transition: transform .6s var(--ease); }
.entry .gallery a { display: block; overflow: hidden; cursor: zoom-in; }
.entry .gallery a:hover img { transform: scale(1.03); }
.entry .gallery-caption, .entry .wp-caption-text, .entry .gallery .gallery-item p, .entry .wp-block-gallery figcaption {
  position: static !important; opacity: 1 !important; visibility: visible !important; background: #fff !important; color: var(--ink-2) !important;
  font-size: 14px !important; line-height: 1.4 !important; padding: 12px 14px !important; margin: 0 !important; text-align: left !important; max-width: none !important; width: auto !important; transform: none !important;
}
.entry .wc-gallery-clear, .entry br[style*="clear"] { display: none; }

.next-step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-items: center; margin: 0 0 clamp(56px, 8vw, 110px); }
.next-step h2 { margin: 0; font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -.035em; line-height: 1.05; }
@media (min-width: 860px) { .next-step { grid-template-columns: 1fr auto; } }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding: 24px 0 0; margin-bottom: 40px; }
.post-nav a { text-decoration: none; font-weight: 700; font-size: clamp(18px, 2vw, 24px); letter-spacing: -.02em; }
.post-nav small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.post-nav .nx { text-align: right; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(14, 26, 43, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lb.open { display: flex; }
.lb img { max-height: 100%; max-width: 100%; width: auto; border-radius: 8px; }
.lb button { position: absolute; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lb button:hover { background: rgba(255, 255, 255, .22); }
.lb .x { top: 14px; right: 14px; }
.lb .pv { left: 14px; top: 50%; transform: translateY(-50%); }
.lb .nx { right: 14px; top: 50%; transform: translateY(-50%); }
.lb p { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; color: #d6dbe3; font-size: 14px; margin: 0; padding: 0 70px; }

/* reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* cookie banner (testo informativo) */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120; max-width: 520px; background: var(--ink); color: var(--on-dark); padding: 18px 20px; border-radius: 16px; font-size: 14px; display: none; gap: 14px; align-items: center; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .5); }
.cookie.show { display: flex; }
.cookie p { margin: 0; flex: 1; }
.cookie a { color: var(--on-dark); }

/* WordPress core */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }


/* ==========================================================
   v2 — pagine interne, struttura per categorie
   ========================================================== */

/* menu a tendina (pagine figlie aggiunte al menu) */
.nav li { position: relative; }
.nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 240px; flex-direction: column; gap: 0; padding: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px -24px rgba(14, 26, 43, .3);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); z-index: 10;
}
.nav li:hover > .sub-menu, .nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { border-radius: 10px; font-size: 14px; }
.nav .menu-item-has-children > a::after { content: "▾"; font-size: 10px; margin-left: 6px; opacity: .6; }

/* intestazione pagine */
.page-hero { padding: clamp(48px, 8vw, 110px) 0 clamp(40px, 6vw, 72px); }
.page-hero .h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--blue); }
.page-intro { margin-top: clamp(20px, 3vw, 32px); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--ink-2); max-width: 46ch; }
.page-intro p { margin: 0 0 .6em; }
.crumbs span { opacity: .5; }
.section.tight-top { padding-top: 0; }
.section.tight-top + .section { border-top: 0; }
.page-cover { margin: 0 0 40px; border-radius: var(--radius); overflow: hidden; }

/* schede lavori / discipline */
.work .meta p { margin: 6px 0 0; font-size: 14px; opacity: .85; line-height: 1.4; max-width: 40ch; }
.work:not(:has(img)) { background: linear-gradient(135deg, var(--deep), var(--blue)); }
.disc-nav { margin: 0 0 clamp(32px, 5vw, 56px); }
.post-tags { margin-top: 26px; }

/* storie */
.story-head { display: grid; gap: 6px; }
.story-head .tags { font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* servizi: righe cliccabili */
.services { border-top: 1px solid var(--ink); }
.service-row {
  display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px 20px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), background .25s;
}
.service-row .n { font: italic 20px/1 var(--serif); color: var(--blue); }
.service-row .t { font-size: clamp(22px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.service-row .d { grid-column: 2; color: var(--muted); font-size: 16px; max-width: 64ch; }
.service-row .plus { grid-row: 1; grid-column: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .25s; }
a.service-row:hover { color: var(--ink); }
a.service-row:hover .plus { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (min-width: 900px) {
  .service-row { grid-template-columns: 60px 1fr 1.1fr 44px; gap: 32px; }
  .service-row .d { grid-column: 3; grid-row: 1; }
  .service-row .plus { grid-column: 4; }
  a.service-row:hover { padding-left: 14px; padding-right: 14px; background: #fff; }
}

/* pagina servizio */
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1.5fr 1fr; } }
.lead-text { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; color: var(--ink-2); padding-bottom: 0; }
.lead-text > p:first-of-type { font-size: inherit; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 18px; position: sticky; top: 100px; }
.side-box h2 { margin: 0; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.side-box .btn { justify-self: start; }
.post-nav.single { grid-template-columns: 1fr; text-align: right; margin-top: 40px; }

/* invito al contatto */
.cta-band { padding: clamp(72px, 10vw, 140px) 0; }
.cta-row { display: grid; gap: 28px; align-items: end; }
.cta-row .lead { color: var(--on-dark-muted); }
@media (min-width: 960px) { .cta-row { grid-template-columns: 1fr auto; } }
.btn.ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255, 255, 255, .35); }
.btn.ghost-light:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.contact.is-page { padding-top: clamp(48px, 8vw, 110px); }
.dark .crumbs, .dark .crumbs a { color: var(--on-dark-muted); }

/* manifesto: link finale */
.manifesto .link-arrow { color: var(--on-dark); font-size: 18px; }

/* paginazione */
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; }
.pager .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* blocchi dell'editor nelle pagine aggiunte */
.prose { max-width: 820px; }
.entry .alignwide { max-width: none; margin-left: 0; margin-right: 0; }
.entry .alignfull { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); }
.entry .wp-block-image img, .entry figure img { border-radius: 14px; }
.entry .wp-block-buttons .wp-block-button__link { background: var(--ink); color: var(--paper); border-radius: 999px; padding: 14px 24px; font-weight: 600; text-decoration: none; }
.entry .wp-block-buttons .is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.entry .wp-block-columns { gap: clamp(20px, 3vw, 40px); }
.entry .wp-block-quote { border-left: 2px solid var(--blue); margin: 32px 0; padding: 4px 0 4px 24px; font: italic clamp(22px, 2.4vw, 30px)/1.35 var(--serif); }
.entry .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.entry h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.035em; margin: 1.6em 0 .5em; }
.entry h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; margin: 1.4em 0 .4em; }
.entry ul, .entry ol { padding-left: 1.2em; }
.entry table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.entry th { background: var(--paper-2); }
.page-hero .h1.is-long { font-size: clamp(38px, 5.6vw, 84px); line-height: 1; max-width: 22ch; }

/* pagina Lavori: filtri per disciplina */
.filters { margin-bottom: 18px; }
.filters .count { display: inline-block; min-width: 20px; margin-left: 4px; font-size: 12px; opacity: .6; }
.filter-info { min-height: 28px; margin-bottom: 28px; }
.filter-info .kicker { max-width: 70ch; }
.filter-info .link-arrow { margin-left: 6px; color: var(--ink); }
.works .work[hidden] { display: none; }
.badge-tipo { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.js [data-filtro] .work { animation: fade .4s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* logo del cliente accanto al nome */
.title-row { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: end; }
.title-row.has-logo { grid-template-columns: 1fr auto; }
.client-logo {
  margin: 0; width: clamp(84px, 13vw, 190px); aspect-ratio: 1; background: #fff; border: 1px solid var(--line);
  border-radius: clamp(16px, 2vw, 26px); padding: clamp(10px, 1.6vw, 22px); display: grid; place-items: center;
}
.client-logo img { width: 100%; height: 100%; object-fit: contain; }
.story .logo.is-empty { font: italic 30px/1 var(--serif); color: var(--blue); }

/* gallerie riordinate: gruppi con titolo */
.cc-gallery { display: grid; gap: clamp(40px, 6vw, 72px); margin-top: clamp(40px, 6vw, 64px); }
.cc-group-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin: 0 0 18px !important; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: clamp(18px, 1.8vw, 22px) !important; font-weight: 700 !important; letter-spacing: -.015em !important; line-height: 1.3;
}
.cc-group-title span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.cc-grid { columns: 3 280px; column-gap: 16px; }
.cc-grid.cc-n1 { columns: 1; max-width: 920px; }
.cc-grid.cc-n2 { columns: 2 280px; }
.cc-item { display: block; break-inside: avoid; margin: 0 0 16px; border-radius: 14px; overflow: hidden; background: var(--paper-2); cursor: zoom-in; }
.cc-item img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.cc-item:hover img { transform: scale(1.03); }

/* pagina disciplina: lavori mostrati direttamente */
.raccolta + .raccolta { margin-top: clamp(56px, 8vw, 96px); }
.raccolta-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 18px; }
.raccolta-head h2 { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.raccolta-body { padding-bottom: 0; }
.raccolta-body .cc-gallery { margin-top: 24px; }

/* storie dei clienti: gruppi di immagini espandibili */
.cc-gallery.is-acc { gap: 0; border-bottom: 1px solid var(--line); }
.cc-acc-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: clamp(40px, 6vw, 64px); padding-bottom: 14px; border-bottom: 1px solid var(--ink); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.cc-acc-bar .btn { text-transform: none; letter-spacing: 0; }
.cc-acc-bar + .cc-gallery { margin-top: 0; }
.cc-acc > summary.cc-group-title {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto 40px; align-items: center; gap: 18px;
  margin: 0 !important; padding: 20px 0; border-top: 1px solid var(--line); transition: color .2s;
}
.cc-acc:first-child > summary.cc-group-title { border-top: 0; }
.cc-acc > summary::-webkit-details-marker { display: none; }
.cc-acc > summary:hover { color: var(--deep); }
.cc-acc > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }
.cc-acc .thumbs { display: flex; }
.cc-acc .thumbs img { width: 46px; height: 46px; object-fit: cover; border-radius: 10px; border: 2px solid var(--paper); margin-left: -12px; background: var(--paper-2); }
.cc-acc .thumbs img:first-child { margin-left: 0; }
.cc-acc .c { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.cc-acc .plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; font-size: 20px; transition: transform .3s var(--ease), background .2s; }
.cc-acc[open] .plus { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cc-acc[open] .thumbs { opacity: 0; }
.cc-acc .cc-grid { padding: 4px 0 28px; }
.cc-acc[open] .cc-grid { animation: fade .35s var(--ease) both; }
@media (max-width: 640px) {
  .cc-acc > summary.cc-group-title { grid-template-columns: 1fr 40px; gap: 6px 12px; }
  .cc-acc .thumbs { display: none; }
  .cc-acc .c { grid-row: 2; grid-column: 1; }
  .cc-acc .plus { grid-row: 1 / span 2; grid-column: 2; }
}
.cc-acc .t { font-size: clamp(19px, 1.9vw, 25px); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.cc-grid.cc-n1 { max-width: 720px; }
.cc-acc .cc-grid.cc-n1 { max-width: 560px; }

/* pagina Lavori: una sezione per disciplina con i contenuti pubblicati */
.disc-sec { margin-top: clamp(48px, 7vw, 88px); scroll-margin-top: 96px; }
.filters + .disc-sec { margin-top: clamp(28px, 4vw, 44px); }
.disc-sec[hidden] { display: none; }
.disc-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--ink); padding-top: 22px; }
.disc-sec-head h2 { margin: 0 0 8px; font-size: clamp(32px, 4.4vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.disc-sec-head .kicker { margin: 0; }
.disc-sec-head .count-tot { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.disc-sec .raccolta-head { border-top-color: var(--line); margin-top: 32px; }
.disc-sec .raccolta-head h3 { margin: 0; font-size: clamp(20px, 2vw, 26px); font-weight: 700; letter-spacing: -.02em; }
.disc-sec .cc-gallery { margin-top: 28px; gap: clamp(28px, 4vw, 48px); }
.js [data-filtro] .disc-sec { animation: fade .4s var(--ease) both; }

/* ==========================================================
   HOME v3 — più immagini, meno testo
   ========================================================== */
.home-v3 .h-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.home-v3 .h-head .h2 { margin: 0; }
.home-v3 .h-head .link-arrow { font-size: 17px; }

/* apertura con collage */
.h-hero { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 56px); overflow: hidden; }
.h-hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
@media (min-width: 980px) { .h-hero-grid { grid-template-columns: 1.05fr 1fr; } }
.h-hero .display { font-size: clamp(64px, 10.5vw, 176px); margin-bottom: clamp(22px, 3vw, 36px); }
.h-hero .display .line { display: block; overflow: hidden; padding-bottom: .04em; }
.h-hero .display .line > span { display: inline-block; animation: rise 1s var(--ease) both; }
.h-hero .display .line:nth-child(2) > span { animation-delay: .12s; }
.h-hero .lead { margin-bottom: 28px; }
.h-collage { position: relative; height: clamp(360px, 46vw, 600px); pointer-events: none; }
.h-card { position: absolute; margin: 0; border-radius: 22px; overflow: hidden; background: var(--paper-2); box-shadow: 0 40px 70px -40px rgba(14, 26, 43, .55); animation: float-in 1.1s var(--ease) both; }
.h-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-card figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.h-card-1 { width: 62%; height: 70%; left: 0; top: 8%; transform: rotate(-4deg); z-index: 2; }
.h-card-2 { width: 50%; height: 52%; right: 0; top: 0; transform: rotate(5deg); animation-delay: .15s; }
.h-card-3 { width: 52%; height: 50%; right: 6%; bottom: 0; transform: rotate(-2deg); z-index: 3; animation-delay: .3s; }
@keyframes float-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.h-badge { position: absolute; left: 44%; top: 46%; z-index: 10; pointer-events: none; width: 132px; height: 132px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-content: center; text-align: center; font-size: 12px; line-height: 1.25; font-weight: 600; letter-spacing: .02em; transform: rotate(-10deg); box-shadow: 0 20px 40px -20px rgba(20, 70, 127, .7); }
.h-badge b { display: block; font: italic 54px/0.9 var(--serif); }
@media (max-width: 600px) { .h-badge { width: 96px; height: 96px; font-size: 10px; } .h-badge b { font-size: 38px; } }

/* biglietto di Wanda, in una riga */
.h-hello { margin-top: clamp(32px, 5vw, 56px); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px 12px 12px; }
.h-hello .avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--blue), var(--deep)); color: #fff; font: italic 24px/1 var(--serif); }
.h-hello p { flex: 1; min-width: 220px; margin: 0; font-size: 16px; color: var(--ink-2); }
.h-hello .quick { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) { .h-hello { border-radius: 22px; } }

/* nastro di immagini: scorre all'infinito, senza interazioni */
.h-strip { overflow: hidden; padding: 8px 0 clamp(40px, 6vw, 72px); pointer-events: none; user-select: none; -webkit-user-select: none; }
.h-strip-track { display: flex; gap: 16px; padding-right: 16px; width: max-content; animation: scroll 60s linear infinite; }
.h-strip-item { width: clamp(220px, 24vw, 340px); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--paper-2); flex-shrink: 0; }
.h-strip-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* numeri */
.h-numbers { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.h-numbers-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.h-numbers-grid > div { padding: clamp(28px, 4vw, 52px) clamp(8px, 2vw, 24px); border-left: 1px solid var(--line); }
.h-numbers-grid > div:nth-child(odd) { border-left: 0; padding-left: 0; }
.h-numbers b { display: block; font-size: clamp(56px, 8vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.h-numbers-grid > div:nth-child(2) b, .h-numbers-grid > div:nth-child(4) b { font: italic 400 clamp(60px, 8.6vw, 128px)/.9 var(--serif); color: var(--blue); letter-spacing: -.02em; }
.h-numbers span { display: block; margin-top: 10px; font-size: 15px; color: var(--muted); max-width: 18ch; }
@media (min-width: 900px) {
  .h-numbers-grid { grid-template-columns: repeat(4, 1fr); }
  .h-numbers-grid > div:nth-child(odd) { border-left: 1px solid var(--line); padding-left: clamp(8px, 2vw, 24px); }
  .h-numbers-grid > div:first-child { border-left: 0; padding-left: 0; }
}

/* manifesto più compatto */
.h-manifesto { padding: clamp(72px, 10vw, 140px) 0; }
.h-manifesto .manifesto-list { gap: clamp(36px, 6vw, 80px); }

/* metodo: grandi numeri */
.h-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .h-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .h-steps { grid-template-columns: repeat(4, 1fr); } }
.h-steps li { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .35s, color .35s, transform .35s var(--ease); }
.h-steps .n { position: absolute; top: 4px; right: 18px; font: italic 400 clamp(110px, 12vw, 170px)/1 var(--serif); color: var(--blue); opacity: .18; transition: opacity .35s; }
.h-steps h3 { margin: 0 0 6px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.035em; position: relative; }
.h-steps p { margin: 0; font-size: 17px; color: var(--muted); position: relative; transition: color .35s; }
.h-steps li:hover { background: var(--ink); color: var(--paper); transform: translateY(-4px); }
.h-steps li:hover .n { opacity: .55; }
.h-steps li:hover p { color: var(--on-dark-muted); }

/* lavori: bento */
.h-bento { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .h-bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .h-bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .h-bento .h-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .h-bento .h-tile:nth-child(4), .h-bento .h-tile:nth-child(5), .h-bento .h-tile:nth-child(6) { grid-column: span 2; }
}
.h-tile { position: relative; display: block; min-height: 240px; border-radius: 22px; overflow: hidden; background: linear-gradient(135deg, var(--deep), var(--blue)); text-decoration: none; isolation: isolate; }
.h-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.h-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14, 26, 43, .75)); z-index: 1; }
.h-tile-name { position: absolute; left: 22px; bottom: 20px; right: 70px; z-index: 2; color: #fff; font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.h-tile .go { position: absolute; right: 18px; bottom: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; transform: scale(.85); opacity: 0; transition: .35s var(--ease); }
.h-tile:hover img { transform: scale(1.06); }
.h-tile:hover .go { opacity: 1; transform: none; }
.h-bento .h-tile:nth-child(1) .h-tile-name { font-size: clamp(30px, 3.6vw, 52px); }

/* storie: card con immagine e logo */
.h-clients { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 1000px) { .h-clients { grid-template-columns: repeat(4, 1fr); } }
.h-client { position: relative; display: block; text-decoration: none; }
.h-client-img { display: block; aspect-ratio: 3 / 4; border-radius: 22px; overflow: hidden; background: var(--paper-2); }
.h-client-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; filter: saturate(.85); }
.h-client:hover .h-client-img img { transform: scale(1.05); filter: none; }
.h-client-logo { position: absolute; left: 14px; top: 14px; width: 74px; height: 74px; border-radius: 18px; background: #fff; padding: 8px; display: grid; place-items: center; box-shadow: 0 10px 24px -14px rgba(14, 26, 43, .5); font: italic 30px/1 var(--serif); color: var(--blue); }
.h-client-logo img { width: 100%; height: 100%; object-fit: contain; }
.h-client-name { display: block; margin-top: 12px; font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.h-client:hover .h-client-name { color: var(--deep); }
@media (max-width: 600px) { .h-client-logo { width: 54px; height: 54px; border-radius: 14px; } }

/* servizi: solo titoli grandi */
.h-service-list { border-top: 1px solid var(--ink); }
.h-service-list > a, .h-service-list > div { display: grid; grid-template-columns: 56px 1fr 48px; gap: 16px; align-items: center; padding: clamp(18px, 2.4vw, 28px) 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .35s var(--ease), color .2s; }
.h-service-list .n { font: italic 22px/1 var(--serif); color: var(--blue); }
.h-service-list .t { font-size: clamp(24px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; }
.h-service-list .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .25s; }
.h-service-list > a:hover { color: var(--deep); padding-left: 12px; }
.h-service-list > a:hover .go { background: var(--ink); color: var(--paper); border-color: var(--ink); }
