/* Studio Legale Pontecorvo – Lapira · sito pubblico
   Sistema grafico sopra Bootstrap 5.3 (solo griglia e utilità).
   Colori dal logo (blu ardesia #243C64) e dal vecchio sito (navy #212940), con un accento ottone. */

@import url("fonts.css");

/* ---------- Token ---------- */
:root {
  --pl-ink: #151A2C;
  --pl-ink-rgb: 21, 26, 44;
  --pl-navy-950: #0B1222;
  --pl-navy-900: #111B31;
  --pl-navy-800: #18253F;
  --pl-navy: #212940;
  --pl-brand: #243C64;
  --pl-brand-rgb: 36, 60, 100;
  --pl-brand-600: #2F4E80;
  --pl-brand-400: #5D7BAA;
  --pl-brand-100: #E5EBF4;
  --pl-brand-50: #F1F4F9;
  --pl-brass: #B08F57;
  --pl-brass-rgb: 176, 143, 87;
  --pl-brass-light: #D9C29A;
  --pl-brass-dark: #8A6C3A;
  --pl-paper: #F7F4EE;
  --pl-paper-2: #EFEADF;
  --pl-surface: #FFFFFF;
  --pl-muted: #5C6375;
  --pl-muted-light: #A9B1C4;
  --pl-line: rgba(21, 26, 44, 0.09);
  --pl-line-strong: rgba(21, 26, 44, 0.16);
  --pl-line-light: rgba(255, 255, 255, 0.14);

  --pl-serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --pl-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --pl-radius-sm: 0.75rem;
  --pl-radius: 1.25rem;
  --pl-radius-lg: 1.75rem;
  --pl-radius-xl: 2.25rem;
  --pl-shadow-sm: 0 1px 2px rgba(var(--pl-ink-rgb), 0.06), 0 0 0 1px rgba(var(--pl-ink-rgb), 0.05);
  --pl-shadow: 0 0 0 1px rgba(var(--pl-ink-rgb), 0.05), 0 18px 40px -24px rgba(var(--pl-ink-rgb), 0.35);
  --pl-shadow-lg: 0 0 0 1px rgba(var(--pl-ink-rgb), 0.04), 0 40px 80px -40px rgba(var(--pl-ink-rgb), 0.45), 0 12px 28px -18px rgba(var(--pl-ink-rgb), 0.25);
  --pl-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --pl-header-h: 5.25rem;
  --pl-container: 1240px;

  --bs-body-font-family: var(--pl-sans);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--pl-ink);
  --bs-body-bg: var(--pl-paper);
  --bs-link-color: var(--pl-brand);
  --bs-link-color-rgb: var(--pl-brand-rgb);
  --bs-link-hover-color: var(--pl-navy-900);
  --bs-border-color: var(--pl-line-strong);
  --bs-emphasis-color: var(--pl-ink);
  --bs-secondary-color: var(--pl-muted);
  --bs-gutter-x: 2rem;
}

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pl-header-h) + 1rem);
}

body {
  background: var(--pl-paper);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(var(--pl-brass-rgb), 0.28);
  color: var(--pl-ink);
}

:focus-visible {
  outline: 2px solid var(--pl-brass);
  outline-offset: 3px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--pl-ease);
}

h1, h2, h3, h4, .display-serif {
  font-family: var(--pl-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.12;
  color: var(--pl-ink);
}

h1 { font-size: clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3.1rem); }
h3 { font-size: clamp(1.4rem, 1.2rem + 0.6vw, 1.75rem); }

h1 em, h2 em, .display-serif em {
  font-style: italic;
  font-weight: 400;
  color: var(--pl-brand);
}

p { margin-bottom: 1.15em; }

