:root {
  color-scheme: light;
  --paper: #f7f3e9;
  --panel: #eae5da;
  --ink: #26251f;
  --muted: #545149;
  --accent: #80501d;
  --teal: #1b5461;
  --gold: #e4a62c;
  --berry: #a62e61;
  --clay: #d26537;
  --line: #c8c1b3;
  --serif: Georgia, 'Times New Roman', serif;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.58;
}
* { box-sizing: border-box; }
body, h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
section { scroll-margin-top: 132px; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 3; padding: .65rem; background: var(--paper); transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--teal), #348e98 31%, var(--gold) 54%, var(--clay) 75%, var(--berry)); }
.header-inner, .brand, nav { display: flex; align-items: center; }
.header-inner { min-height: 107px; justify-content: space-between; gap: 1rem; }
.brand { flex: none; text-decoration: none; }
.brand img { width: 170px; height: auto; }
nav { gap: clamp(.75rem, 3vw, 2.45rem); }
nav a { text-decoration: none; font-size: .85rem; font-weight: 600; }
nav a:hover { text-decoration: underline; }
.hero { display: grid; grid-template-columns: 1fr .93fr; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(2.75rem, 5vw, 5rem) 4rem; align-items: center; position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 20% 41% 4% 0; background: url(assets/lucertola.webp) left center / min(100%, 660px) auto no-repeat; opacity: .18; pointer-events: none; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { width: 1.45rem; height: 1px; background: currentColor; flex: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; }
h1 { font-size: clamp(3.5rem, 6.4vw, 6.35rem); line-height: .99; letter-spacing: -.064em; margin-top: 1.1rem; }
h2 { font-size: clamp(2.8rem, 5.5vw, 5.1rem); line-height: 1.02; letter-spacing: -.056em; margin-top: .65rem; }
.hero-deck { font: italic clamp(1.3rem, 2.55vw, 2rem)/1.2 var(--serif); color: var(--teal); margin-top: 1.25rem; }
.intro { margin-top: 1.15rem; max-width: 35ch; color: var(--muted); }
.action { display: inline-flex; gap: 1.25rem; align-items: center; padding-block: .5rem; margin-top: 1.2rem; font-weight: 650; font-size: .88rem; text-decoration: none; border-bottom: 1px solid var(--accent); }
.action span { color: var(--accent); }
.hero-image { min-height: 380px; height: clamp(380px, 43vw, 575px); background: #e3d9c8; border-top: 3px solid var(--gold); padding: 1.5rem; display: grid; place-items: center; }
.hero-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
figcaption { color: var(--muted); font-size: .75rem; margin-top: .65rem; }
.hero-figure figcaption { display: flex; justify-content: space-between; gap: 1rem; text-transform: uppercase; letter-spacing: .09em; }
.works, .exhibitions { background: var(--panel); padding-block: clamp(3rem, 7vw, 6rem); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.section-head > p { max-width: 32ch; color: var(--muted); }
.studio, .contact { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.5rem, 7vw, 6.5rem); padding-block: clamp(3rem, 7vw, 6rem); }
.studio .studio-figure img, .contact img { width: 100%; }
.studio div > p:not(.eyebrow), .contact div > p:not(.eyebrow) { color: var(--muted); margin-top: 1.25rem; max-width: 45ch; }
.timeline { list-style: none; padding: 0; margin: 2rem 0 0; }
.timeline li { display: grid; grid-template-columns: 10rem 1fr; align-items: baseline; gap: .5rem 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline span { color: var(--accent); font-size: .8rem; font-weight: 700; }
.timeline h3 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.16; }
.timeline p { color: var(--muted); font-size: .9rem; margin-top: .25rem; }
footer { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 1.25rem; font-size: .78rem; gap: 1rem; }
@media (max-width: 900px) { .wrap { width: calc(100% - 64px); } .hero { gap: 1.5rem; } }
@media (max-width: 670px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-block: .2rem .4rem; gap: .05rem; }
  .brand img { width: 126px; }
  .hero::before { inset: 1rem 0 auto; height: 330px; opacity: .13; }
  nav { width: 100%; gap: .3rem; justify-content: space-between; }
  nav a { font-size: .73rem; padding-block: .36rem; }
  .hero, .studio, .contact { grid-template-columns: 1fr; }
  h1 { font-size: clamp(3rem, 11vw, 4.6rem); }
  .hero { padding-top: 2.3rem; padding-bottom: 2.5rem; }
  .hero-image { min-height: 0; height: min(106vw, 435px); padding: 1rem; }
  .section-head { display: block; }
  .section-head > p { margin-top: .7rem; }
  .studio-figure { order: 1; }
  .timeline li { grid-template-columns: 6rem 1fr; }
}
.catalog-tools { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .85rem 1.25rem; padding: .95rem 0; border-block: 1px solid var(--line); }
.catalog-tools nav { width: auto; flex-wrap: wrap; justify-content: flex-start; gap: .65rem 1.4rem; color: var(--teal); }
.form-link { color: var(--teal); font-size: .84rem; font-weight: 650; }
.catalog-group { --section-color: var(--teal); margin-top: 2.6rem; }
.catalog-group#pendenti { --section-color: var(--berry); }
.catalog-group#dettagli { --section-color: var(--accent); }
.catalog-group h3 { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1.1rem; font-size: clamp(1.8rem, 4vw, 2.65rem); color: var(--section-color); }
.catalog-group h3 span { font: 650 .72rem/1 system-ui, sans-serif; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.35rem .9rem; }
.catalog-card { min-width: 0; }
.catalog-card > a { display: block; height: 100%; background: #f8f4ed; border-bottom: 2px solid var(--section-color); text-decoration: none; }
.catalog-card > a:hover { background: #fffaf1; color: var(--section-color); }
.catalog-photo { display: grid; place-items: center; aspect-ratio: 1 / 1.12; padding: .6rem; background: #ded6c9; }
.catalog-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.catalog-card-label { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .65rem .75rem .8rem; }
.catalog-card-label span { color: var(--section-color); font-size: .71rem; font-weight: 700; }
.catalog-card-label span:first-child { grid-column: 1 / -1; }
.catalog-card-label h4 { margin: 0; font: normal clamp(1.06rem, 1.65vw, 1.31rem)/1.13 var(--serif); overflow-wrap: anywhere; }
.inner-page { padding-block: 1.8rem clamp(3rem, 7vw, 6rem); }
.back-link { color: var(--teal); font-size: .86rem; font-weight: 650; display: inline-block; margin-bottom: 1.7rem; }
.artwork { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 6vw, 5rem); align-items: start; }
.artwork > article { min-width: 0; padding-block: .5rem; }
.inner-page h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); overflow-wrap: anywhere; }
.artwork-figure a { display: grid; place-items: center; min-height: 18rem; padding: 1.2rem; background: #e3d9c8; border-top: 3px solid var(--gold); }
.artwork-figure img { width: 100%; max-height: 65vh; object-fit: contain; }
.draft-note { display: inline-block; color: var(--teal); background: #e0edef; border-left: 3px solid #348e98; padding: .48rem .7rem; margin-top: 1rem; font-size: .82rem; }
.art-description { margin-top: 1rem; max-width: 55ch; color: var(--muted); }
.art-data { margin-top: 1.5rem; }
.art-data div { display: grid; grid-template-columns: 1fr 1.6fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.art-data dt { font-weight: 650; }
.art-data dd { margin: 0; color: var(--muted); }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.2rem; margin-top: 2.5rem; }
.related figure { max-width: 430px; }
.related img { width: 100%; max-height: 490px; object-fit: contain; background: var(--panel); }
.intake { max-width: 780px; }
.intake-form { margin-top: 1.5rem; display: grid; gap: 1rem; }
.intake-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.intake-form label { display: grid; gap: .25rem; font-weight: 650; font-size: .89rem; break-inside: avoid; }
.intake-form input, .intake-form textarea { background: #fffaf0; border: 1px solid var(--line); padding: .53rem; min-width: 0; width: 100%; font: inherit; color: var(--ink); font-weight: 400; }
.intake-form textarea { resize: vertical; }
.print-button { justify-self: start; color: white; background: var(--teal); border: 0; padding: .7rem 1rem; font: inherit; font-weight: 650; cursor: pointer; }
.print-value { display: none; }
@media (max-width: 900px) { .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 670px) {
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem .55rem; }
  .catalog-photo { padding: .38rem; }
  .catalog-card-label { padding-inline: .48rem; }
  .artwork, .intake-grid { grid-template-columns: 1fr; }
}
@media print {
  .site-header, .skip, .back-link, footer, .print-button { display: none; }
  .wrap { width: 100%; }
  .inner-page { padding: 0; }
  .intake h1 { font-size: 2rem; }
  .intake-form { gap: .65rem; }
  .intake-form input, .intake-form textarea { display: none; }
  .print-value { display: block; border-bottom: 1px solid #777; min-height: 1.45em; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
}
