:root {
  --paper: #f1e9dc;
  --ink: #171411;
  --outer: #d5d0c7;
  --rule: rgba(23, 20, 17, .27);
  --rule-soft: rgba(23, 20, 17, .20);
  --panel-shadow: 0 22px 64px rgba(0, 0, 0, .16);
  --page-width: 1260px;
  --content-width: 1080px;
  --font-display: "General Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Newsreader", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--outer);
  color: var(--ink);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.dialog-open { overflow: hidden; }

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

button,
input,
textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-140%);
  transition: transform .18s ease;
}

.skip-link:focus { transform: translateY(0); }

.site {
  width: min(var(--page-width), 100%);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: 0 0 42px rgba(0, 0, 0, .10);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 42px;
  border-bottom: 1px solid var(--rule);
  background: rgba(241, 233, 220, .965);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.mark {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--ink);
}

.mark svg {
  width: 38px;
  height: 48px;
}

.mark path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.9;
  stroke-linecap: round;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 27px;
  font-size: 14px;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar { display: none; }

.site-nav a {
  position: relative;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .055em;
  text-decoration: none;
  transform: translateY(2px);
  transition: opacity .18s ease;
}

.site-nav a:not(.nav-write)::after,
.contact-trigger span::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .18s ease;
}

.site-nav a:not(.nav-write):hover::after,
.site-nav a:not(.nav-write):focus-visible::after,
.site-nav a:not(.nav-write).is-current::after,
.site-nav a[aria-current="page"]::after,
.contact-trigger:hover span::after,
.contact-trigger:focus-visible span::after {
  transform: scaleX(1);
}

.site-nav a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
}

@media (hover: hover) {
  .site-nav:hover a {
    opacity: .62;
  }

  .site-nav:hover a:hover,
  .site-nav:hover a:focus-visible,
  .site-nav:hover a.is-current,
  .site-nav:hover a[aria-current="page"] {
    opacity: 1;
  }
}

/* “scrivi”: parola leggibile e piccolo gesto grafico originale */
.nav-write {
  display: inline-flex;
  align-items: center;
  padding-right: 7px;
}

.nav-write-word {
  position: relative;
  z-index: 1;
}

.nav-write-gesture {
  position: absolute;
  left: -1px;
  bottom: -10px;
  width: calc(100% + 10px);
  height: 12px;
  overflow: visible;
  pointer-events: none;
}