.container-pl {
  width: 100%;
  max-width: var(--pl-container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container-narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 3000;
  padding: 0.75rem 1.1rem;
  border-radius: 0.6rem;
  background: var(--pl-ink);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; color: #fff; }

.visually-hidden-focusable:not(:focus) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

/* ---------- Elementi tipografici ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  font-family: var(--pl-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pl-brass-dark);
}

.kicker::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.kicker--center { justify-content: center; }
.kicker--center::after {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.on-dark .kicker,
.kicker--light { color: var(--pl-brass-light); }

.lead-pl {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  line-height: 1.65;
  color: var(--pl-muted);
  font-weight: 400;
}

.on-dark .lead-pl { color: rgba(255, 255, 255, 0.74); }

.text-muted-pl { color: var(--pl-muted); }

.section-head {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 { margin-bottom: 1rem; }

/* ---------- Pulsanti ---------- */
.btn-pl {
  --btn-bg: var(--pl-brand);
  --btn-fg: #fff;
  --btn-border: var(--pl-brand);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.25rem;
  padding: 0.85rem 1.6rem;
  border: 1px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--pl-sans);
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--pl-ease), box-shadow 0.35s var(--pl-ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}

.btn-pl .bi { font-size: 1.05em; transition: transform 0.35s var(--pl-ease); }
.btn-pl:hover .bi-arrow-right,
.btn-pl:hover .bi-arrow-up-right { transform: translateX(3px); }

.btn-pl:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn-pl:active { transform: translateY(0); }

.btn-pl--primary {
  --btn-bg: var(--pl-brand);
  --btn-border: var(--pl-brand);
  box-shadow: 0 14px 30px -16px rgba(var(--pl-brand-rgb), 0.9);
}
.btn-pl--primary:hover {
  --btn-bg: var(--pl-navy-900);
  --btn-border: var(--pl-navy-900);
  box-shadow: 0 18px 34px -16px rgba(var(--pl-brand-rgb), 1);
}

.btn-pl--brass {
  --btn-bg: linear-gradient(135deg, #C7A86F 0%, #A9874D 100%);
  --btn-fg: #fff;
  --btn-border: transparent;
  background: linear-gradient(135deg, #C4A46A 0%, #A3824A 100%);
  box-shadow: 0 14px 30px -14px rgba(var(--pl-brass-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-pl--brass:hover {
  box-shadow: 0 20px 36px -16px rgba(var(--pl-brass-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  filter: brightness(1.05);
}

.btn-pl--outline {
  --btn-bg: transparent;
  --btn-fg: var(--pl-ink);
  --btn-border: var(--pl-line-strong);
}
.btn-pl--outline:hover {
  --btn-bg: var(--pl-surface);
  --btn-fg: var(--pl-ink);
  --btn-border: var(--pl-ink);
}

.btn-pl--light {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-fg: #fff;
  --btn-border: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn-pl--light:hover {
  --btn-bg: #fff;
  --btn-fg: var(--pl-ink);
  --btn-border: #fff;
}

.btn-pl--sm {
  min-height: 2.6rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.875rem;
}

.btn-pl--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  font-size: 0.95rem;
  color: var(--pl-brand);
  text-decoration: none;
}
.link-arrow .bi { transition: transform 0.35s var(--pl-ease); }
.link-arrow:hover { color: var(--pl-navy-900); }
.link-arrow:hover .bi { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--pl-brass-light); }
.on-dark .link-arrow:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--pl-header-h);
  transition: background-color 0.4s var(--pl-ease), box-shadow 0.4s var(--pl-ease), height 0.4s var(--pl-ease), border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
}

.site-header .brand img {
  display: block;
  height: 2.95rem;
  width: auto;
  transition: opacity 0.35s var(--pl-ease), height 0.4s var(--pl-ease);
}

.site-header .brand .brand-light {
  position: absolute;
  inset: 0 auto auto 0;
  opacity: 0;
}

/* Header chiaro (pagine con apertura chiara) */
.site-header {
  background: rgba(247, 244, 238, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--pl-line);
}

/* Header trasparente sopra un'apertura scura */
.has-dark-hero .site-header:not(.is-scrolled) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.has-dark-hero .site-header:not(.is-scrolled) .brand .brand-dark { opacity: 0; }
.has-dark-hero .site-header:not(.is-scrolled) .brand .brand-light { opacity: 1; }
.has-dark-hero .site-header:not(.is-scrolled) .nav-main > li > a,
.has-dark-hero .site-header:not(.is-scrolled) .nav-main > li > button,
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch a,
.has-dark-hero .site-header:not(.is-scrolled) .header-phone,
.has-dark-hero .site-header:not(.is-scrolled) .burger { color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch { border-color: rgba(255, 255, 255, 0.25); }
.has-dark-hero .site-header:not(.is-scrolled) .lang-switch a.active { background: rgba(255, 255, 255, 0.16); color: #fff; }
.has-dark-hero .site-header:not(.is-scrolled) .burger span { background: #fff; }

.site-header.is-scrolled {
  --pl-header-h: 4.5rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 40px -28px rgba(var(--pl-ink-rgb), 0.5);
  border-bottom-color: var(--pl-line);
}
.site-header.is-scrolled .brand img { height: 2.5rem; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}

.nav-main > li { position: relative; }

.nav-main > li > a,
.nav-main > li > button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 0.95rem;
  border: 0;
  background: none;
  color: var(--pl-ink);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
}

.nav-main > li > a::after,
.nav-main > li > button::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.3rem;
  height: 1px;
  background: var(--pl-brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--pl-ease);
}

.nav-main > li:hover > a::after,
.nav-main > li:hover > button::after,
.nav-main > li.active > a::after,
.nav-main > li.active > button::after,
.nav-main > li > a:focus-visible::after { transform: scaleX(1); }

.nav-main .bi-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.3s var(--pl-ease);
}
.nav-main > li:hover .bi-chevron-down,
.nav-main > li.open .bi-chevron-down { transform: rotate(180deg); }

/* Menu a tendina illustrato */
.nav-panel {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  min-width: 25rem;
  padding: 0.75rem;
  border-radius: var(--pl-radius);
  background: #fff;
  box-shadow: var(--pl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.3s var(--pl-ease), transform 0.3s var(--pl-ease), visibility 0.3s;
}

.nav-panel::before {
  content: "";
  position: absolute;
  inset: -1rem 0 auto 0;
  height: 1rem;
}

.nav-main > li:hover > .nav-panel,
.nav-main > li:focus-within > .nav-panel,
.nav-main > li.open > .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-panel a {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  color: var(--pl-ink);
  text-decoration: none;
  transition: background-color 0.2s;
}

.nav-panel a:hover { background: var(--pl-brand-50); }

.nav-panel__media {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.8rem;
  overflow: hidden;
  background: var(--pl-brand-100);
  color: var(--pl-brand);
  font-size: 1.25rem;
}

.nav-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
}

.nav-panel__label {
  display: block;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.3;
}

.nav-panel__note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--pl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-panel__all {
  margin-top: 0.4rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--pl-line);
}

.nav-panel__all a {
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--pl-brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border: 1px solid var(--pl-line-strong);
  border-radius: 999px;
}

.lang-switch a {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--pl-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang-switch a.active {
  background: var(--pl-ink);
  color: #fff;
}

.burger {
  display: none;
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--pl-ink);
}

.burger span {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  height: 1.5px;
  background: var(--pl-ink);
  transition: transform 0.4s var(--pl-ease), opacity 0.3s;
}
.burger span:nth-child(1) { top: 1.05rem; }
.burger span:nth-child(2) { top: 1.6rem; right: 1.1rem; }

/* Menu mobile a tutto schermo */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 1.25rem clamp(1.25rem, 5vw, 2.5rem) 2rem;
  background:
    radial-gradient(90% 60% at 100% 0%, rgba(var(--pl-brand-rgb), 0.55), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(var(--pl-brass-rgb), 0.22), transparent 70%),
    var(--pl-navy-950);
  color: #fff;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--pl-ease), visibility 0.45s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
}

.mobile-menu__top img { height: 2.3rem; width: auto; }

.mobile-menu__close {
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
}

.mobile-menu nav { margin: 2.5rem 0 2rem; }

.mobile-menu ul { list-style: none; margin: 0; padding: 0; }

.mobile-menu > nav > ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--pl-ease), transform 0.5s var(--pl-ease);
}

.mobile-menu.open > nav > ul > li { opacity: 1; transform: none; }
.mobile-menu.open > nav > ul > li:nth-child(2) { transition-delay: 0.05s; }
.mobile-menu.open > nav > ul > li:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu.open > nav > ul > li:nth-child(4) { transition-delay: 0.15s; }
.mobile-menu.open > nav > ul > li:nth-child(5) { transition-delay: 0.2s; }
.mobile-menu.open > nav > ul > li:nth-child(6) { transition-delay: 0.25s; }

.mobile-menu > nav > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  color: #fff;
  font-family: var(--pl-serif);
  font-size: clamp(1.7rem, 6vw, 2.2rem);
  text-decoration: none;
}

