/* ==========================================================================
   Girotti & Partners — foglio di stile principale
   Stile: svizzero editoriale. Griglia rigorosa, bianco/nero + bordeaux del marchio,
   titoli in Cormorant Garamond, testi e interfaccia in Inter.
   ========================================================================== */

/* Font (ospitati sul sito: nessuna chiamata a Google, conforme GDPR) ------------ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-var.woff2") format("woff2");
  font-weight: 300 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/static/fonts/cormorant-garamond-italic-var.woff2") format("woff2");
  font-weight: 300 700; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
/* Font di ripiego con metriche adattate: riduce lo spostamento del layout (CLS) */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 107.6%; ascent-override: 90%; descent-override: 22.4%; line-gap-override: 0%; }
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"), local("Times New Roman"); size-adjust: 84%; ascent-override: 110%; descent-override: 34%; line-gap-override: 0%; }

/* Token --------------------------------------------------------------------- */
:root {
  --paper: #FFFFFF;
  --paper-2: #F4F3F0;
  --ink: #0B0B0C;
  --ink-2: #3F3F3F;          /* grigio del logo */
  --muted: #676767;          /* 5.6:1 su bianco */
  --line: #E4E2DD;
  --line-2: #CBC8C1;
  --brand: #830D1A;          /* bordeaux del logo, 10.3:1 su bianco */
  --brand-ink: #640914;
  --brand-soft: #F7EDEE;
  --dark: #0E0E0F;
  --on-dark: #F2F0EC;
  --on-dark-2: #A9A6A0;      /* 7.9:1 su --dark */
  --line-dark: #2B2B2D;
  --brand-on-dark: #E07A86;  /* 6.1:1 su --dark */
  --word-muted: #CAC7C0;

  --serif: "Cormorant Garamond", "Cormorant Fallback", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1520px;
  --gap: clamp(16px, 2.2vw, 32px);
  --sec: clamp(88px, 11vw, 184px);
  --hdr: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  --fs-xs: .75rem;
  --fs-s: .875rem;
  --fs-b: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  --fs-h2: clamp(2.35rem, 1.45rem + 3.4vw, 4.75rem);
  --fs-dm: clamp(2.5rem, 1.6rem + 3.8vw, 5rem);
  --fs-dl: clamp(2.9rem, 1.4rem + 6vw, 7.75rem);
  --fs-dxl: clamp(3rem, .9rem + 8.6vw, 10.75rem);
}
@media (min-width: 1024px) { :root { --hdr: 80px; } }

/* Base ----------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--fs-b)/1.6 var(--sans); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
p, li, dd { text-wrap: pretty; }
@media (prefers-reduced-motion: no-preference) { html:not(.lenis) { scroll-behavior: smooth; } }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.is-dark :focus-visible, .ftr :focus-visible { outline-color: var(--on-dark); }
main:focus { outline: none; }
[hidden] { display: none !important; }

.skip { position: fixed; left: 16px; top: -120px; z-index: 1000; background: var(--ink); color: #fff; padding: 14px 18px; font-weight: 500; }
.skip:focus { top: 16px; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap--text { width: min(100% - 2 * var(--gutter), 800px); }

/* Tipografia ------------------------------------------------------------------ */
.display {
  display: block; font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: var(--fs-dl); line-height: .96; letter-spacing: -.018em;
}
.display--xl { font-size: var(--fs-dxl); line-height: .9; letter-spacing: -.028em; }
.display--l { font-size: var(--fs-dl); }
.display--m { font-size: var(--fs-dm); line-height: 1; }
.display em, .h2 em { font-style: italic; color: var(--brand); }
.ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.ln__i { display: block; will-change: transform; }

