:root {
  --ink: #12141a;
  --paper: #e6e2dd;
  --accent: #b08d57;
  --mute: #6b7078;
  --line: rgba(18, 20, 26, 0.12);
  --err: #8b3a3a;
  --ok: #2f5d3a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(165deg, #f4f0ea 0%, #e6e2dd 48%, #d4cec4 100%);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; }
.wrap { width: min(1080px, calc(100% - 2rem)); margin-inline: auto; }
.site-header {
  padding: 1.25rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.85rem 1.25rem;
}
.brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.03em;
  flex: 1 1 12rem;
  min-width: 0;
}
.brand span {
  display: block;
  font-family: "Outfit", sans-serif;
  font-size: clamp(0.58rem, 2.4vw, 0.65rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 0.3rem;
  max-width: 36rem;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  flex: 0 1 auto;
}
.nav a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  margin-left: 0;
  color: var(--mute);
  white-space: nowrap;
  padding: 0.15rem 0;
}
.nav a[aria-current="page"] {
  color: var(--fg, #e8e4dc);
  border-bottom: 1px solid currentColor;
}
main { flex: 1; padding: 1.5rem 0 3rem; }
h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card-link {
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
  display: block;
}
.card-link img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: #1a1c22;
  margin-bottom: 0.65rem;
}
.meta { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.title { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; margin: 0.2rem 0; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border: 1px solid var(--line);
}
.badge-available { border-color: var(--ok); color: var(--ok); }
.badge-archive { color: var(--mute); }
.badge-ceduta { border-color: var(--err); color: var(--err); }
.cta {
  display: inline-flex;
  padding: 0.75rem 1.2rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
}
.cta:hover { background: transparent; color: var(--ink); }
.gallery-main { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #1a1c22; }
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.4rem; margin-top: 0.6rem; }
.thumbs button { border: 1px solid transparent; padding: 0; background: none; cursor: pointer; opacity: 0.7; }
.thumbs button.is-active, .thumbs button:hover { opacity: 1; border-color: var(--accent); }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.facts { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem 1.5rem; }
.facts .label { display: block; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.prose { max-width: 62ch; }

.attribution-tension {
  max-width: 62ch;
  margin: -0.15rem 0 1rem;
  padding: 0.7rem 0 0.15rem;
  border-top: 1px solid var(--line);
  color: #2a2e36;
  font-size: 0.95rem;
  line-height: 1.45;
}
.attribution-tension p { margin: 0.2rem 0; }
.attribution-tension strong {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.gocce-micro {
  max-width: 58ch;
  margin: 1.1rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
  color: #3a3f48;
}
.gocce-micro a {
  display: inline-block;
  margin-top: 0.55rem;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 0.68rem;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mute);
}
.gocce-micro a:hover { color: var(--ink); }
.method-lead {
  margin: -0.35rem 0 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-style: italic;
  color: var(--mute);
}
.method-body p { margin: 0 0 1.1rem; }
.method-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.method-body code {
  font-size: 0.85em;
}
.method-note {
  margin-top: 1.5rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: #4a4f57;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.75rem;
  font-size: 0.75rem;
  color: var(--mute);
  text-align: center;
}
.footer-copy { margin: 0; color: var(--ink); }
.footer-legal {
  margin-top: 0.85rem;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--mute);
}
.footer-legal p { margin: 0.2rem 0; }
.footer-ein { margin-right: 1rem; }
.footer-nav {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.15rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-nav a {
  text-decoration: none;
  color: var(--mute);
}
.footer-nav a:hover { color: var(--ink); }
.footer-twin {
  margin: 1.5rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  opacity: 0.65;
}
/* Footer legacy (unused on Private Collections — banner in-page) */
.art11 {
  max-width: 72ch;
  margin: 1.35rem auto 0;
  color: #4a4f57;
  line-height: 1.55;
  text-align: left;
}
.art11 .en { font-style: italic; margin: 0 0 0.5rem; }
.art11 .it { margin: 0; font-size: 0.72rem; }
.art11 .ref { display: block; margin-top: 0.5rem; font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }

/* Art. 11 — testata Private Collections (2 colonne EN | IT) */
.art11-banner {
  margin: 1.75rem 0 2.25rem;
  padding: 1.35rem 0 1.15rem;
  border-top: 1px solid rgba(42, 40, 36, 0.14);
  border-bottom: 1px solid rgba(42, 40, 36, 0.14);
  color: #4a4f57;
}
.art11-banner__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2.25rem;
  align-items: start;
}
.art11-banner__en {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}
.art11-banner__it {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #4a4f57;
}
.art11-banner__it strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--mute);
}
.art11-banner__ref {
  margin: 1.1rem 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}
@media (max-width: 720px) {
  .art11-banner__cols {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
}
.ok { color: var(--ok); }
.cta.ghost {
  background: transparent;
  color: var(--ink);
}
.cta.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.console-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.console-toolbar h1 { margin: 0; }
.console-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.console-toolbar-actions .cta { text-decoration: none; }
.payment-link-box {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--line);
}
.payment-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
  margin-top: 0.35rem;
}
.payment-link-row input {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  background: #f7f4ee;
  font-size: 0.82rem;
}
.payment-link-row .cta { cursor: pointer; }
.console-filter {
  margin: 0 0 1.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
.vault-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 0.4rem;
}
.vault-filter-row select {
  min-width: min(100%, 18rem);
  flex: 1 1 14rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  background: #f7f4ee;
  font-size: 0.85rem;
}
.vault-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.vault-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
}
.vault-link:hover { color: var(--accent); }
.modal {
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0;
  max-width: min(28rem, calc(100vw - 1.5rem));
  width: 100%;
  background: #f3efe7;
  color: var(--ink);
}
.modal::backdrop {
  background: rgba(18, 20, 26, 0.45);
}
.inquiry-form {
  padding: 1.25rem 1.25rem 1.4rem;
  max-width: none;
}
.inquiry-form h2 {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
button.cta {
  cursor: pointer;
  font: inherit;
}
.console-form { max-width: 28rem; display: grid; gap: 0.75rem; }
.console-form input, .console-form select, .console-form textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid var(--line); background: rgba(255,255,255,0.45);
  font: inherit;
}
.err { color: var(--err); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: middle; }
.td-id code {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}
.td-thumb { width: 5rem; }
.console-thumb {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  background: #1a1c22;
  border: 1px solid var(--line);
}
.console-thumb--empty {
  background: rgba(18, 20, 26, 0.06);
}
.ingest-ok { color: var(--ok); white-space: pre-wrap; }
.ingest-err { color: var(--err); white-space: pre-wrap; }

