:root {
  color-scheme: light;
  --paper: #f6f1e8;
  --ink: #26231f;
  --copper: #87482f;
  --line: #c9b9a7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.65 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; width: 100%; height: auto; }
p, figure { margin: 0; }
p + p { margin-top: 1rem; }
figure figcaption { margin-top: .55rem; font-size: .8125rem; }
.shell { width: min(90%, 1320px); margin-inline: auto; }
.skip { position: fixed; top: .75rem; left: .75rem; z-index: 10; padding: .6rem 1rem; background: var(--paper); transform: translateY(-170%); }
.skip:focus { transform: translateY(0); }
.top { min-height: 90px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3vw, 2.6rem); font-size: .875rem; }
nav a { text-decoration: none; white-space: nowrap; }
nav a:hover, .text-link:hover { text-decoration: underline; }
.outline, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1.12rem; border: 1px solid currentColor; text-decoration: none; font-weight: 600; font-size: .875rem; }
.outline { background: transparent; color: inherit; }
.button { background: var(--copper); border-color: var(--copper); color: #fffaf3; transition: background-color .2s, border-color .2s; }
.button:hover { background: #653621; border-color: #653621; }
.button:focus-visible { outline-color: var(--ink); }
.eyebrow { color: var(--copper); font-weight: 650; font-size: .875rem; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
h1, h2 { font: 400 clamp(2.65rem,5vw,5rem)/.98 var(--serif); letter-spacing: -.033em; margin: 0 0 1.25rem; text-wrap: balance; }
h1 { font-size: clamp(3rem,6.15vw,6.2rem); }
h1 em, h2 em { color: var(--copper); font-weight: inherit; }
.dark { background: #25221f; color: #f8eee2; --copper: #e1a682; --line: #746258; }
.section { padding-block: clamp(3rem,7vw,7rem); }
.split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(1.5rem,7vw,7rem); align-items: center; }
.heading { align-items: end; margin-bottom: 2rem; }
.heading h2 { margin-bottom: 0; }
.note { font-size: .8125rem; line-height: 1.55; }
.gallery { display: grid; grid-template-columns: 1.34fr 1fr 1fr; gap: clamp(.75rem,2vw,1.6rem); margin-bottom: 1.3rem; }
.photo { display: block; min-width: 0; width: 100%; padding: 0; background: none; color: inherit; border: 0; text-align: left; }
.photo img { aspect-ratio: 1.3; object-fit: cover; background: #473429; transition: filter .25s; }
.photo:first-child img { object-position: center; }
.photo:hover img { filter: brightness(1.11); }
.photo span { display: block; border-bottom: 1px solid var(--line); padding: .7rem 0; font-size: .875rem; }

.service h2 { text-wrap: initial; overflow-wrap: break-word; }
.text-link { display: inline-block; color: var(--copper); font-weight: 650; margin-top: 1.2rem; }
.compare-stage { --prima: 50%; position: relative; isolation: isolate; display: flex; justify-content: space-between; align-items: end; min-height: 155px; aspect-ratio: 1240 / 634; padding: .75rem; background: #362c25; overflow: hidden; }
.compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--prima)) 0 0); }
.compare-stage span { z-index: 1; background: var(--paper); padding: .25rem .5rem; font-size: .8125rem; }
.divider { position: absolute; inset-block: 0; left: var(--prima); transform: translateX(-50%); width: 2px; background: #fff3e4; }
.compare label { display: block; font-weight: 600; }
.compare input { display: block; width: 100%; height: 2rem; margin: .15rem 0; accent-color: var(--copper); cursor: ew-resize; }

.story { background: #eae0d3; border-block: 1px solid #ded0bf; }
.closing { font: italic 1.5rem/1.25 var(--serif); }
.quote { align-items: start; }
.quote > div p { max-width: 40ch; }
form { display: grid; gap: .55rem; }
form label { display: block; font-weight: 600; font-size: .875rem; }
form input, form select { width: 100%; min-height: 45px; padding: .5rem .65rem; border: 1px solid #9c8876; border-radius: 0; background: #fffaf3; color: var(--ink); }
form select { appearance: none; background: linear-gradient(45deg,transparent 50%,var(--copper) 50%) calc(100% - 18px) 50%/6px 6px no-repeat, linear-gradient(135deg,var(--copper) 50%,transparent 50%) calc(100% - 12px) 50%/6px 6px no-repeat, #fffaf3; padding-right: 2rem; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.fields input { margin-top: .3rem; }
form .button { justify-self: start; margin-top: .55rem; }
.status { min-height: 1.5em; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; padding-block: 2rem; font-size: .875rem; }
.footer p + p { margin-top: .25rem; }
dialog { width: min(92vw, 1040px); max-height: 92vh; padding: 0; border: 1px solid #8b7564; color: #f8eee2; background: #25221f; }
dialog::backdrop { background: rgb(25 20 16 / 85%); }
.lightbox { display: grid; gap: .75rem; padding: 1rem; }
.lightbox button { justify-self: end; }
.lightbox img { width: 100%; max-height: 70vh; object-fit: contain; }
@media (max-width: 860px) {
  .split { gap: 1.6rem; }
}
@media (max-width: 680px) {
  .top { flex-direction: column; justify-content: center; align-items: start; gap: .85rem; padding-block: .95rem .65rem; }
  nav { width: 100%; justify-content: space-between; gap: .35rem; }
  nav .outline { padding-inline: .55rem; }
  .split { grid-template-columns: minmax(0,1fr); }
  h1 { max-width: 13ch; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo:first-child { grid-column: 1/-1; }
  .photo:first-child img { aspect-ratio: 1.6; }
  .print figure { order: 1; }
  nav { flex-wrap: wrap; }
}
@media (max-width: 360px) { .fields { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.print { background: #eae0d3; }
.print img { aspect-ratio: 1.5; object-fit: cover; }

.site-header { background: #1a1816; color: #f8eee2; }
.site-header .top { border-color: #625246; min-height: 76px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .75rem; font: 400 clamp(1.65rem, 2.5vw, 2.4rem)/1.1 var(--serif); text-decoration: none; }
.wordmark span { font-size: .55em; font-style: italic; color: #edb58e; }
.hero {
  --copper: #ffc39c;
  background: #1a1816;
  color: #fff3e4;
}
.hero-inner { padding-block: clamp(1.9rem, 4vw, 4rem); text-align: center; }
.hero h1 {
  margin: 0 auto .75rem;
  font: 400 clamp(2.15rem, 4.5vw, 5.15rem)/1.07 var(--serif);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-inner p { max-width: 68ch; margin-inline: auto; text-wrap: pretty; }
.hero-link { display: inline-block; margin-top: .75rem; color: var(--copper); }
.hero-plate { position: relative; background: #2a211a; }
.hero-plate img { width: 100%; height: auto; }
.hero-plate figcaption { position: absolute; bottom: .7rem; right: .75rem; padding: .2rem .45rem; background: #1a1816; color: #fff3e4; }
.albums { background: #e9dfd0; }
.albums .heading { grid-template-columns: 1.2fr .8fr; align-items: start; padding-bottom: 1.75rem; border-bottom: 1px solid #ad9782; }
.albums .heading h2 { max-width: 9ch; font-size: clamp(4rem,8vw,8.4rem); text-wrap: initial; }
.albums .gallery { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; align-items: stretch; }
.albums .photo { position: relative; }
.albums .photo:first-child { grid-row: span 2; }
.albums .photo img { height: 100%; max-height: 600px; }
.albums .photo:not(:first-child) img { aspect-ratio: 2; }
.albums .photo span { position: absolute; bottom: 0; left: 0; padding: .55rem .8rem; color: #fff3e4; border: 0; background: #25201b; }
.print { background: #a85f40; color: #fffaf0; --copper: #fffaf0; }
.print-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.print-layout figure { order: 1; padding: clamp(.5rem,2vw,1.5rem); background: #f6eee3; color: #36261f; transform: rotate(2deg); }
.print-layout img { aspect-ratio: 1.55; object-fit: cover; }
.print-layout h2 { max-width: 12ch; }
.print-layout h2 em { display: block; }
.story { background: #211e1a; color: #fff3e4; --copper: #e6aa82; border: 0; }
.story h2 { display: grid; grid-template-columns: auto 1fr; gap: .4em; align-items: end; }
.story h2 em { font: 400 clamp(6.5rem, 15vw, 14rem)/.7 var(--serif); letter-spacing: -.095em; }
.story h2 span { font-size: .65em; }
.story .closing { color: #e6aa82; }
.quote form { padding: clamp(1.1rem, 3vw, 2rem); background: #e9dfd0; border-top: 3px solid #9c553a; }
@media (max-width: 960px) {
  .story h2 { grid-template-columns: 1fr; gap: .45em; }
}
@media (max-width: 680px) {
  .albums .heading, .print-layout { grid-template-columns: minmax(0, 1fr); }
  .albums .heading h2 { font-size: clamp(3.25rem, 13vw, 5.5rem); }
  .albums .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; }
  .albums .photo:first-child { grid-row: auto; grid-column: 1 / -1; }
  .albums .photo:not(:first-child) img { aspect-ratio: 1.16; }
  .albums .photo span { font-size: .75rem; padding-inline: .4rem; }
  .print-layout figure { transform: none; }
}

@media (min-width: 681px) {
  #servizi .service { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); }
}

/* Home con fotografie originali */
.brand { flex: 0 0 220px; max-width: 220px; }
.site-header .top { gap: 2rem; padding-block: 1rem; }
nav { gap: clamp(.7rem,1.5vw,1.5rem); font-size: .78rem; flex-wrap: wrap; justify-content: end; }
.hero .eyebrow { color: #e6aa82; margin-bottom: 1.1rem; }
.hero-subtitle { font: 400 clamp(1.1rem,2vw,1.5rem)/1.5 var(--serif); }
.hero-plate img { height: clamp(300px,47vw,690px); object-fit: cover; object-position: center 48%; }
.albums .heading { grid-template-columns: 1fr 1fr; }
.albums .heading h2 { max-width: 13ch; font-size: clamp(3rem,5.7vw,6rem); }
.albums .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); grid-template-rows: auto; gap: 1.3rem; }
.albums .photo:first-child { grid-row: auto; }
.albums .photo img,.albums .photo:not(:first-child) img { height: auto; max-height: none; aspect-ratio: 4/3; object-fit: cover; }
.albums .photo span { position: static; padding: .65rem .8rem; }
.audiences { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.audiences article { border-top: 1px solid var(--line); padding-top: 2rem; }
.audiences h2,.album-recovery h2 { font-size: clamp(2.2rem,3.8vw,4rem); }
.print-layout h2 { max-width: 18ch; font-size: clamp(2.6rem,4.6vw,4.6rem); }
#servizi .service { align-items: start; }
#servizi h2 { font-size: clamp(2.4rem,4vw,4.3rem); }
.album-recovery { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--line); max-width: 850px; }
.atanor h2 { font-size: clamp(2.5rem,4.5vw,4.8rem); }
@media(max-width:680px){.brand { flex-basis:auto; width:220px; }.site-header .top{gap:1rem;}nav{justify-content:start;gap:.7rem 1rem;}.hero h1{max-width:none;}.albums .heading,.audiences{grid-template-columns:1fr;}.audiences{gap:3rem;}.albums .gallery{grid-template-columns:1fr 1fr;}.albums .photo:first-child{grid-column:auto;}.albums .photo span{font-size:.75rem;}.hero-plate img{height:350px;}.hero-plate figcaption{font-size:.65rem;}}

.hero-plate img { height: clamp(360px, 55vw, 850px); object-position: center 53%; }
.atanor .atanor-detail { grid-column: 1 / -1; }
.atanor-detail img { aspect-ratio: 2; object-fit: cover; object-position: 50% 62%; }
@media (max-width: 680px) {
  .hero-plate img { height: auto; aspect-ratio: 3 / 2; }
  .atanor-detail img { aspect-ratio: 4 / 3; }
}

.albums .gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.65rem, 1.6vw, 1.35rem);
}
.albums .photo { grid-column: span 2; display: flex; flex-direction: column; }
.albums .photo:nth-child(2), .albums .photo:nth-child(3) { grid-column: span 3; }
.albums .photo:first-child { grid-column: 1 / -1; }
.albums .photo:first-child img { aspect-ratio: auto; object-fit: contain; }
.albums .photo span { width: 100%; flex: 1; }
.albums .photo:first-child span {
  font: 400 clamp(1.2rem, 2.4vw, 2rem)/1.25 var(--serif);
  padding: .75rem clamp(.85rem, 2vw, 1.5rem);
}
@media (max-width: 520px) {
  .albums .photo:nth-child(n + 4) img { aspect-ratio: 1; }
}

.home-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: start;
}
.home-index > div { font: 400 clamp(1.35rem, 2.45vw, 2.25rem)/1.28 var(--serif); }
.home-index nav { display: grid; gap: 0; }
.home-index nav a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding: .55rem 0;
  font-size: .94rem;
  white-space: normal;
}
.home-index nav a:hover { color: var(--copper); text-decoration: underline; }
.detail-grid { display: grid; gap: 1.25rem; margin-block: 2rem; }
.detail-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.detail-grid article { border-top: 1px solid var(--line); padding-top: .75rem; }
.detail-grid h3, .bindings h3 { font: 400 1.55rem/1.2 var(--serif); margin: 0 0 .65rem; }
.cover-options { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.cover-options .photo { height: 100%; display: grid; grid-template-rows: auto 1fr; }
.cover-options .photo img { aspect-ratio: 4/3; }
.cover-text { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
.bindings { background: #e9dfd0; }
.bindings img { aspect-ratio: 4/3; object-fit: cover; object-position: 50% 57%; }
.bindings h3:not(:first-child) { margin-top: 1.4rem; }
.album-box { border-inline-start: 2px solid var(--line); padding-inline-start: 1rem; margin-top: 1.4rem; }
.story h2 { display: block; }
.story h2 em { font: inherit; letter-spacing: inherit; }
.album-recovery { max-width: none; }
.recovery-links { justify-content: start; margin: 0 0 2rem; }
.recovery-links a { text-decoration: underline; color: var(--copper); }
form textarea {
  width: 100%; min-height: 6rem; padding: .5rem .65rem;
  border: 1px solid #9c8876; border-radius: 0;
  background: #fffaf3; color: var(--ink); font: inherit; resize: vertical;
}
form summary { cursor: pointer; }
@media (max-width: 680px) {
  .home-index { grid-template-columns: 1fr; }
  .cover-options { grid-template-columns: 1fr; }
  .recovery-links { width: auto; }
}
@media (max-width: 420px) {
  .detail-grid.two { grid-template-columns: 1fr; }
}

/* Pagine editoriali e anteprime della Home */
.back-home { padding-block: 1.15rem 0; }
.back-home a, nav a[aria-current="page"] { text-decoration: underline; }
.home-page .hero-inner { padding-block: clamp(1.65rem, 3vw, 3rem); }
.home-page .hero-plate img { height: clamp(280px, 45vw, 690px); }
.home-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.5rem); }
.home-tile { display: block; min-width: 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.home-tile img { aspect-ratio: 1.85; object-fit: cover; }
.home-tile > div { padding-block: 1rem 1.25rem; }
.home-tile h2 { font: 400 clamp(1.5rem, 3vw, 2.6rem)/1.12 var(--serif); margin: 0 0 .35rem; }
.home-tile:hover h2 { color: var(--copper); text-decoration: underline; }
.home-tile p { font-size: 1rem; }
.tile-album { grid-column: 1 / -1; }
.tile-album img { aspect-ratio: auto; }
.tile-servizi img { object-position: center; }
.tile-storia, .tile-preventivo { border-top: 1px solid var(--line); }
.detail-page { font-size: clamp(1rem, 1.15vw, 1.1rem); }
.detail-page .section { padding-block: clamp(2rem, 5vw, 4.75rem); }
.detail-page h1, .detail-page .albums .heading h1 {
  font-size: clamp(2.25rem, 4.65vw, 4.4rem);
  line-height: 1.05;
}
.detail-page h2 { font-size: clamp(1.85rem, 3.25vw, 3rem); line-height: 1.1; }
.detail-page .heading { align-items: start; }
.detail-page .heading > div > p:not(.eyebrow), .material-card p { max-width: 64ch; }
.material-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2.25rem); }
.material-card { padding-block: 1rem; border-top: 1px solid var(--line); min-width: 0; }
.material-card h3 { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1.2 var(--serif); margin: 0 0 .65rem; }
.material-card .photo { margin-bottom: 1rem; }
.material-card .photo img { aspect-ratio: 1.7; }
.binding-thread { background: #f6f1e8; padding-inline: clamp(1rem, 3vw, 2.25rem); align-self: start; }
.compare input { min-height: 44px; }
@media (max-width: 680px) {
  .home-page .hero-plate img { height: auto; }
  .home-tiles, .material-grid { grid-template-columns: minmax(0, 1fr); }
}

.album-intro { max-width: 70ch; margin: 0 0 1.75rem; }

.home-page .hero-plate img {
  height: auto;
  max-height: 78vh;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
}
.album-process { margin-block: 2rem; }
.process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.original-photo img { aspect-ratio: auto; object-fit: contain; }
.cover-custom { margin-top: 2rem; }
.binding-contact { margin-inline-start: 1.25rem; }
.album-comparison { margin-top: 1.5rem; }
.album-comparison img { width: 100%; height: auto; }
.quote-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 680px) {
  .process-grid { grid-template-columns: 1fr; }
  .binding-contact { display: block; margin-inline-start: 0; }
}

/* Sequenza Album: tre fasi della rilegatura a vite e variante giapponese distinta. */
.albums .album-process .process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.75rem, 1.5vw, 1.25rem);
  align-items: stretch;
}
.albums .album-process .process-grid .photo,
.albums .album-process .process-variant .photo {
  grid-column: auto;
  grid-row: auto;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.albums .album-process .process-grid .photo img,
.albums .album-process .process-grid .photo:first-child img,
.albums .album-process .process-grid .photo:not(:first-child) img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #d8ccbc;
}
.albums .album-process .process-grid .photo span,
.albums .album-process .process-variant .photo span {
  width: 100%;
  flex: 0 0 auto;
  font: 400 clamp(.85rem, 1.3vw, 1.03rem)/1.25 var(--serif);
  padding: .8rem .9rem;
}
.album-process .process-intro { max-width: 65ch; margin: .75rem 0 1.25rem; }
.albums .album-process .process-variant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
  margin-block: 2rem 1.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.albums .album-process .process-variant .process-variant-text h3 {
  font: 400 clamp(1.5rem, 2.5vw, 2.2rem)/1.15 var(--serif);
  margin-bottom: .85rem;
}
.albums .album-process .process-variant .photo img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
}
@media (max-width: 900px) {
  .albums .album-process .process-grid { grid-template-columns: 1fr; }
  .albums .album-process .process-variant { grid-template-columns: 1fr; }
}