.h2 {
  font-family: var(--serif); font-weight: 500; font-size: var(--fs-h2);
  line-height: 1.02; letter-spacing: -.016em; max-width: 17ch; text-wrap: balance;
}
.eyebrow, .label {
  font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow { display: block; }
.label { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.label__n { color: var(--brand); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 14px; }
.label__n::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 42ch; letter-spacing: -.008em; }

.is-dark { background: var(--dark); color: var(--on-dark); }
.is-dark .display, .is-dark .h2 { color: var(--on-dark); }
.is-dark .display em, .is-dark .h2 em { color: var(--brand-on-dark); }
.is-dark .label, .is-dark .eyebrow { color: var(--on-dark-2); }
.is-dark .label__n { color: var(--brand-on-dark); }
.is-dark .lead, .is-dark .prose p { color: var(--on-dark-2); }

/* Icone, bottoni, link ----------------------------------------------------------- */
.ico { width: 18px; height: 18px; flex: none; }
.btn {
  --fill: var(--ink);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 22px 0 26px;
  font: 500 .9375rem/1 var(--sans); letter-spacing: 0; white-space: nowrap;
  border: 1px solid var(--fill);
  transition: color .6s var(--ease-out), border-color .6s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; background: var(--fill);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .6s var(--ease-out);
}
.btn .ico { transition: transform .6s var(--ease-out); }
.btn:hover::before { transform: scaleY(1); }
.btn:hover .ico { transform: translateX(4px); }
.btn--solid { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn--solid:hover { border-color: var(--ink); }
.btn--line { color: var(--ink); }
.btn--line:hover { color: #fff; }
.btn--light { --fill: var(--brand); background: var(--on-dark); border-color: var(--on-dark); color: var(--dark); }
.btn--light:hover { color: #fff; border-color: var(--brand); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .875rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 0 10px;
  font: 500 .9375rem/1.2 var(--sans); position: relative;
}
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 30px; bottom: 4px; height: 1px; background: currentColor;
  transform-origin: 0 50%; transition: transform .6s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(.4); }
.link-arrow .ico { transition: transform .6s var(--ease-out); }
.link-arrow:hover .ico { transform: translateX(6px); }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .6s var(--ease-out); padding-bottom: 2px; }
.link-u:hover { background-size: 0 1px; background-position: 100% 100%; }

.todo {
  display: inline-block; padding: 0 .35em; background: var(--brand-soft); color: var(--brand);
  font: 500 .82em/1.5 var(--sans); font-style: normal; letter-spacing: 0; text-transform: none; white-space: nowrap;
}
.is-dark .todo, .ftr .todo { background: rgba(224, 122, 134, .14); color: var(--brand-on-dark); }

/* Header ------------------------------------------------------------------------ */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--hdr);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: transform .7s var(--ease-out), border-color .4s linear;
  view-transition-name: hdr;
}
.hdr.is-scrolled { border-bottom-color: var(--line); }
.hdr.is-hidden { transform: translateY(-101%); }
.menu-open .hdr { background: var(--paper); border-bottom-color: var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); }
.hdr__logo { display: flex; align-items: center; gap: 14px; margin-right: auto; min-height: 44px; }
.hdr__mono { width: auto; height: 30px; }
.hdr__sep { width: 1px; height: 26px; background: var(--line-2); }
.hdr__word { width: auto; height: 11px; }
.hdr__nav ul { display: flex; gap: clamp(18px, 2.2vw, 38px); }
.hdr__nav a { position: relative; display: block; padding: 12px 0; font: 500 .875rem/1 var(--sans); color: var(--ink-2); transition: color .3s; }
.hdr__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: 100% 50%; transition: transform .6s var(--ease-out);
}
.hdr__nav a:hover, .hdr__nav a.is-active { color: var(--ink); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }
.hdr__tools { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.hdr__lang { display: grid; place-items: center; min-width: 44px; min-height: 44px; font: 500 .8125rem/1 var(--sans); letter-spacing: .1em; color: var(--ink-2); transition: color .3s; }
.hdr__lang:hover { color: var(--brand); }
.hdr__burger { display: none; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px 0 8px; font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.hdr__burger-i { position: relative; width: 24px; height: 10px; }
.hdr__burger-i i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .6s var(--ease-out), top .6s var(--ease-out); }
.hdr__burger-i i:first-child { top: 0; }
.hdr__burger-i i:last-child { top: 8px; }
.menu-open .hdr__burger-i i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .hdr__burger-i i:last-child { top: 4px; transform: rotate(-45deg); }
@media (max-width: 1023.98px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
}
@media (max-width: 599.98px) {
  .hdr__lang { display: none; }
  .hdr__word { height: 9px; }
  .hdr__mono { height: 26px; }
  .hdr__logo { gap: 11px; }
}

/* Menu mobile --------------------------------------------------------------------- */
.menu { position: fixed; inset: 0; z-index: 90; background: var(--paper); padding-top: var(--hdr); overflow-y: auto; overscroll-behavior: contain; }
.menu__in { display: grid; gap: 40px; padding-block: clamp(24px, 5vh, 64px) 56px; }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 18px; padding: 12px 0 10px; }
.menu__n { min-width: 26px; font: 500 .75rem/1 var(--sans); letter-spacing: .1em; color: var(--brand); }
.menu__t { font: 500 clamp(2.3rem, 8.5vw, 4.25rem)/1.08 var(--serif); letter-spacing: -.012em; transition: color .3s, transform .6s var(--ease-out); }
.menu__list a:hover .menu__t { color: var(--brand); transform: translateX(8px); }
.menu__side { display: grid; gap: 12px; align-content: start; color: var(--ink-2); font-size: .9375rem; }
.menu__h { margin-top: 14px; font: 500 .75rem/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.menu__serv li a { display: block; padding: 7px 0; }
.menu__serv a:hover, .menu__lang a:hover { color: var(--brand); }
.menu__lang a { display: inline-block; padding: 10px 0; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--ink); }
@media (min-width: 640px) { .menu__serv { columns: 2; column-gap: 32px; } .menu__serv li { break-inside: avoid; } }

