/* Studio Legale Avv. Giorgio Canalis - foglio di stile unico (redesign 30/11/2026).
   Impostazione: studio legale d'archivio. Carta notturna, filetti sottili, titoli Playfair a grande corpo,
   capitoli numerati con il segno di paragrafo, indice laterale, trame catastali appena percepibili.
   Palette vincolata (CLAUDE.md, par. 2): blu notte, superfici navy, testi bianco e argento. Nessun oro. */

:root {
  --bg: #0B132B;
  --bg-deep: #070D1D;
  --surface: #111D38;
  --surface-2: #0E1834;
  --text: #FFFFFF;
  --body: #E2E8F0;
  --muted: #94A3B8;
  --faint: #64748B;
  --line: rgba(226, 232, 240, 0.09);
  --line-2: rgba(226, 232, 240, 0.16);
  --line-3: rgba(226, 232, 240, 0.30);
  --line-4: rgba(226, 232, 240, 0.55);
  --tint: rgba(226, 232, 240, 0.035);
  --tint-2: rgba(226, 232, 240, 0.06);
  --glow: #17264D;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --fs-xs: 11px;
  --fs-base: 17px;
  --fs-h4: 19px;
  --fs-h3: clamp(21px, 1.9vw, 25px);
  --fs-h2: clamp(30px, 3.4vw, 44px);
  --fs-h1: clamp(40px, 5.6vw, 76px);

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(80px, 10vw, 144px);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 0.35s var(--ease);

  /* Grana della carta e trama catastale (SVG in linea, nessuna risorsa esterna) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  --catasto: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='560' viewBox='0 0 760 560' fill='none' stroke='%23E2E8F0' stroke-width='0.8'%3E%3Cpath d='M12 64 L188 30 L262 118 L214 236 L58 210 Z'/%3E%3Cpath d='M188 30 L402 12 L436 140 L262 118'/%3E%3Cpath d='M402 12 L610 46 L588 178 L436 140'/%3E%3Cpath d='M610 46 L748 96 L726 250 L588 178'/%3E%3Cpath d='M214 236 L262 118 L436 140 L452 300 L300 338 Z'/%3E%3Cpath d='M436 140 L588 178 L604 318 L452 300'/%3E%3Cpath d='M588 178 L726 250 L708 392 L604 318'/%3E%3Cpath d='M58 210 L214 236 L300 338 L240 452 L30 420 Z'/%3E%3Cpath d='M300 338 L452 300 L478 462 L320 512 L240 452'/%3E%3Cpath d='M452 300 L604 318 L640 470 L478 462'/%3E%3Cpath d='M604 318 L708 392 L742 530 L640 470'/%3E%3Cpath stroke-dasharray='3 6' d='M0 300 C160 270 300 420 470 380 S700 250 760 300'/%3E%3Cpath stroke-dasharray='3 6' d='M0 340 C170 310 310 460 480 420 S710 290 760 340'/%3E%3Ccircle cx='452' cy='300' r='2.4' fill='%23E2E8F0'/%3E%3Ccircle cx='262' cy='118' r='2.4' fill='%23E2E8F0'/%3E%3Ccircle cx='604' cy='318' r='2.4' fill='%23E2E8F0'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  position: relative;
  background: radial-gradient(1200px 640px at 78% -12%, var(--glow) 0%, rgba(11, 19, 43, 0) 70%) no-repeat, var(--bg);
  color: var(--body);
  font: 400 var(--fs-base)/1.75 var(--sans);
  letter-spacing: 0.002em;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-image: var(--grain); opacity: 0.035; mix-blend-mode: soft-light; }
::selection { background: var(--body); color: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-decoration-color: var(--line-3); text-underline-offset: 4px; transition: color var(--t), text-decoration-color var(--t); }
a:hover { text-decoration-color: var(--text); }
:focus-visible { outline: 1px solid var(--text); outline-offset: 4px; }

/* Tipografia */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; color: var(--text); margin: 0 0 0.5em; text-wrap: balance; font-variant-numeric: lining-nums; }
h1 { font-size: var(--fs-h1); line-height: 1.04; letter-spacing: -0.022em; }
h2 { font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.016em; }
h3 { font-size: var(--fs-h3); line-height: 1.28; letter-spacing: -0.006em; }
h4 { font-size: var(--fs-h4); line-height: 1.38; font-weight: 500; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--body); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.2em; }
li + li { margin-top: 0.5em; }
li::marker { color: var(--faint); }
strong { color: var(--text); font-weight: 600; }
small { font-size: 0.85em; }
.price, .tool-result .total, table.fees td:last-child, time, .pkg-prezzi dd, .price-badge { font-variant-numeric: lining-nums tabular-nums; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--text); color: var(--bg); padding: 10px 16px; z-index: 1000; }
.skip:focus { left: 16px; top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: calc(860px + 2 * var(--gutter)); }
.m-0 { margin: 0; }
.mt-m { margin-top: 32px; }
.mb-l { margin-bottom: 40px; }
.mb-xs { margin-bottom: 6px; }
.span-all { grid-column: 1 / -1; }

/* Etichette: maiuscoletto spaziato */
.eyebrow, .acc-kicker, .toc-label, .pkg-legend, .area-sub, .track-where, .field label, .site-footer h2, .label, .cu-group, .pkg-label, .pkg-prezzi dt, table.fees th {
  font-family: var(--sans); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); line-height: 1.6;
}
.eyebrow { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; }
.eyebrow::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--line-4); }
.eyebrow-tight { margin-bottom: 12px; }