.mobile-menu > nav > ul > li > a .bi { font-size: 1.1rem; color: var(--pl-brass-light); }

.mobile-menu .sub {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 1.1rem;
}

.mobile-menu .sub a {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  text-decoration: none;
}

.mobile-menu__footer {
  margin-top: auto;
  display: grid;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.mobile-menu__footer a { color: #fff; text-decoration: none; }

.mobile-menu .lang-switch { border-color: rgba(255, 255, 255, 0.25); justify-self: start; }
.mobile-menu .lang-switch a { color: rgba(255, 255, 255, 0.7); }
.mobile-menu .lang-switch a.active { background: #fff; color: var(--pl-ink); }

@media (max-width: 1199.98px) {
  .nav-main, .header-actions .header-cta, .header-phone { display: none !important; }
  .burger { display: inline-block; margin-left: auto; }
  .site-header__inner { gap: 1rem; }
  .header-actions { margin-left: auto; }
  .header-actions .lang-switch { display: none; }
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--pl-ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 1399.98px) {
  .header-phone { display: none; }
}

main { display: block; }

/* ---------- Sezioni ---------- */
.section {
  position: relative;
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.section--tight { padding-block: clamp(3.5rem, 6vw, 5.5rem); }
.section--flush-top { padding-top: 0; }

.bg-paper { background: var(--pl-paper); }
.bg-paper-2 { background: var(--pl-paper-2); }
.bg-white { background: var(--pl-surface); }

.bg-navy {
  background:
    radial-gradient(70% 80% at 85% 0%, rgba(var(--pl-brand-rgb), 0.55), transparent 65%),
    radial-gradient(50% 60% at 0% 100%, rgba(var(--pl-brass-rgb), 0.12), transparent 70%),
    var(--pl-navy-950);
  color: rgba(255, 255, 255, 0.82);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark h1 em, .on-dark h2 em { color: var(--pl-brass-light); }

/* Grana leggerissima per dare materia ai fondi scuri */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.35'/></svg>");
}

/* Aloni sfumati in movimento (come le pagine di accesso di Brindo) */
.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.aurora span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.aurora span:nth-child(1) {
  top: -20%;
  right: -10%;
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle, rgba(var(--pl-brand-rgb), 0.55), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}

.aurora span:nth-child(2) {
  bottom: -30%;
  left: -15%;
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, rgba(var(--pl-brass-rgb), 0.28), transparent 65%);
  animation: drift-2 32s ease-in-out infinite alternate;
}

.aurora span:nth-child(3) {
  top: 10%;
  left: 30%;
  width: 30vmax;
  height: 30vmax;
  background: radial-gradient(circle, rgba(93, 123, 170, 0.3), transparent 65%);
  animation: drift-3 38s ease-in-out infinite alternate;
}

.aurora--light span:nth-child(1) { background: radial-gradient(circle, rgba(var(--pl-brand-rgb), 0.16), transparent 65%); }
.aurora--light span:nth-child(2) { background: radial-gradient(circle, rgba(var(--pl-brass-rgb), 0.22), transparent 65%); }
.aurora--light span:nth-child(3) { background: radial-gradient(circle, rgba(93, 123, 170, 0.14), transparent 65%); }

@keyframes drift-1 { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes drift-2 { to { transform: translate(10vmax, -6vmax) scale(1.15); } }
@keyframes drift-3 { to { transform: translate(-6vmax, 8vmax) scale(0.9); } }

/* ---------- Apertura della home ---------- */
.hero-home {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--pl-header-h) + clamp(3.5rem, 8vw, 7rem));
  padding-bottom: 0;
  overflow: hidden;
}

.hero-home::before {
  /* fascia chiara su cui "atterra" la foto */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: clamp(7rem, 16vw, 15rem);
  background: var(--pl-paper);
  z-index: 0;
}

.hero-home .container-pl { position: relative; z-index: 2; }

.hero-home__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.hero-home h1 {
  margin: 0;
  font-size: clamp(3rem, 1.6rem + 5.4vw, 6.6rem);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.025em;
  color: #fff;
}

.hero-home h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-home h1 .line > span { display: inline-block; animation: rise 1.1s var(--pl-ease) both; }
.hero-home h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero-home h1 em { color: var(--pl-brass-light); font-weight: 400; }

.hero-home__aside { padding-bottom: 0.6rem; animation: fade-up 1s 0.35s var(--pl-ease) both; }
.hero-home__aside .lead-pl { margin-bottom: 2rem; color: rgba(255, 255, 255, 0.78); }

.hero-home__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-photo {
  position: relative;
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: #6c6a70;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: photo-in 1.3s 0.2s var(--pl-ease) both;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: settle 2.4s 0.2s var(--pl-ease) both;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11, 18, 34, 0.55) 100%);
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.1rem 0.75rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(17, 27, 49, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  animation: fade-up 1s 0.9s var(--pl-ease) both;
}

.hero-chip .bi {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  font-size: 1rem;
  color: var(--pl-brass-light);
}

.hero-chip small { display: block; font-weight: 500; opacity: 0.72; font-size: 0.75rem; }

.hero-chip--left { left: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); }
.hero-chip--right { right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); animation-delay: 1.05s; }

@media (max-width: 991.98px) {
  .hero-home__head { grid-template-columns: 1fr; align-items: start; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-chip--right { display: none; }
}

@media (max-width: 575.98px) {
  .hero-photo { aspect-ratio: 4 / 3.4; border-radius: var(--pl-radius-lg); }
  .hero-photo img { object-position: 50% 30%; }
  .hero-chip { font-size: 0.78rem; }
}

/* Fascia dei punti di forza sotto la foto */
.trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--pl-line);
}