.nav-write-line,
.nav-write-nib {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.nav-write-line {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transition: stroke-dashoffset .22s cubic-bezier(.4, 0, .2, 1);
}

.nav-write-nib {
  opacity: 0;
  transform: translate(-3px, 1px) scale(.88);
  transform-origin: 50px 6px;
  transition:
    opacity .12s ease .035s,
    transform .22s cubic-bezier(.4, 0, .2, 1) .035s;
}

.nav-write:hover .nav-write-line,
.nav-write:focus-visible .nav-write-line,
.nav-write.is-open .nav-write-line {
  stroke-dashoffset: 0;
}

.nav-write:hover .nav-write-nib,
.nav-write:focus-visible .nav-write-nib,
.nav-write.is-open .nav-write-nib {
  opacity: 1;
  transform: translate(1px, -1px) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .nav-write-line,
  .nav-write-nib {
    transition: none;
  }

  .nav-write:hover .nav-write-line,
  .nav-write:focus-visible .nav-write-line,
  .nav-write.is-open .nav-write-line {
    stroke-dashoffset: 0;
  }

  .nav-write:hover .nav-write-nib,
  .nav-write:focus-visible .nav-write-nib,
  .nav-write.is-open .nav-write-nib {
    transform: none;
  }
}

/* Apertura */
.hero {
  padding: 88px 9% 0;
}

.hero-card {
  width: min(620px, 100%);
  margin: 0 auto;
}

.logotype {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
}

.logotype-wordmark {
  display: block;
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1.12;
  letter-spacing: .064em;
  text-wrap: balance;
}

.logotype-descriptor {
  display: block;
  margin-top: 36px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.72;
  letter-spacing: 0;
}

.identity {
  margin-top: 0;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.72;
}

.identity p { margin: 0; }

.identity .place { margin-top: 18px; }

.identity .contacts:first-of-type { margin-top: 18px; }

.identity .contacts {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.opening-threshold {
  margin-top: 166px;
  padding: 0 0 84px;
}

.threshold-scene {
  width: min(780px, 100%);
}

.threshold {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(25px, 3.15vw, 33px);
  font-weight: 400;
  line-height: 1.36;
  letter-spacing: -.012em;
  text-align: left;
  text-wrap: balance;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
}


/* Prosa e sezioni */
.work-section,
.section {
  position: relative;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 98px;
}

.work-section {
  padding: 118px 9% 132px;
}

.section {
  padding: 138px 9%;
}

.prose-stage {
  position: relative;
  min-height: 704px;
}

.side-monogram {
  position: absolute;
  top: 52%;
  left: 9%;
  width: 158px;
  height: 214px;
  opacity: .12;
  pointer-events: none;
  transform: translate(-50%, -50%) scaleY(1.10);
  transform-origin: center;
}

.side-monogram path {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.first-prose {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 0 0 0 auto;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.72;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
}

.work-experience p,
.method,
.section-copy p,
.profile-block p,
.legal-main p,
.legal-main li {
  margin: 0 0 1.42em;
}

.justified .work-experience p,
.justified .method,
.justified .section-copy > p,
.justified .profile-block p {
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.method {
  margin-top: 78px;
  font-size: 23.5px;
  line-height: 1.59;
}

h2,
.profile-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.8vw, 39px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .062em;
}

.section-copy {
  font-family: var(--font-body);
  font-size: 19.5px;
  line-height: 1.72;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
}

.narrow {
  width: min(680px, 100%);
  margin: 0 auto;
}

/* Consultazione iniziale */
.consultation-section {
  padding-top: 120px;
  padding-bottom: 124px;
}

.consultation-section h2 {
  margin-bottom: 52px;
}

.consultation-result {
  max-width: 630px;
  margin-top: 34px !important;
  margin-bottom: 0 !important;
  font-size: 21.5px;
  line-height: 1.62;
}

/* Profilo */
.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, .78fr) minmax(0, 1.55fr);
  grid-template-areas:
    "portrait title"
    "portrait copy";
  grid-template-rows: auto 1fr;
  align-items: start;
  column-gap: clamp(46px, 7.5vw, 94px);
  row-gap: 54px;
  max-width: var(--content-width);
  margin: 0 auto;
}

.profile-title { grid-area: title; }

.portrait {
  grid-area: portrait;
  margin: 0;
}

.portrait-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
}

.profile-copy { grid-area: copy; }

.profile-block + .profile-block {
  margin-top: 46px;
}

.profile-synthesis {
  margin-top: 52px !important;
}

.profile-synthesis p:last-child {
  margin-bottom: 0;
  font-size: 1.06em;
  line-height: 1.67;
}

details {
  margin-top: 54px;
  border-top: 1px solid rgba(23, 20, 17, .36);
  border-bottom: 1px solid rgba(23, 20, 17, .36);
  font-family: var(--font-display);
}

summary {
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 0 20px 24px;
  font-size: 16px;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 19px;
  font-size: 17px;
  font-weight: 400;
}

details[open] summary::before { content: "−"; }

.credentials {
  list-style: none;
  margin: 0;
  padding: 0 0 28px;
  font-family: var(--font-display);
}

.credentials li {
  padding: 15px 0;
  border-top: 1px solid rgba(23, 20, 17, .22);
  font-size: 16px;
  line-height: 1.55;
}

.credentials span,
.credentials a {
  display: block;
  font-size: 16px;
}

/* Studio */
.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 1.15fr);
  align-items: center;
  gap: clamp(48px, 7.5vw, 94px);
  max-width: var(--content-width);
  margin: 0 auto;
}

.studio-copy {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.62;
}

.studio-copy h2 {
  margin-bottom: 54px;
}

.studio-address {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 38px;
}

.studio-address p {
  width: 100%;
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
  overflow-wrap: anywhere;
}

.presence {
  margin: 0 0 42px;
  font-size: 18px;
  line-height: 1.6;
}

dl {
  margin: 48px 0;
  border-top: 1px solid rgba(23, 20, 17, .36);
  font-family: var(--font-display);
}

dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 20, 17, .36);
}

dt,
dd { margin: 0; }

