:root {
  --paper: #efeee9;
  --ink: #272925;
  --muted: #62645e;
  --red: #8a2630;
  --line: #cecec5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 0px;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 7px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 16px;
  background: white;
  padding: 14px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
header {
  height: 136px;
  padding: 20px 6.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.brand {
  display: block;
  width: 232px;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}
nav {
  display: flex;
  align-items: center;
  gap: 42px;
  font-size: 14px;
}
nav a {
  padding: 12px 0;
}
nav a:hover {
  color: var(--red);
}
.nav-contact {
  border-bottom: 1px solid var(--red);
}
.nav-contact span {
  margin-left: 24px;
}
.hero {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 82px 6.5% 0;
  background: radial-gradient(
    ellipse at 80% 46%,
    #ddded6 0%,
    #e7e7df 38%,
    #efeee9 73%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
}
.eyebrow,
.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.eyebrow {
  margin: 0 0 32px;
}
.eyebrow > span {
  width: 28px;
  height: 1px;
  background: var(--red);
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(55px, 6.7vw, 98px);
  line-height: 1.09;
  letter-spacing: -4px;
  margin: 0 0 32px;
}
em {
  color: var(--red);
  font-weight: 400;
}
h1 em {
  font-style: italic;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 34px;
}
.button {
  display: inline-flex;
  gap: 48px;
  align-items: center;
  background: var(--red);
  color: #fff;
  padding: 21px 25px;
  font-size: 14px;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #65202a;
  transform: translateY(-2px);
}
.button span {
  font-size: 20px;
}
.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #c9cbc0;
  padding: 22px 0;
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.hero-bottom p {
  margin: 0;
}
.hero-bottom a {
  font-size: 14px;
}
.hero-bottom span {
  margin-left: 24px;
}
.section {
  padding: 78px 6.5% 88px;
}
.section-label {
  margin-bottom: 54px;
}
.number {
  color: var(--red);
  letter-spacing: 0;
}
.studio {
  background: #faf9f5;
}
.studio-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
}
h2 {
  font-size: clamp(36px, 4vw, 57px);
  line-height: 1.17;
  letter-spacing: -1.8px;
  margin: 0;
}
.studio-copy {
  max-width: 450px;
}
.studio-copy p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 18px;
}
.studio-copy .lead {
  font-size: 20px;
  color: var(--ink);
}
.signature {
  font-family: Georgia, serif;
  font-size: 22px;
  margin-top: 34px;
}
.signature span {
  display: block;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  color: var(--red);
  letter-spacing: 2px;
  font-size: 11px;
  margin-top: 9px;
}
.approccio {
  background: rgba(41, 44, 40, 0.79);
  color: #f5f3ec;
}
.approccio-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.approccio-heading > p {
  font-size: 16px;
  line-height: 1.8;
  color: #c5c7bf;
  margin: 0;
  max-width: 440px;
  width: 43%;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 62px;
  border-top: 1px solid #53554e;
}
.principles article {
  padding: 34px 36px 0;
  border-right: 1px solid #53554e;
}
.principles article:first-child {
  padding-left: 0;
}
.principles article:last-child {
  border: 0;
  padding-right: 0;
}
.index {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 20px;
  color: var(--red);
}
h3 {
  font-size: 32px;
  margin: 23px 0 14px;
}
.principles p {
  font-size: 16px;
  line-height: 1.8;
  color: #c5c7bf;
  max-width: 300px;
  min-height: 90px;
}
.footnote {
  display: block;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  margin-top: 30px;
  color: #c5c7bf;
}
.contact {
  background: #e6e5dd;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 8%;
  align-items: center;
}
.contact-grid > * {
  min-width: 0;
}
.contact p {
  font-size: 18px;
  line-height: 1.7;
  margin-top: 0;
}
.contact-details {
  width: 400px;
  max-width: 100%;
}
.contact-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #c4c5b9;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 0;
  color: var(--red);
  text-underline-offset: 4px;
}
.contact-link:hover {
  color: var(--ink);
  text-decoration: underline;
}
.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.contact-reveal {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.contact-reveal:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 7px;
}
.contact-reveal:hover {
  text-decoration: none;
}
.contact-value {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  padding: 8px 0;
  min-height: 24px;
  color: var(--ink);
}
#contact-pec {
  white-space: nowrap;
  overflow-wrap: normal;
  overflow-x: auto;
}
.contact-offices {
  max-width: 380px;
  margin-top: 36px;
}
.offices-title,
.office-label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.offices-title {
  margin: 0 0 20px;
  text-transform: uppercase;
}
.office-address {
  display: flex;
  align-items: end;
  gap: 4px;
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.7;
}
.office-address > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.office-address address {
  margin-top: 6px;
  font-style: normal;
}
.office-map {
  flex-shrink: 0;
  justify-content: center;
  min-width: 44px;
}
.office-map:focus-visible {
  outline-offset: 2px;
}
.contact-details [hidden],
.contact-offices[hidden],
.contact-offices [hidden] {
  display: none;
}
/* Riserva lo spazio del recapito anche prima del click, senza renderlo
   visibile o raggiungibile da tastiera: la riga non cambia dimensione. */