/* Hero (home) ------------------------------------------------------------------ */
.hero { position: relative; isolation: isolate; padding-top: calc(var(--hdr) + clamp(40px, 9vh, 112px)); }
.hero__grid { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: none; }
@media (min-width: 768px) { .hero__grid { display: block; } }
.hero__grid .wrap { height: 100%; display: flex; justify-content: space-between; }
.hero__grid i { width: 1px; height: 100%; background: var(--line); transform-origin: 50% 0; opacity: .75; }
.hero__grid i:nth-child(2), .hero__grid i:nth-child(4) { display: none; }
@media (min-width: 1024px) { .hero__grid i:nth-child(2), .hero__grid i:nth-child(4) { display: block; } }
.hero__title { display: block; font-weight: 500; }
.hero__eyebrow { margin-bottom: clamp(22px, 3vw, 44px); }
.hero__top { display: grid; gap: clamp(28px, 4vw, 56px); }
.hero__aside { display: grid; gap: 30px; max-width: 580px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cue { display: none; align-items: center; gap: 16px; align-self: end; font: 500 var(--fs-xs)/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.hero__cue:hover { color: var(--brand); }
.hero__cue-l { position: relative; width: 1px; height: 64px; overflow: hidden; background: var(--line-2); }
.hero__cue-l i { position: absolute; left: 0; top: 0; width: 1px; height: 45%; background: var(--brand); animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue { from { transform: translateY(-100%); } to { transform: translateY(230%); } }
@media (min-width: 1024px) {
  .hero__top { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .hero__title { grid-column: 1 / -1; }
  .hero__cue { display: inline-flex; grid-column: 1 / 5; }
  .hero__aside { grid-column: 7 / 13; }
}
@media (min-width: 1280px) { .hero__aside { grid-column: 8 / 13; } }
.hero__mediawrap { margin-top: clamp(56px, 8vw, 120px); }
.media--hero { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .media--hero { aspect-ratio: 21 / 9; } }
.caption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px;
  font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}

/* Media ---------------------------------------------------------------------- */
.media { position: relative; overflow: hidden; background: var(--paper-2); }
.media__in { position: absolute; inset: -7% 0; }
.media .pic, .media img { width: 100%; height: 100%; object-fit: cover; }
.band { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.band--article { margin-block: clamp(32px, 5vw, 72px) clamp(40px, 5vw, 72px); }
.media--band { aspect-ratio: 4 / 3; }
@media (min-width: 768px) { .media--band { aspect-ratio: 16 / 7; } }
.media--tall { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; margin-top: clamp(32px, 4vw, 56px); }

/* Marquee --------------------------------------------------------------------- */
.marquee { overflow: hidden; margin-top: clamp(64px, 9vw, 128px); padding: 26px 0; border-block: 1px solid var(--line); white-space: nowrap; }
.marquee__track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee__group > span:not(.marquee__dot) { font: italic 500 clamp(1.5rem, 1rem + 1.6vw, 2.5rem)/1 var(--serif); letter-spacing: -.005em; }
.marquee__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* Sezioni ----------------------------------------------------------------------- */
.sec { padding-block: var(--sec); }
.sec--tight { padding-block: calc(var(--sec) * .6); }
.sec--top0 { padding-top: 0; }
.sec--tint { background: var(--paper-2); }
.sec-head { display: grid; gap: 4px; margin-bottom: clamp(40px, 5.5vw, 88px); }
.sec-head .label { margin-bottom: clamp(16px, 2vw, 28px); }
.sec-head--row { align-items: end; }
@media (min-width: 1024px) {
  .sec-head--row { grid-template-columns: 1fr auto; column-gap: 48px; }
  .sec-head--row .label { grid-column: 1 / -1; }
}
.sec-foot { margin-top: clamp(40px, 5vw, 64px); }
.split { display: grid; gap: clamp(32px, 5vw, 80px); }
@media (min-width: 1024px) {
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .split > :first-child { grid-column: 1 / 5; }
  .split > :last-child { grid-column: 5 / 13; }
  .split--media { align-items: center; }
  .split--media > :first-child { grid-column: 1 / 6; }
  .split--media > :last-child { grid-column: 7 / 13; }
}
.split--top { margin-top: var(--sec); }

/* Statement ------------------------------------------------------------------- */
.statement__text {
  font: 500 clamp(1.95rem, 1.05rem + 3vw, 4.25rem)/1.12 var(--serif); letter-spacing: -.012em;
  max-width: 1180px; margin-bottom: clamp(32px, 4vw, 56px); text-wrap: pretty;
}
.w { transition: none; }

/* Numeri ---------------------------------------------------------------------- */
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 24px; }
@media (min-width: 1024px) { .stats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--gap); } }
.stat { border-top: 1px solid var(--line-dark); padding-top: 26px; }
.stat__n { font: 500 clamp(3rem, 1.9rem + 4.4vw, 6.5rem)/1 var(--serif); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.stat__suf { display: inline-block; margin-left: .04em; font-size: .5em; vertical-align: .72em; color: var(--brand-on-dark); }
.stat__l { margin-top: 18px; font-size: .9375rem; line-height: 1.5; color: var(--on-dark-2); max-width: 26ch; }

/* Indice aree -------------------------------------------------------------------- */
.idx { border-top: 1px solid var(--line); }
.idx__row a {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 44px; gap: 10px 16px; align-items: baseline;
  padding: 26px 0 28px; border-bottom: 1px solid var(--line);
}
.idx__n { font: 500 .8125rem/1 var(--sans); color: var(--brand); font-variant-numeric: tabular-nums; }
.idx__t { font: 500 clamp(1.6rem, 1.05rem + 1.9vw, 2.9rem)/1.08 var(--serif); letter-spacing: -.012em; transition: transform .7s var(--ease-out), color .4s; }
.idx__d { grid-column: 2; color: var(--muted); font-size: .9375rem; line-height: 1.5; max-width: 50ch; }
.idx__a {
  grid-column: 3; grid-row: 1; align-self: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; transition: background-color .5s var(--ease-out), border-color .5s, color .5s;
}
.idx__row a:hover .idx__t { transform: translateX(14px); color: var(--brand); }
.idx__row a:hover .idx__a { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 1024px) {
  .idx__row a { grid-template-columns: 80px minmax(0, 1.35fr) minmax(0, 1fr) 56px; column-gap: var(--gap); padding: 34px 0 36px; }
  .idx__d { grid-column: 3; grid-row: 1; align-self: center; }
  .idx__a { grid-column: 4; justify-self: end; }
}
.idx__float {
  position: fixed; left: 0; top: 0; z-index: 60; width: clamp(220px, 16vw, 290px); aspect-ratio: 4 / 5; box-shadow: 0 30px 60px -30px rgba(11, 11, 12, .45);
  overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; background: var(--paper-2);
}
.idx__float img { width: 100%; height: 100%; object-fit: cover; }

/* Metodo -------------------------------------------------------------------------- */
.method__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .method__grid { grid-template-columns: 5fr 7fr; gap: var(--gap) clamp(48px, 7vw, 120px); } }
.method__sticky { position: sticky; top: calc(var(--hdr) + 48px); }
.method__bar { display: none; position: relative; width: 1px; height: 180px; margin-top: 48px; background: var(--line); }
.method__bar i { position: absolute; inset: 0; background: var(--brand); transform: scaleY(0); transform-origin: 50% 0; }
.method.is-scrolly .method__bar { display: block; }
.method__item { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; padding: 40px 0 44px; border-top: 1px solid var(--line); transition: opacity .6s var(--ease-out); }
.method__n { grid-row: 1 / 3; font: 500 .8125rem/2.4 var(--sans); color: var(--brand); }
.method__t { font: 500 clamp(1.9rem, 1.3rem + 1.9vw, 3.1rem)/1.05 var(--serif); letter-spacing: -.012em; margin-bottom: 14px; }
.method__item p { color: var(--ink-2); max-width: 46ch; }
.method.is-scrolly .method__item { min-height: 34vh; opacity: .22; }
.method.is-scrolly .method__item.is-active { opacity: 1; }

/* Internazionale --------------------------------------------------------------------- */
.intl__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .intl__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: center; } .intl__media { grid-column: 1 / 6; } .intl__body { grid-column: 7 / 13; } }
.intl .media { aspect-ratio: 4 / 5; background: #1a1a1b; }
.intl__text { margin: 28px 0 36px; font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-2); max-width: 48ch; }
.ticks { margin-bottom: 36px; }
.ticks li { position: relative; padding: 15px 0 15px 34px; border-top: 1px solid var(--line); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.62em; width: 18px; height: 1px; background: var(--brand); }
.is-dark .ticks li { border-color: var(--line-dark); }
.is-dark .ticks li::before { background: var(--brand-on-dark); }
.ticks--lg li { font-size: 1.0625rem; padding-block: 18px; }

