/* COSTELLA · V21 — alternanza avorio, antracite e mattone */
:root {
  --ink: #292725;
  --ink-soft: #3c3936;
  --ink-muted: #645f5a;
  --paper: #f5f3ef;
  --paper-deep: #edeae5;
  --sand: #ebe2d8;
  --cream: #ffffff;
  --red: #a63d32;
  --green: #246b4b;
  --line: rgba(10, 10, 11, .18);
  --line-light: rgba(251, 247, 239, .19);
  --serif: Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
figure, blockquote, dl, dd { margin: 0; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.04; letter-spacing: -.025em; }
h1 { font-size: clamp(3.2rem, 7.4vw, 7.4rem); }
h2 { font-size: clamp(2.8rem, 5.2vw, 5.5rem); }
h3 { font-size: clamp(1.65rem, 2.7vw, 2.4rem); }
a { color: inherit; text-underline-offset: .24em; }
button { font: inherit; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 200; transform: translateY(-160%); background: var(--cream); color: var(--ink); padding: 12px 16px; }
.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.section--charcoal :focus-visible, .section--brick :focus-visible, .site-footer :focus-visible, .lightbox :focus-visible { outline-color: var(--paper); }
section[id] { scroll-margin-top: 84px; }

.eyebrow { margin: 0 0 20px; color: var(--red); font-size: .7rem; font-weight: 700; letter-spacing: .22em; line-height: 1.4; text-transform: uppercase; }
.text-link { display: inline-flex; align-items: center; gap: .6em; margin-top: 28px; color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { gap: .85em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 50px; padding: 14px 20px; border: 1px solid transparent; color: var(--cream); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.button:hover { transform: translateY(-2px); }
.button--red { background: var(--red); border-color: var(--red); }
.button--red:hover { background: #87372e; border-color: #87372e; }
.button--green { background: var(--green); border-color: var(--green); }
.button--green:hover { background: #19543a; border-color: #19543a; }
.button--outline { background: transparent; border-color: rgba(41, 39, 37, .3); color: var(--ink); }
.button--outline:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.button--dark { background: var(--ink); border-color: var(--ink); }
.button--dark:hover { background: var(--ink-soft); }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 30px; }

.site-header { position: sticky; top: 0; z-index: 80; background: #faf9f6; border-bottom: 1px solid var(--line); color: var(--ink); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 3px 16px rgba(10, 10, 11, .06); }
.nav-wrap { width: min(1100px, calc(100% - 48px)); display: flex; align-items: center; justify-content: center; gap: 18px; min-height: 60px; }
.brand { display: flex; flex: 0 0 52px; align-items: center; justify-content: center; width: 52px; min-height: 52px; line-height: 0; }
.brand-logo { width: 42px; height: 42px; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: 22px; }
.desktop-nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 0; color: var(--ink-muted); font-size: .78rem; letter-spacing: .005em; text-decoration: none; white-space: nowrap; }
.desktop-nav a::after { position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: var(--red); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--red); }
.desktop-nav a:hover::after, .desktop-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.desktop-nav .nav-contact { color: var(--red); }
.menu-toggle { display: none; width: 46px; height: 44px; padding: 10px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .25s ease, opacity .25s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
.mobile-menu { display: none; }

.material-photo figcaption, .method-photo figcaption, .inner-media figcaption, .lab-photo figcaption, .contact-photo figcaption, .image-pair-grid figcaption { margin-top: 12px; color: var(--ink-muted); font-size: .72rem; letter-spacing: .04em; }

.section { padding-block: clamp(74px, 10vw, 150px); }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--stone { background: var(--paper-deep); color: var(--ink); }
.section-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr); gap: clamp(34px, 8vw, 140px); align-items: end; margin-bottom: clamp(48px, 7vw, 86px); }
.section-intro h2 { max-width: 10ch; }
.intro-copy { max-width: 49ch; color: var(--ink-muted); font-size: 1rem; }

.cases { display: grid; gap: clamp(48px, 6vw, 88px); }
.case-card { padding-top: 28px; border-top: 1px solid var(--line); }
.case-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); padding-top: 28px; }
.case-pair > .case-card { min-width: 0; padding-top: 0; border-top: 0; }
.case-pair > .case-card:first-child { padding-right: clamp(24px, 3vw, 44px); }
.case-pair > .case-card + .case-card { border-left: 1px solid var(--line); padding-left: clamp(24px, 3vw, 44px); }
.case-pair .case-heading { min-height: 40px; }
.case-pair .case-copy { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; min-height: 180px; margin-bottom: 24px; }
.case-pair .case-copy h3 { max-width: none; font-size: clamp(1.65rem, 2.2vw, 2.15rem); }
/* Expanded backgrounds let both chair comparisons use the full column width. */
.case-pair .chair-case-visual { width: 100%; }
.case-heading { display: flex; justify-content: space-between; gap: 20px; }
.case-heading .eyebrow { margin-bottom: 0; }
.case-number { color: var(--red); font-family: var(--serif); font-size: 1.8rem; line-height: 1; }
.case-copy { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(250px, .62fr); gap: 40px; align-items: end; margin: 22px 0 30px; }
.case-copy h3 { max-width: 16ch; }
.case-copy p { max-width: 43ch; color: var(--ink-muted); font-size: .94rem; }
.before-after { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.before-after-shot { min-width: 0; }
.shot-frame { position: relative; overflow: hidden; background: var(--paper-deep); }
.shot-frame img { width: 100%; height: auto; object-fit: contain; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.before-after .reveal-image { transform: none; transition: none; }
.shot-frame:hover img { transform: scale(1.012); }
.shot-label { position: absolute; top: 12px; left: 12px; padding: 7px 10px; background: rgba(25, 23, 20, .8); color: var(--cream); font-size: .64rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.shot-label--after { background: var(--red); }
.before-after-shot figcaption { margin-top: 11px; color: var(--ink-muted); font-size: .68rem; line-height: 1.45; }
.case-detail { margin-top: 18px; color: var(--red); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.green-chair-frame { background: var(--paper) !important; }
.green-chair-frame img[data-green-chair-stage="before"] { clip-path: inset(0 17.78% 0 17.78%); }
.green-chair-frame img[data-green-chair-stage="during"] { clip-path: inset(0 5.98% 0 5.56%); }
.green-chair-frame img[data-green-chair-stage="after"] { clip-path: inset(0 18.20% 0 18.20%); }
.green-chair-frame .shot-label, .green-chair-frame .comparison-label { z-index: 2; }
.chair-case-visual { width: min(100%, 720px); margin-inline: auto; }
.chair-comparison { gap: 12px; }
.case-card--green-chair > .case-detail { margin-top: 18px; text-align: left; }
.case-card--green-chair > .text-link { margin-top: 12px; font-size: .7rem; }
.restoration-sequence .shot-frame img { aspect-ratio: 3 / 4; object-fit: contain; transform: none; }
.method-example { max-width: 49ch; margin-top: 18px; color: var(--ink-muted); font-size: .9rem; }
.restoration-sequence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.restoration-sequence .shot-frame { aspect-ratio: 3 / 4; }
.restoration-sequence figcaption { padding-top: 18px; border-top: 1px solid var(--line); margin-top: 20px; }
.stage-index { display: block; margin-bottom: 12px; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.restoration-sequence figcaption h3 { margin-bottom: 12px; font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: var(--ink); }
.restoration-sequence figcaption p { max-width: 40ch; font-size: .9rem; line-height: 1.65; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .25s ease, transform .25s ease; }
.service-card:hover { border-color: var(--red); transform: translateY(-4px); }
.service-media { display: grid; min-height: 250px; place-items: center; overflow: hidden; background: var(--paper); }
.service-media img { width: 100%; height: 100%; max-height: 310px; object-fit: contain; transition: transform .8s cubic-bezier(.2, .7, .3, 1); }
.service-card:hover .service-media img { transform: scale(1.04); }
.service-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 28px 26px 30px; }
.service-copy .eyebrow { margin-bottom: 14px; }
.service-copy h3 { margin-bottom: 16px; }
.service-copy p:not(.eyebrow) { flex: 1; color: var(--ink-muted); font-size: .9rem; }
.service-copy .text-link { margin-top: 26px; }

.delivery-band { background: var(--paper); }
.delivery-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(42px, 9vw, 150px); align-items: center; }
.delivery-grid h2 { max-width: 10ch; }
.delivery-copy { max-width: 52ch; }
.delivery-copy > p:not(.delivery-note) { color: var(--ink-muted); font-size: 1.02rem; }
.delivery-note { margin-top: 18px; color: var(--ink-muted); font-size: .82rem; line-height: 1.55; }
.delivery-inline { margin-top: 24px; padding: 16px 18px; border-left: 3px solid var(--red); background: rgba(166, 61, 50, .055); color: var(--ink-muted); font-size: .86rem; line-height: 1.55; }
.delivery-inline strong { color: var(--ink); }

.material-band { padding-block: clamp(74px, 10vw, 150px); background: var(--sand); }
.material-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(42px, 8vw, 130px); align-items: center; }
.material-photo img { width: 100%; height: auto; }
.material-copy h2 { max-width: 10ch; }
.material-copy > p:not(.eyebrow) { max-width: 45ch; margin-top: 26px; color: var(--ink-muted); }

.method-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(42px, 8vw, 130px); align-items: start; }
.method-photo img { width: 100%; height: auto; }
.method-copy h2 { max-width: 10ch; }
.method-copy > p:not(.eyebrow) { max-width: 49ch; margin-top: 28px; color: var(--ink-muted); }
.steps, .process-list { display: grid; gap: 0; margin: 42px 0 0; padding: 0; list-style: none; }
.steps li, .process-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li > span, .process-list li > span { color: var(--red); font-family: var(--serif); font-size: 1.2rem; }
.steps h3, .process-list h3 { margin-bottom: 5px; font-family: var(--sans); font-size: .92rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.steps p, .process-list p { color: var(--ink-muted); font-size: .88rem; }

.gallery-section { padding-top: clamp(64px, 8vw, 112px); }
.archive-aside { display: grid; justify-items: end; gap: 20px; align-self: end; }
.archive-thumb { width: min(180px, 100%); }
.archive-thumb img { width: 100%; height: auto; object-fit: contain; }
.archive-thumb figcaption { margin-top: 8px; color: var(--ink-muted); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.archive-thumb figcaption { text-align: right; }
.archive-aside .intro-copy { max-width: 42ch; margin-left: auto; }
.work-drawer { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.work-drawer + .work-drawer { border-top: 0; }
.work-drawer[id] { scroll-margin-top: 100px; }
.work-drawer summary { display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; list-style: none; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.2; }
.work-drawer summary::-webkit-details-marker { display: none; }
.work-drawer summary::after { width: 44px; height: 44px; border: 1px solid var(--red); border-radius: 50%; color: var(--red); content: "+"; font-family: var(--sans); font-size: 1.5rem; line-height: 41px; text-align: center; transition: transform .25s ease, background .25s ease, color .25s ease; }
.work-drawer[open] summary::after { background: var(--red); color: var(--cream); transform: rotate(45deg); }
.drawer-count { color: var(--red); font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.drawer-count b { font-size: 1.2rem; font-weight: 400; vertical-align: -1px; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 30px 0 38px; }
.gallery-card { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; cursor: zoom-in; text-align: left; }
.gallery-card figure { overflow: hidden; background: var(--paper-deep); }
.gallery-card img { width: 100%; height: auto; transition: transform .8s cubic-bezier(.2, .7, .3, 1), filter .4s ease; }
.gallery-card:hover img { filter: saturate(1.08); transform: scale(1.035); }
.gallery-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0 2px; color: var(--ink-muted); font-size: .68rem; line-height: 1.35; text-transform: uppercase; letter-spacing: .07em; }
.gallery-card figcaption b { color: var(--red); font-size: 1rem; font-weight: 400; }

.intro-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 20px; }
.intro-links .text-link { min-height: 44px; margin-top: 0; }
.archive-method-link { min-height: 44px; margin-top: 34px; }
.comparison-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; padding-block: 30px 38px; }
.comparison-card { min-width: 0; }
.comparison-card--wide { grid-column: 1 / -1; }
.comparison-open { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-deep); color: inherit; text-align: left; cursor: zoom-in; }
.comparison-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.comparison-photo { position: relative; display: block; min-width: 0; aspect-ratio: 3 / 4; }
.comparison-card--wide .comparison-photo { aspect-ratio: 4 / 3; }
.comparison-photo img { width: 100%; height: 100%; object-fit: contain; }
.comparison-label { position: absolute; top: 12px; left: 12px; padding: 6px 10px; color: var(--cream); background: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; pointer-events: none; }
.comparison-label--after { background: var(--red); }
.comparison-card > figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; color: var(--ink-muted); font-size: .82rem; line-height: 1.5; }
.comparison-card > figcaption > span:last-child { color: var(--red); }
.comparison-open:hover { outline: 1px solid var(--red); outline-offset: 3px; }

