/* ==========================================================================
   Studio Legale Berillo — Avv. Simone Berillo, Cagliari
   Foglio di stile unico. Progettato da Royaletiger.
   Palette: blu notte del logo (60%) · avorio carta (30%) · oro alloro (10%)
   ========================================================================== */

/* ---------- Font self-hosted (nessuna richiesta a terzi) ---------- */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-garamond-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }

:root {
  /* palette brand */
  --navy: #131a33;
  --navy-2: #1c2441;
  --navy-3: #0d1226;
  --gold: #b8925a;          /* filetti e ornamenti su chiaro */
  --gold-text: #876532;     /* testo oro su avorio (AA) */
  --gold-light: #d9be8a;    /* oro su blu notte */
  --accent: #cfae72;        /* SOLO azioni: bottoni principali */
  --accent-hover: #e0c58f;

  /* neutri */
  --ink: #141a30;
  --text: #3a3f52;
  --muted: #646979;
  --bg: #faf7f1;
  --bg-alt: #f2ede3;
  --paper: #ffffff;
  --line: #e3dbca;
  --on-dark: #f3eee4;
  --on-dark-muted: #c3c3cb;
  --line-dark: rgba(217, 190, 138, .22);

  /* tipografia */
  --font-display: 'Cormorant Garamond', 'Cormorant', Garamond, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* sistema */
  --shadow-sm: 0 2px 10px rgba(19, 26, 51, .06);
  --shadow-md: 0 14px 40px rgba(19, 26, 51, .10);
  --shadow-lg: 0 30px 70px rgba(13, 18, 38, .28);
  --radius: 2px;
  --container: 1240px;
  --nav-h: 88px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Reset essenziale ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -.005em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
::selection { background: var(--gold-light); color: var(--navy); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--navy); padding: .7rem 1.1rem; font-weight: 600; font-size: .85rem;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.container-narrow { max-width: 860px; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--navy); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }

/* ---------- Tipografia di sistema ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase; color: var(--gold-text);
  margin: 0 0 1.4rem;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow, .cta-banner .eyebrow { color: var(--gold-light); }
.eyebrow-center { justify-content: center; }
.eyebrow-center::after { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }

h1 { font-size: clamp(2.6rem, 5.4vw, 4.9rem); line-height: 1.04; }
h2 { font-size: clamp(2.1rem, 3.8vw, 3.25rem); }
h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--gold-text); }
.section-dark h2 em, .page-hero h1 em, .hero h1 em, .cta-banner h2 em { color: var(--gold-light); }

.lead { font-size: clamp(1.08rem, 1.4vw, 1.22rem); line-height: 1.7; color: var(--text); }
.section-head { max-width: 760px; margin-bottom: clamp(2.8rem, 5vw, 4.2rem); }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 + p { margin-top: 1.3rem; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.section-dark .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }

/* ornamento: filetto con rombo */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 1.8rem; }
.ornament::before, .ornament::after { content: ''; width: 64px; height: 1px; background: currentColor; opacity: .6; }
.ornament span { width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 54px; padding: .95rem 1.9rem;
  font-family: var(--font-body); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg.icon-arrow { transform: translateX(4px); }
.btn-gold { background: var(--accent); color: var(--navy); border-color: var(--accent); }
.btn-gold:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-navy { background: var(--navy); color: var(--on-dark); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(20, 26, 48, .35); }
.btn-ghost:hover { border-color: var(--ink); background: var(--ink); color: var(--on-dark); }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(243, 238, 228, .38); }
.btn-ghost-light:hover { border-color: var(--gold-light); color: var(--gold-light); }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 4px; border-bottom: 1px solid var(--gold);
  transition: color .3s var(--ease), gap .3s var(--ease);
}
.link-arrow:hover { color: var(--gold-text); gap: .9rem; }
.link-arrow svg { width: 15px; height: 15px; }
.section-dark .link-arrow { color: var(--on-dark); border-color: var(--gold-light); }
.section-dark .link-arrow:hover { color: var(--gold-light); }

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-3); color: var(--on-dark-muted); font-size: .78rem; letter-spacing: .02em; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 1rem; }
.topbar-list { display: flex; gap: 1.8rem; list-style: none; }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; transition: color .3s; }
.topbar a:hover { color: var(--gold-light); }
.topbar svg { width: 13px; height: 13px; color: var(--gold-light); }
.topbar-note { color: var(--gold-light); font-family: var(--font-display); font-style: italic; font-size: .98rem; letter-spacing: .01em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: var(--navy);
  border-bottom: 1px solid var(--line-dark);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.scrolled {
  background: rgba(19, 26, 51, .94);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow: 0 10px 30px rgba(8, 12, 28, .25);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 2rem; }
.brand { display: flex; align-items: center; gap: .95rem; color: var(--on-dark); }
.brand img { width: 54px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.42rem; font-weight: 600; letter-spacing: .01em; color: var(--on-dark); }
.brand-sub { font-size: .64rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); margin-top: .35rem; }