.contact-note {
  margin: 36px 0 0 !important;
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.62;
  text-align: left !important;
  -webkit-hyphens: none !important;
  hyphens: none !important;
}

.studio-photo {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.studio-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  object-position: center;

  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 4.5%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 4.5%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
  mask-composite: intersect;
}

.closing-contact {
  display: flex;
  justify-content: flex-end;
  max-width: var(--content-width);
  margin: 72px auto 0;
}

.contact-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .062em;
  cursor: pointer;
}

.contact-trigger svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-trigger span {
  position: relative;
  line-height: 1.2;
}

/* Pannello di contatto */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(23, 20, 17, .14);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}

.dialog-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.contact-panel {
  position: fixed;
  right: max(28px, calc((100vw - min(var(--page-width), 100vw)) / 2 + 28px));
  bottom: 28px;
  z-index: 90;
  width: min(390px, calc(100vw - 40px));
  max-height: calc(100vh - 56px);
  overflow: auto;
  padding: 30px;
  border: 1px solid rgba(23, 20, 17, .38);
  background: rgba(241, 233, 220, .995);
  box-shadow: var(--panel-shadow);
  font-family: var(--font-display);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

.contact-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.contact-panel h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: .08em;
}

.contact-close {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 27px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.contact-form {
  display: grid;
  gap: 19px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  letter-spacing: .035em;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 9px 1px 10px;
  border: 0;
  border-bottom: 1px solid rgba(23, 20, 17, .48);
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.contact-form textarea {
  min-height: 118px;
  padding: 11px;
  border: 1px solid rgba(23, 20, 17, .38);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--ink);
  box-shadow: 0 1px 0 var(--ink);
}

.privacy-check {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  gap: 10px !important;
  font-size: 12px !important;
  line-height: 1.45;
  letter-spacing: 0 !important;
}

.privacy-check input { margin: 3px 0 0; }

.contact-submit {
  justify-self: start;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .062em;
  cursor: pointer;
}

.contact-submit:hover,
.contact-submit:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.contact-submit[disabled] {
  cursor: wait;
  opacity: .55;
}

.contact-feedback {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.contact-feedback.success { font-weight: 700; }

.contact-feedback.error {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.bot-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Footer */
.site-footer {
  padding: 86px 9% 46px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display);
}

.footer-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(34px, 8vw, 86px);
  max-width: 760px;
  margin: 0 auto;
}

.footer-logo {
  margin: 0 0 22px;
  font-size: clamp(28px, 5vw, 46px);
  letter-spacing: .066em;
}

.footer-identity p { margin: 0 0 5px; }

.footer-place { margin-top: 18px !important; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 98px;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  line-height: 1.45;
}



/* Link editoriali e footer: sottolineatura solo al passaggio o al focus */
.depth-link,
.depth-related,
.access-card a,
.credentials a,
.footer-identity a,
.footer-links a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 1px);
  background-size: 0 1px;
  transition:
    background-size .18s ease,
    opacity .18s ease;
}

.depth-link:hover,
.depth-link:focus-visible,
.depth-related:hover,
.depth-related:focus-visible,
.access-card a:hover,
.access-card a:focus-visible,
.credentials a:hover,
.credentials a:focus-visible,
.footer-identity a:hover,
.footer-identity a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  background-size: 100% 1px;
}

.depth-link:focus-visible,
.depth-related:focus-visible,
.access-card a:focus-visible,
.credentials a:focus-visible,
.footer-identity a:focus-visible,
.footer-links a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

/* Il tratto superiore del footer resta un elemento strutturale, non un underline */
.footer-links {
  text-decoration: none;
}

/* Pagine legali */
.legal-page { min-height: 100vh; }

.legal-main {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: 96px 0 120px;
}

.legal-main h1 {
  margin: 0 0 54px;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 400;
  letter-spacing: .06em;
}

.legal-main h2 {
  margin: 52px 0 20px;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .035em;
}

.legal-main p,
.legal-main li {
  font-family: var(--font-body);
  font-size: 18.5px;
  line-height: 1.72;
  font-optical-sizing: auto;
}

.legal-main ul { padding-left: 22px; }

.legal-meta {
  margin-top: 64px !important;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-display) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
}

.back-home {
  display: inline-block;
  margin-bottom: 54px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .05em;
}