.trust__item {
  display: flex;
  gap: 1rem;
  padding: 1.75rem 1.5rem 0.5rem 0;
}

.trust__item + .trust__item { padding-left: 1.5rem; border-left: 1px solid var(--pl-line); }

.trust__item .bi {
  flex-shrink: 0;
  font-size: 1.35rem;
  color: var(--pl-brass);
  line-height: 1.4;
}

.trust__item strong {
  display: block;
  font-family: var(--pl-serif);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.3;
}

.trust__item span {
  display: block;
  margin-top: 0.25rem;
  color: var(--pl-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 575.98px) {
  .trust { grid-template-columns: 1fr; }
  .trust__item, .trust__item + .trust__item { padding: 1.25rem 0 0; border-left: 0; }
}

/* ---------- Apertura delle pagine interne ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--pl-header-h) + clamp(3rem, 7vw, 6rem));
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}

.page-hero .container-pl { position: relative; z-index: 1; }

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 1.25rem;
  animation: fade-up 0.9s var(--pl-ease) both;
}

.page-hero .lead-pl {
  max-width: 640px;
  animation: fade-up 0.9s 0.12s var(--pl-ease) both;
}

.page-hero--image {
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--pl-navy-950);
}

.page-hero--image .page-hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.page-hero--image .page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: settle 2.4s var(--pl-ease) both;
}

.page-hero--image .page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 18, 34, 0.88) 0%, rgba(11, 18, 34, 0.55) 45%, rgba(11, 18, 34, 0.15) 100%),
    linear-gradient(0deg, rgba(11, 18, 34, 0.7) 0%, transparent 50%);
}

.page-hero--image h1 { color: #fff; }

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--pl-muted);
  animation: fade-up 0.8s var(--pl-ease) both;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 0.5rem;
  opacity: 0.45;
}

.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--pl-brand); }
.on-dark .breadcrumbs, .page-hero--image .breadcrumbs { color: rgba(255, 255, 255, 0.7); }
.page-hero--image .breadcrumbs a:hover { color: #fff; }

/* ---------- Presentazione con foto incorniciata ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.split--reverse > :first-child { order: 2; }

@media (max-width: 991.98px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.framed {
  position: relative;
  padding: 0 0 2.5rem 2.5rem;
}

.framed::before {
  /* cornice ottone sfalsata */
  content: "";
  position: absolute;
  inset: 2.5rem 2.5rem 0 0;
  border: 1px solid rgba(var(--pl-brass-rgb), 0.55);
  border-radius: var(--pl-radius-xl);
}

.framed__img {
  position: relative;
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--pl-shadow-lg);
}

.framed__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--pl-ease);
}

.framed:hover .framed__img img { transform: scale(1.03); }

.framed--wide .framed__img { aspect-ratio: 5 / 4; }

.quote-card {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 19rem;
  padding: 1.5rem 1.6rem;
  border-radius: var(--pl-radius);
  background: var(--pl-navy-950);
  color: #fff;
  box-shadow: var(--pl-shadow-lg);
}

.quote-card .bi {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.6rem;
  color: var(--pl-brass-light);
  line-height: 1;
}

.quote-card p {
  margin: 0;
  font-family: var(--pl-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.45;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2B3145;
}

.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 2.4rem 0 1rem; }
.prose h3 { font-size: 1.35rem; margin: 2rem 0 0.75rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin-bottom: 1.25em; }
.prose li { margin-bottom: 0.45em; }
.prose ul li::marker { color: var(--pl-brass); }
.prose a { color: var(--pl-brand); text-decoration: underline; }
.prose blockquote {
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  border-left: 2px solid var(--pl-brass);
  font-family: var(--pl-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--pl-ink);
}
.prose img { border-radius: var(--pl-radius); margin: 1.5rem 0; }
.prose hr { margin: 2.5rem 0; border-color: var(--pl-line-strong); }

.prose--lead > p:first-child {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--pl-ink);
}

.prose--dropcap > p:first-child::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  font-family: var(--pl-serif);
  font-size: 4.6em;
  line-height: 0.82;
  color: var(--pl-brand);
}