.nav-menu { display: flex; align-items: center; gap: .3rem; list-style: none; }
.nav-menu a:not(.btn) {
  position: relative; display: block; padding: .6rem .95rem;
  font-size: .76rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(243, 238, 228, .86); transition: color .3s var(--ease);
}
.nav-menu a:not(.btn)::after {
  content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem; height: 1px;
  background: var(--gold-light); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.nav-menu a:not(.btn):hover, .nav-menu a:not(.btn)[aria-current="page"] { color: var(--gold-light); }
.nav-menu a:not(.btn):hover::after, .nav-menu a:not(.btn)[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { margin-left: .9rem; }
.nav-cta .btn { min-height: 46px; padding: .7rem 1.4rem; font-size: .72rem; }
.nav-cta .btn[aria-current="page"] { background: var(--accent-hover); }
.nav-menu-head, .nav-menu-foot { display: none; }

/* ---------- Menu mobile (da templates/menu.css Royaletiger) ---------- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--navy); }
.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: var(--radius);
  background: transparent; cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero home ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy); color: var(--on-dark-muted);
  min-height: clamp(640px, calc(100vh - 128px), 860px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% 30%; filter: grayscale(.25) contrast(1.04); }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(19,26,51,1) 0%, rgba(19,26,51,.97) 32%, rgba(19,26,51,.78) 50%, rgba(19,26,51,.30) 74%, rgba(19,26,51,.12) 100%),
    linear-gradient(0deg, rgba(13,18,38,.75) 0%, rgba(13,18,38,0) 35%);
}
.hero-content { padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 4.5rem); max-width: 680px; }
.hero h1 { color: var(--on-dark); margin-bottom: 1.6rem; }
.hero .lead { color: var(--on-dark-muted); max-width: 560px; margin-bottom: 2.4rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-creds {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border-top: 1px solid var(--line-dark); list-style: none;
}
.hero-creds li { display: flex; align-items: center; gap: 1rem; padding: 1.6rem 1.5rem 1.8rem 0; font-size: .86rem; line-height: 1.45; color: var(--on-dark-muted); }
.hero-creds li + li { padding-left: 1.5rem; border-left: 1px solid var(--line-dark); }
.hero-creds svg { width: 30px; height: 30px; flex: none; color: var(--gold-light); }
.hero-creds strong { display: block; color: var(--on-dark); font-weight: 500; }

/* animazione d'ingresso dell'hero: solo CSS, il contenuto resta comunque visibile */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rise-solid { from { transform: translateY(16px); } to { transform: none; } }
.hero-content > *, .page-hero-inner > * { animation: rise .9s var(--ease) both; }
/* il titolo principale resta sempre visibile (LCP immediato): si muove soltanto */
.hero-content > h1, .page-hero-inner > h1 { animation-name: rise-solid; }
.hero-content > :nth-child(2), .page-hero-inner > :nth-child(2) { animation-delay: .08s; }
.hero-content > :nth-child(3), .page-hero-inner > :nth-child(3) { animation-delay: .16s; }
.hero-content > :nth-child(4), .page-hero-inner > :nth-child(4) { animation-delay: .24s; }

/* ---------- Hero pagine interne ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark-muted); padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); }
.page-hero::after {
  content: ''; position: absolute; right: -90px; top: 50%; width: 460px; height: 460px; transform: translateY(-50%);
  background: url('../img/logo-mark-light.webp') center / contain no-repeat; opacity: .07; pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.page-hero h1 { color: var(--on-dark); font-size: clamp(2.4rem, 4.8vw, 4.1rem); margin-bottom: 1.2rem; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 680px; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .84rem; color: var(--on-dark-muted); margin-top: 1.6rem; }
.page-hero .meta span { display: inline-flex; align-items: center; gap: .5rem; }
.page-hero .meta svg { width: 14px; height: 14px; color: var(--gold-light); }

.breadcrumb { margin-bottom: 2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .3rem .6rem; list-style: none; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.breadcrumb li { display: inline-flex; align-items: center; gap: .6rem; color: rgba(243, 238, 228, .62); }
.breadcrumb li + li::before { content: ''; width: 5px; height: 5px; border: 1px solid var(--gold-light); transform: rotate(45deg); opacity: .8; }
.breadcrumb a { color: rgba(243, 238, 228, .82); transition: color .3s; }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb [aria-current] { color: var(--gold-light); }

/* ---------- Home: lo studio ---------- */
.intro-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.intro-quote { position: relative; padding-top: 3.2rem; }
.intro-quote::before {
  content: '\201C'; position: absolute; top: -1.6rem; left: -.4rem;
  font-family: var(--font-display); font-size: 7.5rem; line-height: 1; color: var(--gold); opacity: .55;
}
.intro-quote blockquote { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 500; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1.3; color: var(--ink); }
.intro-quote figcaption { margin-top: 1.6rem; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }
.intro-text h2 { margin-bottom: 1.6rem; }
.intro-text .lead { color: var(--ink); }
.signature { display: flex; align-items: center; gap: 1.2rem; margin-top: 2.2rem; padding-top: 1.8rem; border-top: 1px solid var(--line); }
.signature img { width: 58px; }
.signature strong { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.signature span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Aree di attività (card) ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); }
.area-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); padding: clamp(2.2rem, 4vw, 3.4rem);
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.area-card::before { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.area-card:hover { border-color: rgba(184, 146, 90, .55); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.area-card:hover::before { transform: scaleX(1); }
.area-num { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--gold-text); margin-bottom: .6rem; }
.area-card h3 { font-size: clamp(1.9rem, 2.8vw, 2.4rem); margin-bottom: 1rem; }
.area-card > p { color: var(--muted); }
.area-list { list-style: none; margin: 1.6rem 0 2.2rem; border-top: 1px solid var(--line); }
.area-list li { display: flex; align-items: center; gap: .9rem; padding: .78rem 0; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink); }
.area-list li::before { content: ''; flex: none; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.area-list a { transition: color .3s; }
.area-list a:hover { color: var(--gold-text); }
.area-card .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Metodo (I-IV) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); list-style: none; counter-reset: step; }
.step { position: relative; padding-top: 2rem; border-top: 1px solid var(--line); }
.step::before { content: ''; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--gold); transform: rotate(45deg); }
.section-alt .step::before { background: var(--bg-alt); }
.step-num { display: block; font-family: var(--font-display); font-size: 3.2rem; line-height: 1; color: var(--gold); font-weight: 500; margin-bottom: 1.1rem; }
.step h3 { margin-bottom: .8rem; }
.step p { font-size: .98rem; color: var(--muted); }

