/* Shared spacing, interaction and responsive refinements. */
:root { --line: #dce6f5; }
body { -webkit-font-smoothing: antialiased; }
p { text-wrap: pretty; }
main a { text-underline-offset: 4px; }
.nav { min-height: 72px; }
.links { gap: clamp(16px, 2.4vw, 32px); }
.links a { padding: 9px 0; position: relative; }
.links a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px var(--ink); }
.wrap { padding-block: clamp(44px, 6vw, 80px); }
main > .wrap > p, main > .wrap > ul { max-width: 78ch; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-weight: 500; }
.home-title { padding-block: clamp(64px, 10vw, 132px); }
.home-title .motto { max-width: 54ch; margin-inline: auto; line-height: 1.8; }
.intro-inner { max-width: 76ch; }
.intro-inner > p { margin-block: 0 24px; }
.cards { gap: 18px; border: 0; }
.card { border: 1px solid var(--line); padding: 28px; transition: background .2s, border-color .2s; }
.card:hover { background: #f1f6fd; border-color: #95b0d8; }
.card h3 { line-height: 1.25; }
.logos { flex-wrap: wrap; justify-content: center; gap: 32px 56px; padding-top: 20px; }
.logos a { flex: 1 1 180px; }
footer { padding: 40px 28px 28px; }
.footer-details { border-top: 0; }
.footer-bottom { flex-wrap: wrap; align-items: center; }
.footer-bottom a, .footer-bottom button { padding-block: 6px; }
.footer-social a { min-width: 40px; min-height: 40px; align-items: center; justify-content: center; }
.footer-form { gap: 18px; }
.footer-form input, .footer-form textarea { padding: 14px 16px; font-size: 16px; background: white; border-radius: 4px; }
.footer-form input:focus, .footer-form textarea:focus { outline: 2px solid #477bd1; outline-offset: 2px; }
.footer-send, .button { min-height: 44px; border: 1px solid #b4c6e4; transition: background .2s; }
.footer-send:hover, .button:hover { background: #dbe8fb; color: #16366a; }
.resource-dialog, #legal-notes { overscroll-behavior: contain; box-shadow: 0 24px 100px #102c3429; }
.resource-dialog .list a { display: block; padding-block: 4px; overflow-wrap: anywhere; }
.resource-dialog h2 { font-size: clamp(26px, 4vw, 40px); }
body:has(dialog[open]) { overflow: hidden; }
.menu { color: var(--ink); width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 800px) {
  .nav { min-height: 64px; }
  .links { max-height: calc(100dvh - 64px); overflow-y: auto; gap: 6px; box-shadow: 0 16px 24px #173f350d; }
  .links a { padding: 10px 18px; }
  .home-title h1 { font-size: clamp(42px, 10vw, 76px); }
  .logos { flex-direction: row; gap: 20px; }
  .logos a { flex-basis: 100%; min-height: 62px; }
  .footer-social-block { justify-self: end; text-align: right; }
  .footer-social-block .footer-social { justify-content: flex-end; }
  footer { padding: 30px 20px 20px; }
  .resource-dialog, #legal-notes { max-height: 86dvh; padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .button, .footer-send { transition: none; }
}
.contact-form input, .contact-form textarea {
  font-size: 16px;
  color: var(--ink);
  background: white;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid #477bd1;
  outline-offset: 2px;
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form button { min-height: 44px; }
.contact-card a, .footer-addresses { overflow-wrap: anywhere; }
.resource-dialog, #legal-notes { scrollbar-gutter: stable; }

/* Center page titles and section headings consistently. */
h1, h2, h3, h4, h5, h6 {
  text-align: center;
}
.resource-categories button {
  text-align: center;
}

h1, h2, h3, h4, h5, h6,
.home-title h1 {
  text-align: center;
  font-weight: 700;
}
.resource-categories button {
  font-weight: 700;
}

.home-title h1.home-wordmark { font-weight: 700; text-align: center; }

/* Brand mark integrated into the navigation. */
.nav { position: relative; }
.header-logo {
  position: absolute;
  left: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
}
.header-logo img {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.header-logo { background: transparent; }
@media (min-width: 801px) { .nav { padding-inline: 90px; } }
@media (max-width: 800px) { .header-logo { left: 20px; } }

/* A quieter, more considered visual system for the legal practice. */
:root {
  --paper: #fbfaf7;
  --ink: #172b43;
  --muted: #586a7d;
  --line: #e3e1da;
  --blue: #34577b;
  --gold: #ae9667;
}
html, body { background: var(--paper); }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: #26384b;
  line-height: 1.72;
}
header {
  background: rgba(251,250,247,.96);
  border-bottom-color: rgba(23,43,67,.10);
}
.nav { min-height: 78px; }
.header-logo img { width: 50px; height: 50px; }
.links a {
  color: #4d5e70;
  font-size: 11px;
  letter-spacing: .12em;
  transition: color .2s ease;
}
.links a:hover, .links a[aria-current="page"], .links .active { color: var(--gold); }
.links a[aria-current="page"] { box-shadow: 0 2px var(--gold); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }
h1 { letter-spacing: -.025em; }
h2 { letter-spacing: -.02em; }
.eyebrow {
  text-align: center;
  color: #9b8050;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .22em;
}
.wrap { padding-block: clamp(58px, 7vw, 96px); }
.wrap > h1 { margin: 10px auto 48px; }
.wrap > h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--gold);
}
body .home-title {
  position: relative;
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  align-content: center;
  background:
    linear-gradient(90deg, rgba(12,25,43,.72), rgba(15,34,56,.48) 50%, rgba(12,25,43,.68)),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Roma-_Corte_Suprema_di_Cassazione_-_53381273801.jpg/1280px-Roma-_Corte_Suprema_di_Cassazione_-_53381273801.jpg") center 20% / cover no-repeat;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 18px 48px rgba(20,38,60,.12);
}
body .home-title::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(220,202,158,.25);
  pointer-events: none;
}
body .home-title::after {
  display: none;
}
body .home-title h1 {
  width: 100%;
  justify-self: center;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: clamp(42px, 5.6vw, 78px);
  letter-spacing: -.045em;
  line-height: .9;
  margin: 0;
}
body .home-title .motto {
  width: min(100%, 80ch);
  justify-self: center;
  margin: 0 auto;
  text-align: center;
  color: #f4efe4;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: clamp(15px, 1.65vw, 19px);
  letter-spacing: .1em;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.hero-credit {
  max-width: 1160px;
  margin: 9px auto 0;
  padding: 0 28px;
  color: #7a828a;
  text-align: right;
  font-size: 9px;
  letter-spacing: .02em;
  line-height: 1.35;
}
.hero-credit a { color: inherit; text-underline-offset: 2px; }
.intro {
  background: var(--paper);
  border-top: 0;
  padding-block: clamp(58px, 8vw, 104px);
}
.intro-inner { max-width: 900px; }
.intro-inner > p:first-child { font-size: 18px; color: #33485e; }
.intro-inner h2 { margin-top: 60px; }
.list { border-color: var(--line); }
.list li { padding: 16px 8px; border-color: var(--line); }
.list li::before { content: "—"; color: var(--gold); margin-right: 12px; }
.cards { gap: 16px; }
.card {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 8px 24px rgba(23,43,67,.035);
}
.card:hover { background: #fff; border-color: #c5b58f; transform: translateY(-2px); }
.card, .loc { transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.card h3 { margin-top: 16px; }
.num { color: #9b8050; }
.locations { gap: 18px; }
.locations { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.locations .loc { grid-column: span 2; }
.locations .loc:nth-child(4) { grid-column: 2 / span 2; }
.locations .loc:nth-child(5) { grid-column: 4 / span 2; }
.loc {
  min-height: 158px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.76);
}
.loc:hover { transform: translateY(-2px); border-color: #c5b58f; box-shadow: 0 10px 24px rgba(23,43,67,.06); }
.loc h3 { margin: 0 0 12px; color: #9b8050; font-size: 11px; letter-spacing: .15em; }
.loc p { margin: 0; color: #44576b; }
.contact-grid { gap: 24px; }
.contact-grid:has(> .contact-card:only-child) { grid-template-columns: minmax(0, 780px); justify-content: center; }
.contact-card {
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: #fff;
  box-shadow: 0 10px 30px rgba(23,43,67,.045);
}
.contact-card p { margin-top: 0; }
.contact-card a:not(.button), main a:not(.button) { color: #31577b; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.contact-actions .button-secondary { background: transparent; color: var(--ink); border-color: #b7b2a5; }
.contact-actions .button-secondary:hover { background: #f3f1eb; color: var(--ink); border-color: var(--gold); }
.button, .contact-form .button {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
  border-radius: 2px;
  padding: 14px 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover, .contact-form .button:hover { background: #294b70; color: #fff; border-color: #294b70; transform: translateY(-1px); }
.contact-form-section {
  max-width: 820px;
  margin: 12px auto 84px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(23,43,67,.055);
}
.contact-form-section .eyebrow { margin-bottom: 12px; }
.contact-form-section h2 { margin: 0 0 8px; }
.contact-form input, .contact-form textarea {
  border-color: #d9d7d0;
  border-radius: 2px;
  background: #fdfcf9;
  padding: 14px 15px;
  font: 16px Arial, Helvetica, sans-serif;
}
.contact-form input:focus, .contact-form textarea:focus { outline-color: var(--gold); }
footer {
  background: #14263b;
  color: #f6f4ef;
  border-top: 0;
  padding-block: 38px 28px;
}
footer a, footer p, footer .legal-trigger { color: #f6f4ef; }
footer .footer-heading { color: #d7c59a; letter-spacing: .12em; }
footer .footer-bottom, footer .footer-details { border-color: rgba(255,255,255,.20); }
footer a:hover, footer .legal-trigger:hover { color: #d7c59a; }
.footer-social img { border-radius: 50%; }
@media (max-width: 800px) {
  .nav { min-height: 66px; }
  .links { background: var(--paper); }
  body .home-title { min-height: 500px; padding-inline: 20px; }
  body .home-title::before { inset: 10px; }
  .hero-credit { margin-top: 6px; padding-inline: 20px; font-size: 8px; }
  body .home-title h1 { font-size: clamp(38px, 9vw, 60px); }
  body .home-title .motto { max-width: 56ch; margin-inline: auto; font-size: clamp(14px, 3.6vw, 17px); letter-spacing: .08em; line-height: 1.25; }
  .intro-inner > p:first-child { font-size: 16px; }
  .loc { min-height: auto; padding: 20px; }
  .locations { grid-template-columns: 1fr; }
  .locations .loc, .locations .loc:nth-child(4), .locations .loc:nth-child(5) { grid-column: auto; }
  .contact-card { padding: 22px; }
  .contact-form-section { width: calc(100% - 40px); margin-block: 0 54px; }
  footer { padding: 30px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .loc, .button, .contact-form .button { transition: none; }
}

/* Linea sotto la voce del menu attiva. */
.links a[aria-current="page"] {
  box-shadow: none !important;
  position: relative;
}
.links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  border-bottom: 1px solid currentColor;
}


/* Home: make the studio descriptor clear and readable. */
body .home-title { gap: 4px; }
body .home-title .motto { margin: 0; }

/* Team page: profile links read as consistent cards. */
.team-page { max-width: 1020px; }
.team-names {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}
.team-names li {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255,255,255,.58);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.team-names li:hover { border-color: #b7a47d; background: #fff; transform: translateY(-2px); }
.team-names a {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-decoration: none;
  line-height: 1.35;
}
.team-names a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.team-story { max-width: 78ch; margin: 64px auto 0; }
.team-story h2 { margin-bottom: 24px; }
.team-story p { margin: 0 0 20px; }
.team-page .about-role { color: var(--muted); letter-spacing: .04em; }
.footer-bottom { row-gap: 12px; }
@media (max-width: 650px) {
  body .home-title { min-height: 500px; }
  .team-page { padding-inline: 20px; }
  .team-story { margin-top: 48px; }
}

/* Start the studio history directly at the top of the Chi siamo page. */
.team-page > .team-story { margin-top: 0; }
.team-page > .team-story h2 { margin-top: 0; }

/* Readability pass across the whole site: clear type, contrast and touch targets. */
:root {
  --gold: #80643b;
  --muted: #536477;
}
body {
  font-size: clamp(16px, 0.25vw + 15.5px, 17px);
  line-height: 1.75;
  color: #26384b;
}
main { min-width: 0; }
p, li { line-height: 1.75; }
.links a { font-size: 12px; }
.eyebrow, .num, .loc h3 { color: #80643b; }
.eyebrow { font-size: 11px; }
.hero-credit { font-size: 11px; color: #5f6872; }
footer { font-size: 13px; }
.button, .contact-form .button, .footer-send { font-size: 12px; }
.team-person-role { font-size: 14px; }
.team-profile-link { font-size: 13px; }
img, video { max-width: 100%; }
a, button, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid #31577b;
  outline-offset: 3px;
}
.contact-card a:not(.button), main a:not(.button) { color: #294e72; }
@media (max-width: 800px) {
  body { font-size: 16px; line-height: 1.72; }
  .links a { font-size: 13px; padding-block: 12px; }
  .hero-credit { font-size: 10px; }
  .team-page { padding-block: 40px; }
  .team-story { margin-top: 36px; }
  .team-group { padding: 22px 18px; }
  .team-group-intro { margin-bottom: 18px; }
  .team-person { padding: 18px; }
  .wrap { padding-inline: 20px; }
}
@media (max-width: 520px) {
  h1 { line-height: 1.04; }
  h2 { line-height: 1.15; }
  .team-group h2 { font-size: 27px; }
  .team-people { grid-template-columns: 1fr; }
  .team-person { min-height: 120px; }
  .footer-bottom { gap: 10px 18px; }
}

/* Contact details: easy to scan and use on both desktop and mobile. */
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
}
.contact-details > div {
  min-width: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.contact-details dt {
  margin: 0 0 5px;
  color: #536477;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-details dd {
  margin: 0;
  color: #26384b;
  font-size: 17px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-details dd a { text-decoration-thickness: 1px; }
.contact-actions { margin-top: 24px; gap: 14px; }
.contact-actions .button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.4; }
@media (max-width: 600px) {
  .contact-details { grid-template-columns: 1fr; }
  .contact-details > div { padding: 14px 0; }
  .contact-details dd { font-size: 16px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .button { width: 100%; }
}

/* Booking page: show the service, duration, price and next step at a glance. */
.booking-page > h1 { margin-bottom: 18px; }
.booking-intro { max-width: 72ch; margin: 0 auto 34px; text-align: center; color: #43566a; }
.booking-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin: 34px 0 46px; align-items: stretch; }
.booking-card { min-width: 0; display: flex; border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fff; box-shadow: 0 10px 26px rgba(23,43,67,.055); }
.booking-image { display: none; }
.booking-body { width: 100%; padding: clamp(22px,2.5vw,30px); display: flex; flex-direction: column; align-items: flex-start; }
.booking-kicker { color: #80643b; font-size: 11px; font-weight: 700; letter-spacing: .16em; }
.booking-body h2 { text-align: left; font-size: clamp(22px,2.2vw,27px); margin: 10px 0 8px; }
.booking-description { min-height: 54px; margin: 0 0 14px; color: #536477; font-size: 15px; }
.booking-facts { width: 100%; margin: 0 0 22px; border-top: 1px solid var(--line); }
.booking-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.booking-facts dt { color: #536477; font-size: 13px; }
.booking-facts dd { margin: 0; color: #172b43; font-size: 16px; font-weight: 700; white-space: nowrap; }
.booking-body > .button { margin-top: auto; width: 100%; min-height: 48px; display: inline-flex; justify-content: center; align-items: center; text-align: center; }
.booking-steps { max-width: 850px; margin: 0 auto; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.booking-steps h2 { margin: 0 0 18px; font-size: clamp(22px,3vw,30px); }
.booking-steps ol { margin: 0 0 16px; padding-left: 24px; }
.booking-steps li { padding-left: 5px; margin: 0 0 10px; }
.booking-steps > p { margin: 14px 0 0; color: #536477; font-size: 14px; }
@media(max-width:900px) { .booking-grid { grid-template-columns: 1fr; max-width: 650px; margin-inline: auto; margin-block: 30px 40px; } .booking-description { min-height: 0; } }
@media(max-width:600px) { .booking-page { padding-top: 38px; } .booking-intro { text-align: left; margin-bottom: 28px; } .booking-body { padding: 22px 18px; } .booking-steps { padding: 22px 18px; } }

/* International page: practical information for document legalization in Rome. */
.legalization-section { border-top: 1px solid var(--line); margin-top: 12px; }
.legalization-section > h2 { max-width: 22ch; margin: 12px auto 16px; font-size: clamp(30px,4vw,44px); }
.legalization-intro { max-width: 70ch; margin: 0 auto 32px; text-align: center; color: #43566a; }
.legalization-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; align-items: stretch; }
.legalization-card { min-width: 0; padding: clamp(22px,3vw,32px); border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fff; box-shadow: 0 10px 28px rgba(23,43,67,.045); }
.legalization-card h3 { margin: 0 0 18px; text-align: left; font-size: 21px; }
.legalization-details { margin: 0; }
.legalization-details > div { padding: 13px 0; border-top: 1px solid var(--line); }
.legalization-details dt { margin-bottom: 5px; color: #536477; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.legalization-details dd { margin: 0; color: #26384b; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.legalization-details dd a { color: #294e72; text-underline-offset: 3px; }
.legalization-details dd > span { display: block; margin-top: 4px; color: #536477; font-size: 14px; }
.legalization-details .legalization-note { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--gold); }
.legalization-appointment { margin: 18px 0 12px; font-weight: 600; }
.legalization-step { margin-top: 10px; font-size: 14px; color: #536477; }
.legalization-source { margin: 24px 0 0; text-align: center; font-size: 13px; color: #536477; }
@media(max-width:760px) { .legalization-grid { grid-template-columns: 1fr; } .legalization-section > h2, .legalization-intro { text-align: left; } .legalization-section > h2 { margin-left: 0; } }

/* AML information page: structured, readable legal guidance. */
.aml-page { max-width: 940px; }
.aml-page > h1 { margin: 10px auto 20px; }
.aml-lead { max-width: 72ch; margin: 0 auto 44px; color: #43566a; font-size: 19px; text-align: center; }
.aml-section { margin: 0 0 34px; padding: clamp(22px,4vw,34px); border: 1px solid var(--line); border-top: 3px solid var(--gold); background: #fff; box-shadow: 0 8px 24px rgba(23,43,67,.035); }
.aml-section h2 { margin: 0 0 16px; font-size: clamp(25px,3.3vw,34px); text-align: left; }
.aml-section p { max-width: 78ch; }
.aml-section ol { padding-left: 25px; }
.aml-section li { padding-left: 5px; margin: 0 0 10px; }
.aml-risk-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 22px; }
.aml-risk-card { min-width: 0; padding: 22px; background: #f6f7f8; border: 1px solid var(--line); }
.aml-risk-card h3 { margin: 0 0 12px; font-size: 18px; text-align: left; }
.aml-risk-card ol { margin-bottom: 0; }
.aml-source { margin-top: 34px; padding: 22px 0 0; border-top: 1px solid var(--line); color: #536477; font-size: 14px; }
.aml-source p { margin: 8px 0; }
.aml-source a { color: #294e72; font-weight: 600; text-underline-offset: 3px; }
@media(max-width:680px) { .aml-page { padding-top: 40px; } .aml-lead { text-align: left; font-size: 17px; margin-bottom: 28px; } .aml-risk-grid { grid-template-columns: 1fr; } .aml-section { padding: 22px 18px; margin-bottom: 22px; } }

/* Keep the contact action centered beneath the full professionals grid. */
.professionisti-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 32px auto 0;
}
.professionisti-cta .button { margin-inline: auto; }


/* Visually hidden heading remains available to assistive technology and search crawlers. */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.contact-form-note{margin:10px 0 0;color:#536477;font-size:14px;line-height:1.6}

/* A more composed visual rhythm across all pages. */
:root {
  --surface: #ffffff;
  --surface-soft: #f4f6f8;
  --gold-soft: #c1ad86;
}
.wrap {
  width: min(100%, 1200px);
  margin-inline: auto;
}
main > section:not(.home-title) {
  scroll-margin-top: 96px;
}
.wrap > h1 {
  max-width: 18ch;
  line-height: 1.02;
  margin-bottom: clamp(34px, 5vw, 54px);
}
body .home-title {
  width: 100%;
  min-height: clamp(650px, 78vh, 820px);
  padding: clamp(76px, 10vh, 120px) clamp(24px, 5vw, 64px);
  background-image:
    linear-gradient(90deg, rgba(12,25,43,.70), rgba(15,34,56,.30) 50%, rgba(12,25,43,.66)),
    linear-gradient(0deg, rgba(12,25,43,.30), transparent 42%),
    url("https://upload.wikimedia.org/wikipedia/commons/thumb/4/43/Roma-_Corte_Suprema_di_Cassazione_-_53381273801.jpg/1280px-Roma-_Corte_Suprema_di_Cassazione_-_53381273801.jpg");
  background-position: center, center, center 24%;
  background-size: cover;
  box-shadow: 0 22px 56px rgba(20,38,60,.15);
}
body .home-title::before {
  inset: clamp(12px, 2vw, 24px);
  border-color: rgba(220,202,158,.42);
}
body .home-title h1 {
  max-width: 14ch;
  text-shadow: 0 3px 24px rgba(0,0,0,.22);
}
body .home-title .motto {
  margin-top: 20px;
  max-width: 66ch;
  letter-spacing: .12em;
  text-shadow: 0 2px 16px rgba(0,0,0,.38);
}
.hero-credit {
  width: min(100%, 1200px);
  padding-top: 6px;
}
.intro {
  padding-block: clamp(60px, 8vw, 100px);
}
.intro-inner {
  max-width: 78ch;
}
.intro-inner > p:first-child {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.8;
}
.intro-inner h2 {
  margin-top: clamp(42px, 6vw, 64px);
}
.intro-inner .list {
  display: block;
  border: 0;
  margin-block: 22px 30px;
  padding-left: 0;
}
.intro-inner .list li {
  display: block;
  min-height: 0;
  padding: 8px 0;
  border: 0;
  background: none;
}
.intro-inner .list li::before {
  content: "-";
  color: var(--ink);
  margin-right: 10px;
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  align-items: stretch;
  gap: clamp(14px, 2vw, 22px);
  margin-top: 30px;
}
.card {
  min-width: 0;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(23,43,67,.045);
}
.card h3, .card h2 { width: 100%; }
.card p { max-width: 62ch; }
.card .arrow { margin-top: auto; padding-top: 18px; font-weight: 600; }
.locations {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: stretch;
  gap: 16px;
}
.loc {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(23,43,67,.035);
}
.loc h3 { margin-top: 0; }
.team-group {
  margin-top: 28px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold-soft);
  background: rgba(255,255,255,.72);
}
.team-group h2 { margin-top: 0; }
.team-people { gap: 14px; }
.team-person {
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(23,43,67,.04);
}
.contact-card, .contact-form-section {
  border-radius: 4px;
}
.button, .footer-send {
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: .09em;
}
.button:hover, .footer-send:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(23,43,67,.10);
}
footer {
  padding-top: 48px;
}
.footer-details { max-width: 1160px; }
.footer-grid { align-items: start; }
.footer-heading { color: #e7dfcd; letter-spacing: .1em; }
.footer-bottom { gap: 12px 24px; }
.footer-bottom a, .footer-bottom button { text-underline-offset: 4px; }
@media (max-width: 800px) {
  body .home-title {
    min-height: 600px;
    min-height: min(72svh, 700px);
    padding: 76px 28px;
    background-position: center, center, 54% center;
  }
  body .home-title h1 {
    max-width: 12ch;
    font-size: clamp(40px, 9vw, 66px);
    line-height: .96;
  }
  body .home-title .motto {
    max-width: 38ch;
    font-size: 14px;
    line-height: 1.55;
  }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: 0; }
  .locations { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
  .footer-grid { gap: 28px; }
}
@media (max-width: 520px) {
  body .home-title { min-height: 560px; min-height: 68svh; padding: 70px 22px; }
  body .home-title::before { inset: 10px; }
  body .home-title h1 { font-size: clamp(37px, 10vw, 54px); }
  .hero-credit { text-align: center; padding-inline: 20px; }
  .intro { padding-inline: 20px; }
  .intro-inner > p:first-child { font-size: 16px; }
  .team-group { padding: 22px 16px; }
  .footer-heading { line-height: 1.6; }
  .footer-bottom { gap: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .button:hover, .footer-send:hover { transform: none; }
}

@media (max-width: 800px) {
  header .nav {
    justify-content: flex-end;
  }

  header .nav > .menu {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-start: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
  }
}