/* ---------- Aree di competenza ---------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 991.98px) { .area-grid { grid-template-columns: 1fr; } }

.area-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 34rem;
  padding: 2rem;
  border-radius: var(--pl-radius-lg);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--pl-navy-900);
  box-shadow: var(--pl-shadow);
  transition: transform 0.6s var(--pl-ease), box-shadow 0.6s var(--pl-ease);
}

.area-card:hover {
  color: #fff;
  transform: translateY(-6px);
  box-shadow: var(--pl-shadow-lg);
}

.area-card__img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.area-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--pl-ease);
}

.area-card:hover .area-card__img img { transform: scale(1.06); }

.area-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 18, 34, 0.1) 0%, rgba(11, 18, 34, 0.55) 45%, rgba(11, 18, 34, 0.94) 100%);
  transition: background 0.6s var(--pl-ease);
}

.area-card__icon {
  position: absolute;
  top: 1.75rem;
  left: 1.75rem;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  font-size: 1.35rem;
  color: var(--pl-brass-light);
}

.area-card__num {
  position: absolute;
  top: 1.9rem;
  right: 2rem;
  font-family: var(--pl-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.65);
}

.area-card h3 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  color: #fff;
}

.area-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.78);
}

.area-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.6s var(--pl-ease), opacity 0.5s var(--pl-ease), margin 0.6s var(--pl-ease);
}

.area-card:hover .area-card__tags,
.area-card:focus-visible .area-card__tags {
  max-height: 8rem;
  margin-bottom: 1.25rem;
  opacity: 1;
}

.area-card__tags span {
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.area-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  font-weight: 650;
  color: #fff;
}

.area-card__more .bi { transition: transform 0.4s var(--pl-ease); }
.area-card:hover .area-card__more .bi { transform: translateX(5px); }

@media (hover: none) {
  .area-card__tags { max-height: none; opacity: 1; margin-bottom: 1.25rem; }
}

/* ---------- Il nostro metodo ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--pl-line-light);
}

.values__item {
  position: relative;
  padding: 2.5rem 2.5rem 0.5rem 0;
}

.values__item + .values__item {
  padding-left: 2.5rem;
  border-left: 1px solid var(--pl-line-light);
}

.values__num {
  display: block;
  margin-bottom: 1.5rem;
  font-family: var(--pl-serif);
  font-size: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--pl-brass-light), rgba(var(--pl-brass-rgb), 0.35));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.values__item h3 {
  margin-bottom: 0.75rem;
  font-size: 1.6rem;
  color: #fff;
}

.values__item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1rem;
  line-height: 1.7;
}

.values--light { border-top-color: var(--pl-line); }
.values--light .values__item + .values__item { border-left-color: var(--pl-line); }
.values--light .values__item h3 { color: var(--pl-ink); }
.values--light .values__item p { color: var(--pl-muted); }
.values--light .values__num {
  background: linear-gradient(180deg, var(--pl-brass), rgba(var(--pl-brass-rgb), 0.35));
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 767.98px) {
  .values { grid-template-columns: 1fr; }
  .values__item, .values__item + .values__item { padding: 2rem 0 1rem; border-left: 0; border-top: 1px solid var(--pl-line-light); }
  .values--light .values__item + .values__item { border-top-color: var(--pl-line); }
  .values__item:first-child { border-top: 0; }
}

/* ---------- Avvocati ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

@media (max-width: 991.98px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .team-grid { grid-template-columns: 1fr; } }

.lawyer-card {
  display: block;
  color: var(--pl-ink);
  text-decoration: none;
}

.lawyer-card__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--pl-radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, #77757B, #5D5C62);
  box-shadow: var(--pl-shadow);
  transition: box-shadow 0.6s var(--pl-ease), transform 0.6s var(--pl-ease);
}

.lawyer-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%;
  transition: transform 1.2s var(--pl-ease), filter 0.8s var(--pl-ease);
  filter: saturate(0.92);
}

.lawyer-card__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 18, 34, 0.55) 100%);
  opacity: 0.6;
  transition: opacity 0.6s var(--pl-ease);
}

.lawyer-card__cta {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 50%;
  background: #fff;
  color: var(--pl-ink);
  font-size: 1.15rem;
  transform: translateY(8px) scale(0.85);
  opacity: 0;
  transition: transform 0.5s var(--pl-ease), opacity 0.4s var(--pl-ease);
}

.lawyer-card:hover .lawyer-card__photo { transform: translateY(-4px); box-shadow: var(--pl-shadow-lg); }
.lawyer-card:hover .lawyer-card__photo img { transform: scale(1.045); filter: saturate(1); }
.lawyer-card:hover .lawyer-card__photo::after { opacity: 1; }
.lawyer-card:hover .lawyer-card__cta { transform: none; opacity: 1; }

.lawyer-card__body { padding: 1.4rem 0.25rem 0; }

.lawyer-card__title {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pl-brass-dark);
}

.lawyer-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.65rem;
  transition: color 0.3s;
}

.lawyer-card:hover h3 { color: var(--pl-brand); }

.lawyer-card__role {
  margin: 0;
  font-size: 0.92rem;
  color: var(--pl-muted);
}

/* ---------- Statistiche / numeri chiave ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fact {
  padding: 1.75rem;
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-sm);
}

.fact strong {
  display: block;
  font-family: var(--pl-serif);
  font-size: 2.6rem;
  font-weight: 450;
  line-height: 1;
  color: var(--pl-brand);
}

.fact span {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--pl-muted);
}

/* ---------- News ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 1.75rem;
}

@media (max-width: 991.98px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--pl-radius-lg);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-sm);
  overflow: hidden;
  color: var(--pl-ink);
  text-decoration: none;
  transition: transform 0.5s var(--pl-ease), box-shadow 0.5s var(--pl-ease);
}

.post-card:hover { color: var(--pl-ink); transform: translateY(-5px); box-shadow: var(--pl-shadow-lg); }

.post-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--pl-brand-100);
}

.post-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--pl-ease);
}

.post-card:hover .post-card__img img { transform: scale(1.05); }

.post-card__placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(var(--pl-brand-rgb), 0.5), transparent 70%),
    var(--pl-navy-900);
}

.post-card__placeholder img { width: 38%; height: auto; opacity: 0.85; }

.post-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.6rem 1.6rem 1.75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.post-meta .tag { color: var(--pl-brass-dark); }

.post-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  line-height: 1.25;
}

.post-card p {
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--pl-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card .link-arrow { margin-top: auto; }

.post-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.post-card--featured .post-card__img { aspect-ratio: auto; min-height: 22rem; }
.post-card--featured .post-card__body { padding: clamp(2rem, 4vw, 3.25rem); justify-content: center; }
.post-card--featured h3 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); }

@media (max-width: 767.98px) {
  .post-card--featured { grid-template-columns: 1fr; }
  .post-card--featured .post-card__img { min-height: 0; aspect-ratio: 16 / 10; }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border: 1px solid var(--pl-line-strong);
  border-radius: 999px;
  color: var(--pl-ink);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s var(--pl-ease);
}

.chip:hover { border-color: var(--pl-ink); color: var(--pl-ink); }
.chip.active { background: var(--pl-ink); border-color: var(--pl-ink); color: #fff; }

.chip--soft {
  border-color: transparent;
  background: var(--pl-brand-50);
  color: var(--pl-brand);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.pager a, .pager span {
  display: grid;
  place-items: center;
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--pl-line-strong);
  border-radius: 999px;
  color: var(--pl-ink);
  font-weight: 650;
  text-decoration: none;
}

.pager .current { background: var(--pl-ink); border-color: var(--pl-ink); color: #fff; }

/* Articolo */
.article-hero {
  padding-top: calc(var(--pl-header-h) + clamp(3rem, 6vw, 5rem));
}