/* Responsive */
@media (max-width: 760px) {
  .site-header {
    padding: 18px 20px;
    gap: 16px;
  }

  .site-nav {
    gap: 10px 13px;
    font-size: 12px;
  }

  .hero {
    padding: 62px 24px 0;
  }

  .opening-threshold {
    margin-top: 112px;
    padding-bottom: 68px;
  }

  .threshold {
    font-size: 24px;
    line-height: 1.36;
  }

  .work-section {
    padding: 92px 24px 108px;
  }

  .section {
    padding: 104px 24px;
    scroll-margin-top: 108px;
  }

  .consultation-section {
    padding-top: 96px;
    padding-bottom: 100px;
  }

  .prose-stage { min-height: auto; }

  .side-monogram { display: none; }

  .first-prose {
    width: 100%;
    font-size: 19px;
    line-height: 1.70;
  }

  .method {
    margin-top: 58px;
    font-size: 22px;
    line-height: 1.60;
  }

  .section-copy {
    font-size: 19px;
    line-height: 1.70;
  }

  .consultation-result {
    font-size: 21px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "portrait"
      "copy";
    grid-template-rows: auto auto auto;
    row-gap: 46px;
  }

  .portrait {
    width: min(300px, 86%);
  }

  .profile-copy { margin-top: 4px; }

  .profile-block + .profile-block {
    margin-top: 38px;
  }

  .profile-synthesis {
    margin-top: 42px !important;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 60px;
  }

  .closing-contact {
    margin-top: 56px;
  }

  .contact-panel {
    right: 16px;
    bottom: 16px;
    width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    padding: 25px;
  }

  .footer-card {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 580px) {
  .justified .work-experience p,
  .justified .method,
  .justified .section-copy > p,
  .justified .profile-block p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
  }

  .footer-card {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
    gap: 14px;
  }

  .mark svg {
    width: 34px;
    height: 44px;
  }

  .site-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    overflow: visible;
    white-space: nowrap;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .logotype-wordmark {
    font-size: 38px;
    letter-spacing: .055em;
  }

  .logotype-descriptor {
    margin-top: 30px;
  }

  h2,
  .profile-title {
    letter-spacing: .052em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}


/* ==========================================================
   Pagine autonome di approfondimento
   ========================================================== */

.depth-link {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
}


.consultation-section .depth-link {
  margin-top: 40px;
}

.profile-depth-link {
  margin-top: 4px;
  margin-bottom: 10px;
}

.depth-main {
  position: relative;
}

.depth-hero {
  position: relative;
  padding: 106px 9% 118px;
}

.depth-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.depth-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 76px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
}

.depth-back::before {
  content: "←";
  font-size: 15px;
  font-weight: 400;
  transition: transform .18s ease;
}

.depth-back:hover::before,
.depth-back:focus-visible::before {
  transform: translateX(-4px);
}

.depth-title {
  max-width: 860px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: .045em;
  text-wrap: balance;
}

.depth-lead {
  width: min(760px, 100%);
  margin: 70px 0 0 auto;
  font-family: var(--font-body);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.42;
  letter-spacing: -.012em;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.depth-body {
  border-top: 1px solid var(--rule);
}

.depth-section {
  position: relative;
  padding: 118px 9%;
  border-bottom: 1px solid var(--rule-soft);
}

.depth-section:last-child {
  border-bottom: 0;
}

.depth-grid {
  display: grid;
  grid-template-columns: minmax(170px, .5fr) minmax(0, 1.5fr);
  gap: clamp(54px, 9vw, 122px);
  width: min(980px, 100%);
  margin: 0 auto;
}

.depth-kicker {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .07em;
}

.depth-copy {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.74;
  font-optical-sizing: auto;
  font-variant-ligatures: common-ligatures;
}

.depth-copy p {
  margin: 0 0 1.42em;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}

.depth-copy p:last-child {
  margin-bottom: 0;
}

.depth-emphasis {
  margin-top: 50px !important;
  font-size: 23px;
  line-height: 1.62 !important;
}

.depth-data {
  width: min(760px, 100%);
  margin: 58px 0 0 auto;
  border-top: 1px solid rgba(23, 20, 17, .36);
  font-family: var(--font-display);
}

.depth-data div {
  display: grid;
  grid-template-columns: minmax(150px, .72fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(23, 20, 17, .36);
}

.depth-data dt,
.depth-data dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

.depth-data dt {
  font-weight: 600;
}

.depth-conclusion {
  padding: 128px 9% 138px;
  border-top: 1px solid var(--rule);
}

.depth-conclusion-inner {
  width: min(820px, 100%);
  margin: 0 auto;
}

.depth-conclusion p {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.42;
  text-wrap: balance;
  font-optical-sizing: auto;
}

.depth-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 34px;
  margin-top: 64px;
}

.depth-actions .contact-trigger {
  font-size: 14px;
}

.depth-related {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
}


.depth-triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(980px, 100%);
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.depth-triptych article {
  min-height: 270px;
  padding: 34px 30px 38px;
  background: var(--paper);
}

.depth-triptych h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .035em;
}