@media (max-width: 768px) {
  .wrap { width: min(1080px, calc(100% - 1.5rem)); }
  .site-header {
    padding: 1rem 0 0.85rem;
    gap: 0.75rem 1rem;
  }
  .brand { flex: 1 1 calc(100% - 9rem); }
  .nav {
    flex: 0 0 auto;
    justify-content: flex-end;
    max-width: 100%;
  }
  .nav a {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
  }
  main { padding: 1.15rem 0 2.5rem; }
  h1 { font-size: clamp(1.55rem, 7vw, 2rem); margin: 0.35rem 0 0.75rem; }
  .grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.25rem;
  }
  .thumbs { gap: 0.3rem; }
  .site-footer { padding: 1.25rem 0 2rem; }
}

@media (max-width: 640px) {
  .wrap { width: calc(100% - 1.25rem); }
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }
  .brand { flex: 1 1 auto; }
  .brand span {
    letter-spacing: 0.08em;
    max-width: none;
  }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 0.85rem 1.35rem;
    padding-top: 0.15rem;
    border-top: 1px solid var(--line);
  }
  .nav a { padding: 0.45rem 0; }
  .prose { font-size: 0.98rem; }
  .facts { grid-template-columns: 1fr; }
  .table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

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

/* —— Homepage curatorial —— */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.home-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: center;
  padding: 0.35rem 0 2.25rem;
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.home-hero__copy {
  min-width: 0;
}
.home-eyebrow {
  margin: 0 0 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.home-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 3.15rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0.01em;
  max-width: none;
  white-space: normal;
}
.home-hero h1 br {
  display: block;
  content: "";
}
.home-lead {
  margin: 1.35rem 0 0;
  max-width: min(42rem, 100%); /* ~max-w-2xl beside visual */
  font-size: 1.02rem;
  line-height: 1.65;
  color: #3a3f48;
}
.home-hero__visual {
  margin: 0;
  width: 100%;
  max-width: 26rem;
  justify-self: center;
  border: 1px solid rgba(18, 20, 26, 0.1);
  background: #e6e2dd;
  /* Reserve vertical space (~4:5) to avoid CLS before image paint */
  aspect-ratio: 819 / 1024;
  overflow: hidden;
}
.home-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.home-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2.25rem 0 0;
}
.home-pillar {
  border: 1px solid var(--line);
  padding: 1.35rem 1.25rem 1.25rem;
  background: rgba(230, 226, 221, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.home-pillar:hover {
  border-color: rgba(18, 20, 26, 0.28);
  background: rgba(243, 239, 233, 0.75);
  transform: translateY(-1px);
}
.home-pillar__label {
  margin: 0 0 0.65rem;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.home-pillar__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.45rem, 3vw, 1.75rem);
  font-weight: 600;
}
.home-pillar__body {
  margin: 0 0 1.15rem;
  color: #3a3f48;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 42ch;
}
.home-pillar__cta {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(18, 20, 26, 0.35);
  padding-bottom: 0.12rem;
}
.home-pillar__cta:hover {
  border-bottom-color: var(--ink);
}
.home-focus {
  margin: 2.75rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.home-focus h2 {
  margin: 0.35rem 0 1.35rem;
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
}
.home-focus__split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
.home-focus__media {
  margin: 0;
  border: 1px solid var(--line);
  background: #1a1c22;
  overflow: hidden;
}
.home-focus__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.home-focus__placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, #2a2d35, #12141a);
}
.home-focus__facts {
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.home-focus__facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 0 0 0.2rem;
}
.home-focus__facts dd {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.35;
}
.home-focus__facts code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.home-focus__muted {
  display: inline;
  font-size: 0.92rem;
  color: var(--mute);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 300;
}
.home-focus__abstract {
  margin: 1.15rem 0 0;
  max-width: 42ch;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3a3f48;
}
.home-focus__cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid rgba(18, 20, 26, 0.35);
  padding-bottom: 0.12rem;
}
.home-focus__cta:hover { border-bottom-color: var(--ink); }
.home-focus__note { margin-top: 0.85rem; }
.home-method {
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.home-method h2 {
  margin: 0.35rem 0 1.5rem;
  font-size: clamp(1.55rem, 3.2vw, 1.9rem);
}
.home-method__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.home-method__num {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--mute);
  margin-bottom: 0.45rem;
}
.home-method__grid h3 {
  margin: 0 0 0.45rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.home-method__grid p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a3f48;
  max-width: 36ch;
}
.home-method__grid a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (min-width: 720px) {
  .home-pillars {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .home-focus__split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
  }
  .home-method__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.25rem 2.75rem;
    align-items: center;
  }
  .home-hero__visual {
    justify-self: end;
    max-width: 28rem;
  }
  .home-hero h1 {
    font-size: clamp(2.1rem, 3.6vw, 3.05rem);
  }
}