.article-hero h1 {
  font-size: clamp(2.3rem, 1.5rem + 3vw, 3.9rem);
  max-width: 20ch;
}

.article-cover {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--pl-shadow-lg);
}

.article-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Profilo avvocato ---------- */
.profile-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--pl-header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.profile-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

@media (max-width: 991.98px) { .profile-hero__grid { grid-template-columns: 1fr; } }

.profile-portrait {
  position: relative;
  max-width: 30rem;
  animation: photo-in 1.2s var(--pl-ease) both;
}

.profile-portrait__img {
  aspect-ratio: 4 / 5;
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #77757B, #5D5C62);
  box-shadow: var(--pl-shadow-lg);
}

.profile-portrait__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }

.profile-portrait__badge {
  position: absolute;
  right: -1.25rem;
  bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.2rem;
  border-radius: var(--pl-radius);
  background: #fff;
  box-shadow: var(--pl-shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
}

.profile-portrait__badge .bi {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pl-brand-50);
  color: var(--pl-brand);
  font-size: 1.1rem;
}

.profile-portrait__badge small { display: block; color: var(--pl-muted); font-weight: 500; }

@media (max-width: 575.98px) { .profile-portrait__badge { right: 0.75rem; } }

.profile-hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.8rem, 1.8rem + 3.6vw, 5rem);
  line-height: 1;
  animation: fade-up 0.9s var(--pl-ease) both;
}

.profile-hero h1 .first { display: block; font-style: italic; font-weight: 400; color: var(--pl-brand); }

.profile-role {
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--pl-muted);
  animation: fade-up 0.9s 0.08s var(--pl-ease) both;
}

.profile-summary {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-family: var(--pl-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  line-height: 1.5;
  color: var(--pl-ink);
  animation: fade-up 0.9s 0.14s var(--pl-ease) both;
}

.profile-contacts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 38rem;
  margin-bottom: 2rem;
  animation: fade-up 0.9s 0.2s var(--pl-ease) both;
}

@media (max-width: 575.98px) { .profile-contacts { grid-template-columns: 1fr; } }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  border-radius: var(--pl-radius-sm);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--pl-shadow-sm);
  color: var(--pl-ink);
  text-decoration: none;
  transition: background-color 0.25s, box-shadow 0.25s;
}

a.contact-line:hover { background: #fff; color: var(--pl-ink); box-shadow: var(--pl-shadow); }

.contact-line .bi {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: var(--pl-brand-50);
  color: var(--pl-brand);
}

.contact-line small {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.contact-line span {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 991.98px) { .profile-layout { grid-template-columns: 1fr; } }

.side-card {
  position: sticky;
  top: calc(var(--pl-header-h) + 1.5rem);
  padding: 2rem;
  border-radius: var(--pl-radius-lg);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow);
}

.side-card h3 {
  margin-bottom: 1.25rem;
  font-size: 1.35rem;
}

.check-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: rgba(var(--pl-brass-rgb), 0.14) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238A6C3A'><path d='M13.485 3.929a1 1 0 0 1 0 1.414l-6.364 6.364a1 1 0 0 1-1.414 0L2.515 8.515a1 1 0 1 1 1.414-1.414l2.485 2.485 5.657-5.657a1 1 0 0 1 1.414 0z'/></svg>") center / 0.8rem no-repeat;
}

.on-dark .check-list li::before { background-color: rgba(255, 255, 255, 0.1); }

.side-card hr { margin: 1.75rem 0; border-color: var(--pl-line); opacity: 1; }

.side-card__label {
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

.wide-photo {
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  box-shadow: var(--pl-shadow-lg);
}

.wide-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 767.98px) { .wide-photo { aspect-ratio: 4 / 3; } }

/* ---------- Dettaglio area: temi trattati ---------- */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 575.98px) { .topic-grid { grid-template-columns: 1fr; } }

.topic {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-sm);
  font-weight: 600;
  line-height: 1.35;
  transition: transform 0.4s var(--pl-ease), box-shadow 0.4s var(--pl-ease);
}

.topic:hover { transform: translateY(-2px); box-shadow: var(--pl-shadow); }

.topic__num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--pl-brand-50);
  font-family: var(--pl-serif);
  font-style: italic;
  color: var(--pl-brand);
}

.mini-lawyer {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  margin: 0 -0.75rem;
  border-radius: var(--pl-radius-sm);
  color: var(--pl-ink);
  text-decoration: none;
  transition: background-color 0.25s;
}

.mini-lawyer:hover { background: var(--pl-brand-50); color: var(--pl-ink); }

.mini-lawyer img {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  background: #6c6a70;
}

.mini-lawyer strong { display: block; font-size: 1rem; }
.mini-lawyer span { display: block; font-size: 0.82rem; color: var(--pl-muted); }

/* ---------- Richiesta appuntamento ---------- */
.appointment {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-lg);
}

@media (max-width: 991.98px) { .appointment { grid-template-columns: 1fr; } }

.appointment__intro {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: clamp(2.25rem, 5vw, 4rem);
  background: var(--pl-navy-950);
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.appointment__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.appointment__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: grayscale(0.3);
}

.appointment__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(var(--pl-brand-rgb), 0.7), transparent 70%),
    linear-gradient(180deg, rgba(11, 18, 34, 0.55), rgba(11, 18, 34, 0.92));
}