.depth-triptych p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.68;
  font-optical-sizing: auto;
}

.depth-genealogy {
  width: min(780px, 100%);
  margin: 0 auto;
}

.depth-genealogy h2 {
  margin: 0 0 48px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .045em;
}

.depth-genealogy p {
  margin: 0 0 1.42em;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.74;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
  font-optical-sizing: auto;
}

.depth-genealogy p:last-child {
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .depth-hero {
    padding: 78px 24px 88px;
  }

  .depth-back {
    margin-bottom: 56px;
  }

  .depth-title {
    font-size: 43px;
    line-height: 1.08;
  }

  .depth-lead {
    margin-top: 54px;
    font-size: 25px;
  }

  .depth-section {
    padding: 92px 24px;
  }

  .depth-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .depth-kicker {
    font-size: 13px;
  }

  .depth-copy {
    font-size: 19px;
    line-height: 1.7;
  }

  .depth-copy p,
  .depth-genealogy p {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
  }

  .depth-emphasis {
    margin-top: 42px !important;
    font-size: 22px;
  }

  .depth-data {
    margin-top: 44px;
  }

  .depth-data div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .depth-conclusion {
    padding: 96px 24px 108px;
  }

  .depth-actions {
    align-items: flex-start;
    flex-direction: column;
    margin-top: 52px;
  }

  .depth-triptych {
    grid-template-columns: 1fr;
  }

  .depth-triptych article {
    min-height: auto;
  }

  .depth-genealogy {
    width: 100%;
  }

  .depth-genealogy p {
    font-size: 19px;
    line-height: 1.7;
  }
}


/* ==========================================================
   Pagina autonoma dello studio e mappa schematica
   ========================================================== */

.studio-map-section {
  padding-top: 112px;
  padding-bottom: 118px;
}

.studio-map-wrap {
  width: min(1040px, 100%);
  margin: 0 auto;
}

.studio-map-intro {
  display: grid;
  grid-template-columns: minmax(180px, .48fr) minmax(0, 1.52fr);
  gap: clamp(54px, 9vw, 122px);
  margin-bottom: 68px;
}

.studio-map-intro p {
  margin: 0;
}

.studio-map-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  background:
    linear-gradient(rgba(23, 20, 17, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 17, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}

.studio-map-shell svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-road {
  fill: none;
  stroke: rgba(23, 20, 17, .38);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-road.secondary {
  stroke-width: 4;
  stroke: rgba(23, 20, 17, .25);
}

.map-route {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-dasharray: 7 9;
  stroke-linecap: round;
}

.map-label {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: .03em;
}

.map-label.small {
  font-size: 14px;
  opacity: .76;
}

.map-marker-ring {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
}

.map-marker-core {
  fill: var(--ink);
}

.map-parking {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 1.8;
}

.map-parking-text {
  fill: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1.5;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.map-legend i {
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--ink);
}

.map-legend .dotted i {
  height: 0;
  border-top: 2px dashed var(--ink);
  background: none;
}

.map-note {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 1.5;
  opacity: .72;
}

.access-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: min(1040px, 100%);
  margin: 0 auto;
  border: 1px solid var(--rule);
  background: var(--rule);
}

.access-card {
  min-height: 310px;
  padding: 34px 30px 38px;
  background: var(--paper);
}

.access-card h2 {
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .035em;
}

.access-card p {
  margin: 0 0 1.2em;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.68;
  font-optical-sizing: auto;
}

.access-card p:last-of-type {
  margin-bottom: 0;
}

.access-card a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}