/* ---------- Credenziali (sezione scura) ---------- */
.creds-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.cred { padding: 2.6rem 1.8rem 2.4rem; text-align: center; }
.cred + .cred { border-left: 1px solid var(--line-dark); }
.cred-value { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 4.2vw, 3.6rem); line-height: 1; color: var(--gold-light); margin-bottom: .9rem; }
.cred-value small { font-size: .45em; font-style: italic; color: var(--on-dark); margin-left: .15em; }
.cred-label { display: block; font-size: .9rem; line-height: 1.55; color: var(--on-dark-muted); max-width: 240px; margin: 0 auto; }
.creds-foot { display: flex; justify-content: center; margin-top: 3rem; }
.section-dark.has-watermark { overflow: hidden; }
.section-dark.has-watermark::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 720px; height: 720px; transform: translate(-50%, -50%);
  background: url('../img/logo-mark-light.webp') center / contain no-repeat; opacity: .045; pointer-events: none;
}
.section-dark > .container { position: relative; z-index: 1; }

/* ---------- Principi (feature card) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.4rem); }
.feature { text-align: center; padding: 2.6rem 2rem; background: var(--paper); border: 1px solid var(--line); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 1.5rem; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-text); }
.feature-icon svg { width: 26px; height: 26px; }
.feature h3 { margin-bottom: .8rem; }
.feature p { font-size: .98rem; color: var(--muted); }

/* ---------- Approfondimenti (card articoli) ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.2rem); }
.post-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); padding: 2.3rem 2.1rem 2.1rem;
  transition: border-color .45s var(--ease), box-shadow .45s var(--ease), transform .45s var(--ease);
}
.post-card:hover { border-color: rgba(184, 146, 90, .55); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.post-tag { line-height: 1.5; font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.post-card h3 { margin: 1rem 0 .9rem; font-size: 1.6rem; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; }
.post-card p { font-size: .96rem; color: var(--muted); }
.post-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 1.6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.post-meta .more { color: var(--ink); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; display: inline-flex; gap: .5rem; align-items: center; }
.post-meta .more svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.post-card:hover .more svg { transform: translateX(4px); }
.post-card .post-body { flex: 1; margin-bottom: 1.4rem; }
.posts-foot { text-align: center; margin-top: 3rem; }

/* ---------- CTA banner ---------- */
.cta-banner { position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark-muted); padding: clamp(4.5rem, 9vw, 7rem) 0; text-align: center; }
.cta-banner::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 560px; height: 560px; transform: translate(-50%, -50%);
  background: url('../img/logo-mark-light.webp') center / contain no-repeat; opacity: .06; pointer-events: none;
}
.cta-banner .container { position: relative; z-index: 1; max-width: 860px; }
.cta-banner h2 { color: var(--on-dark); margin-bottom: 1.3rem; }
.cta-banner p { font-size: 1.1rem; max-width: 620px; margin: 0 auto 2.4rem; }
.cta-banner .hero-cta { justify-content: center; }