.contact-details .contact-value[hidden] {
  display: block;
  visibility: hidden;
}
footer {
  padding: 35px 6.5%;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  border-top: 1px solid #c9cbc0;
  font-size: 12px;
  color: var(--muted);
}
footer strong {
  font-family: Georgia, serif;
  font-size: 21px;
  color: var(--ink);
  font-weight: 400;
}
footer div > span {
  display: block;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 10px;
  color: var(--red);
}
footer a {
  font-size: 14px;
}
.professional-details {
  max-width: 380px;
  overflow-wrap: anywhere;
}
.professional-details p {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
}
footer > a:hover {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (prefers-reduced-motion: no-preference) {
  .contact-link,
  footer > a,
  nav a {
    transition: color 0.15s;
  }
}
@media (min-width: 1600px) {
  header,
  .hero,
  .section,
  footer {
    padding-left: max(6.5%, calc((100vw - 1400px) / 2));
    padding-right: max(6.5%, calc((100vw - 1400px) / 2));
  }
}
@media (max-width: 900px) {
  header {
    height: 116px;
  }
  .brand {
    width: 195px;
  }
  h1 {
    letter-spacing: -2px;
  }
  .hero {
    min-height: 660px;
  }
  .studio-grid,
  .contact-grid {
    gap: 6%;
    grid-template-columns: 1fr 1fr;
  }
  .principles article {
    padding-left: 23px;
    padding-right: 23px;
  }
  .principles p {
    min-height: 120px;
  }
}
@media (max-width: 600px) {
  header {
    height: auto;
    padding: 17px 6%;
    flex-wrap: wrap;
    gap: 14px;
  }
  .brand {
    width: 190px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 5px;
    font-size: 14px;
  }
  .nav-contact span {
    margin-left: 12px;
  }
  .hero {
    padding: 56px 6% 0;
    min-height: 620px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
  }
  h1 {
    font-size: clamp(44px, 10.5vw, 62px);
    letter-spacing: -2px;
    line-height: 1.14;
  }
  .intro {
    font-size: 16px;
    max-width: 290px;
  }
  .desktop {
    display: none;
  }
  .button {
    gap: 34px;
    padding: 19px 21px;
  }
  .hero-bottom {
    padding: 20px 0;
    gap: 15px;
  }
  .hero-bottom p {
    max-width: 170px;
    font-size: 11px;
    line-height: 1.6;
  }
  .hero-bottom a {
    font-size: 12px;
  }
  .hero-bottom span {
    margin-left: 8px;
  }
  .section {
    padding: 54px 6% 60px;
  }
  .section-label {
    font-size: 10px;
    letter-spacing: 1.7px;
    margin-bottom: 33px;
  }
  .studio-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  h2 {
    font-size: 39px;
    letter-spacing: -1.3px;
  }
  .studio-copy .lead {
    font-size: 18px;
  }
  .approccio-heading {
    display: block;
  }
  .approccio-heading > p {
    width: 100%;
    margin-top: 25px;
  }
  .principles {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }
  .principles article,
  .principles article:first-child,
  .principles article:last-child {
    padding: 27px 0;
    border-right: 0;
    border-bottom: 1px solid #53554e;
    position: relative;
  }
  .principles article:last-child {
    padding-bottom: 0;
    border: 0;
  }
  .index {
    position: absolute;
    right: 0;
    top: 32px;
  }
  h3 {
    margin-top: 0;
    font-size: 30px;
  }
  .principles p {
    min-height: 0;
    max-width: 95%;
    margin-bottom: 0;
  }
  .footnote {
    margin-top: 20px;
  }
  .contact p {
    font-size: 17px;
  }
  footer {
    flex-wrap: wrap;
    padding: 28px 6%;
    gap: 20px;
  }
  footer div {
    width: 100%;
  }
  footer p {
    font-size: 11px;
  }
  footer a {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button {
    transition: none;
  }
}

/* Un solo SVG condiviso, ancorato alla pagina e solidale con il contenuto.
   x/y indicano il punto del leone al centro dell'intera pagina.
   Scala rispetto all'altezza del documento: 1.12 = 112%.
   Home conserva questa regola; le pagine interne usano la misura di riferimento sotto. */
body {
  position: relative;
  isolation: isolate;
}
.page-watermark {
  --lion-scale: 1.12;
  --lion-x: 50%;
  --lion-y: 50%;
  --lion-opacity: 0.045;
  --lion-mobile-scale: 1.12;
  --lion-mobile-x: 50%;
  --lion-mobile-y: 50%;
  --lion-mobile-angle: 18deg;
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  opacity: var(--lion-opacity);
}
[data-background="materie"] .page-watermark {
  --lion-scale: 1.12;
  --lion-mobile-scale: 1.12;
}
.page-watermark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  height: calc(100% * var(--lion-scale));
  aspect-ratio: 542/925;
  background: var(--red);
  -webkit-mask: url("/static/assets/leone.svg") center / 100% 100% no-repeat;
  mask: url("/static/assets/leone.svg") center / 100% 100% no-repeat;
  transform: translate(calc(-1 * var(--lion-x)), calc(-1 * var(--lion-y)));
}
@media (max-width: 900px) {
  .page-watermark {
    opacity: 0.03;
  }
  .page-watermark::before {
    height: calc(100% * var(--lion-mobile-scale));
    transform: translate(
      calc(-1 * var(--lion-mobile-x)),
      calc(-1 * var(--lion-mobile-y))
    );
  }
}
/* Sui telefoni la lieve rotazione allinea bandiera e zampe nel ritaglio stretto. */
@media (max-width: 600px) {
  .page-watermark::before {
    transform: translate(
        calc(-1 * var(--lion-mobile-x)),
        calc(-1 * var(--lion-mobile-y))
      )
      rotate(var(--lion-mobile-angle));
  }
}
.section > * {
  position: relative;
  z-index: 2;
}
.hero-composition {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 5%;
  align-items: center;
  padding-bottom: 72px;
}
.hero-content {
  min-width: 0;
  padding-bottom: 0;
}
.hero-composition h1 {
  font-size: clamp(44px, 6.4vw, 92px);
}
.hero-bottom {
  z-index: 2;
}
.portrait {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: linear-gradient(145deg, #e5e5de, #d8d9d0);
  border: 1px solid #c9cbc0;
  box-shadow: inset 0 0 0 12px #efeee94d;
}
.portrait::after {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid #f5f4ed8c;
  pointer-events: none;
}
.portrait-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.portrait-placeholder span {
  font-family: Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  letter-spacing: -4px;
  color: #b9bcb2;
}
.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.portrait [hidden] {
  display: none;
}

.portrait {
  justify-self: end;
  max-width: 350px;
}
.brand {
  flex-shrink: 0;
}
nav a {
  white-space: nowrap;
}
nav a[aria-current="page"] {
  color: var(--red);
  border-bottom: 1px solid var(--red);
}
footer {
  position: relative;
  z-index: 2;
}
.materie-page {
  min-height: calc(100svh - 255px);
}
.materie-intro {
  padding-top: 100px;
  padding-bottom: 120px;
}
@media (max-width: 900px) {
  nav {
    gap: 18px;
  }
  .hero-composition {
    grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
    gap: 4%;
  }
  .hero-composition h1 {
    letter-spacing: -2px;
  }
  .hero .intro .desktop {
    display: none;
  }
}
@media (max-width: 700px) {
  header {
    height: auto;
    flex-wrap: wrap;
    gap: 14px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .hero-composition {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-bottom: 40px;
  }
  .hero-composition h1 {
    font-size: clamp(44px, 10.5vw, 62px);
  }
  .portrait {
    width: 240px;
    max-width: 75%;
    justify-self: end;
  }
  .materie-intro {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

.materie-index {
  padding-top: 0;
}
.materie-list {
  display: block;
  margin-top: 48px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.materie-list > a {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  white-space: normal;
}
.materia-number {
  color: var(--red);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.materia-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.3;
}
.materia-arrow {
  color: var(--red);
  font-size: 22px;
}
.materie-list > a:focus-visible {
  color: var(--red);
  outline-offset: 4px;
}
.materia-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  column-gap: 8%;
  border-top: 1px solid var(--line);
}
.materia-heading {
  display: grid;
  grid-template-columns: 3ch minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.materia-heading .eyebrow {
  margin-bottom: 24px;
}
.materia-detail > *,
.materia-heading > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.materia-description {
  margin: 0 0 34px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--muted);
}
.materia-ambiti h3 {
  margin: 0 0 20px;
}
.materia-ambiti ul {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
}
.materia-ambiti li + li {
  margin-top: 8px;
}
.materia-ambiti li::marker {
  color: var(--red);
}
@media (max-width: 700px) {
  .materia-detail {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 32px;
  }
  .materie-list {
    margin-top: 32px;
  }
  .materie-list > a {
    gap: 16px;
    padding: 24px 0;
  }
  .materia-heading {
    gap: 16px;
  }
}
@media (max-width: 380px) {
  header nav {
    gap: 8px;
    font-size: 13px;
  }
  .nav-contact span {
    margin-left: 8px;
  }
}

/* Contatti pubblici: griglia editoriale compatta, senza cambiare i reveal. */
.contact.section {
  padding-top: 48px;
  padding-bottom: 36px;
}
.contact .section-label { margin-bottom: 24px; }
.contact .contact-grid {
  grid-template-columns: 0.75fr 1.25fr;
  gap: 6%;
}
.contact p { margin-bottom: 12px; }
.contact-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 8px;
  width: 100%;
}
.contact-item {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 0;
  margin-top: 0;
  padding-top: 4px;
}
.contact .contact-link { gap: 8px; padding-top: 4px; padding-bottom: 4px; }
.contact-value { padding: 0 0 4px; }
.contact-offices { max-width: none; margin-top: 16px; }
.office-address { align-items: center; margin-top: 4px; }
.office-address address { margin-top: 0; }

@media (max-width: 1000px) {
  .contact .contact-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .contact.section { padding-top: 36px; padding-bottom: 28px; }
  .contact .section-label { margin-bottom: 20px; }
  .contact-details { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .contact-item { grid-template-columns: max-content minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .contact-value { padding: 0; }
}

@media (max-width: 600px) {
  .approccio {
    background: rgba(41, 44, 40, 0.98);
  }

  .portrait {
    display: none;
  }
}
/* Single quiet link in the existing Studio copy; no new Home section. */
.studio-history-link { border-bottom: 1px solid var(--red); padding-bottom: 4px; }

/* Stable Materie collection: tighten spacing without changing text or type sizes. */
.materie-page:not(.editorial-page) .materie-intro { padding-top: 80px; padding-bottom: 64px; }
.materie-page:not(.editorial-page) .materie-index { padding-bottom: 64px; }
.materie-page:not(.editorial-page) .materie-list { margin-top: 32px; }
.materie-page:not(.editorial-page) .materie-list > a { padding-top: 22px; padding-bottom: 22px; }
.materie-page:not(.editorial-page) .materia-detail { padding-top: 64px; padding-bottom: 64px; }
@media (max-width: 700px) {
  .materie-page:not(.editorial-page) .materie-intro { padding-top: 56px; padding-bottom: 48px; }
  .materie-page:not(.editorial-page) .materie-index { padding-bottom: 48px; }
  .materie-page:not(.editorial-page) .materia-detail { padding-top: 48px; padding-bottom: 48px; row-gap: 24px; }
}


/* Home reference measured in Firefox: ~2730px document at desktop, ~3300px
   at 390px. Only internal pages use this responsive canvas, independent of
   their own content height. Keep the same asset, aspect ratio, opacity and
   mobile rotation; clip the shared canvas on shorter documents. */
[data-background="materie"] .page-watermark { --lion-reference-height: 2730px; }
[data-background="materie"] .page-watermark::before {
  height: calc(var(--lion-reference-height) * var(--lion-scale));
  top: calc(var(--lion-reference-height) / 2);
}
@media (max-width: 900px) {
  [data-background="materie"] .page-watermark { --lion-reference-height: 2790px; }
}
@media (max-width: 700px) {
  [data-background="materie"] .page-watermark {
    --lion-reference-height: clamp(3195px, calc(3430px - 33.33vw), 3400px);
  }
}


/* Decorative public arrows: retain existing text/wrapper spacing. */
.icon-arrow { display: inline-block; width: 1em; height: 0.75em; vertical-align: -0.0625em; overflow: visible; }
/* Match the previous Arial arrow advances, without changing wrapper margins. */
.icon-arrow--up-right, .icon-arrow--down-right { width: 0.71875em; }
.icon-arrow--up, .icon-arrow--down { width: 0.5em; }

/* Preserve the former fallback glyph line boxes in the existing wrappers. */
.icon-arrow-slot { line-height: 1.4375; }
.nav-contact > .icon-arrow-slot { line-height: 1.5; }
.button > .icon-arrow-slot { line-height: 1.4; }