.access-card a::after {
  content: "→";
  transition: transform .18s ease;
}

.access-card a:hover::after,
.access-card a:focus-visible::after {
  transform: translateX(4px);
}

.studio-practical {
  width: min(820px, 100%);
  margin: 0 auto;
}

.studio-practical h2 {
  margin: 0 0 54px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .045em;
}

.studio-practical p {
  margin: 0 0 1.42em;
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.74;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  -webkit-hyphens: none;
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
  font-optical-sizing: auto;
}

.studio-practical dl {
  margin-top: 52px;
}

.studio-page-photo {
  width: min(980px, 100%);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
}

.studio-page-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 4.5%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 4.5%, #000 100%),
    linear-gradient(to bottom, transparent 0, #000 2%, #000 98%, transparent 100%);
  mask-composite: intersect;
}

.home-studio-depth-link {
  margin-top: 34px;
}

@media (max-width: 760px) {
  .studio-map-section {
    padding-top: 92px;
    padding-bottom: 96px;
  }

  .studio-map-intro {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 46px;
  }

  .studio-map-shell {
    overflow-x: auto;
  }

  .studio-map-shell svg {
    min-width: 760px;
  }

  .map-label {
    font-size: 17px;
  }

  .access-grid {
    grid-template-columns: 1fr;
  }

  .access-card {
    min-height: auto;
  }

  .studio-practical p {
    font-size: 19px;
    line-height: 1.7;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    -webkit-hyphens: none;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: pretty;
  }

  .studio-page-photo {
    aspect-ratio: 4 / 3;
  }
}


/* Rifinitura grafica v19: essenzialità e giustezza mobile */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.contact-panel[aria-hidden="true"] {
  pointer-events: none;
}


/* ==========================================================
   Biglietto digitale / pagina contatto
   ========================================================== */

.contact-card-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-card-main {
  flex: 1;
  padding: 88px 24px 96px;
}

.contact-card-shell {
  width: min(560px, 100%);
  margin: 0 auto;
}

.contact-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 62px;
}

.contact-card-top .mark {
  position: static;
  display: block;
  width: 42px;
  height: 52px;
}

.contact-card-back {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .045em;
  text-decoration: none;
}

.contact-card-portrait {
  width: min(310px, 72vw);
  aspect-ratio: 1 / 1;
  margin: 0 auto 44px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--paper);
}

.contact-card-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  -webkit-mask-image:
    radial-gradient(circle at center, #000 0, #000 82%, transparent 100%);
  mask-image:
    radial-gradient(circle at center, #000 0, #000 82%, transparent 100%);
}

.contact-card-identity {
  text-align: center;
}

.contact-card-logo {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 10vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: .045em;
}

.contact-card-name {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .035em;
}

.contact-card-role,
.contact-card-place {
  margin: 7px 0 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
}

.contact-card-place {
  margin-top: 18px;
}

.contact-card-actions {
  display: grid;
  gap: 12px;
  margin-top: 48px;
}

.contact-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 58px;
  padding: 15px 18px;
  border: 1px solid rgba(23, 20, 17, .38);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .035em;
  text-decoration: none;
  background: transparent;
  transition: background-color .16s ease, color .16s ease;
}

.contact-card-action:hover,
.contact-card-action:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.contact-card-action.primary {
  background: var(--ink);
  color: var(--paper);
}

.contact-card-action.primary:hover,
.contact-card-action.primary:focus-visible {
  background: transparent;
  color: var(--ink);
}


.contact-card-details {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(23, 20, 17, .32);
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
  overflow-wrap: anywhere;
}

.contact-card-details p {
  margin: 0 0 6px;
}

.contact-card-note {
  margin: 26px auto 0;
  max-width: 430px;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
  opacity: .76;
}

.contact-card-page .site-footer {
  margin-top: 0;
}

@media (max-width: 600px) {
  .contact-card-main {
    padding-top: 42px;
    padding-bottom: 74px;
  }

  .contact-card-top {
    margin-bottom: 42px;
  }

  .contact-card-logo {
    font-size: 42px;
  }

  .contact-card-role,
  .contact-card-place {
    font-size: 17px;
  }

  .contact-card-action {
    min-height: 56px;
  }
}