/* Persone ------------------------------------------------------------------------ */
.people { display: grid; gap: 48px var(--gap); }
@media (min-width: 640px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .people { grid-template-columns: repeat(3, 1fr); } }
.person a { display: block; }
.person__ph {
  position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 24px;
  background: var(--paper-2);
}
.people--sm .person__ph { aspect-ratio: 5 / 4; }
.person__ph .pic, .person__ph img { width: 100%; height: 100%; object-fit: cover; }
.person__ini { font: italic 500 clamp(4.2rem, 3rem + 4vw, 7.5rem)/1 var(--serif); letter-spacing: -.03em; color: var(--brand); transition: transform 1s var(--ease-out); }
.people--sm .person__ini { font-size: clamp(3.2rem, 2.4rem + 3vw, 5.5rem); }
.person__ph:not(:has(.pic))::after { content: ""; position: absolute; inset: clamp(10px, 1.2vw, 16px); border: 1px solid rgba(131, 13, 26, .16); pointer-events: none; transition: inset .9s var(--ease-out), border-color .6s; }
.person a:hover .person__ph:not(:has(.pic))::after { inset: clamp(16px, 1.8vw, 24px); border-color: rgba(131, 13, 26, .32); }
.person a:hover .person__ini { transform: scale(1.07); }
.person__role { font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.person__name { margin: 10px 0 6px; font: 500 clamp(1.85rem, 1.4rem + 1.2vw, 2.6rem)/1.08 var(--serif); letter-spacing: -.01em; transition: color .4s; }
.person a:hover .person__name { color: var(--brand); }
.person__tit { color: var(--muted); font-size: .9375rem; }
.person__more { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-weight: 500; font-size: .9375rem; }
.person__more .ico { transition: transform .6s var(--ease-out); }
.person a:hover .person__more .ico { transform: translateX(6px); }

/* Card insights ------------------------------------------------------------------ */
.cards { display: grid; gap: 56px var(--gap); }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card a { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); margin-bottom: 6px; }
.card__img img, .card__img .pic { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card a:hover .card__img img { transform: scale(1.05); }
.card__meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 16px; border-top: 1px solid var(--ink);
  font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.card__meta > :first-child { color: var(--brand); }
.card__t { font: 500 clamp(1.55rem, 1.2rem + 1vw, 2.1rem)/1.14 var(--serif); letter-spacing: -.008em; text-wrap: balance; transition: color .4s; }
.card a:hover .card__t { color: var(--brand); }
.card__s { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.card__by { margin-top: auto; padding-top: 6px; font-size: .875rem; color: var(--muted); }
@media (min-width: 1024px) {
  .cards--list .card--big { grid-column: 1 / -1; }
  .card--big a { display: grid; grid-template-columns: 7fr 5fr; column-gap: var(--gap); align-content: start; }
  .card--big .card__img { grid-row: 1 / 6; aspect-ratio: 16 / 10; margin: 0; }
  .card--big .card__t { font-size: clamp(2rem, 1.4rem + 1.5vw, 3rem); }
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(40px, 5vw, 64px); }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); font: 500 .875rem/1 var(--sans); transition: background-color .4s, color .4s, border-color .4s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cards__empty { color: var(--muted); }

/* Hero pagine interne ------------------------------------------------------------ */
.phero { padding-top: calc(var(--hdr) + clamp(28px, 5vw, 80px)); padding-bottom: clamp(48px, 6vw, 104px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-bottom: clamp(36px, 5vw, 72px); font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 10px; color: var(--line-2); }
.crumbs a { transition: color .3s; }
.crumbs a:hover { color: var(--brand); }
.crumbs li[aria-current] { color: var(--ink-2); }
.phero__eyebrow { margin-bottom: clamp(20px, 2.4vw, 32px); }
.phero__row { display: grid; gap: 24px; margin-top: clamp(28px, 4vw, 64px); }
.phero__num { font: 500 .8125rem/1 var(--sans); letter-spacing: .12em; color: var(--muted); font-variant-numeric: tabular-nums; }
.phero__num span { color: var(--brand); }
@media (min-width: 1024px) {
  .phero__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; }
  .phero__lead { grid-column: 6 / 12; }
  .phero__num { grid-column: 1 / 5; grid-row: 1; padding-top: .6em; }
  .phero__row .hero__ctas { grid-column: 6 / 12; }
}
.phero--legal { padding-bottom: clamp(32px, 4vw, 56px); }

/* Pagina aree ------------------------------------------------------------------- */
.svcs { display: grid; border-top: 1px solid var(--line); }
@media (min-width: 768px) { .svcs { grid-template-columns: 1fr 1fr; } }
.svc a { display: flex; flex-direction: column; gap: 16px; height: 100%; padding: 36px 0 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) {
  .svc:nth-child(odd) a { padding-right: clamp(24px, 4vw, 64px); border-right: 1px solid var(--line); }
  .svc:nth-child(even) a { padding-left: clamp(24px, 4vw, 64px); }
}
.svc__n { font: 500 .8125rem/1 var(--sans); color: var(--brand); }
.svc__t { font: 500 clamp(1.8rem, 1.3rem + 1.4vw, 2.7rem)/1.06 var(--serif); letter-spacing: -.012em; max-width: 18ch; transition: color .4s; }
.svc__d { color: var(--ink-2); max-width: 46ch; }
.svc__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-weight: 500; font-size: .9375rem; }
.svc__more .ico { transition: transform .6s var(--ease-out); }
.svc a:hover .svc__t { color: var(--brand); }
.svc a:hover .svc__more .ico { transform: translateX(6px); }