.testimonials-grid { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 9vw, 150px); }
.testimonials h2 { max-width: 9ch; }
.rating { display: grid; grid-template-columns: auto auto; gap: 2px 15px; align-items: baseline; margin-top: 34px; }
.rating strong { grid-row: span 2; color: var(--red); font-family: var(--serif); font-size: 3.3rem; font-weight: 400; line-height: 1; }
.rating span { color: var(--red); letter-spacing: .16em; }
.rating small { color: var(--ink-muted); font-size: .72rem; }
.review-link { grid-column: 2; margin-top: 5px; color: var(--red); font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; }
.review-link:hover { color: var(--ink); text-decoration: underline; }
.quotes { display: grid; gap: 28px; }
.quotes blockquote { padding-left: 22px; border-left: 2px solid var(--red); }
.quotes blockquote > span { color: var(--red); letter-spacing: .15em; }
.quotes p { margin-top: 8px; color: var(--ink-muted); font-family: var(--serif); font-size: 1.05rem; font-style: italic; line-height: 1.5; }
.quotes cite { display: block; margin-top: 10px; color: var(--ink-muted); font-size: .66rem; font-style: normal; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }

.lab-feature { position: relative; padding-block: clamp(74px, 10vw, 130px); background: var(--paper-deep); color: var(--ink); }
.lab-wrap { position: relative; }
.lab-photo { position: relative; margin: 0; }
.lab-photo img { width: 100%; height: auto; }
.lab-photo figcaption { color: var(--ink-muted); }
.lab-card { position: absolute; right: 5%; bottom: 7%; width: min(440px, 44%); padding: clamp(28px, 4vw, 52px); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .22); }
.lab-card h2 { max-width: 8ch; }
.lab-card p:not(.eyebrow) { margin-top: 24px; color: var(--ink-muted); font-size: .94rem; }
.lab-card .lab-address { color: var(--red); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }

/* Contrasting sections: light type on dark fields, no backing rectangles. */
.section--charcoal { background: var(--ink); color: var(--paper); }
.section--charcoal .eyebrow, .section--charcoal .text-link { color: var(--paper); }
.section--charcoal .intro-copy,
.section--charcoal .service-copy p:not(.eyebrow),
.section--charcoal .image-pair-grid > div > p:not(.eyebrow),
.section--charcoal .measures-grid > div > p:not(.eyebrow),
.section--charcoal .image-pair-grid figcaption,
.section--charcoal .measures-grid figcaption,
.section--charcoal figcaption { color: #d3cec7; }
.section--charcoal .service-card { background: #35322f; border-color: rgba(245, 243, 239, .2); color: var(--paper); }
.section--charcoal .service-card:hover { border-color: var(--paper); }
.section--charcoal .service-media { background: #35322f; }
.section--charcoal .text-link:hover { text-decoration: underline; }
.section--charcoal .delivery-inline { background: rgba(245, 243, 239, .07); border-left-color: var(--paper); }
.section--charcoal .delivery-inline strong { color: var(--paper); }
.section--brick { background: var(--red); color: var(--cream); }
.section--brick .eyebrow,
.section--brick .rating strong,
.section--brick .rating span,
.section--brick .rating small,
.section--brick .review-link,
.section--brick .quotes blockquote > span,
.section--brick .quotes p,
.section--brick .quotes cite { color: var(--cream); }
.section--brick .quotes blockquote { border-left-color: rgba(255, 255, 255, .55); }
.section--brick .review-link:hover { color: var(--cream); text-decoration: underline; }

.contacts { padding-bottom: clamp(70px, 9vw, 118px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: clamp(45px, 9vw, 150px); align-items: center; }
.contact-copy h2 { max-width: 10ch; }
.contact-copy > p:not(.eyebrow) { max-width: 45ch; margin-top: 25px; color: var(--ink-muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 28px; }
.contact-list { display: grid; gap: 0; margin-top: 38px; }
.contact-list > div { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list > div:last-child { border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--red); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.contact-list dd { color: var(--ink-muted); font-size: .88rem; }
.arrival-note { display: inline-block; margin-top: 6px; color: var(--red); font-size: .78rem; font-weight: 600; line-height: 1.45; }
.contact-list a { color: var(--red); font-weight: 600; text-decoration: none; }
.contact-photo { align-self: start; }
.contact-photo img { width: 100%; height: auto; }
.map-link { display: inline-flex; align-items: center; gap: .6em; margin-top: 14px; color: var(--red); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.map-link:hover { gap: .85em; }
.contact-grid--panoramic { grid-template-columns: 1fr; gap: 54px; }
.contact-photo--panoramic { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; }
.contact-photo--panoramic img { grid-column: 1 / -1; aspect-ratio: 2048 / 682; object-fit: contain; transform: none; }
.contact-photo--panoramic figcaption, .contact-photo--panoramic .map-link { margin-top: 0; }
.contact-photo--panoramic .map-link { justify-self: end; align-self: start; }
.contact-grid--panoramic .contact-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 0 clamp(40px, 8vw, 120px); }
.contact-grid--panoramic .contact-copy > .eyebrow { grid-column: 1; grid-row: 1; }
.contact-grid--panoramic .contact-copy > h2 { grid-column: 1; grid-row: 2; }
.contact-grid--panoramic .contact-copy > p:not(.eyebrow) { grid-column: 1; grid-row: 3; }
.contact-grid--panoramic .contact-actions { grid-column: 1; grid-row: 4; }
.contact-grid--panoramic .contact-list { grid-column: 2; grid-row: 1 / 4; margin-top: 0; align-content: start; }
.contact-grid--panoramic .contact-copy > .text-link { grid-column: 2; grid-row: 4; align-self: start; }

.site-footer { padding-block: 70px 28px; background: var(--ink); color: rgba(251, 247, 239, .7); }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 36px; padding-bottom: 54px; }
.footer-logo { width: min(290px, 100%); height: auto; margin-bottom: 24px; }
.footer-brand p, .site-footer p { font-size: .87rem; }
.footer-label { margin-bottom: 13px; color: #f5f3ef; font-size: .66rem !important; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.footer-links { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer a { color: rgba(251, 247, 239, .7); text-decoration: none; }
.site-footer a:hover { color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line-light); color: rgba(251, 247, 239, .42); font-size: .68rem; }

.lightbox { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 58px 70px 70px; background: rgba(41, 39, 37, .98); }
.lightbox[hidden] { display: none; }
.lightbox-figure { display: grid; justify-items: center; max-width: min(92vw, 1060px); max-height: 85vh; }
.lightbox-figure img { width: auto; max-width: 100%; max-height: 78vh; object-fit: contain; }
.lightbox-figure figcaption { max-width: 80vw; margin-top: 15px; color: rgba(251, 247, 239, .75); font-size: .74rem; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.lightbox-close, .lightbox-arrow { position: absolute; border: 0; background: transparent; color: var(--cream); cursor: pointer; }
.lightbox-close { top: 14px; right: 20px; font-size: 2.5rem; line-height: 1; }
.lightbox-arrow { top: 50%; width: 54px; height: 54px; margin-top: -27px; border: 1px solid rgba(251, 247, 239, .24); border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox-arrow:hover { background: rgba(251, 247, 239, .12); }
.lightbox-arrow--prev { left: 18px; }
.lightbox-arrow--next { right: 18px; }
.lightbox-media { display: grid; justify-items: center; min-width: 0; }
.lightbox-photo { display: grid; justify-items: center; min-width: 0; }
.lightbox-pair-label { display: block; width: 100%; padding: 8px; background: var(--ink-soft); color: var(--cream); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; text-align: center; }
.lightbox--comparison .lightbox-figure { width: min(100%, 1060px); max-width: 100%; }
.lightbox--comparison .lightbox-media { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; align-items: start; }
.lightbox--comparison .lightbox-photo { width: 100%; }
.lightbox--comparison .lightbox-photo img { width: 100%; height: auto; max-height: min(72vh, calc(100dvh - 210px)); object-fit: contain; }
.lightbox-close { min-width: 44px; min-height: 44px; }

.inner-hero { background: var(--paper); color: var(--ink); }
.inner-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(44px, 8vw, 130px); align-items: center; padding-block: clamp(58px, 8vw, 118px); }
.back-link { display: inline-flex; margin-bottom: 48px; color: var(--ink-muted); font-size: .72rem; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.back-link:hover { color: var(--red); }
.inner-hero h1 { max-width: 9ch; }
.inner-lead { max-width: 41ch; margin-top: 28px; color: var(--ink-muted); font-size: 1.04rem; }
.inner-media { margin: 0; }
.inner-media img { width: 100%; max-height: 660px; object-fit: contain; }
.inner-media figcaption { color: var(--ink-muted); }
.inner-media--wide img { max-height: 560px; }
.bespoke-gallery { min-width: 0; }
.render-visual { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 10px; align-items: center; }
.render-stage.hero-stage { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.render-slide { min-width: 0; }
.render-slide img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.render-arrow--prev { grid-column: 1; grid-row: 1; }
.render-arrow--next { grid-column: 3; grid-row: 1; }
.render-caption { grid-column: 2; grid-row: 2; min-width: 0; color: var(--ink-muted); font-size: .78rem; line-height: 1.45; text-align: center; }
.render-toggle { grid-column: 3; grid-row: 2; justify-self: center; }
.render-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.render-thumb { min-width: 0; padding: 5px; border: 1px solid var(--line); background: var(--paper-deep); color: var(--ink); cursor: pointer; text-align: left; }
.render-thumb[aria-pressed="true"] { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.render-thumb:hover { border-color: var(--red); }
.render-thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.render-thumb span { display: block; padding: 7px 3px 4px; font-size: .7rem; line-height: 1.4; }
.render-note { margin-top: 12px; color: var(--ink-muted); font-size: .68rem; letter-spacing: .06em; }
.narrow { max-width: 1080px; }
.narrow > h2 { max-width: 11ch; }
.narrow > .intro-copy { max-width: 58ch; margin-top: 28px; }
.narrow .before-after { margin-top: 58px; }
.process-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(42px, 9vw, 140px); }
.process-list { margin-top: 0; }
.image-pair-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, .7fr); gap: clamp(42px, 8vw, 130px); align-items: center; }
.image-pair-grid figure img { width: 100%; height: auto; }
.image-pair-grid > div > p:not(.eyebrow) { max-width: 43ch; margin-top: 26px; color: var(--ink-muted); }
.split-copy, .shop-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, .8fr); gap: clamp(42px, 9vw, 150px); align-items: start; }
.split-copy > div > p:not(.eyebrow), .shop-layout > div > p:not(.eyebrow) { color: var(--ink-muted); }
.split-copy > div > p + p { margin-top: 18px; }
.material-project { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: clamp(42px, 9vw, 150px); align-items: center; }
.material-project figure img { width: 100%; height: auto; }
.material-project h2 { max-width: 9ch; }
.material-project > div > p:not(.eyebrow) { max-width: 42ch; margin-top: 26px; color: var(--ink-muted); }
.measures-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .8fr); gap: clamp(42px, 9vw, 150px); align-items: center; }
.measures-grid figure img { width: 100%; height: auto; background: var(--cream); }
.measures-grid > div > p:not(.eyebrow) { max-width: 44ch; margin-top: 24px; color: var(--ink-muted); }
.measures-grid figcaption { color: var(--ink-muted); font-size: .72rem; letter-spacing: .04em; }
.policy-hero-note { max-width: 42ch; align-self: end; padding: 24px 26px; border-left: 2px solid var(--red); background: var(--paper-deep); color: var(--ink-muted); }
.policy-hero-note .eyebrow { margin-bottom: 12px; }
.policy-layout { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(42px, 8vw, 130px); align-items: start; }
.policy-layout h2 { max-width: 10ch; }
.policy-copy { max-width: 70ch; color: var(--ink-muted); }
.policy-copy h3 { margin: 30px 0 10px; font-family: var(--sans); font-size: .88rem; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.policy-copy h3:first-child { margin-top: 0; }
.policy-copy p + p { margin-top: 16px; }
.policy-copy ul { margin: 12px 0 0; padding-left: 1.2rem; }
.policy-copy li + li { margin-top: 8px; }
.policy-copy a { color: var(--red); font-weight: 600; }
.policy-note { margin-top: 32px; padding: 18px 20px; border-left: 2px solid var(--red); background: rgba(216, 202, 186, .28); }
.not-found { display: grid; min-height: 70vh; align-items: center; background: var(--paper); color: var(--ink); }
.not-found-inner { padding-block: 90px; }
.not-found h1 { max-width: 10ch; }
.not-found-inner > p:not(.eyebrow) { max-width: 44ch; margin-top: 28px; color: var(--ink-muted); }

.reveal-image { will-change: transform; }

@media (prefers-reduced-motion: no-preference) {
  .reveal-image { transform: scale(1.018); transition: transform 1.1s cubic-bezier(.2, .7, .3, 1); }
  .reveal-image.is-visible { transform: scale(1); }
}

@media (max-width: 1120px) {
  .nav-wrap { gap: 18px; }
  .desktop-nav { gap: 18px; }
}

@media (max-width: 980px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .wrap { width: min(var(--max), calc(100% - 36px)); }
  .nav-wrap { display: flex; justify-content: space-between; min-height: 58px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-menu { position: absolute; top: 100%; right: 0; left: 0; display: flex; max-height: calc(100svh - 58px); flex-direction: column; gap: 2px; overflow-y: auto; padding: 20px 28px 28px; background: #faf9f6; border-top: 1px solid var(--line); box-shadow: 0 20px 30px rgba(0, 0, 0, .12); }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu a:not(.button) { display: flex; align-items: center; min-height: 48px; padding: 10px 0; color: var(--ink); font-family: var(--sans); font-size: 1.15rem; font-weight: 500; line-height: 1.35; text-decoration: none; }
  .mobile-menu a[aria-current="page"], .mobile-menu a:not(.button):hover { color: var(--red); }
  .mobile-menu .button { align-self: flex-start; margin-top: 18px; }
  .inner-grid { grid-template-columns: 1fr; gap: 0; padding-block: 24px 34px; }
  .section-intro, .method-grid, .material-grid, .testimonials-grid, .contact-grid, .process-layout, .image-pair-grid, .split-copy, .shop-layout, .material-project, .measures-grid, .policy-layout, .delivery-grid { grid-template-columns: 1fr; gap: 34px; }
  .section-intro { margin-bottom: 48px; }
  .section-intro h2, .method-copy h2, .material-copy h2, .testimonials h2, .contact-copy h2 { max-width: 12ch; }
  .case-copy { grid-template-columns: 1fr; gap: 15px; }
  .case-pair { grid-template-columns: minmax(0, 1fr); gap: 48px; border-top: 0; padding-top: 0; }
  .case-pair > .case-card:first-child,
  .case-pair > .case-card + .case-card { padding: 28px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .case-pair .case-heading, .case-pair .case-copy { min-height: 0; }
  .case-pair .chair-case-visual { width: min(100%, 620px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-media { min-height: 230px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .lab-card { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 18px 0; }
  .inner-grid > div { order: 1; }
  .inner-media { order: 2; margin-top: 12px; }
  .inner-grid > .bespoke-gallery { order: 2; margin-top: 32px; }
  .contact-grid--panoramic .contact-copy { display: block; }
  .contact-grid--panoramic .contact-list { margin-top: 34px; }
  .contact-photo--panoramic { grid-template-columns: 1fr; gap: 12px; }
  .contact-photo--panoramic .map-link { justify-self: start; }
  .contact-grid--panoramic { gap: 36px; }
  .archive-aside { justify-items: start; gap: 15px; }
  .archive-thumb { width: 150px; }
  .archive-thumb figcaption { text-align: left; }
  .archive-aside .intro-copy { margin-left: 0; }
  .policy-hero-note { max-width: none; padding: 20px 21px; }
  .policy-copy h3 { margin-top: 28px; }
  .back-link { margin-bottom: 38px; }
}

@media (max-width: 620px) {
  .restoration-sequence { grid-template-columns: 1fr; gap: 38px; max-width: 430px; margin-inline: auto; }
  .restoration-sequence .shot-frame { max-width: 380px; margin-inline: auto; }
  .restoration-sequence figcaption { margin-top: 16px; }
  .restoration-sequence .shot-label { top: 12px; left: 12px; padding: 7px 10px; font-size: .64rem; }
}

@media (max-width: 520px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .button { width: 100%; }
  .before-after { gap: 8px; }
  .shot-label { top: 7px; left: 7px; padding: 5px 7px; font-size: .56rem; }
  .before-after-shot figcaption { font-size: .58rem; }
  .restoration-sequence .shot-label { top: 12px; left: 12px; padding: 7px 10px; font-size: .64rem; }
  .case-detail { font-size: .63rem; }
  .work-drawer summary { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 16px; padding-block: 22px; font-size: 1.55rem; }
  .work-drawer summary::after { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .drawer-count { grid-column: 1; grid-row: 2; font-size: .7rem; text-align: left; }
  .lightbox { padding: 54px 38px 50px; }
  .lightbox-arrow { width: 38px; height: 38px; margin-top: -19px; font-size: 1.6rem; }
  .lightbox-arrow--prev { left: 6px; }
  .lightbox-arrow--next { right: 6px; }
  .lightbox-figure img { max-height: 70vh; }
  .contact-list > div { grid-template-columns: 76px 1fr; gap: 8px; }
  .review-link { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { display: grid; }
}

@media (max-width: 820px) {
  .comparison-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .comparison-card { grid-column: 1; }
  .comparison-label { top: 8px; left: 8px; padding: 5px 7px; font-size: .65rem; }
  .comparison-card > figcaption { font-size: .78rem; }
  .lightbox { padding: 60px 14px 92px; padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  .lightbox-figure { max-width: 100%; max-height: calc(100dvh - 160px); }
  .lightbox-figure img { max-height: min(70vh, calc(100dvh - 230px)); }
  .lightbox-figure figcaption { max-width: 100%; margin-top: 12px; font-size: .72rem; letter-spacing: .04em; }
  .lightbox-arrow { top: auto; bottom: calc(22px + env(safe-area-inset-bottom)); width: 48px; height: 48px; margin-top: 0; }
  .lightbox-arrow--prev { left: calc(50% - 62px); }
  .lightbox-arrow--next { right: calc(50% - 62px); }
  .lightbox-close { top: 8px; right: 10px; }
  .lightbox--comparison .lightbox-photo img { max-height: min(66vh, calc(100dvh - 236px)); }
  .mobile-menu { max-height: calc(100dvh - 58px); overflow-y: auto; overscroll-behavior: contain; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-image { transform: none; }
}

/* Home chiara editoriale. Il marchio precede la composizione testo / immagini. */
.editorial-hero { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.editorial-wrap { width: min(1420px, calc(100% - 64px)); padding-block: clamp(28px, 4vh, 46px) clamp(34px, 5vh, 58px); }
.editorial-masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 3vw, 42px); }
.hero-signature { width: 180px; height: auto; flex-shrink: 0; }
.editorial-origin { color: var(--ink-muted); font-size: .72rem; line-height: 1.65; letter-spacing: .12em; text-align: right; text-transform: uppercase; }
.keep-together { white-space: nowrap; }
.editorial-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.4fr); align-items: center; gap: clamp(28px, 3vw, 44px); }
.editorial-copy, .hero-carousel { min-width: 0; }
.editorial-copy h1 { font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: 1.04; }
.editorial-copy h1 em { color: var(--red); font-style: italic; white-space: nowrap; }
.editorial-lead { max-width: 35ch; margin-top: 22px; color: var(--ink-muted); font-size: .98rem; line-height: 1.65; }
.editorial-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.editorial-actions .button { min-width: 132px; min-height: 48px; }
.editorial-specialties { margin-top: 22px; color: var(--ink-muted); font-size: .72rem; line-height: 1.8; letter-spacing: .025em; }
.hero-visual { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; gap: 12px; align-items: center; }
.hero-stage { position: relative; isolation: isolate; width: 100%; aspect-ratio: 1672 / 941; background: var(--paper-deep); touch-action: pan-y pinch-zoom; }
.hero-visual .hero-stage { grid-column: 2; grid-row: 1; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 1.2s ease-in-out, visibility 0s linear 1.2s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1.2s ease-in-out; }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.hero-arrow { position: static; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #e8e4de; border-radius: 50%; background: #faf9f6; color: #0a0a0b; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.hero-arrow--prev { grid-column: 1; grid-row: 1; }
.hero-arrow--next { grid-column: 3; grid-row: 1; }
.hero-arrow:hover { background: #ffffff; border-color: var(--red); }
.hero-arrow:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero-carousel-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 2px 14px; margin: 12px 58px 0; padding-top: 9px; border-top: 1px solid var(--line); }
.hero-caption { flex: 1 1 200px; min-width: 0; color: var(--ink-muted); font-size: .75rem; line-height: 1.5; }
.hero-controls, .hero-selectors { display: flex; align-items: center; gap: 4px; }
.hero-controls { flex: 0 0 auto; }
.hero-controls button { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; border: 1px solid transparent; background: transparent; color: var(--ink-muted); font-size: .75rem; cursor: pointer; }
.hero-controls button:hover { color: var(--red); border-color: var(--red); }
.hero-controls button[aria-pressed="true"] { color: var(--red); border-bottom-color: var(--red); }
.hero-controls button:disabled { opacity: .5; cursor: default; }
.carousel-toggle, .hero-controls .carousel-toggle { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; cursor: pointer; }
.carousel-toggle:hover { border-color: var(--red); color: var(--red); }
.carousel-toggle:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.carousel-toggle[hidden] { display: none; }
.hero-controls[hidden], .render-thumbs[hidden], .hero-arrow[hidden] { display: none; }
.rating .rating-scale { font-size: .9rem; font-weight: 600; letter-spacing: 0; }
.case-card--savonarola .before-after { width: min(100%, 720px); margin-inline: auto; }
.case-card--savonarola .shot-frame { aspect-ratio: 200 / 237; }
.gallery-card { align-self: start; }
.gallery-card img { aspect-ratio: 3 / 4; object-fit: contain; }
.contact-list dd, .policy-copy a, .site-footer a { overflow-wrap: anywhere; }
.text-link, .map-link { min-height: 44px; }
.footer-bottom { color: #c4bcba; }
.policy-copy strong { color: var(--ink); }
.policy-updated { margin-top: 20px; font-size: .8rem; color: var(--ink-muted); }

@media (max-width: 820px) {
  .editorial-wrap { width: calc(100% - 36px); padding-block: 26px 30px; }
  .editorial-masthead { gap: 18px; margin-bottom: 24px; }
  .hero-signature { width: 165px; }
  .editorial-origin { font-size: .69rem; letter-spacing: .08em; }
  .editorial-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .editorial-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
  .editorial-copy h1 { grid-column: 1; grid-row: 1 / 4; font-size: clamp(2.4rem, 5.4vw, 3.4rem); }
  .editorial-lead { grid-column: 2; grid-row: 1; margin-top: 0; }
  .editorial-actions { grid-column: 2; grid-row: 2; margin-top: 18px; gap: 10px; }
  .editorial-actions .button { min-width: 0; padding-inline: 15px; }
  .editorial-specialties { grid-column: 2; grid-row: 3; margin-top: 14px; }
  .hero-carousel { width: min(100%, 790px); justify-self: center; }
}
@media (max-width: 820px) {
  .mobile-menu { max-height: calc(100dvh - 58px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .case-card--savonarola .before-after { max-width: 620px; }
}
@media (max-width: 600px) {
  .editorial-wrap { padding-block: 22px 24px; }
  .editorial-grid { gap: 24px; }
  .editorial-masthead { gap: 12px; margin-bottom: 24px; }
  .editorial-copy { display: block; }
  .hero-signature { width: clamp(134px, 36vw, 170px); }
  .editorial-origin { max-width: 180px; font-size: .69rem; letter-spacing: .045em; }
  .editorial-break { display: none; }
  .editorial-copy h1 { font-size: clamp(2rem, 8.8vw, 3rem); line-height: 1.06; }
  .editorial-lead { max-width: 41ch; margin-top: 16px; font-size: .91rem; line-height: 1.5; }
  .editorial-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
  .editorial-actions .button { width: 100%; min-height: 46px; padding: 10px; font-size: .7rem; }
  .editorial-specialties { font-size: .67rem; margin-top: 14px; line-height: 1.6; }
  .hero-carousel { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px 8px; align-items: center; }
  .hero-visual { display: contents; }
  .hero-visual .hero-stage { grid-column: 1 / -1; grid-row: 1; }
  .hero-carousel-bar { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; justify-content: center; gap: 2px; margin: 0; padding: 0; border: 0; }
  .hero-caption { flex: 0 1 auto; text-align: center; font-size: .7rem; }
  .hero-controls { gap: 0; }
  .hero-arrow { width: 44px; height: 44px; }
  .hero-arrow--prev { grid-column: 1; grid-row: 2; }
  .hero-arrow--next { grid-column: 3; grid-row: 2; }
}
@media (max-width: 520px) {
  .editorial-wrap { width: calc(100% - 28px); }
  .editorial-specialties { max-width: 43ch; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

/* Same Savonarola framing in home, archive and enlarged photographs.
   Display crops keep the original photographs intact; only excess floor is hidden. */
.savonarola-crop { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 200 / 237; overflow: hidden; }
.savonarola-crop > img[data-photo-crop] { position: absolute; inset: auto; top: 0; left: 0; display: block; width: 100%; max-width: none; height: auto; max-height: none; aspect-ratio: auto; object-fit: contain; transform: none !important; }
.savonarola-crop > img[data-photo-crop="savonarola-prima"] { width: 108%; left: -4%; }
.lightbox-viewport { min-width: 0; max-width: 100%; }
.lightbox--comparison .lightbox-viewport { width: 100%; }
.lightbox--green-chair .green-chair-frame { background: transparent !important; }
.lightbox--savonarola .lightbox-figure { width: min(100%, 1060px); max-width: 100%; }
.lightbox--savonarola .lightbox-media { width: min(100%, calc((100vh - 236px) * 1.68776)); width: min(100%, calc((100dvh - 236px) * 1.68776)); }
.lightbox--savonarola:not(.lightbox--comparison) .lightbox-media { width: min(100%, calc((100vh - 236px) * .84388)); width: min(100%, calc((100dvh - 236px) * .84388)); }
.lightbox--savonarola .lightbox-photo { width: 100%; }

/* The widened before/after images use the same frame as the Savonarola.
   Original narrow photographs are retained in the three-stage restoration story. */
.chair-comparison .green-chair-frame,
.comparison-card--green-chair .green-chair-frame,
.lightbox--green-chair .green-chair-frame { position: relative; display: block; width: 100%; min-width: 0; aspect-ratio: 200 / 237; overflow: hidden; }
.chair-comparison .green-chair-frame > img,
.comparison-card--green-chair .green-chair-frame > img,
.lightbox--green-chair .green-chair-frame > img { position: static; display: block; width: 100%; max-width: 100%; height: 100%; max-height: none; clip-path: none; aspect-ratio: auto; object-fit: cover; transform: none !important; }
.comparison-card--green-chair { width: 100%; justify-self: stretch; }
.comparison-card--green-chair .comparison-photos { gap: 0; }
.comparison-card--green-chair .comparison-open { background: transparent; }
.lightbox--green-chair .lightbox-media { width: min(100%, calc((100vh - 236px) * 1.68776)); width: min(100%, calc((100dvh - 236px) * 1.68776)); gap: 0; }
.lightbox--green-chair .lightbox-photo { position: relative; }
.lightbox--green-chair .lightbox-pair-label { position: absolute; top: 10px; left: 10px; z-index: 1; width: auto; padding: 6px 10px; font-size: .65rem; background: var(--ink); }
.lightbox--green-chair .lightbox-photo:nth-child(2) .lightbox-pair-label { background: var(--red); }
@media (max-width: 520px) {
  .chair-comparison { gap: 8px; }
  .comparison-card--green-chair .comparison-label { top: 5px; left: 5px; padding: 4px 5px; font-size: .58rem; }
  .lightbox--green-chair .lightbox-pair-label { top: 5px; left: 5px; padding: 4px 5px; font-size: .58rem; }
}

/* Keep the model image full width on small screens, with arrows on the next row. */
@media (max-width: 600px) {
  .render-visual { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 10px 8px; }
  .render-stage.hero-stage { grid-column: 1 / -1; grid-row: 1; }
  .render-arrow--prev { grid-column: 1; grid-row: 2; }
  .render-arrow--next { grid-column: 3; grid-row: 2; }
  .render-caption { grid-column: 2; grid-row: 2; font-size: .75rem; }
}

/* Reviews: readable call to action, independent of the rating/source link. */
.review-snapshot { max-width: 42ch; margin-top: 15px; color: var(--cream); font-size: .75rem; line-height: 1.55; }
.review-actions { display: grid; justify-items: start; gap: 12px; margin-top: 24px; }
.button--review { max-width: 100%; min-height: 48px; border-color: var(--cream); background: var(--cream); color: var(--red); white-space: normal; text-align: left; }
.button--review:hover { background: var(--paper); color: var(--red); border-color: var(--paper); }
.review-actions > p { max-width: 39ch; color: var(--cream); font-size: .78rem; line-height: 1.55; }
.policy-copy { overflow-wrap: anywhere; }
.policy-copy h3[id] { scroll-margin-top: 90px; }