/* Barra istituzionale */
.topbar { border-bottom: 1px solid var(--line); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 40px; }
.topbar ul { display: flex; list-style: none; margin: 0; padding: 0; }
.topbar li { margin: 0; white-space: nowrap; }
.topbar li + li::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); margin: 0 14px; vertical-align: 3px; }
.topbar a { color: var(--muted); text-decoration: none; }
.topbar a:hover { color: var(--text); }
@media (max-width: 1360px) { .topbar .topbar-wide { display: none; } }
@media (max-width: 1100px) { .topbar .topbar-extra { display: none; } }
@media (max-width: 860px) { .topbar { display: none; } }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid transparent; transition: background-color var(--t), border-color var(--t); }
.site-header.is-scrolled { background: rgba(9, 16, 36, 0.94); border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(12px)) { .site-header.is-scrolled { background: rgba(9, 16, 36, 0.8); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); } }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand-name { font-family: var(--serif); font-size: 24px; letter-spacing: 0.38em; margin-right: -0.38em; color: var(--text); }
.brand-sub { margin-top: 9px; font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); font: 500 11px/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; padding: 13px 18px; cursor: pointer; transition: border-color var(--t); }
.menu-toggle:hover { border-color: var(--line-4); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a, .nav summary { white-space: nowrap; color: var(--body); font-size: 14px; font-weight: 500; letter-spacing: 0.01em; text-decoration: none; cursor: pointer; transition: color var(--t); }
.nav > a:not(.btn), .nav-group > summary { position: relative; padding: 10px 0; }
.nav > a:not(.btn)::before, .nav-group > summary::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out); }
.nav > a:not(.btn):hover::before, .nav > a[aria-current="page"]::before, .nav-group > summary:hover::before, .nav-group > summary[aria-current="page"]::before { transform: scaleX(1); transform-origin: left; }
.nav a:hover, .nav summary:hover, .nav [aria-current="page"], .nav-group[open] > summary { color: var(--text); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; display: flex; align-items: center; gap: 9px; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ""; width: 5px; height: 5px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform var(--t); }
.nav-group[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.nav-panel { position: absolute; top: calc(100% + 20px); left: -28px; width: 390px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 30px 60px -20px rgba(2, 6, 18, 0.75); animation: panel 0.32s var(--ease-out); }
@media (min-width: 1201px) { .nav-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 22px; } }
.nav-panel a { display: block; padding: 13px 16px; line-height: 1.35; color: var(--text); font-family: var(--serif); font-size: 16.5px; font-weight: 400; letter-spacing: 0; white-space: normal; transition: background-color var(--t); }
.nav-panel a span { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.nav-panel a:hover, .nav-panel a[aria-current="page"] { background: var(--tint-2); }
.nav-panel a + a { border-top: 1px solid var(--line); }
.nav .btn { padding: 13px 20px; font-size: 11px; letter-spacing: 0.2em; }
.nav .btn-primary { color: var(--bg); }
.nav .btn-primary:hover { color: var(--text); }
@keyframes panel { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1200px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 32px; max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .nav.is-open { display: flex; animation: panel 0.28s var(--ease-out); }
  .nav > a:not(.btn), .nav-group > summary { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 20px; font-weight: 400; }
  .nav > a:not(.btn)::before, .nav-group > summary::before { display: none; }
  .nav-group > summary { justify-content: space-between; }
  .nav-panel { position: static; width: auto; padding: 4px 0 14px; background: none; border: 0; box-shadow: none; animation: none; }
  .nav-panel a { padding: 12px 0 12px 18px; font-size: 16px; }
  .nav-panel a + a { border-top: 0; }
  .nav .btn { margin-top: 28px; padding: 17px 20px; }
}
body.menu-open { overflow: hidden; }
@media (min-width: 1201px) { body.menu-open { overflow: auto; } }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 17px 30px; border: 1px solid transparent; border-radius: 0; font: 500 11.5px/1.25 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; position: relative; isolation: isolate; overflow: hidden; transition: color 0.45s var(--ease-out), border-color 0.45s var(--ease-out), background-color 0.45s var(--ease-out); }
.btn::after { content: "\2192"; font-size: 14px; letter-spacing: 0; line-height: 1; transition: transform 0.45s var(--ease-out); }
.btn:hover::after { transform: translateX(4px); }
.btn-primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease-out); }
.btn-primary:hover { color: var(--text); }
.btn-primary:hover::before { transform: scaleY(1); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-3); }
.btn-outline:hover { border-color: var(--text); background: var(--tint); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
@media (max-width: 520px) { .actions .btn { flex: 1 1 100%; } }

.more { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.more::after { content: "\2192"; font-size: 14px; letter-spacing: 0; transition: transform 0.45s var(--ease-out); }
.more:hover::after { transform: translateX(5px); }

/* Hero: grande composizione tipografica su trama catastale */
.hero { position: relative; overflow: hidden; padding: clamp(64px, 9vw, 136px) 0 clamp(64px, 8vw, 120px); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: -40px; right: -120px; width: min(980px, 90vw); height: 720px; background: var(--catasto) no-repeat right top / contain; opacity: 0.08; pointer-events: none; -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); mask-image: radial-gradient(closest-side, #000 30%, transparent 100%); }
.hero > .wrap { position: relative; }
.hero h1 { max-width: 15.5em; margin-bottom: 0; }
.hero .lead { max-width: 40em; margin-top: 32px; font-size: clamp(17px, 1.45vw, 19.5px); line-height: 1.7; color: var(--body); }
.hero .actions { margin-top: 44px; }
.hero > .wrap.narrow > * { max-width: 860px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.hero-grid h1 { font-size: clamp(40px, 5.2vw, 72px); }
.hero-media { position: relative; margin: 0 0 8px 14px; }
.hero-media::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid var(--line-3); pointer-events: none; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.72) contrast(1.04) brightness(0.92); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 43, 0) 55%, rgba(11, 19, 43, 0.55) 100%); pointer-events: none; }
.media-portrait { max-width: 420px; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; } .hero-media { max-width: 520px; } .hero-media img { aspect-ratio: 16 / 10; } }
@media (max-width: 720px) { .hero-grid .hero-media { display: none; } .hero::before { opacity: 0.05; right: -260px; } }