/* Pagina servizio ------------------------------------------------------------------ */
.acts { display: grid; column-gap: clamp(24px, 5vw, 96px); }
@media (min-width: 768px) { .acts { grid-template-columns: 1fr 1fr; } }
.act { display: grid; grid-template-columns: 44px 1fr; gap: 8px 16px; padding: 30px 0 36px; border-top: 1px solid var(--line); }
.act__n { grid-row: 1 / 3; font: 500 .8125rem/1.9 var(--sans); color: var(--brand); }
.act__t { font: 600 1.125rem/1.4 var(--sans); letter-spacing: -.01em; }
.act p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.approach { font: 500 clamp(1.55rem, 1.2rem + 1.1vw, 2.25rem)/1.28 var(--serif); letter-spacing: -.008em; max-width: 30ch; margin-bottom: 32px; }
.faq { border-top: 1px solid var(--line); }
.faq__i { border-bottom: 1px solid var(--line); }
.faq__i summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: 26px 0;
  font: 500 1.125rem/1.45 var(--sans); letter-spacing: -.01em; cursor: pointer; list-style: none; transition: color .3s;
}
.faq__i summary::-webkit-details-marker { display: none; }
.faq__i summary:hover { color: var(--brand); }
.ico--plus { width: 22px; height: 22px; transition: transform .6s var(--ease-out); }
.faq__i[open] .ico--plus { transform: rotate(45deg); }
.faq__a { padding: 0 48px 30px 0; color: var(--ink-2); max-width: 66ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq__i::details-content { block-size: 0; overflow: hidden; transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete; }
  .faq__i[open]::details-content { block-size: auto; }
}