/* ---------- Profilo avvocato ---------- */
.bio-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.portrait { position: relative; margin: 0 22px 22px 0; }
.portrait::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: 0; }
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(.2); }
.portrait figcaption { position: relative; z-index: 1; margin-top: 2.6rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.bio-text h2 { margin-bottom: 1.6rem; }
.dropcap::first-letter { float: left; font-family: var(--font-display); font-size: 4.6rem; line-height: .82; padding: .32rem .7rem 0 0; color: var(--gold-text); font-weight: 500; }

.timeline { position: relative; list-style: none; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 150px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 0 3rem; padding-bottom: 2.6rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ''; position: absolute; left: 146px; top: .55rem; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--gold); transform: rotate(45deg); }
.section-alt .timeline li::before { background: var(--bg-alt); }
.tl-date { font-family: var(--font-display); font-size: 1.35rem; font-style: italic; color: var(--gold-text); line-height: 1.3; padding-right: 1.6rem; text-align: right; }
.timeline h3 { font-size: 1.5rem; margin-bottom: .45rem; }
.timeline p { color: var(--muted); font-size: .98rem; }

.grades { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); }
.grades caption { text-align: left; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; padding-bottom: 1rem; }
.grades th, .grades td { padding: 1.05rem 1.6rem; border-bottom: 1px solid var(--line); text-align: left; }
.grades th { font-weight: 500; color: var(--ink); font-size: 1rem; }
.grades td { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-text); text-align: right; white-space: nowrap; }
.grades tr:last-child th, .grades tr:last-child td { border-bottom: 0; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }

.thesis { margin: 0; padding: 2.4rem 2.6rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.thesis p { font-family: var(--font-display); font-style: italic; font-size: 1.55rem; line-height: 1.35; color: var(--ink); margin-bottom: 1rem; }
.thesis cite { font-style: normal; font-size: .84rem; color: var(--muted); }

.tag-list { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin-top: 1.6rem; }
.tag-list li { padding: .55rem 1rem; border: 1px solid var(--line-dark); font-size: .88rem; color: var(--on-dark); }
.section:not(.section-dark) .tag-list li { border-color: var(--line); color: var(--ink); background: var(--paper); }

/* ---------- Pagine materia (civile / penale) ---------- */
.matters { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.4rem, 2.6vw, 2rem); }
.matter { background: var(--paper); border: 1px solid var(--line); padding: clamp(2rem, 3.4vw, 2.6rem); scroll-margin-top: 120px; }
.matter-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: .9rem; }
.matter-head span { font-family: var(--font-display); font-style: italic; color: var(--gold-text); font-size: 1.2rem; }
.matter p { color: var(--muted); font-size: .98rem; }
.matter ul { list-style: none; margin-top: 1.1rem; }
.matter li { position: relative; padding-left: 1.3rem; font-size: .95rem; color: var(--ink); margin-bottom: .45rem; line-height: 1.55; }
.matter li::before { content: ''; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); }

.note {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start;
  padding: 2rem 2.2rem; background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.note svg { width: 28px; height: 28px; color: var(--gold-text); margin-top: .2rem; }
.note h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.note p { font-size: .98rem; color: var(--muted); }

.phases { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; border-top: 1px solid var(--line-dark); }
.phases li { padding: 2rem 1.4rem 0 0; }
.phases li + li { padding-left: 1.4rem; border-left: 1px solid var(--line-dark); }
.phases span { display: block; font-family: var(--font-display); font-style: italic; color: var(--gold-light); font-size: 1.2rem; margin-bottom: .6rem; }
.phases h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.phases p { font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding: 1.6rem 0; font-family: var(--font-display); font-size: clamp(1.3rem, 2vw, 1.55rem); font-weight: 500; color: var(--ink); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; font-family: var(--font-body); font-size: 1.2rem; font-weight: 300; color: var(--gold-text); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--gold-text); }
.faq .faq-body { padding: 0 3.5rem 1.8rem 0; color: var(--muted); }