/* Sezioni */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--line); }
.section-alt { background: linear-gradient(180deg, rgba(7, 13, 29, 0) 0%, rgba(7, 13, 29, 0.85) 16%, rgba(7, 13, 29, 0.85) 84%, rgba(7, 13, 29, 0) 100%), var(--bg); }
.section-head { max-width: 820px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 18px; }
.section-head-next { margin-top: clamp(96px, 11vw, 140px); padding-top: clamp(56px, 7vw, 80px); border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 112px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.prose { max-width: 800px; }
.prose h2 { margin-top: 1.8em; font-size: clamp(28px, 2.8vw, 36px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; }
.prose h4 { margin-top: 1.6em; }

.lead { font-size: 19px; line-height: 1.7; }
.note { margin: 32px 0; padding: 2px 0 2px 22px; border-left: 1px solid var(--line-3); color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.note em { font-style: normal; }
.hint, .fineprint { font-size: 13px; color: var(--muted); }

/* Riquadro di rilievo senza scatola: rientro, filetto breve in testa, titolo in corsivo */
.callout { position: relative; margin: 44px 0; padding: 30px 0 0 clamp(0px, 4vw, 56px); }
.callout::before { content: ""; position: absolute; left: clamp(0px, 4vw, 56px); top: 0; width: 56px; height: 1px; background: var(--text); }
.callout + .callout { margin-top: 0; }
.callout:has(> .eyebrow:first-child) { padding-top: 0; }
.callout:has(> .eyebrow:first-child)::before { display: none; }
.callout h3 { font-style: italic; }
.callout > :last-child { margin-bottom: 0; }
.callout h3 { margin-top: 0; }

/* Macro-aree: due colonne di un indice, separate da un filetto verticale */
.section-areas { padding: var(--section) 0; }
.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.area { display: flex; flex-direction: column; padding: clamp(36px, 4vw, 56px) clamp(24px, 4vw, 64px) clamp(36px, 4vw, 56px) 0; counter-reset: track; }
.area + .area { padding-left: clamp(24px, 4vw, 64px); padding-right: 0; border-left: 1px solid var(--line); }
.area-head { margin-bottom: 28px; }
.area-head h2 { margin: 0 0 12px; font-size: clamp(32px, 3.4vw, 46px); }
.area-sub { margin: 0; }
.area-head p:not(.area-sub) { margin-top: 18px; color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 52ch; }
.area-link { margin: auto 0 0; padding-top: 36px; }
.area-link .btn { width: 100%; justify-content: space-between; }
.areas-note { margin-top: 40px; }
.area-servizi { padding: 0; }
@media (max-width: 900px) {
  .areas { grid-template-columns: minmax(0, 1fr); }
  .area, .area + .area { padding: 40px 0; border-left: 0; }
  .area + .area { border-top: 1px solid var(--line); }
}

.track { position: relative; padding: 26px 0 26px 56px; border-top: 1px solid var(--line); counter-increment: track; }
.track::before { content: counter(track, upper-roman); position: absolute; left: 0; top: 26px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.2; color: var(--muted); }
.track h2, .track h3 { margin: 0 0 6px; font-size: clamp(21px, 2vw, 25px); line-height: 1.3; }
.track-where { margin: 0 0 12px; }
.track p:not(.track-where) { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--body); }
.area > .track:last-of-type { border-bottom: 1px solid var(--line); }

.area-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.area-list > li + li { margin-top: 0; }
.area-card { position: relative; margin: 0; padding: 22px 56px 22px 0; border-bottom: 1px solid var(--line); transition: background-color var(--t), padding-left 0.5s var(--ease-out); }
.area-card:hover { padding-left: 14px; background: linear-gradient(90deg, var(--tint-2), rgba(226, 232, 240, 0) 80%); }
.area-card h3 { margin: 0 0 6px; font-size: clamp(19px, 1.7vw, 22px); }
.area-card h3 a { color: var(--text); text-decoration: none; }
.area-card h3 a::after { content: ""; position: absolute; inset: 0; }
.area-card h3 a:focus-visible { outline: none; }
.area-card:has(a:focus-visible) { outline: 1px solid var(--text); outline-offset: 2px; }
.area-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--muted); }
.area-card::after { content: "\2192"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 18px; color: var(--faint); transition: transform 0.45s var(--ease-out), color var(--t); }
.area-card:hover::after { color: var(--text); transform: translate(5px, -50%); }
.area-servizi .area-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 5vw, 72px); border-top: 0; }
.area-servizi .area-list > li:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 800px) { .area-servizi .area-list { grid-template-columns: minmax(0, 1fr); } .area-servizi .area-list > li:nth-child(2) { border-top: 0; } }

/* Capitoli: sezioni aperte, numerate con il segno di paragrafo, con indice laterale */
.section-chapters { padding: clamp(56px, 7vw, 104px) 0 var(--section); }
.section-chapters + .section-chapters { padding-top: 0; }
.section-chapters .wrap, .section-chapters .wrap.narrow, .section-chapters .wrap.prose { max-width: var(--wrap); }
.section-chapters > .wrap > :not(.toc):not(.chapters) { max-width: 820px; }
.section-chapters > .wrap:has(> .toc) { display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: clamp(48px, 6vw, 104px); }
.section-chapters > .wrap:has(> .toc) > * { grid-column: 2; }
.section-chapters > .wrap:has(> .toc) > .toc { grid-column: 1; grid-row: 1 / span 40; align-self: start; }
.chapters-intro { margin-bottom: 48px; }
.chapters-intro > :last-child { margin-bottom: 0; }
.chapters-outro { margin-top: 40px; }

