/* =====================================================================
   Perpi Ltd — foglio di stile
   Palette presa dal ritratto del fondatore: inchiostro teal, oro, avorio.
   Un'unica famiglia tipografica (Instrument Sans): gerarchia data dai pesi.
   ===================================================================== */

@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --ink: #0b1416;
  --ink-2: #0f1c1e;
  --ink-3: #152a2c;
  --teal: #1f5759;
  --cream: #f2ece1;
  --muted: #a3b3b0;
  --line: rgba(242, 236, 225, 0.11);
  --line-strong: rgba(242, 236, 225, 0.24);
  --gold: #e4ab3f;
  --gold-soft: #f2cb7d;
  --gold-deep: #8f600b;
  --paper: #f4efe6;
  --paper-2: #e9e1d2;
  --paper-line: rgba(19, 32, 31, 0.13);
  --ink-text: #13201f;
  --muted-paper: #4f5b58;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1260px;
  --gutter: clamp(20px, 4vw, 44px);
  --radius: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 78px;
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, figure, blockquote, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Grana leggera su tutto il sito */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ico { width: 1.15em; height: 1.15em; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.skip-link:focus { top: 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografia ---------- */
.display {
  font-weight: 600;
  font-size: clamp(2.7rem, min(6.6vw, 11.5vh), 6.8rem);
  line-height: 1; letter-spacing: -0.042em;
  text-wrap: balance;
}
.display em, .h2 em, .cta-block__title em, .statement em, .case-card__title em { font-style: normal; color: var(--gold); }
.display--page { font-size: clamp(2.5rem, 5.4vw, 5.2rem); max-width: 18ch; }
.h2 {
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 3.5rem);
  line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.76rem; font-weight: 600; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.eyebrow a { border-bottom: 1px solid currentColor; }
.eyebrow--muted { color: var(--muted); margin-bottom: 0.6rem; }
.lead { font-size: clamp(1.1rem, 1.45vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 40em; margin-top: 1.6rem; }
.label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Bottoni e link ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  font-size: 0.97rem; font-weight: 600; line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.35s;
  white-space: nowrap;
}
.btn .ico { transition: transform 0.35s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); transform: translateY(-2px); box-shadow: 0 14px 40px -12px rgba(228, 171, 63, 0.55); }
.btn--ghost { border-color: var(--line-strong); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); background: rgba(242, 236, 225, 0.05); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--teal); transform: translateY(-2px); }
.btn--lg { padding: 1.1rem 1.75rem; font-size: 1rem; }
.btn--sm { padding: 0.65rem 1.1rem; font-size: 0.88rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.2rem; align-items: center; }
.actions--center { justify-content: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 50px; height: 50px;
  border-radius: 50%; border: 1px solid var(--line-strong);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.icon-btn:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.95rem; font-weight: 600;
  color: var(--gold); padding-block: 0.4rem;
}
.link-arrow .ico { transition: transform 0.35s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.link-arrow--back:hover .ico { transform: translateX(-5px); }

.pill {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; font-weight: 600; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-soft);
  padding: 0.5rem 0.85rem; border-radius: 999px;
  border: 1px solid rgba(228, 171, 63, 0.35); background: rgba(228, 171, 63, 0.07);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gold); animation: pulse 2.2s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(0.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }

.tags { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.tags li { font-size: 0.8rem; font-weight: 500; line-height: 1; padding: 0.5rem 0.75rem; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); }
/* Il vetro sta su uno pseudo-elemento: un backdrop-filter sull'header
   intrappolerebbe il menu mobile (position: fixed) dentro l'header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 20, 22, 0.8);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity 0.4s;
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { position: relative; z-index: 2; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.7rem; }
.nav__link { position: relative; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.25s; padding-block: 0.4rem; }
.nav__link:hover, .nav__link[aria-current] { color: var(--cream); }
.nav__link[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav__aside { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line-strong); border-radius: 999px; }
.lang-switch a { font-size: 0.75rem; font-weight: 600; line-height: 1; letter-spacing: 0.06em; padding: 0.45rem 0.6rem; border-radius: 999px; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.lang-switch a:hover { color: var(--cream); }
.lang-switch a[aria-current] { background: var(--cream); color: var(--ink); }
.burger { display: none; position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); }
.burger__lines, .burger__lines::before { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--cream); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger__lines { top: 18px; }
.burger__lines::before { content: ""; left: 0; right: 0; top: 8px; }
.nav-open .burger__lines { top: 22px; transform: rotate(45deg); }
.nav-open .burger__lines::before { top: 0; transform: rotate(-90deg); }

/* ---------- Hero ---------- */
.hero, .page-hero, .post-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero { min-height: min(100svh, 860px); padding: calc(var(--header-h) + clamp(40px, 6vh, 80px)) 0 clamp(56px, 8vh, 96px); display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero .hero__bg { -webkit-mask-image: none; mask-image: none; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow--gold { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; right: -12vw; top: -14vw; background: radial-gradient(circle, rgba(228, 171, 63, 0.3), transparent 65%); }
.glow--teal { width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: -22vw; bottom: -30vw; background: radial-gradient(circle, rgba(31, 87, 89, 0.75), transparent 65%); }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(to right, var(--line) 1px, transparent 1px);
  background-size: calc(min(100vw, var(--wrap)) / 6) 100%;
  background-position: center;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent);
  opacity: 0.5;
}
.hero__eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* Desktop: testo a sinistra, card a destra centrata; mobile: tutto in colonna */
.hero__layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: center; }
.hero__title { max-width: none; font-size: clamp(2.7rem, min(5.6vw, 10vh), 5.3rem); }
.hero__copy { margin-top: clamp(1.6rem, 2.6vw, 2.4rem); }
.hero__copy .lead { margin-top: 0; max-width: 34em; }