/* ---------- Articoli ---------- */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.prose { max-width: 740px; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.25em; }
.prose p { margin: 0; }
.prose h2 { font-size: clamp(1.8rem, 2.8vw, 2.3rem); margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); }
.prose h3 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { position: relative; padding-left: 1.6rem; margin-bottom: .55rem; }
.prose ul li::before { content: ''; position: absolute; left: .2rem; top: .7em; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; }
.prose ol li::before { content: counter(n, upper-roman) '.'; position: absolute; left: 0; font-family: var(--font-display); font-style: italic; color: var(--gold-text); font-size: 1.1rem; line-height: 1.6; }
.prose a:not(.btn) { color: var(--ink); border-bottom: 1px solid var(--gold); transition: color .3s; }
.prose a:not(.btn):hover { color: var(--gold-text); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote { margin: 2em 0; padding: .3rem 0 .3rem 1.8rem; border-left: 2px solid var(--gold); font-family: var(--font-display); font-style: italic; font-size: 1.5rem; line-height: 1.4; color: var(--ink); }
.answer-box { padding: 1.8rem 2rem; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.answer-box .label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: .6rem; }
.answer-box p { color: var(--ink); }
.disclaimer { font-size: .88rem; color: var(--muted); padding-top: 1.4rem; border-top: 1px solid var(--line); font-style: italic; }

.aside { position: sticky; top: 120px; display: grid; gap: 1.6rem; }
.aside-card { background: var(--paper); border: 1px solid var(--line); padding: 2rem 1.8rem; }
.aside-card.is-dark { background: var(--navy); border-color: var(--navy); color: var(--on-dark-muted); }
.aside-card.is-dark h3 { color: var(--on-dark); }
.aside-card h3 { font-size: 1.45rem; margin-bottom: .8rem; }
.aside-card p { font-size: .94rem; }
.aside-card .btn { width: 100%; margin-top: 1.2rem; }
.aside-card ul { list-style: none; }
.aside-card li + li { border-top: 1px solid var(--line); }
.aside-card li a { display: block; padding: .8rem 0; font-size: .95rem; color: var(--ink); line-height: 1.45; transition: color .3s; }
.aside-card li a:hover { color: var(--gold-text); }
.author { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.author img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; filter: grayscale(.2); }
.author strong { display: block; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 600; line-height: 1.15; }
.author span { font-size: .78rem; color: var(--muted); letter-spacing: .06em; }

.links-list { list-style: none; columns: 2; column-gap: 3rem; }
.links-list li { break-inside: avoid; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.links-list a { display: flex; justify-content: space-between; gap: 1rem; color: var(--ink); transition: color .3s; }
.links-list a:hover { color: var(--gold-text); }
.links-list svg { width: 14px; height: 14px; flex: none; color: var(--gold); margin-top: .45rem; }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
.contact-list { list-style: none; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 52px 1fr; gap: 1.2rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.contact-ico { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold-text); }
.contact-ico svg { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); margin-bottom: .2rem; }
.contact-list .value { font-family: var(--font-display); font-size: 1.45rem; color: var(--ink); line-height: 1.3; }
.contact-list a.value { transition: color .3s; }
.contact-list a.value:hover { color: var(--gold-text); }
.contact-list small { display: block; font-size: .88rem; color: var(--muted); margin-top: .2rem; }
.social { display: flex; gap: .7rem; list-style: none; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--on-dark); transition: border-color .3s, color .3s, background-color .3s; }
.social a:hover { border-color: var(--gold-light); color: var(--gold-light); }
.social svg { width: 17px; height: 17px; }
.social.is-light a { border-color: var(--line); color: var(--ink); }
.social.is-light a:hover { border-color: var(--gold); color: var(--gold-text); }

.form-card { background: var(--paper); border: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.2rem); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: .6rem; }
.form-card > p { color: var(--muted); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem 1.4rem; }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field.is-full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.field label .req { color: var(--gold-text); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 1rem; color: var(--ink); transition: border-color .3s, background-color .3s, box-shadow .3s;
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23876532' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; padding-right: 2.8rem; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--paper); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #a0453a; }
.form-hint { grid-column: 1 / -1; display: flex; gap: .8rem; align-items: flex-start; font-size: .88rem; color: var(--muted); padding: 1rem 1.2rem; background: var(--bg); border-left: 2px solid var(--gold); }
.form-hint svg { width: 18px; height: 18px; flex: none; color: var(--gold-text); margin-top: .2rem; }
.check { grid-column: 1 / -1; display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--text); line-height: 1.55; }
.check input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--navy); }
.check a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: .4rem; }
.form-actions .btn[disabled] { opacity: .6; cursor: progress; }
.form-status { font-size: .95rem; min-height: 1.5em; }
.form-status.is-ok { color: #2f6b45; }
.form-status.is-error { color: #a0453a; }
.form-done { display: none; text-align: center; padding: 2rem 0 1rem; }
.form-done.is-visible { display: block; }
.form-done svg { width: 56px; height: 56px; margin: 0 auto 1.2rem; color: var(--gold-text); }
.form-done h3 { font-size: 2rem; margin-bottom: .6rem; }

.map-card { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 4vw, 3rem); background: var(--navy); color: var(--on-dark-muted); position: relative; overflow: hidden; }
.map-card::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 300px; height: 300px; background: url('../img/logo-mark-light.webp') center / contain no-repeat; opacity: .07; }
.map-card h2 { color: var(--on-dark); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .6rem; }
.map-card > * { position: relative; z-index: 1; }