/* Valori --------------------------------------------------------------------------- */
.values { display: grid; column-gap: var(--gap); }
@media (min-width: 768px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values { grid-template-columns: repeat(3, 1fr); } .values--4 { grid-template-columns: repeat(4, 1fr); } }
.value { padding: 30px 0 48px; border-top: 1px solid var(--ink); }
.value__n { font: 500 .8125rem/1 var(--sans); color: var(--brand); }
.value__t { margin: 36px 0 14px; font: 500 clamp(1.7rem, 1.3rem + 1.1vw, 2.35rem)/1.08 var(--serif); letter-spacing: -.01em; }
.value p { color: var(--ink-2); max-width: 38ch; }

/* Testi lunghi ------------------------------------------------------------------ */
.prose > * + * { margin-top: 1.15em; }
.prose p { color: var(--ink-2); }
.prose--lg p { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); letter-spacing: -.01em; }
.prose--lg p + p { color: var(--ink-2); }
.is-dark .prose p { color: var(--on-dark-2); }
.is-dark .prose { margin: 28px 0 32px; }
.prose--article { font-size: 1.125rem; line-height: 1.75; }
.prose--article p { color: #262626; }
.prose--article > p:first-child::first-letter { float: left; margin: .1em .12em 0 0; font: 500 4.3em/.78 var(--serif); color: var(--brand); }
.readbar { position: fixed; inset: 0 0 auto; z-index: 110; height: 2px; pointer-events: none; }
.readbar i { display: block; height: 100%; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }
.prose--article h2 { margin-top: 2em; font: 500 clamp(1.8rem, 1.4rem + 1vw, 2.45rem)/1.15 var(--serif); letter-spacing: -.01em; }
.prose--article h3 { margin-top: 1.8em; font: 600 1.1875rem/1.4 var(--sans); }
.prose--article ul li { position: relative; padding-left: 30px; }
.prose--article ul li + li { margin-top: .55em; }
.prose--article ul li::before { content: ""; position: absolute; left: 0; top: .9em; width: 14px; height: 1px; background: var(--brand); }
.prose--article ol { list-style: decimal; padding-left: 1.3em; }
.prose--article ol li::marker { color: var(--brand); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote { padding-left: 24px; border-left: 2px solid var(--brand); font: 500 1.5rem/1.4 var(--serif); }
.credits { columns: 2; column-gap: 32px; font-size: .9375rem; }
.credits li { padding: 4px 0; break-inside: avoid; }
.note { margin-top: 48px; padding: 20px 24px; background: var(--paper-2); font-size: .875rem; line-height: 1.6; color: var(--muted); }

/* Profilo -------------------------------------------------------------------------- */
.profile { padding-top: calc(var(--hdr) + clamp(28px, 5vw, 80px)); padding-bottom: clamp(24px, 3vw, 48px); }
.profile__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .profile__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; } .profile__ph { grid-column: 1 / 5; } .profile__main { grid-column: 6 / 13; } }
.profile__ph { margin: 0; max-width: 520px; }
.profile__main .eyebrow { color: var(--brand); margin-bottom: 20px; }
.profile__main .lead { margin-top: 26px; }
.profile__contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; font-size: .9375rem; }
.profile__li { display: inline-flex; align-items: center; gap: 8px; }

/* Profilo senza foto: iniziali compatte, così nome e curriculum sono subito visibili */
.profile--nophoto .profile__grid { align-items: end; }
.profile--nophoto .profile__ph { width: clamp(84px, 11vw, 168px); aspect-ratio: 1; max-width: none; }
.profile--nophoto .person__ini { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.8rem); }
.profile--nophoto .person__ph::after { inset: clamp(6px, .8vw, 10px); }
@media (min-width: 1024px) {
  .profile--nophoto .profile__grid { grid-template-columns: auto minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); }
  .profile--nophoto .profile__ph, .profile--nophoto .profile__main { grid-column: auto; }
}