.toc { position: sticky; top: calc(var(--header-h) + 32px); padding-top: 6px; }
.toc-label { margin: 0 0 18px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-left: 1px solid var(--line); }
.toc li { counter-increment: toc; margin: 0; }
.toc a { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); padding: 9px 0 9px 18px; font-size: 13.5px; line-height: 1.45; color: var(--muted); text-decoration: none; transition: color var(--t); }
.toc a::before { content: "\00A7\00A0" counter(toc); font-family: var(--serif); font-style: italic; color: var(--faint); transition: color var(--t); }
.toc a::after { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 1px; background: var(--text); transform: scaleY(0); transition: transform 0.45s var(--ease-out); }
.toc a:hover, .toc a.is-active { color: var(--text); }
.toc a.is-active::before { color: var(--body); }
.toc a.is-active::after { transform: scaleY(1); }
@media (max-width: 1080px) {
  .section-chapters > .wrap:has(> .toc) { display: block; }
  .toc { position: static; margin: 0 0 56px; padding: 24px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
  .toc ol { border-left: 0; columns: 2 280px; column-gap: 40px; }
  .toc li { break-inside: avoid; }
  .toc a { padding-left: 0; }
  .toc a::after { display: none; }
}

.chapters { counter-reset: capitolo; min-width: 0; }
.chapter { counter-increment: capitolo; position: relative; padding: clamp(48px, 6vw, 80px) 0 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.chapter + .chapter { margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-2); }
.chapter:first-child { padding-top: 0; }
.chapter-head { position: relative; display: flex; flex-direction: column; gap: 10px; margin-bottom: clamp(32px, 4vw, 48px); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.chapter-head::before { content: "\00A7\2002" counter(capitolo); font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--muted); }
.chapter-head .acc-head { display: flex; flex-direction: column; gap: 10px; }
.acc-kicker { order: -1; }
.chapter-head .acc-head h2, .chapter-head > h2, .chapter-head .acc-title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.14; letter-spacing: -0.016em; color: var(--text); }
.chapter-head .acc-sub { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 62ch; }
.chapter-head .acc-sub em { font-style: normal; }
.chapter > .details-body > :first-child { margin-top: 0; }
.chapter > .details-body > p, .chapter > .details-body > ul, .chapter > .details-body > ol:not(.sub-grid), .chapter > .details-body > .note, .chapter > .details-body > h3, .chapter > .details-body > h4 { max-width: 74ch; }
.chapter > .details-body > h3 { margin-top: 2em; font-size: clamp(23px, 2.2vw, 28px); }
.chapter > .details-body > h3:first-child { margin-top: 0; }
.chapter > .details-body > h4 { margin-top: 1.8em; }
.chapter .section-head { margin-bottom: 28px; }
.chapter .split { gap: clamp(32px, 4vw, 56px); }
.chapter .split h4 { margin-top: 0; }
.section-chapters > .wrap:not(:has(> .toc)) .chapters { max-width: 980px; }
.section-chapters .in-sintesi { margin: 0 0 56px; }

/* Schede di approfondimento dentro i capitoli */
/* Nessun riquadro: colonne aperte con filetto in testa, come in una pagina stampata */
.sub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(40px, 4vw, 56px) clamp(40px, 5vw, 72px); margin: 40px 0; }
.sub-grid.sub-stack { grid-template-columns: minmax(0, 1fr); gap: 40px; }
ol.sub-grid { list-style: none; padding: 0; counter-reset: sub; }
ol.sub-grid > li { margin: 0; counter-increment: sub; }
ol.sub-grid > li + li { margin-top: 0; }
.sub-grid > .sub-card, .sub-grid > li > .sub-card { height: 100%; margin: 0; }
.sub-card { margin: 36px 0; padding: 26px 0 0; border-top: 1px solid var(--line-3); }
.sub-card-head > h2, .sub-card-head > h3, .sub-card-head > h4, .prose .sub-card-head > h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 23px); line-height: 1.3; color: var(--text); }
.sub-card-head .acc-title { display: block; margin-bottom: 12px; }
ol.sub-grid > li > .sub-card > .sub-card-head { display: flex; gap: 14px; align-items: baseline; }
ol.sub-grid > li > .sub-card > .sub-card-head::before { content: counter(sub, decimal-leading-zero); flex: none; font: italic 400 17px/1 var(--serif); color: var(--faint); font-variant-numeric: lining-nums tabular-nums; }
.sub-card-body > :first-child { margin-top: 0; }
.sub-card-body > :last-child { margin-bottom: 0; }
.sub-card-body p, .sub-card-body li { font-size: 15.5px; line-height: 1.72; }
.sub-card-body .table-wrap, .sub-card-body .callout { margin: 20px 0; }
.sub-section { margin: 0; }
.sub-group { margin: 32px 0; }

/* Registro dei servizi: schede con compenso e pulsante in calce */
/* Registro dei servizi: righe di un indice notarile (numero, voce, compenso), solo filetti orizzontali */
.registro { counter-reset: voce; margin: 36px 0; border-bottom: 1px solid var(--line); }
.voce { counter-increment: voce; display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(180px, auto); column-gap: clamp(24px, 4vw, 56px); align-items: start; margin: 0; padding: clamp(30px, 3.4vw, 44px) 0; border-top: 1px solid var(--line-2); }
.voce-idx { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.voce-idx::before { content: counter(voce, decimal-leading-zero); font: italic 400 22px/1 var(--serif); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.voce-idx .label { margin: 0; }
.registro-numerato .voce-idx::before { display: none; }
.voce-body { min-width: 0; }
.voce-body:last-child { grid-column: 2 / -1; }
.voce-body h3 { margin-bottom: 12px; font-size: clamp(22px, 2vw, 27px); }
.voce-body p, .voce-body li { color: var(--muted); font-size: 15.5px; line-height: 1.72; max-width: 64ch; }
.voce-side { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; text-align: right; padding-top: 4px; }
.voce-side .price { margin: 0; font-size: 30px; }
.voce-side .price small { display: block; margin: 6px 0 0; font-size: 12px; line-height: 1.5; max-width: 26ch; margin-left: auto; }
.voce-side .price-detail { margin: 0; max-width: 26ch; }
.voce-side .btn { padding: 13px 18px; font-size: 10.5px; }
.voce-featured { border-top-color: var(--text); }
.voce-featured .voce-idx::before, .voce-featured .voce-idx .label { color: var(--text); }
@media (max-width: 860px) {
  .voce { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .voce-idx { flex-direction: row; align-items: baseline; gap: 16px; padding-top: 0; }
  .voce-body:last-child { grid-column: auto; }
  .voce-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .voce-side .price small { margin-left: 0; }
}

.price { margin: 22px 0 6px; font-family: var(--serif); font-size: 32px; line-height: 1.1; letter-spacing: -0.01em; color: var(--text); }
.price small { margin-left: 6px; font-family: var(--sans); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.price-detail { margin-bottom: 18px; font-size: 13px; line-height: 1.6; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }

.ticks { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--line); }
.ticks li { position: relative; margin: 0; padding: 13px 0 13px 28px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 1.2em; width: 9px; height: 4px; border-left: 1px solid var(--body); border-bottom: 1px solid var(--body); transform: rotate(-45deg); }

/* Fasi */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-2); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 24px; margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.steps li + li { margin-top: 0; }
.steps li::before { content: counter(step, upper-roman) "."; grid-row: 1 / span 2; font: italic 400 24px/1.2 var(--serif); color: var(--muted); }
.steps strong { grid-column: 2; display: block; margin-bottom: 6px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.35; }
.steps span { grid-column: 2; color: var(--muted); font-size: 15.5px; line-height: 1.7; }

/* Presidi in colonne */
.fatti { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 40px clamp(32px, 4vw, 56px); margin: 36px 0; }
.fatto { padding-top: 24px; border-top: 1px solid var(--line-3); }
.fatto .label { margin-bottom: 18px; }
.fatto h3, .fatto h4 { margin: 0 0 12px; }
.fatto p { color: var(--muted); font-size: 15px; line-height: 1.7; }

.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; list-style: none; padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.55; color: var(--muted); }
.trust li { position: relative; margin: 0; padding: 16px 0 16px 22px; border-bottom: 1px solid var(--line); }
.trust li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 10px; height: 1px; background: var(--line-4); }
@media (max-width: 680px) { .trust { grid-template-columns: minmax(0, 1fr); } }