/* ---------- Pagine legali ---------- */
.legal h2 { font-size: 1.8rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); }
.legal th, .legal td { border: 1px solid var(--line); padding: .8rem 1rem; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.legal .updated { font-size: .9rem; color: var(--muted); font-style: italic; }

/* ---------- 404 ---------- */
.error-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-display); font-size: clamp(6rem, 16vw, 11rem); line-height: 1; color: var(--gold); font-style: italic; margin-bottom: .5rem; }
.error-page h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 1rem; }
.error-page .hero-cta { justify-content: center; margin-top: 2.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: var(--on-dark-muted); font-size: .94rem; }
.footer-top { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr 1.3fr; gap: clamp(2rem, 4vw, 3.5rem); padding: clamp(4rem, 7vw, 5.5rem) 0 3.5rem; }
.footer-logo { width: 220px; margin-bottom: 1.6rem; }
.footer-col h4 { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 1.4rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .7rem; line-height: 1.5; }
.footer-col a { transition: color .3s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-about p { max-width: 300px; margin-bottom: 1.6rem; }
.footer-contacts li { display: grid; grid-template-columns: 18px 1fr; gap: .8rem; }
.footer-contacts svg { width: 15px; height: 15px; color: var(--gold-light); margin-top: .3rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem 2rem; padding: 1.6rem 0 2rem; border-top: 1px solid var(--line-dark); font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.4rem; }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-credit a { color: var(--gold-light); }

/* ---------- Utilità e varianti ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 2.4rem; }
.mt-xl { margin-top: 3rem; }
.lead-muted { color: var(--muted); margin-top: 1.6rem; }
.hero-cta.is-center { justify-content: center; }
.area-card h2.h3-like { font-size: clamp(1.9rem, 2.8vw, 2.4rem); margin-bottom: 1rem; line-height: 1.2; }
.post-card h2 { margin: 1rem 0 .9rem; font-size: 1.6rem; line-height: 1.2; }
.post-card h2 a::after { content: ''; position: absolute; inset: 0; }
.posts-grid.is-two { grid-template-columns: repeat(2, 1fr); }
.matter-head span svg { width: 22px; height: 22px; transform: translateY(3px); }
.note + .note { margin-top: 1.4rem; }
.note a { color: var(--ink); border-bottom: 1px solid var(--gold); }
.matter a { border-bottom: 1px solid var(--gold); transition: color .3s; }
.matter a:hover { color: var(--gold-text); }
.contact-title { margin-bottom: 1.8rem; }
.contact-social { display: flex; align-items: center; gap: 1.2rem; margin-top: 2rem; }
.contact-social .label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--gold-text); }
.contact-list .value-email { font-size: 1.2rem; word-break: break-word; }
.inline-link { color: var(--ink); border-bottom: 1px solid var(--gold); }
.inline-link:hover { color: var(--gold-text); }
.map-card p { margin: 0; }
.map-card .eyebrow { margin-bottom: 1rem; }
.prose .faq { margin-top: 1.5rem; }
.prose .faq summary { font-size: 1.3rem; }
.prose .faq .faq-body { padding-right: 0; }
.legal h3 { font-size: 1.35rem; }

/* ---------- Reveal (il contenuto parte VISIBILE; il JS anima solo ciò che è sotto la piega) ---------- */
.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal-delay-1.is-visible { transition-delay: .08s; }
.reveal-delay-2.is-visible { transition-delay: .16s; }
.reveal-delay-3.is-visible { transition-delay: .24s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-menu a:not(.btn) { padding: .6rem .65rem; letter-spacing: .12em; }
  .nav-menu a:not(.btn)::after { left: .65rem; right: .65rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: repeat(3, 1fr); row-gap: 2rem; }
  .phases li:nth-child(4) { padding-left: 0; border-left: 0; }
}

@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 3rem; }
  .creds-grid { grid-template-columns: repeat(2, 1fr); }
  .cred:nth-child(3) { border-left: 0; }
  .cred:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .posts-grid { grid-template-columns: 1fr 1fr; }
  .posts-grid:not(.is-two) .post-card:nth-child(3) { grid-column: 1 / -1; }
  .article-layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
}