/* Curriculum */
.cv__row { display: grid; gap: 20px; padding: clamp(36px, 4.5vw, 64px) 0; border-top: 1px solid var(--line); }
.cv__row:first-child { padding-top: 0; border-top: 0; }
.cv__row .label { margin-bottom: 0; }
@media (min-width: 1024px) {
  .cv__row { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
  .cv__k { grid-column: 1 / 5; }
  .cv__v { grid-column: 5 / 13; }
}
.cv .ticks { margin-bottom: 0; }
.tl li { display: grid; grid-template-columns: 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.tl li:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .tl li { grid-template-columns: 150px minmax(0, 1fr); } }
.tl__when { font: 500 var(--fs-xs)/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.tl__what { font-size: 1.0625rem; line-height: 1.55; color: var(--ink); }
.cv-links li a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; border-top: 1px solid var(--line); font: 500 clamp(1.35rem, 1.15rem + .6vw, 1.7rem)/1.2 var(--serif); transition: color .4s; }
.cv-links li:last-child a { border-bottom: 1px solid var(--line); }
.cv-links .ico { transition: transform .6s var(--ease-out); }
.cv-links a:hover { color: var(--brand); }
.cv-links a:hover .ico { transform: translateX(6px); }

/* Elenco professionisti */
.prows { border-top: 1px solid var(--line); }
.prow a { display: grid; grid-template-columns: 72px minmax(0, 1fr) 44px; gap: 12px 20px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.prow__ph.person__ph { width: 100%; aspect-ratio: 1; margin: 0; }
.prow__ph .person__ini { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 3.4rem); }
.prow__ph.person__ph::after { inset: clamp(5px, .6vw, 10px); }
.prow__name { margin: 8px 0 6px; font: 500 clamp(1.9rem, 1.25rem + 2.3vw, 3.7rem)/1.04 var(--serif); letter-spacing: -.016em; transition: color .4s, transform .7s var(--ease-out); }
.prow__comp { display: none; }
.prow__a { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: background-color .5s var(--ease-out), border-color .5s, color .5s; }
.prow a:hover .prow__name { color: var(--brand); transform: translateX(10px); }
.prow a:hover .prow__a { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 1024px) {
  .prow a { grid-template-columns: 168px minmax(0, 1.25fr) minmax(0, 1fr) 56px; column-gap: var(--gap); padding: 40px 0; }
  .prow__comp { display: block; font-size: .9375rem; line-height: 1.5; color: var(--muted); }
  .prow__comp li + li { margin-top: 6px; }
  .prow__a { justify-self: end; }
}

/* Schede senza foto più compatte su smartphone */
@media (max-width: 639.98px) {
  .people .person__ph:not(:has(.pic)) { aspect-ratio: 16 / 9; }
}

/* Articolo ------------------------------------------------------------------------ */
.article__head { padding-top: calc(var(--hdr) + clamp(28px, 5vw, 80px)); }
.h1-article { margin: 22px 0 28px; font: 500 clamp(2.3rem, 1.45rem + 3vw, 4.35rem)/1.04 var(--serif); letter-spacing: -.016em; text-wrap: balance; }
.article__by { margin-top: 22px; font-size: .9375rem; color: var(--muted); }
.article__by a { color: var(--ink); border-bottom: 1px solid var(--line-2); transition: border-color .3s; }
.article__by a:hover { border-color: var(--brand); }
.article .prose--article { margin-top: clamp(24px, 3vw, 40px); }
.draft { display: inline-block; margin-bottom: 20px; padding: 7px 11px; border: 1px dashed var(--brand); color: var(--brand); font: 500 var(--fs-xs)/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; margin: 56px 0 var(--sec); padding-top: 32px; border-top: 1px solid var(--line); }
.author { display: flex; align-items: center; gap: 18px; }
.author__ph { width: 76px; height: 76px; aspect-ratio: 1; margin: 0; }
.author__ph .person__ini { font-size: 1.9rem; }
.author__name { font: 500 1.6rem/1.15 var(--serif); }
.author__name a:hover { color: var(--brand); }

/* Contatti e modulo --------------------------------------------------------------- */
.contact { display: grid; gap: 56px; }
@media (min-width: 1024px) { .contact { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; } .contact__info { grid-column: 1 / 6; } .contact__form { grid-column: 7 / 13; } }
.contact__info { display: grid; gap: 40px; }
.contact__addr { margin-bottom: 8px; font: 500 clamp(1.7rem, 1.35rem + 1vw, 2.35rem)/1.22 var(--serif); letter-spacing: -.008em; }
.contact__dl { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .9375rem; }
.contact__dl dt { color: var(--muted); }
.contact__dl a:hover { color: var(--brand); }
.contact__form { background: var(--paper-2); padding: clamp(24px, 4.5vw, 64px); }
.form__h { margin-bottom: 36px; font: 500 clamp(1.9rem, 1.45rem + 1vw, 2.5rem)/1.1 var(--serif); }
.form__grid { display: grid; gap: 24px; margin-bottom: 36px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font: 500 .8125rem/1.4 var(--sans); color: var(--ink); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 1px 0 0 var(--ink); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.field [aria-invalid="true"] { border-bottom-color: var(--brand); box-shadow: 0 1px 0 0 var(--brand); }
.field__err { margin-top: 8px; font-size: .8125rem; font-weight: 500; color: var(--brand); }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-right: 1.4px solid; border-bottom: 1.4px solid; transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.field select { -webkit-appearance: none; appearance: none; padding-right: 32px; cursor: pointer; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: start; }
.field--check input { width: 22px; height: 22px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--brand); cursor: pointer; }
.field--check label { margin: 0; font-weight: 400; font-size: .875rem; line-height: 1.55; color: var(--ink-2); cursor: pointer; }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__err { grid-column: 2; margin-top: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { margin-top: 20px; font-size: .9375rem; font-weight: 500; }
.form__status.is-ok, .form__done.is-ok { color: #1E5A38; }
.form__done { display: none; margin-top: 20px; font-size: .9375rem; font-weight: 500; }
.form__done:target { display: block; scroll-margin-top: calc(var(--hdr) + 40px); }
.form__done.is-ko { color: var(--brand); }
.form__status.is-ko { color: var(--brand); }

/* CTA -------------------------------------------------------------------------------- */
.cta { padding-block: clamp(96px, 12vw, 208px); }
.cta__in { display: grid; gap: 40px; }
@media (min-width: 1024px) { .cta__in { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; } .cta__title { grid-column: 1 / 8; } .cta__side { grid-column: 9 / 13; } }
.cta__title { max-width: 12ch; }
.cta__side p { max-width: 40ch; margin-bottom: 32px; font-size: var(--fs-lead); line-height: 1.55; color: var(--on-dark-2); }

/* Footer --------------------------------------------------------------------------- */
.ftr { background: var(--dark); color: var(--on-dark-2); padding: clamp(72px, 9vw, 128px) 0 32px; border-top: 1px solid var(--line-dark); font-size: .9375rem; }
.ftr a { color: var(--on-dark); transition: color .3s; }
.ftr a:hover { color: #fff; }
.ftr__list a, .ftr__bottom a, .ftr__net a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease-out), color .3s; }
.ftr__list a:hover, .ftr__bottom a:hover, .ftr__net a:hover { background-size: 100% 1px; }
.ftr__net .link-u { background-size: 100% 1px; }
.ftr__net .link-u:hover { background-size: 0 1px; background-position: 100% 100%; }
.ftr__top { display: grid; gap: 36px; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line-dark); }
@media (min-width: 1024px) { .ftr__top { grid-template-columns: 1fr 1fr; align-items: end; } }
.ftr__brand { display: inline-block; }
.ftr__brand img { width: min(340px, 78vw); height: auto; }
.ftr__claim { font: 500 clamp(1.5rem, 1.2rem + 1vw, 2.15rem)/1.28 var(--serif); color: var(--on-dark); max-width: 26ch; }
.ftr__grid { display: grid; gap: 44px var(--gap); padding-block: clamp(48px, 6vw, 88px); }
@media (min-width: 640px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ftr__grid { grid-template-columns: 1.1fr 1.5fr .8fr 1.2fr; } }
.ftr__h { margin-bottom: 20px; font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-2); }
.ftr__addr { margin-bottom: 14px; color: var(--on-dark); line-height: 1.55; }
.ftr__list li { padding: 5px 0; }
@media (pointer: coarse) { .ftr__list li { padding: 9px 0; } }
.ftr__k { display: inline-block; min-width: 76px; color: var(--on-dark-2); }
.ftr__in { display: inline-flex; align-items: center; gap: 10px; }
.ftr__in .ico { width: 16px; height: 16px; }
.ftr__net { margin-top: 26px; }
.ftr__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; border-top: 1px solid var(--line-dark); font-size: .8125rem; }
.ftr__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.ftr__bottom a { display: inline-block; padding: 6px 0; }