.manifesto { padding: clamp(80px, 10vw, 140px) 0; border-bottom: 1px solid var(--line); }
.manifesto figure { margin: 0 auto; max-width: 1040px; text-align: center; }
.manifesto blockquote { margin: 0; }
.manifesto blockquote p { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 3.9vw, 52px); line-height: 1.24; letter-spacing: -0.014em; color: var(--text); text-wrap: balance; }
.manifesto figcaption { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; font-size: var(--fs-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.manifesto figcaption::before, .manifesto figcaption::after { content: ""; width: 40px; height: 1px; background: var(--line-3); }

/* Tabelle dei compensi */
.table-wrap { overflow-x: auto; margin: 32px 0; }
table.fees { width: 100%; border-collapse: collapse; font-size: 15px; border-top: 1px solid var(--line-3); }
table.fees th, table.fees td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.fees td:last-child { white-space: nowrap; color: var(--text); font-family: var(--serif); font-size: 18px; }
table.fees tbody tr { transition: background-color var(--t); }
table.fees tbody tr:hover { background: var(--tint); }
table.fees.fees-testo td:last-child { white-space: normal; font-family: inherit; font-size: inherit; color: inherit; }
table.fees.fees-parere td:nth-child(2), table.fees.fees-pacchetti td:nth-child(3) { white-space: nowrap; }
table.fees.fees-pacchetti td:first-child { min-width: 180px; }
table.fees.fees-pacchetti td:nth-child(2) { min-width: 320px; color: var(--muted); }

/* Pacchetti del Parere Preliminare: schede sempre leggibili */
.pkg-legend { margin: 36px 0 16px; }
.pkg-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(48px, 5vw, 72px) clamp(40px, 5vw, 80px); margin: 8px 0 48px; }
@media (max-width: 860px) { .pkg-list { grid-template-columns: minmax(0, 1fr); } }
.pkg { display: flex; flex-direction: column; padding-top: 28px; border-top: 1px solid var(--line-3); }
.pkg-head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.pkg-head .acc-head { display: flex; flex-direction: column; gap: 6px; }
.pkg-head .acc-title { font-family: var(--serif); font-weight: 400; font-size: clamp(21px, 1.9vw, 24px); line-height: 1.28; color: var(--text); }
.pkg-head .acc-title strong { font-weight: 400; }
.pkg-head .acc-sub { font-size: 14px; color: var(--muted); }
.pkg-head .acc-sub em { font-style: normal; }
.price-badge { align-self: flex-start; margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.2; color: var(--body); }
.pkg > .details-body { display: flex; flex-direction: column; flex: 1 1 auto; }
.pkg > .details-body > :first-child { margin-top: 0; }
.pkg .pkg-label { margin-bottom: 12px; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; text-transform: none; color: var(--text); line-height: 1.5; }
.pkg .pkg-label em { font-weight: 400; color: var(--muted); }
.pkg-label em, .pkg-prezzi dt em { font-style: normal; text-transform: none; letter-spacing: 0.02em; }
.pkg .details-body ul { padding-left: 1.1em; }
.pkg .details-body li { font-size: 15px; line-height: 1.68; color: var(--body); }
.pkg-prezzi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; margin: auto 0 0; padding-top: 20px; border-top: 1px dotted var(--line-3); }
.pkg-prezzi > div { padding: 4px 0 0; }
.pkg-prezzi dd { margin: 8px 0 0; font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--text); }
.pkg-prezzi dd strong { font-weight: 400; }
.pkg-prezzi dd em { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; font-style: normal; color: var(--muted); }
.pkg-scope { color: var(--muted); margin-bottom: 22px; }
@media (max-width: 520px) { .pkg-prezzi { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* Finestrelle residue (FAQ e riquadri): elenco a filetti, nessuna scatola */
:root { interpolate-size: allow-keywords; }
.faq { margin-top: 8px; }
.faq h2 { margin-bottom: 28px; }
.faq details, .acc { border-top: 1px solid var(--line-2); margin: 0; }
.faq details:last-of-type, .acc:last-of-type { border-bottom: 1px solid var(--line-2); }
.faq summary, .acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; cursor: pointer; list-style: none; color: var(--text); font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.38; transition: color var(--t); }
.faq summary::-webkit-details-marker, .acc > summary::-webkit-details-marker { display: none; }
.faq summary::after, .acc > summary::after { content: ""; flex: none; width: 36px; height: 36px; border: 1px solid var(--line-3); border-radius: 50%; background: linear-gradient(var(--body), var(--body)) center / 12px 1px no-repeat, linear-gradient(var(--body), var(--body)) center / 1px 12px no-repeat; transition: transform 0.45s var(--ease-out), border-color var(--t); }
.faq summary:hover::after, .acc > summary:hover::after { border-color: var(--text); }
.faq details[open] summary::after, .acc[open] > summary::after { transform: rotate(45deg); }
.faq details > :not(summary) { max-width: 74ch; color: var(--muted); }
.faq details > :last-child { padding-bottom: 28px; }
.acc > .details-body { padding: 0 0 28px; }
.acc-head { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.acc-title { font-family: var(--sans); font-weight: 600; font-size: 16.5px; line-height: 1.45; color: var(--text); }
.acc-sub { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: var(--muted); }
.acc > summary > h2, .acc > summary > h3, .acc > summary > h4, .acc > summary .acc-head h2, .acc > summary .acc-head h3 { margin: 0; font-size: inherit; line-height: inherit; }
.faq details::details-content, .acc::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
.faq details[open]::details-content, .acc[open]::details-content { block-size: auto; }
.details-body p, .details-body li { font-size: 16px; line-height: 1.78; }
.details-body li + li { margin-top: 0.6em; }

.acc-list { list-style: none; padding: 0; margin: 0 0 28px; counter-reset: acc; }
.acc-list > li { counter-increment: acc; margin: 0; }
.acc-list > li + li { margin-top: 0; }

/* Box editoriale "In sintesi" */
/* "In sintesi": risposta d'apertura composta come un sommario, a corpo grande, tra due filetti */
.in-sintesi { margin: 40px 0 0; padding: 36px 0 40px; border-top: 1px solid var(--text); border-bottom: 1px solid var(--line-2); }
.prose .in-sintesi h2, .in-sintesi h2 { margin: 0 0 18px; font-size: clamp(24px, 2.3vw, 30px); font-style: italic; }
.in-sintesi p { font-family: var(--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.55; color: var(--text); }
.in-sintesi p strong { font-weight: 500; }
.in-sintesi p:last-child { margin-bottom: 0; }

/* Schede (tab) Area 1 / Area 2 */
.tablist { display: flex; gap: 0; margin: 12px 0 40px; border-bottom: 1px solid var(--line-2); }
.tablist[hidden] { display: none; }
.tablist [role="tab"] { appearance: none; position: relative; flex: 1 1 0; background: none; border: 0; color: var(--muted); font: 400 clamp(17px, 1.6vw, 20px)/1.3 var(--serif); padding: 18px 12px 20px 0; cursor: pointer; text-align: left; transition: color var(--t); }
.tablist [role="tab"] span { display: block; margin-top: 6px; font: 500 var(--fs-xs)/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.tablist [role="tab"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--text); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); }
.tablist [role="tab"]:hover, .tablist [role="tab"][aria-selected="true"] { color: var(--text); }
.tablist [role="tab"][aria-selected="true"]::after { transform: scaleX(1); }
.tablist [role="tab"]:focus-visible { outline: 1px solid var(--text); outline-offset: -4px; }
.tabpanel:focus-visible { outline: none; }

/* Indice rapido residuo */
.acc-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; margin: 36px 0 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.jump { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.jump a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.jump a:hover { color: var(--text); }
.acc-toggle-all { appearance: none; background: none; color: var(--muted); border: 1px solid var(--line-2); padding: 9px 16px; font: 500 var(--fs-xs)/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }

/* Approfondimenti: elenco degli articoli */
.article-entry { margin: 0; padding: clamp(32px, 4vw, 48px) 0; background: none; border: 0; border-bottom: 1px solid var(--line); transition: padding-left 0.5s var(--ease-out); }
.article-entry::before { display: none; }
.article-entry:first-child { border-top: 1px solid var(--line-2); }
.article-entry + .article-entry { margin-top: 0; }
.article-entry:hover { padding-left: 16px; }
.h-entry { font-size: clamp(23px, 2.3vw, 30px); line-height: 1.24; }

/* Moduli */
/* Modulo come un foglio: nessuna cornice, solo il filetto d'intestazione e le righe dei campi */
.form { position: relative; display: grid; gap: 30px; padding: 36px 0 0; border-top: 1px solid var(--text); }
.form-bare { padding: 0; border: 0; background: none; }
.form-bare::before { display: none; }
.form .row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: end; }
@media (max-width: 680px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint { font-size: 12.5px; }
input, select, textarea { width: 100%; padding: 12px 0; background: transparent; color: var(--text); border: 0; border-bottom: 1px solid var(--line-3); border-radius: 0; font: 16px/1.5 var(--sans); transition: border-color var(--t); }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--line-4); }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--text); }
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
select option, select optgroup { background: var(--surface); color: var(--text); }
.check { display: flex; gap: 14px; align-items: flex-start; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.check input { flex: none; width: 16px; height: 16px; margin-top: 4px; padding: 0; border: 0; accent-color: #FFFFFF; }
.form .btn { justify-self: start; }
@media (max-width: 520px) { .form .btn { justify-self: stretch; } }
.form-status { padding-left: 16px; border-left: 1px solid var(--text); font-size: 14px; color: var(--text); }
.form-status[hidden] { display: none; }
.form-status.ok { color: #86EFAC; border-left-color: #86EFAC; }
#richiesta .split > div:first-child { position: sticky; top: calc(var(--header-h) + 40px); }
@media (max-width: 900px) { #richiesta .split > div:first-child { position: static; } }

/* Calcolatore e check-up */
.tool { padding: 36px 0 0; border-top: 1px solid var(--text); }
.tool input, .tool select { padding: 12px 14px; border: 1px solid var(--line-2); }
.tool input:focus { border-color: var(--text); }
.tool-result { display: grid; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.tool-result div { display: flex; justify-content: space-between; gap: 16px; }
.tool-result .total { padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 26px; color: var(--text); }
.cu-group { display: flex; align-items: center; gap: 16px; margin: 44px 0 14px; }
.cu-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cu-q { margin: 0; padding: 22px 0 24px; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.cu-q legend { float: left; width: 100%; margin-bottom: 10px; padding: 0; font-family: var(--serif); font-size: 19px; color: var(--text); }
.cu-q legend + * { clear: left; }
.cu-q label { display: flex; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; color: var(--body); cursor: pointer; }
.cu-q input { flex: none; width: 16px; height: 16px; padding: 0; border: 0; accent-color: #FFFFFF; }
.cu-out h3 { margin-top: 36px; }
.cu-item { margin: 12px 0; padding: 6px 0 6px 18px; border-left: 1px solid var(--line-3); }
.cu-item.lv2 { border-left-color: var(--text); }
.cu-item strong { display: block; font-weight: 500; }
.cu-item span { font-size: 14.5px; color: var(--muted); }

/* Foto del titolare */
.con-foto { display: flow-root; }
.foto-titolare { float: right; width: 200px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; margin: 6px 0 16px 32px; filter: saturate(0.7) contrast(1.04); box-shadow: 14px 14px 0 -1px var(--bg), 14px 14px 0 0 var(--line-3); }
@media (max-width: 720px) { .foto-titolare { width: 132px; margin-left: 20px; box-shadow: 10px 10px 0 -1px var(--bg), 10px 10px 0 0 var(--line-3); } }
.profilo .hero-media { max-width: 220px; }

/* Piè di pagina */
.site-footer { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 128px) 0 40px; background: var(--bg-deep); border-top: 1px solid var(--line); font-size: 14px; line-height: 1.8; color: var(--muted); }
.site-footer::before { content: ""; position: absolute; left: -160px; bottom: -120px; width: 760px; height: 560px; background: var(--catasto) no-repeat left bottom / contain; opacity: 0.045; pointer-events: none; }
.site-footer > .wrap { position: relative; }
.footer-brand { display: inline-block; margin-bottom: 32px; font-family: var(--serif); font-size: clamp(34px, 3.4vw, 46px); letter-spacing: 0.32em; color: var(--text); text-decoration: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
.site-footer h2 { margin-bottom: 22px; color: var(--text); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer address { font-style: normal; line-height: 1.9; color: var(--body); }
.footer-presidi { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: 0.02em; }

/* Barra di chiamata rapida (smartphone) */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; align-items: center; justify-content: center; min-height: 56px; padding: 0 16px env(safe-area-inset-bottom); background: var(--text); color: var(--bg); font: 500 11.5px/1.2 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; }
  main:has(.callbar) { padding-bottom: 56px; }
  body:has(.callbar) .site-footer { padding-bottom: 96px; }
}

/* Comparsa progressiva (solo con JavaScript attivo: senza script il contenuto resta visibile) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.hero .eyebrow, .hero h1, .hero .lead, .hero .actions { animation: entra 1s var(--ease-out) both; }
.hero h1 { animation-delay: 0.05s; }
.hero .lead { animation-delay: 0.14s; }
.hero .actions { animation-delay: 0.24s; }
@keyframes entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .hero { padding: 56px 0 64px; }
  .chapter-head .acc-head h2, .chapter-head > h2, .chapter-head .acc-title { font-size: 28px; }
  .sub-card, .voce, .pkg { padding: 24px 20px; }
  .faq summary::after, .acc > summary::after { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .actions, .form, .toc, .callbar { display: none; }
  body { background: #fff; color: #000; }
  body::before, .hero::before { display: none; }
  h1, h2, h3, h4, strong { color: #000; }
  .faq details::details-content, .acc::details-content { block-size: auto; content-visibility: visible; }
}

/* ===================================================================================
   RIGORE (30/11/2026, richiesta del Titolare): nessun segno decorativo.
   Modello: siti dei grandi studi legali. Solo tipografia, spazio bianco e link semplici.
   Tolti: grana e trama catastale, filetti d'etichetta, segni di paragrafo, numeri romani,
   numerazioni decorative, frecce nei pulsanti, cornici della foto, cerchi delle FAQ,
   bordi di colonne, schede, moduli e riquadri. Restano filetti solo dove separano righe
   di un elenco tabellare (compensi, registro dei servizi, domande frequenti).
   =================================================================================== */
body::before, .hero::before, .site-footer::before { display: none; }
body { background: var(--bg); }

.eyebrow { gap: 0; margin-bottom: 24px; letter-spacing: 0.16em; }
.eyebrow::before { display: none; }

.topbar li + li::before { display: none; }
.topbar li + li { margin-left: 32px; }

/* Pulsanti: uno solo pieno per pagina, gli altri sono link sottolineati */
.btn::after, .btn::before, .more::after { display: none; }
.btn { gap: 0; padding: 18px 32px; letter-spacing: 0.16em; transition: background-color var(--t), color var(--t), border-color var(--t); }
.btn-primary:hover { background: var(--body); border-color: var(--body); color: var(--bg); }
.btn-outline { padding: 10px 0; border: 0; border-bottom: 1px solid var(--line-3); background: none; }
.btn-outline:hover { background: none; border-bottom-color: var(--text); }
.actions { gap: 20px 40px; align-items: center; }
@media (max-width: 520px) { .actions .btn-outline { flex: 0 0 auto; } }
.nav .btn-primary, .nav .btn { padding: 10px 0; background: none; border: 0; border-bottom: 1px solid var(--line-3); color: var(--text); }
.nav .btn-primary:hover { background: none; color: var(--text); border-bottom-color: var(--text); }
.voce-side .btn, .area-link .btn { padding: 10px 0; }
.area-link .btn { width: auto; justify-content: flex-start; }

/* Foto senza cornice */
.hero-media { margin: 0; }
.hero-media::before, .hero-media::after { display: none; }
.hero-media img { filter: saturate(0.8) brightness(0.95); }
.foto-titolare { box-shadow: none; }

/* Macro-aree: colonne separate dallo spazio, non da linee */
.areas { border-top: 0; column-gap: clamp(48px, 7vw, 120px); }
.area, .area + .area { padding: 0; border: 0; }
@media (max-width: 900px) { .area + .area { margin-top: 72px; border-top: 0; } }
.track { padding: 28px 0 0; border: 0; }
.track::before { display: none; }
.area > .track:last-of-type { border-bottom: 0; }
.area-list { border-top: 0; }
.area-card, .area-servizi .area-list > li:nth-child(-n+2) .area-card { padding: 18px 0; border: 0; }
.area-servizi .area-list > li:nth-child(-n+2) { border-top: 0; }
.area-card:hover { padding-left: 0; background: none; }
.area-card:hover h3 a { text-decoration: underline; text-decoration-color: var(--line-3); }
.area-card::after { display: none; }

/* Indice laterale: semplice elenco di titoli */
.toc ol { border-left: 0; }
.toc a { display: block; padding: 8px 0; }
.toc a::before, .toc a::after { display: none; }
@media (max-width: 1080px) { .toc { border-top: 0; border-bottom: 0; padding: 0; } }

/* Capitoli: separati dallo spazio e da un solo filetto tenue */
.chapter-head::before { display: none; }
.chapter-head { padding-bottom: 0; border-bottom: 0; }
.chapter + .chapter { border-top: 1px solid var(--line); }

/* Colonne di approfondimento, pacchetti e presidi: nessun bordo */
.sub-card, .pkg, .fatto { padding-top: 0; border-top: 0; }
ol.sub-grid > li > .sub-card > .sub-card-head { display: block; }
ol.sub-grid > li > .sub-card > .sub-card-head::before { display: none; }
.sub-grid { row-gap: clamp(48px, 5vw, 64px); }
.pkg-list { row-gap: clamp(56px, 6vw, 80px); }
.pkg-prezzi { padding-top: 0; border-top: 0; margin-top: 28px; }

/* Registro dei servizi: righe con filetto tenue, senza numerazione */
.voce-idx::before { display: none; }
.voce { grid-template-columns: minmax(0, 1fr) minmax(180px, auto); border-top-color: var(--line); }
.voce-idx { grid-column: 1; padding-top: 0; margin-bottom: 4px; }
.voce-idx:empty { display: none; }
.voce-body { grid-column: 1; }
.voce-body:last-child { grid-column: 1 / -1; }
.voce-side { grid-column: 2; grid-row: 1 / span 2; }
.voce-featured { border-top-color: var(--line-3); }
@media (max-width: 860px) { .voce { grid-template-columns: minmax(0, 1fr); } .voce-side { grid-column: 1; grid-row: auto; } }
.registro { border-bottom-color: var(--line); }

/* Fasi: numero semplice, senza corsivi */
.steps { border-top: 0; }
.steps li { grid-template-columns: 40px minmax(0, 1fr); border-bottom: 0; padding: 18px 0; }
.steps li::before { content: counter(step) "."; font: 500 15px/1.9 var(--sans); color: var(--muted); }

/* Rilievi, note e sintesi: solo tipografia */
.callout { padding: 0; margin: 48px 0; }
.callout::before { display: none; }
.note { padding-left: 0; border-left: 0; }
.in-sintesi { padding: 0; border: 0; margin-bottom: 64px; }
.in-sintesi h2 { font-style: normal; }
.trust, .trust li, .fatti { border: 0; }
.trust li::before { display: none; }
.trust li { padding-left: 0; }
.cu-group::after { display: none; }
.cu-q { border-top: 0; padding: 14px 0; }
.cu-item { border-left: 0; padding-left: 0; }
.manifesto figcaption::before, .manifesto figcaption::after { display: none; }

/* Domande frequenti: segno + senza cerchio */
.faq summary::after, .acc > summary::after { width: 14px; height: 14px; border: 0; border-radius: 0; }

/* Modulo e check-up senza cornice */
.form, .tool { padding-top: 0; border-top: 0; }

/* Menu e pie' di pagina */
.nav-panel a + a { border-top: 0; }
.footer-presidi { border-top: 0; padding-top: 0; }

/* Pagina inglese: pie' di pagina compatto (senza colonne di menu) */
.site-footer:not(:has(.footer-grid)) { padding-top: 0; }
.site-footer:not(:has(.footer-grid)) .footer-legal { margin-top: 0; padding-top: 40px; border-top: 0; }

/* Pagina inglese: termini dell'incarico, tabella dei compensi, nota deontologica */
.terms p { margin: 0 0 22px; font-size: 16px; line-height: 1.75; }
.terms p strong { display: block; margin-bottom: 4px; font-family: var(--serif); font-weight: 400; font-size: 19px; }
.fees-title { margin: clamp(64px, 7vw, 96px) 0 8px; }
table.fees-schedule th[scope="row"] { width: 28%; padding-right: 24px; font-family: var(--serif); font-weight: 400; font-size: 18px; color: var(--text); text-transform: none; letter-spacing: 0; line-height: 1.35; }
table.fees-schedule td:nth-child(2) { color: var(--muted); line-height: 1.65; }
table.fees-schedule td:last-child { width: 16%; white-space: normal; font-size: 22px; }
table.fees-schedule td:last-child em { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
table.fees-schedule tr.fees-area th { padding-top: 40px; color: var(--muted); }
table.fees-schedule tbody tr.fees-area:hover { background: none; }
.legal-notice { margin-top: 72px; font-size: 14px; line-height: 1.75; color: var(--muted); }
.legal-notice h3 { font-size: 20px; }
@media (max-width: 720px) {
  table.fees-schedule, table.fees-schedule tbody, table.fees-schedule tr, table.fees-schedule th, table.fees-schedule td { display: block; width: auto; }
  table.fees-schedule thead { display: none; }
  table.fees-schedule tr { padding: 20px 0; border-bottom: 1px solid var(--line); }
  table.fees-schedule th, table.fees-schedule td { padding: 4px 0; border: 0; }
}