/* soglia menu: deve combaciare con SOGLIA in main.js */
@media (max-width: 900px) {
  :root { --nav-h: 76px; }
  .topbar { display: none; }
  .brand img { width: 46px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .58rem; letter-spacing: .22em; }

  .nav-toggle { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 89;
    background: rgba(8, 11, 24, .6); border: 0; padding: 0; cursor: pointer;
    opacity: 0; visibility: hidden;
    transition: opacity .38s var(--ease), visibility 0s linear .38s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }

  .nav-menu {
    position: fixed; inset: 0 0 0 auto; z-index: 1;
    width: min(88vw, 380px);
    background: var(--navy);
    border-left: 1px solid var(--line-dark);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 104px 30px 36px;
    box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .42s var(--ease), visibility 0s linear .42s;
  }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .42s var(--ease), visibility 0s linear 0s; }
  .nav-menu li { border-bottom: 1px solid var(--line-dark); }
  .nav-menu li.nav-cta, .nav-menu li.nav-menu-foot { border-bottom: 0; }
  .nav-menu a:not(.btn) {
    padding: 1.05rem 0; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500;
    letter-spacing: 0; text-transform: none; color: var(--on-dark);
  }
  .nav-menu a:not(.btn)::after { display: none; }
  .nav-menu a:not(.btn)[aria-current="page"] { color: var(--gold-light); }
  .nav-cta { margin: 1.8rem 0 0; }
  .nav-cta .btn { width: 100%; min-height: 54px; font-size: .76rem; }
  .nav-menu-foot { display: block; margin-top: 1.8rem; font-size: .9rem; color: var(--on-dark-muted); }
  .nav-menu-foot a { display: block; padding: .3rem 0 !important; font-family: var(--font-body) !important; font-size: .95rem !important; color: var(--on-dark-muted) !important; }

  .hero { min-height: 0; justify-content: flex-start; }
  .hero-media { position: relative; inset: auto; height: clamp(300px, 62vw, 460px); z-index: 0; }
  .hero-media img { object-position: 74% 22%; }
  .hero::before { inset: 0 0 auto 0; height: calc(clamp(300px, 62vw, 460px) + 2px); background: linear-gradient(180deg, rgba(19,26,51,.15) 0%, rgba(19,26,51,.35) 55%, rgba(19,26,51,1) 100%); z-index: 1; }
  .hero > .container { position: relative; z-index: 2; margin-top: -90px; }
  .hero-content { padding-top: 0; padding-bottom: 2.6rem; }
  .hero-creds { grid-template-columns: 1fr; }
  .hero-creds li { padding: 1.1rem 0; }
  .hero-creds li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }

  .intro-grid, .bio-grid, .contact-grid, .split-2 { grid-template-columns: 1fr; }
  .bio-grid .portrait { max-width: 460px; }
  .areas-grid, .matters { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phases li { padding-left: 0 !important; border-left: 0 !important; }
  .page-hero::after { width: 300px; height: 300px; right: -110px; }
  .map-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .timeline::before { left: 4px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 2.2rem; }
  .timeline li::before { left: 0; }
  .tl-date { text-align: left; padding: 0 0 .3rem; }
  .links-list { columns: 1; }
  .aside { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; }
  .creds-grid { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--line-dark); }
  .posts-grid, .posts-grid.is-two { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn { width: 100%; }
  .phases { grid-template-columns: 1fr; }
  .faq .faq-body { padding-right: 0; }
  .note { grid-template-columns: 1fr; }
  .grades th, .grades td { padding: .9rem 1rem; }
}

@media (max-width: 480px) {
  body { font-size: 1rem; }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.18rem; white-space: nowrap; }
  .brand { gap: .7rem; }
  .area-card, .form-card { padding: 1.7rem 1.4rem; }
  .matter { padding: 1.7rem 1.4rem; }
  .thesis { padding: 1.8rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .site-footer, .cta-banner, .aside, .nav-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; color: #000; padding: 1rem 0; }
  .page-hero h1 { color: #000; }
}

/* spaziatura titoli nei blocchi a due colonne */
.split-2 h2, .contact-grid h2.contact-title { margin-bottom: 1.5rem; }