.route-card {
  position: relative;
  padding: 1.4rem 1.5rem 1.2rem;
  border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(242, 236, 225, 0.06), rgba(242, 236, 225, 0.015));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.route-card__now { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--cream); }
.route-card__now strong { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.route { width: 100%; height: auto; color: var(--gold-soft); margin: 0.6rem 0 -0.4rem; overflow: visible; }
.route path { opacity: 0.7; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.route__end { fill: var(--ink); stroke: var(--cream); stroke-width: 1.4; }
.route__dot { fill: var(--gold); filter: drop-shadow(0 0 6px rgba(228, 171, 63, 0.9)); }
.clocks { display: flex; justify-content: space-between; }
.clock { display: flex; flex-direction: column; gap: 0.25rem; }
.clock--right { text-align: right; }
.clock__city { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.clock__time { font-size: clamp(1.9rem, 2.8vw, 2.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.route-card__note { margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: center; }

/* ---------- Barra credenziali ---------- */
.proof { background: var(--ink-2); border-block: 1px solid var(--line); }
.proof__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof__list li { display: flex; align-items: center; gap: 0.9rem; padding: 1.6rem 1.4rem; }
.proof__list li:first-child { padding-left: 0; }
.proof__list li + li { border-left: 1px solid var(--line); }
.proof__ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(228, 171, 63, 0.1); color: var(--gold); flex: none; }
.proof__ico .ico { width: 20px; height: 20px; }
.proof__list strong { display: block; font-size: 0.95rem; font-weight: 600; color: var(--cream); line-height: 1.3; }
.proof__list span span, .proof__list li > span:last-child { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* ---------- Sezioni ---------- */
.section { position: relative; padding: clamp(80px, 10vw, 140px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }
.section--paper { background: var(--paper); color: var(--ink-text); }
.section--paper .eyebrow { color: var(--gold-deep); }
.section--paper .h2 em, .section--paper .display em { color: var(--gold-deep); }
.section--paper .link-arrow { color: var(--gold-deep); }
.section--paper .tags li { border-color: var(--paper-line); color: var(--muted-paper); }
.sec-head { margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.sec-head .h2 { max-width: 21ch; }
.sec-head__sub { margin-top: 1rem; font-size: 1.12rem; color: var(--muted); max-width: 42em; }
.split-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.split-head .sec-head { margin-bottom: 0; }
.split-head > div:not(.sec-head) p { color: var(--muted-paper); font-size: 1.08rem; margin-bottom: 1rem; max-width: 34em; }
.split-head--end { grid-template-columns: 1fr auto; }

.statement {
  font-size: clamp(1.5rem, 2.6vw, 2.35rem); font-weight: 500; line-height: 1.3;
  letter-spacing: -0.022em; max-width: 44ch; text-wrap: pretty;
}

/* Servizi */
.svc-list { border-top: 1px solid var(--line); }
.svc {
  position: relative;
  display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 1rem 2rem; align-items: center;
  padding: clamp(1.7rem, 2.8vw, 2.4rem) 0; border-bottom: 1px solid var(--line);
}
.svc::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); background: linear-gradient(90deg, rgba(228, 171, 63, 0.06), transparent 70%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.svc:hover::before { opacity: 1; }
.svc__icon { align-self: start; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(228, 171, 63, 0.1); color: var(--gold); transition: background-color 0.3s, color 0.3s; }
.svc__icon .ico { width: 24px; height: 24px; }
.svc:hover .svc__icon { background: var(--gold); color: var(--ink); }
.svc__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.svc__badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 0.4rem 0.6rem; border-radius: 999px; }
.svc__text { color: var(--muted); max-width: 60ch; margin: 0.7rem 0 1.1rem; }
.svc__go {
  display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.75rem 1.1rem; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.9rem; font-weight: 600;
  transition: background-color 0.35s, color 0.35s, border-color 0.35s;
}
.svc__go::after { content: ""; position: absolute; inset: 0; }
.svc__go .ico { transition: transform 0.35s var(--ease); }
.svc:hover .svc__go { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.svc:hover .svc__go .ico { transform: rotate(45deg); }

/* Spotlight */
.spotlight__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.spotlight__text { font-size: 1.1rem; color: var(--muted-paper); margin-bottom: 2rem; max-width: 36em; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.3rem 0; border-top: 1px solid var(--paper-line); }
.steps li:last-child { border-bottom: 1px solid var(--paper-line); }
.step__num { font-size: 0.85rem; font-weight: 600; line-height: 1.9; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.steps p { color: var(--muted-paper); font-size: 0.98rem; }
.steps--big h3 { font-size: clamp(1.35rem, 2vw, 1.65rem); letter-spacing: -0.025em; margin-bottom: 0.45rem; }
.steps--big li { padding: 1.7rem 0; }
.steps--big p { font-size: 1.04rem; max-width: 50ch; }

/* Case card */
.case-card {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(2rem, 4.5vw, 3.6rem);
  border-radius: 28px; background: var(--ink); color: var(--cream);
  box-shadow: 0 40px 90px -50px rgba(11, 20, 22, 0.8);
}
.section:not(.section--paper) .case-card { margin-top: 0; border: 1px solid var(--line); background: var(--ink-2); }
.case-card::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(228, 171, 63, 0.26), transparent 65%); filter: blur(30px); }
.case-card__title { font-size: clamp(1.5rem, 2.5vw, 2.15rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.03em; margin: 1.3rem 0 1rem; max-width: 22ch; }
.case-card__main > p:last-child { color: var(--muted); max-width: 50ch; }
.case-card__scope { align-self: end; }
.case-card__scope ol li { display: flex; gap: 1rem; padding: 0.95rem 0; border-top: 1px solid var(--line); }
.case-card__scope ol li span { font-size: 0.85rem; font-weight: 600; line-height: 1.7; color: var(--gold); font-variant-numeric: tabular-nums; }

/* Numeri */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 2.2rem 1.6rem 0 0; }
.stat + .stat { padding-left: 1.6rem; border-left: 1px solid var(--line); }
.stat__n { font-size: clamp(2.8rem, 4.8vw, 4.6rem); font-weight: 600; line-height: 1; color: var(--gold); letter-spacing: -0.05em; margin-bottom: 1rem; }
.stat__t { color: var(--muted); font-size: 0.97rem; max-width: 28ch; }

/* Fondatore */
.founder { background: linear-gradient(180deg, var(--ink), var(--ink-2)); }
.founder__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.founder__photo { position: relative; }
.founder__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: 26px; opacity: 0.55; }
.founder__photo img { position: relative; border-radius: 26px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder__photo figcaption {
  position: absolute; left: 1rem; right: 1rem; bottom: 1rem;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.85rem 1rem; border-radius: 14px;
  background: rgba(11, 20, 22, 0.62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 0.78rem; font-weight: 600; line-height: 1.3;
}
.founder__photo figcaption span:last-child { color: var(--gold-soft); text-align: right; }
.founder__copy .h2 { margin-bottom: 1.5rem; }
.founder__copy > p { color: var(--muted); margin-bottom: 1.1rem; max-width: 62ch; }
.quote { margin: 2rem 0 0; padding: 0.2rem 0 0.2rem 1.4rem; border-left: 3px solid var(--gold); }
.quote p { font-size: clamp(1.15rem, 1.7vw, 1.4rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.012em; color: var(--cream); }
.founder--long .founder__grid { align-items: start; }
.founder__photo--sticky { position: sticky; top: calc(var(--header-h) + 30px); }
.timeline__title { margin-top: 3rem; }
.timeline li { display: grid; grid-template-columns: 8.5rem 1fr auto; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); align-items: baseline; }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__when { font-size: 0.82rem; font-weight: 600; color: var(--gold); }
.timeline__what { font-weight: 500; }
.timeline__where { color: var(--muted); font-size: 0.92rem; text-align: right; }

/* Brand */
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.brand-tile {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--brand-bg); color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(19, 32, 31, 0.06), 0 20px 50px -35px rgba(19, 32, 31, 0.5);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.brand-tile:hover { transform: translateY(-8px); box-shadow: 0 1px 0 rgba(19, 32, 31, 0.06), 0 40px 70px -35px rgba(19, 32, 31, 0.55); }
.brand-tile__logo { display: block; overflow: hidden; aspect-ratio: 1 / 1; background: var(--brand-bg); }
.brand-tile__logo img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.8s var(--ease); }
.brand-tile:hover .brand-tile__logo img { transform: scale(1.05); }
.brand-tile__body { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.3rem 1.4rem 1.5rem; border-top: 1px solid rgba(0, 0, 0, 0.08); flex: 1; }
.brand-tile__kind { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.brand-tile__name { font-size: 1.4rem; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.brand-tile__text { font-size: 0.93rem; line-height: 1.5; opacity: 0.85; }
.brand-tile__link { margin-top: auto; padding-top: 0.6rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; }
.brand-grid--big { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.brand-tile--big { flex-direction: row; }
.brand-tile--big .brand-tile__logo { width: 46%; flex: none; }
.brand-tile--big .brand-tile__body { border-top: 0; border-left: 1px solid rgba(0, 0, 0, 0.08); padding: clamp(1.4rem, 2.6vw, 2.2rem); justify-content: center; }
.brand-tile--big .brand-tile__name { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.brand-tile--big .brand-tile__text { font-size: 1rem; }
.brand-tile--big .brand-tile__link { margin-top: 0.8rem; }

/* Card generiche */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 0.4rem; }
.card { padding: clamp(1.6rem, 2.6vw, 2.2rem); border-radius: var(--radius); background: var(--ink-2); border: 1px solid var(--line); transition: border-color 0.4s, transform 0.5s var(--ease); }
.card:hover { border-color: rgba(228, 171, 63, 0.4); transform: translateY(-4px); }
.card__num { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gold); margin-bottom: 2.2rem; }
.card h3 { font-size: clamp(1.25rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.2; margin-bottom: 0.7rem; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card--paper { background: rgba(255, 255, 255, 0.55); border-color: var(--paper-line); }
.card--paper p { color: var(--muted-paper); }
.card--paper .card__num { color: var(--gold-deep); }
.card--paper:hover { border-color: var(--gold-deep); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.two-col--wide { grid-template-columns: 0.85fr 1.15fr; }
.prose-lite p { font-size: 1.12rem; color: var(--muted); margin-bottom: 1.2rem; max-width: 58ch; }
.prose-lite p:first-child { color: var(--cream); font-size: 1.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { padding: 0.8rem 1.2rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 1rem; font-weight: 500; transition: border-color 0.3s, color 0.3s; }
.chips li:hover { border-color: var(--gold); color: var(--gold-soft); }
.deliverables { padding: clamp(1.8rem, 3vw, 2.6rem); border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .ico { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(228, 171, 63, 0.15); color: var(--gold); }

.expertise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
.expertise li { display: flex; gap: 1rem; align-items: baseline; padding: 1.2rem 0; border-top: 1px solid var(--line); font-size: clamp(1.1rem, 1.5vw, 1.3rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.expertise span { font-size: 0.82rem; font-weight: 600; color: var(--gold); }

.process { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.process__head { position: sticky; top: calc(var(--header-h) + 40px); }

.faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.4rem 0; font-size: clamp(1.08rem, 1.5vw, 1.25rem); font-weight: 600; line-height: 1.35; letter-spacing: -0.015em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { width: 24px; height: 24px; color: var(--gold); transition: transform 0.4s var(--ease); }
.faq__item[open] summary .ico { transform: rotate(45deg); }
.faq__item summary:hover { color: var(--gold-soft); }
.faq__a p { color: var(--muted); max-width: 64ch; padding-bottom: 1.5rem; }

/* Page hero */
.page-hero { padding: calc(var(--header-h) + clamp(60px, 9vw, 130px)) 0 clamp(56px, 7vw, 92px); }
.page-hero .lead { max-width: 42em; }
.page-hero--center { text-align: center; min-height: 80svh; display: flex; align-items: center; }
.page-hero--center .display--page, .page-hero--center .lead { margin-inline: auto; }
.big-check { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: var(--ink); margin-bottom: 2rem; }
.big-check .ico { width: 40px; height: 40px; }
.giant-404 { font-size: clamp(7rem, 20vw, 15rem); font-weight: 700; line-height: 0.85; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 1rem; }
.page-404 .small { margin-top: 2.5rem; }
.page-404 .small a { color: var(--gold); border-bottom: 1px solid currentColor; }

/* CTA finale */
.cta-block { position: relative; overflow: hidden; isolation: isolate; padding: clamp(90px, 12vw, 160px) 0; border-top: 1px solid var(--line); }
.cta-block::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 110vw; height: 90%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(228, 171, 63, 0.2), transparent); }
.cta-block__title { font-size: clamp(2.5rem, 5.8vw, 5.4rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; max-width: 15ch; text-wrap: balance; }
.cta-block__row { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.cta-block__row p { color: var(--muted); font-size: 1.12rem; max-width: 34em; }
.cta-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3.4rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.cta-steps li, .next-steps li { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 0.98rem; color: var(--cream); line-height: 1.45; }
.cta-steps span, .next-steps span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); font-size: 0.82rem; font-weight: 600; flex: none; }
.next-steps { display: grid; gap: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); font-size: 0.94rem; }
.site-footer__top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 2.5rem; }
.site-footer__brand img { height: 42px; width: auto; }
.site-footer__brand p { color: var(--muted); max-width: 34ch; margin: 1.3rem 0 1.4rem; line-height: 1.55; }
.site-footer__brand p.site-footer__follow { margin: 0 0 0.7rem; }
.footer-col__h { font-size: 0.92rem; font-weight: 600; color: var(--cream); margin-bottom: 1.1rem; }
.footer-col li { margin-bottom: 0.65rem; }
.footer-col a, .footer-col address { color: var(--muted); transition: color 0.2s; line-height: 1.55; }
.footer-col a:hover { color: var(--cream); }
.footer-col .link-arrow { color: var(--gold); margin-top: 0.8rem; font-size: 0.92rem; }
.social { display: flex; gap: 0.5rem; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.social--big a { width: 46px; height: 46px; }
.social--labelled { flex-wrap: wrap; }
.social--labelled a { width: auto; height: auto; gap: 0.5rem; display: inline-flex; align-items: center; padding: 0.55rem 0.95rem 0.55rem 0.8rem; border-radius: 999px; font-size: 0.88rem; font-weight: 600; }
.social--big.social--labelled a { padding: 0.75rem 1.2rem 0.75rem 1rem; font-size: 0.95rem; }
.nav__social { display: none; }
.site-footer__follow { font-size: 0.85rem; font-weight: 600; color: var(--cream); margin-bottom: 0.7rem; }
.site-footer__brand p strong { color: var(--cream); font-weight: 600; }
.follow__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 3rem; flex-wrap: wrap; padding: clamp(1.8rem, 3.5vw, 2.8rem); border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); }
.follow__inner .h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); margin-bottom: 0.4rem; }
.follow__inner p { color: var(--muted); }
.site-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; margin-top: clamp(3rem, 5vw, 4.5rem); padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--muted); }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.site-footer__legal a:hover { color: var(--cream); }

/* ---------- Toast lingua ---------- */
.lang-toast {
  position: fixed; left: 16px; bottom: 16px; z-index: 150; max-width: min(420px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  padding: 0.9rem 3rem 0.9rem 1.1rem; border-radius: 16px;
  background: var(--ink-3); border: 1px solid rgba(228, 171, 63, 0.35);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  font-size: 0.93rem; animation: toast-in 0.6s var(--ease) both;
}
.lang-toast[hidden] { display: none; }
.lang-toast__cta { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--gold); font-weight: 600; }
.lang-toast__close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); }
.lang-toast__close:hover { color: var(--cream); background: rgba(255, 255, 255, 0.06); }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Contatti ---------- */
.contact { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.form { display: grid; gap: 1.6rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.field { display: grid; gap: 0.45rem; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.08rem/1.4 var(--font); color: var(--cream);
  background: rgba(242, 236, 225, 0.03); border: 1px solid var(--line-strong);
  padding: 0.85rem 1rem; border-radius: 12px; transition: border-color 0.3s, background-color 0.3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.6rem; }
.field select option { background: var(--ink); color: var(--cream); }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background-color: rgba(242, 236, 225, 0.05); }
.field ::placeholder { color: rgba(163, 179, 176, 0.6); }
.check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.check a { color: var(--gold); border-bottom: 1px solid currentColor; }
.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(214, 92, 70, 0.14); border: 1px solid rgba(214, 92, 70, 0.4); color: #f3c4b8; }
.contact__aside { display: grid; gap: 1.5rem; padding: 2rem; border-radius: 24px; background: var(--ink-2); border: 1px solid var(--line); }
.contact__aside > div + div { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.contact__aside p, .contact__aside address { font-size: 1rem; }
.contact__aside .social { margin-top: 0.4rem; }

/* ---------- Blog: elenco ---------- */
.page-hero--blog { padding-bottom: clamp(40px, 5vw, 64px); }
.cat-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; }
.cat-nav a { padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: all 0.25s; }
.cat-nav a:hover { color: var(--cream); border-color: var(--cream); }
.cat-nav a[aria-current] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 600; }
.blog-list { padding-top: 0; }
.empty { color: var(--muted); font-size: 1.3rem; padding: 3rem 0; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
/* Con due soli articoli la griglia non lascia un buco */
.post-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
.post-card__link {
  display: flex; flex-direction: column; height: 100%;
  border-radius: 22px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.post-card__link:hover { border-color: rgba(228, 171, 63, 0.45); transform: translateY(-6px); }
.post-card__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--ink-3); }
.post-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-card__link:hover .post-card__img { transform: scale(1.05); }
.post-card__body, .post-feature__body { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.post-card__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
.post-card__cat { color: var(--gold); font-weight: 600; }
.post-card__title { font-size: 1.3rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.post-card__desc { color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__more { margin-top: auto; padding-top: 0.5rem; display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; font-weight: 600; color: var(--gold); }
.post-card__more .ico { transition: transform 0.35s var(--ease); }
.post-card__link:hover .post-card__more .ico, .post-feature__link:hover .post-card__more .ico { transform: translateX(5px); }

.post-feature { margin-bottom: 1.3rem; }
.post-feature__link { display: grid; grid-template-columns: 1.25fr 1fr; border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line); transition: border-color 0.4s; }
.post-feature__link:hover { border-color: rgba(228, 171, 63, 0.45); }
.post-feature__media { display: block; aspect-ratio: 1200 / 630; overflow: hidden; }
.post-feature__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.post-feature__link:hover .post-feature__img { transform: scale(1.04); }
.post-feature__body { justify-content: center; padding: clamp(1.6rem, 3.5vw, 3rem); gap: 1rem; }
.post-feature__title { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.post-feature__body .post-card__more { margin-top: 0.6rem; }

.cover-fallback { display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 1.4rem; background: radial-gradient(circle at 85% 10%, rgba(228, 171, 63, 0.35), transparent 50%), linear-gradient(140deg, var(--teal), var(--ink)); }
.cover-fallback span { font-size: 1.25rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; color: rgba(242, 236, 225, 0.9); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pager__info { font-size: 0.88rem; font-weight: 500; color: var(--muted); }

/* ---------- Blog: articolo ---------- */
.post-hero { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.wrap--post { max-width: calc(940px + var(--gutter) * 2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); margin-bottom: 1.8rem; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a:hover { color: var(--cream); }
.post-hero__cat { display: inline-block; margin-bottom: 1.3rem; padding: 0.5rem 0.85rem; border-radius: 999px; background: rgba(228, 171, 63, 0.12); border: 1px solid rgba(228, 171, 63, 0.4); color: var(--gold-soft); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background-color 0.3s; }
.post-hero__cat:hover { background: rgba(228, 171, 63, 0.22); }
.post-hero__title { font-size: clamp(2.2rem, 4.6vw, 4.1rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.04em; text-wrap: balance; }
.post-hero__lead { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); max-width: 42em; }
.byline { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.byline__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.byline__avatar--logo { border-radius: 12px; }
.byline__name { font-weight: 600; }
.byline__meta { font-size: 0.86rem; color: var(--muted); }
.byline__lang { margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 500; transition: border-color 0.3s, color 0.3s; }
.byline__lang:hover { border-color: var(--gold); color: var(--gold-soft); }

.post-cover { position: relative; z-index: 2; max-width: calc(1080px + var(--gutter) * 2); margin-bottom: clamp(-120px, -8vw, -50px); }
.post-cover__img { width: 100%; border-radius: 26px; aspect-ratio: 1200 / 630; object-fit: cover; box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.8); }
.post-main { background: var(--paper); color: var(--ink-text); padding: calc(clamp(60px, 10vw, 140px) + 4rem) 0 clamp(64px, 8vw, 110px); }
.post-main--nocover { padding-top: clamp(56px, 7vw, 96px); }
.post-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: clamp(2rem, 5vw, 5rem); justify-content: center; }
.post-aside { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; display: grid; gap: 2rem; }
.toc__title, .share__label { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); }
.toc__title { margin-bottom: 1rem; }
.toc ol { border-left: 1px solid var(--paper-line); }
.toc a { display: block; padding: 0.45rem 0 0.45rem 1rem; margin-left: -1px; border-left: 2px solid transparent; font-size: 0.9rem; line-height: 1.35; color: var(--muted-paper); transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--ink-text); }
.toc a.is-active { color: var(--ink-text); border-left-color: var(--gold-deep); font-weight: 600; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; }
.share__label { width: 100%; margin-bottom: 0.4rem; }
.share a, .share button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--paper-line); color: var(--ink-text); transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.share a:hover, .share button:hover, .share button.is-done { background: var(--ink); border-color: var(--ink); color: var(--gold-soft); }
.post-share-bottom { margin-top: 2.5rem; padding-top: 1.8rem; border-top: 1px solid var(--paper-line); }
.post-share-bottom .share__label { width: auto; margin: 0 0.6rem 0 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; }
.post-tags li { font-size: 0.82rem; font-weight: 500; padding: 0.5rem 0.75rem; border-radius: 999px; background: var(--paper-2); color: var(--muted-paper); }
.author-box { display: flex; gap: 1.3rem; align-items: flex-start; margin-top: 2.5rem; padding: 1.6rem; border-radius: 22px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--paper-line); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; }
.author-box img.author-box__logo { border-radius: 16px; }
.author-box__name { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.3rem; }
.author-box p { color: var(--muted-paper); font-size: 0.97rem; }
.author-box .link-arrow { color: var(--gold-deep); margin-top: 0.5rem; }
.post-back { margin-top: 2rem; }
.post-back .link-arrow { color: var(--gold-deep); }
.related { border-top: 1px solid var(--line); }

/* Testo articolo */
.prose { font-size: 1.13rem; line-height: 1.75; color: #1e2b2a; max-width: 68ch; }
.prose > * + * { margin-top: 1.25em; }
.prose > p:first-of-type { font-size: 1.25rem; line-height: 1.6; color: var(--ink-text); font-weight: 500; }
.prose h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; color: var(--ink-text); margin-top: 2.2em; }
.prose h3 { font-size: 1.28rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; margin-top: 2em; }
.prose h4 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.7em; }
.prose a { color: var(--gold-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.2s; }
.prose a:hover { color: var(--ink-text); }
.prose strong { color: var(--ink-text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: none; }
.prose ul > li { position: relative; }
.prose ul > li::before { content: ""; position: absolute; left: -1.1em; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-deep); }
.prose ol { list-style: decimal; }
.prose ol > li::marker { color: var(--gold-deep); font-weight: 600; }
.prose li + li { margin-top: 0.45em; }
.prose blockquote { margin: 2em 0; padding: 0.3em 0 0.3em 1.4rem; border-left: 3px solid var(--gold); font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 500; line-height: 1.45; letter-spacing: -0.015em; color: var(--ink-text); }
.prose blockquote p + p { margin-top: 0.6em; }
.prose img { border-radius: 16px; margin-block: 2em; }
.prose figure img { margin-block: 0; }
.prose figure { margin-block: 2em; }
.prose figcaption { margin-top: 0.7rem; font-size: 0.88rem; color: var(--muted-paper); text-align: center; }
.prose hr { border: 0; height: 1px; background: var(--paper-line); margin: 2.6em 0; }
.prose code { font-size: 0.9em; background: var(--paper-2); padding: 0.15em 0.4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--cream); padding: 1.3rem; border-radius: 16px; overflow-x: auto; font-size: 0.9rem; }
.prose pre code { background: none; padding: 0; color: inherit; }
.table-wrap { overflow-x: auto; margin-block: 2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.prose th { text-align: left; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-paper); padding: 0.8rem 1rem 0.8rem 0; border-bottom: 2px solid var(--ink-text); }
.prose td { padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
.section--paper .prose { margin-inline: auto; }
.section--paper .prose > p:first-of-type { font-size: inherit; font-weight: 400; }

/* ---------- Animazioni di comparsa ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* In apertura pagina l'animazione parte subito, senza aspettare lo scroll */
.js :is(.hero, .page-hero, .post-hero) [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0s) + 0.05s); }
/* Solo movimento, niente opacità: il contenuto in apertura è visibile anche se l'animazione non parte */
@keyframes rise { from { transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__list { gap: 1.2rem; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat { padding-bottom: 2rem; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .post-layout { grid-template-columns: 190px minmax(0, 680px); }
  .proof__list { grid-template-columns: repeat(2, 1fr); }
  .proof__list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof__list li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .site-footer__top { grid-template-columns: repeat(4, 1fr); }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .burger { display: block; }
  .nav__social { display: flex; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 2rem;
    padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity 0.4s var(--ease), transform 0.5s var(--ease), visibility 0s 0.5s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
  .nav-open { overflow: hidden; }
  .nav__list { flex-direction: column; gap: 0.2rem; }
  .nav__link { font-size: clamp(1.9rem, 7vw, 2.6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; color: var(--cream); }
  .nav__link[aria-current] { color: var(--gold); }
  .nav__link[aria-current]::after { display: none; }
  .nav__aside { width: 100%; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-top: 1.6rem; border-top: 1px solid var(--line); }
  .hero__layout, .spotlight__grid, .founder__grid, .two-col, .two-col--wide, .process, .faq, .contact, .case-card { grid-template-columns: 1fr; }
  .process__head { position: static; }
  .founder__photo { max-width: 480px; }
  .founder__photo--sticky { position: relative; top: 0; }
  .post-grid, .post-grid:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, 1fr); }
  .post-feature__link { grid-template-columns: 1fr; }
  .post-layout { grid-template-columns: minmax(0, 720px); }
  .post-aside { display: none; }
  .expertise { grid-template-columns: repeat(2, 1fr); }
  .brand-grid--big { grid-template-columns: 1fr; }
  .split-head { grid-template-columns: 1fr; }
  .split-head--end { grid-template-columns: 1fr auto; }
  .cta-steps { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 1rem; }
  .brand img { height: 32px; }
  .hero { min-height: auto; }
  .svc { grid-template-columns: 1fr; gap: 0.6rem; }
  .svc__num { padding-top: 0; }
  .svc__go { justify-self: start; margin-top: 0.4rem; }
  .cards-3, .cards-4, .post-grid, .post-grid:has(> :nth-child(2):last-child), .expertise { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 1.8rem 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line); }
  .proof__list { grid-template-columns: 1fr; }
  .proof__list li, .proof__list li + li { padding: 1.1rem 0; border-left: 0; }
  .proof__list li + li { border-top: 1px solid var(--line); }
  .brand-tile--big { flex-direction: column; }
  .brand-tile--big .brand-tile__logo { width: 100%; }
  .brand-tile--big .brand-tile__body { border-left: 0; border-top: 1px solid rgba(0, 0, 0, 0.08); }
  .site-footer__top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
  .form__row { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 0.3rem; }
  .timeline__where { text-align: left; }
  .split-head--end { grid-template-columns: 1fr; }
  .byline__lang { margin-left: 0; }
  .prose { font-size: 1.05rem; }
  .prose > p:first-of-type { font-size: 1.14rem; }
  .cta-block__row .btn { width: 100%; }
}

@media (max-width: 460px) {
  .brand-grid { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .clock__time { font-size: 1.8rem; }
}

@media print {
  .site-header, .site-footer, .lang-toast, .post-aside, .share, .cta-block, .related, body::after { display: none !important; }
  body, .post-main { background: #fff; color: #000; }
}

/* ---------- Statistiche Sony sotto il fondatore ---------- */
.founder-stats { margin: 1.8rem 0 0.4rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.founder-stats__label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.founder-stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.founder-stats__n { font-size: clamp(2rem, 3vw, 2.7rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; color: var(--gold); margin-bottom: 0.5rem; }
.founder-stats__t { font-size: 0.86rem; line-height: 1.45; color: var(--muted); }

/* ---------- Holding compatta in home ---------- */
.brand-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.brand-strip a { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 1rem 0.8rem 0.8rem; border-radius: 18px; background: rgba(255, 255, 255, 0.6); border: 1px solid var(--paper-line); transition: border-color 0.3s, transform 0.4s var(--ease), background-color 0.3s; }
.brand-strip a:hover { border-color: var(--gold-deep); background: #fff; transform: translateY(-3px); }
.brand-strip img { width: 56px; height: 56px; border-radius: 12px; object-fit: contain; flex: none; }
.brand-strip span { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--muted-paper); line-height: 1.35; flex: 1; min-width: 0; }
.brand-strip strong { font-size: 1rem; font-weight: 600; color: var(--ink-text); }
.brand-strip .ico { color: var(--gold-deep); flex: none; }

/* ---------- Storia + foto (About) ---------- */
.story { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.story .h2 { margin-bottom: 1.8rem; }
.story__photo { max-width: 440px; justify-self: end; }
.story__photo img { width: 100%; border-radius: 24px; aspect-ratio: 1 / 1; object-fit: cover; }
.story__photo figcaption { margin-top: 0.8rem; font-size: 0.88rem; color: var(--muted); }

/* Home: meno spazio intorno alla frase introduttiva */
.intro { padding: clamp(64px, 7vw, 100px) 0 0; }
.intro + .services { padding-top: clamp(64px, 7vw, 100px); }

.footer-col__email { margin-top: 0.7rem; }
.contact__email { color: var(--gold); font-weight: 600; word-break: break-all; }

@media (max-width: 1180px) { .brand-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .founder-stats__grid { grid-template-columns: 1fr; gap: 1rem; }
  .founder-stats__grid > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.8rem; align-items: baseline; }
  .brand-strip { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; }
  .story__photo { justify-self: start; max-width: 100%; }
}

/* ---------- Solo desktop: spazi verticali più compatti (il mobile resta invariato) ---------- */
@media (min-width: 1101px) {
  .hero { min-height: min(100svh, 790px); }
  .section { padding: clamp(84px, 7.2vw, 108px) 0; }
  .section--tight { padding: clamp(48px, 5vw, 72px) 0; }
  .intro { padding: 88px 0 0; }
  .intro + .services { padding-top: 88px; }
  .group-teaser { padding: 88px 0; }
  .cta-block { padding: 104px 0 112px; }
  .case-card { margin-top: 72px; }
  .sec-head, .split-head { margin-bottom: 2.8rem; }
  .page-hero { padding-bottom: 72px; }
}

/* ---------- Perpi Ltd in breve (About) ---------- */
.facts { padding: clamp(1.8rem, 3.5vw, 2.8rem); border-radius: 26px; background: var(--ink-2); border: 1px solid var(--line); }
.facts__title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 1.6rem; }
.facts__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 2rem; margin: 0 0 1.4rem; }
.facts__list div { padding: 1rem 0; border-top: 1px solid var(--line); }
.facts__list dt { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.35rem; }
.facts__list dd { margin: 0; color: var(--cream); line-height: 1.45; }
@media (max-width: 1020px) { .facts__list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .facts__list { grid-template-columns: 1fr; } }

/* Frase introduttiva: ogni affermazione su una riga propria, bilanciata e con un po' di respiro */
.statement__line { display: block; text-wrap: balance; }
.statement__line + .statement__line { margin-top: 0.45em; }