.appointment__intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem);
}

.appointment__intro p { margin: 0; }

.appointment__contacts {
  display: grid;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.appointment__contacts a,
.appointment__contacts div {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 0;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.appointment__contacts .bi {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--pl-brass-light);
}

.appointment__contacts small { display: block; font-weight: 500; color: rgba(255, 255, 255, 0.6); font-size: 0.78rem; }

.appointment__form { padding: clamp(2.25rem, 5vw, 4rem); }

/* Campi del modulo con etichetta flottante */
.field {
  position: relative;
  margin-bottom: 1.1rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 3.6rem;
  padding: 1.45rem 1.05rem 0.5rem;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius-sm);
  background: var(--pl-paper);
  color: var(--pl-ink);
  font-family: var(--pl-sans);
  font-size: 1rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}

.field textarea {
  min-height: 9.5rem;
  padding-top: 1.75rem;
  resize: vertical;
}

.field label {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  color: var(--pl-muted);
  font-size: 1rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--pl-ease), color 0.25s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--pl-brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--pl-brand-rgb), 0.1);
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-0.62rem) scale(0.76);
  color: var(--pl-brand);
  font-weight: 600;
}

.field .counter {
  position: absolute;
  right: 0.9rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pl-muted);
}

.field.is-invalid input,
.field.is-invalid textarea { border-color: #B42318; background: #FFF8F7; }

.field-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #B42318;
}

.form-label-pl {
  display: block;
  margin-bottom: 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pl-muted);
}

/* Scelta dell'avvocato: schede con ritratto */
.lawyer-picker {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

@media (max-width: 575.98px) { .lawyer-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.lawyer-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lawyer-picker label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  padding: 0.85rem 0.5rem 0.75rem;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius-sm);
  background: var(--pl-paper);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--pl-ease);
}

.lawyer-picker label:hover { border-color: var(--pl-brand-400); background: #fff; }

.lawyer-picker img,
.lawyer-picker .any {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  background: #6c6a70;
}

.lawyer-picker .any {
  display: grid;
  place-items: center;
  background: var(--pl-brand-100);
  color: var(--pl-brand);
  font-size: 1.25rem;
}

.lawyer-picker input:checked + label {
  border-color: var(--pl-brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--pl-brand-rgb), 0.14);
  color: var(--pl-brand);
}

.lawyer-picker input:checked + label::after {
  content: "\F26E";
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  background: var(--pl-brand);
  color: #fff;
  font-family: "bootstrap-icons";
  font-size: 0.75rem;
}

.lawyer-picker input:focus-visible + label { outline: 2px solid var(--pl-brass); outline-offset: 2px; }

.consent {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--pl-muted);
}

.consent input {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  accent-color: var(--pl-brand);
}

.consent a { color: var(--pl-brand); font-weight: 600; }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--pl-muted);
}

.form-note .bi { color: var(--pl-brass); }

.btn-pl[data-loading] { pointer-events: none; opacity: 0.85; }
.btn-pl[data-loading] .bi { animation: spin 0.9s linear infinite; }