/* Preloader (solo prima visita alla home) ------------------------------------------ */
.pl { display: none; }
.is-pl .pl { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--paper); }
.pl__in { display: grid; justify-items: center; gap: clamp(22px, 3vw, 32px); }
.pl__mono { width: clamp(84px, 11vw, 128px); height: auto; overflow: visible; }
.pl__word { width: auto; height: clamp(9px, 1vw, 12px); opacity: 0; }
.pl__mono path { fill: var(--brand); fill-opacity: 0; stroke: var(--brand); stroke-width: 1.1; vector-effect: non-scaling-stroke; }
.pl__bar { position: absolute; left: 50%; bottom: clamp(40px, 9vh, 88px); width: 132px; height: 1px; overflow: hidden; background: var(--line); transform: translateX(-50%); }
.pl__bar i { position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: 0 50%; }

/* Stati iniziali delle animazioni (solo con JS attivo e senza "riduci movimento") ---- */
.anim [data-rv] { opacity: 0; transform: translate3d(0, 28px, 0); }
.anim .ln__i { transform: translate3d(0, 108%, 0); }
.anim [data-hero-fade] { opacity: 0; transform: translate3d(0, 22px, 0); }
.anim [data-media] { clip-path: inset(100% 0 0 0); }
.anim [data-words] .w { color: var(--word-muted); }
.anim .hero__grid i { transform: scaleY(0); }

/* Smooth scroll (Lenis) ------------------------------------------------------------ */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Transizioni tra pagine (View Transitions, dove supportate) ----------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .55s var(--ease-io) both; }
  ::view-transition-new(root) { animation: vt-in .85s var(--ease-out) both; }
}
@keyframes vt-out { to { opacity: 0; transform: translate3d(0, -2.5vh, 0); } }
@keyframes vt-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }

/* Movimento ridotto ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}

/* Stampa ------------------------------------------------------------------------------ */
@media print {
  .hdr, .menu, .ftr, .cta, .marquee, .pl, .band, .filters, .skip { display: none !important; }
  body { font-size: 11pt; }
  .phero, .article__head, .profile { padding-top: 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