.sent-card {
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.sent-card__icon {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(var(--pl-brass-rgb), 0.14);
  color: var(--pl-brass-dark);
  font-size: 2.2rem;
  animation: pop 0.8s var(--pl-ease) both;
}

/* ---------- Contatti ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991.98px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: var(--pl-radius-lg);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-sm);
  transition: box-shadow 0.4s var(--pl-ease), transform 0.4s var(--pl-ease);
}

.contact-card:hover { box-shadow: var(--pl-shadow); transform: translateY(-3px); }

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: var(--pl-brand-50);
  color: var(--pl-brand);
  font-size: 1.35rem;
}

.contact-card h3 { margin: 0; font-size: 1.35rem; }
.contact-card p { margin: 0; color: var(--pl-muted); }
.contact-card .big {
  font-family: var(--pl-serif);
  font-size: 1.6rem;
  color: var(--pl-ink);
  text-decoration: none;
}

.map-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  padding: 2rem;
  border-radius: var(--pl-radius-xl);
  overflow: hidden;
  color: #fff;
  background: var(--pl-navy-950);
}

.map-card__art {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 62% 46%, rgba(var(--pl-brass-rgb), 0.45) 0 0.5rem, transparent 0.55rem),
    radial-gradient(circle at 62% 46%, rgba(var(--pl-brass-rgb), 0.18) 0 2.2rem, transparent 2.3rem),
    radial-gradient(circle at 62% 46%, rgba(var(--pl-brass-rgb), 0.08) 0 5rem, transparent 5.1rem),
    linear-gradient(115deg, transparent 48%, rgba(255, 255, 255, 0.06) 48.3%, rgba(255, 255, 255, 0.06) 49.5%, transparent 49.8%),
    linear-gradient(25deg, transparent 40%, rgba(255, 255, 255, 0.05) 40.3%, rgba(255, 255, 255, 0.05) 41.2%, transparent 41.5%),
    linear-gradient(160deg, transparent 62%, rgba(255, 255, 255, 0.05) 62.3%, rgba(255, 255, 255, 0.05) 63%, transparent 63.3%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 44px),
    radial-gradient(80% 80% at 70% 30%, rgba(var(--pl-brand-rgb), 0.75), transparent 70%),
    var(--pl-navy-950);
}

.map-card__pin {
  position: absolute;
  top: 46%;
  left: 62%;
  transform: translate(-50%, -100%);
  font-size: 2.4rem;
  color: var(--pl-brass-light);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
  animation: bob 3s ease-in-out infinite;
}

.map-card h3 { color: #fff; margin-bottom: 0.4rem; }
.map-card p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.5rem; }

.people-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991.98px) { .people-contact { grid-template-columns: 1fr; } }

.person-card {
  padding: 1.5rem;
  border-radius: var(--pl-radius-lg);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-sm);
}

.person-card__head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--pl-ink);
  text-decoration: none;
}

.person-card__head img {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  background: #6c6a70;
}

.person-card__head strong { display: block; font-family: var(--pl-serif); font-size: 1.3rem; font-weight: 500; line-height: 1.2; }
.person-card__head span { display: block; font-size: 0.82rem; color: var(--pl-muted); }

.person-card .contact-line { background: var(--pl-paper); box-shadow: none; margin-top: 0.5rem; }
.person-card a.contact-line:hover { background: var(--pl-brand-50); }

.useful-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--pl-radius-lg);
  overflow: hidden;
  background: var(--pl-line);
  box-shadow: var(--pl-shadow-sm);
}

@media (max-width: 991.98px) { .useful-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .useful-grid { grid-template-columns: 1fr; } }

.useful {
  padding: 1.75rem;
  background: var(--pl-surface);
}

.useful h3 { margin: 0; font-size: 1.25rem; }
.useful .sub { display: block; margin-bottom: 1rem; font-size: 0.85rem; color: var(--pl-brass-dark); font-weight: 600; }

.useful ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; font-size: 0.9rem; }
.useful li { display: flex; gap: 0.6rem; color: var(--pl-muted); }
.useful li .bi { color: var(--pl-brand-400); }
.useful a { color: var(--pl-ink); text-decoration: none; word-break: break-word; }
.useful a:hover { color: var(--pl-brand); }

/* ---------- Pagine legali ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

@media (max-width: 991.98px) { .legal-layout { grid-template-columns: 1fr; } .toc { display: none; } }

.toc {
  position: sticky;
  top: calc(var(--pl-header-h) + 2rem);
  padding-left: 1.25rem;
  border-left: 1px solid var(--pl-line-strong);
}

.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.toc a { color: var(--pl-muted); font-size: 0.9rem; text-decoration: none; }
.toc a:hover, .toc a.active { color: var(--pl-brand); }

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: clamp(4.5rem, 8vw, 7rem);
  background: var(--pl-navy-950);
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.95rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(var(--pl-brand-rgb), 0.45), transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(var(--pl-brass-rgb), 0.1), transparent 70%);
}

.footer-claim {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--pl-line-light);
}

.footer-claim p {
  max-width: 18ch;
  margin: 0;
  font-family: var(--pl-serif);
  font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.8rem);
  line-height: 1.05;
  color: #fff;
}

.footer-claim em { color: var(--pl-brass-light); font-weight: 400; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

@media (max-width: 991.98px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand img { height: 3rem; width: auto; margin-bottom: 1.5rem; }

.site-footer h4 {
  margin-bottom: 1.15rem;
  font-family: var(--pl-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pl-brass-light);
}

.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { color: rgba(255, 255, 255, 0.82); text-decoration: none; }
.site-footer a:hover { color: #fff; }

.footer-contact { display: grid; gap: 0.65rem; }
.footer-contact div, .footer-contact a { display: flex; gap: 0.7rem; align-items: flex-start; }
.footer-contact .bi { color: var(--pl-brass-light); margin-top: 0.1rem; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--pl-line-light);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-bottom a { color: rgba(255, 255, 255, 0.6); }

.footer-mark {
  position: absolute;
  right: -2rem;
  bottom: -5rem;
  z-index: -1;
  width: min(42rem, 70vw);
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--pl-ink);
  color: #fff;
  box-shadow: var(--pl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.4s var(--pl-ease);
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--pl-brand); }

/* ---------- Errori ---------- */
.error-page {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: calc(var(--pl-header-h) + 3rem) 1.5rem 5rem;
  text-align: center;
  overflow: hidden;
}

.error-page__code {
  display: block;
  font-family: var(--pl-serif);
  font-size: clamp(7rem, 4rem + 14vw, 14rem);
  font-style: italic;
  line-height: 0.9;
  background: linear-gradient(180deg, var(--pl-brand), rgba(var(--pl-brand-rgb), 0.15));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Comparsa allo scorrimento ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--pl-ease), transform 1s var(--pl-ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

.reveal-img { overflow: hidden; }
.reveal-img img { transform: scale(1.12); transition: transform 1.6s var(--pl-ease); }
.reveal-img.is-visible img { transform: scale(1); }

.no-js .reveal { opacity: 1; transform: none; }

@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes photo-in { from { opacity: 0; transform: translateY(40px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translate(-50%, -100%); } 50% { transform: translate(-50%, -112%); } }

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

/* ---------- Stampa ---------- */
@media print {
  .site-header, .site-footer, .appointment, .to-top, .mobile-menu { display: none !important; }
  body { background: #fff; }
  .page-hero, .profile-hero { padding-top: 0; }
}

.d-contents { display: contents; }

/* La grana resta sopra il blu, non sulla fascia chiara dove "atterra" la foto */
.hero-home.grain::after { bottom: clamp(7rem, 16vw, 15rem); }

.area-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.area-grid--two .area-card { min-height: 28rem; }
@media (max-width: 767.98px) { .area-grid--two { grid-template-columns: 1fr; } }

/* Header: le voci non vanno mai a capo; il telefono compare solo sugli schermi larghi */
.nav-main > li > a,
.nav-main > li > button,
.header-phone { white-space: nowrap; }
.site-header__inner { gap: 1.5rem; }
.nav-main > li > a,
.nav-main > li > button { padding-inline: 0.8rem; }
.nav-main > li > a::after,
.nav-main > li > button::after { left: 0.8rem; right: 0.8rem; }
@media (max-width: 1599.98px) { .header-phone { display: none; } }

/* Nessuno scorrimento orizzontale accidentale sui telefoni stretti */
html, body { overflow-x: clip; }

/* Indirizzi email lunghi: vanno a capo invece di essere tagliati */
.person-card .contact-line span span { white-space: normal; overflow-wrap: anywhere; }

/* Gli aloni delle aperture chiare sfumano verso il basso: nessun bordo netto con il contenuto */
.aurora--light {
  -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 45%, transparent 100%);
}
.legal-layout { padding-top: 1.5rem; }
