:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --ink: #171717;
  --rust: #a85f3d;
  --muted: #777168;
  --line: rgba(23, 23, 23, 0.16);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .19;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px);
}
.header-inner {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: .74rem;
  letter-spacing: .18em;
  font-weight: 600;
}
.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: rotate(-2deg);
}
.site-nav { display: flex; gap: 24px; align-items: center; }
.site-nav a {
  text-decoration: none;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .11em;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--rust); border-color: var(--rust); }
.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}

main { min-height: 70vh; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.eyebrow {
  color: var(--rust);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
}
.display {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8.3vw, 8.6rem);
  line-height: .91;
  font-weight: 400;
  letter-spacing: -.055em;
}
.display em { color: var(--rust); font-weight: 400; }
.section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.035em;
}
.lead { font-size: clamp(1.04rem, 1.5vw, 1.28rem); color: var(--muted); max-width: 620px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  transition: .25s ease;
}
.button:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.button.rust { border-color: var(--rust); color: var(--rust); }
.button.rust:hover { background: var(--rust); color: white; }

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
  padding-block: 56px;
}
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero-copy .lead { margin: 30px 0 34px; }
.hero-art {
  position: relative;
  min-height: 630px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-art::before {
  content: "";
  position: absolute;
  width: min(40vw, 510px);
  aspect-ratio: 1;
  border: 1px solid var(--rust);
  border-radius: 50%;
  opacity: .46;
}
.hero-art img { position: relative; width: min(92%, 520px); mix-blend-mode: multiply; }
.hero-coordinate {
  position: absolute;
  right: 0;
  bottom: 12%;
  writing-mode: vertical-rl;
  font-size: .62rem;
  letter-spacing: .2em;
  color: var(--muted);
}

.home-strip { border-block: 1px solid var(--line); padding: 24px 0; overflow: hidden; }
.home-strip p { margin: 0; white-space: nowrap; font-family: Georgia, serif; font-size: 1.1rem; letter-spacing: .05em; }
.home-strip span { color: var(--rust); margin: 0 24px; }

.home-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; padding: 130px 0; }
.home-intro blockquote { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.08; }
.home-intro .copy { max-width: 560px; padding-top: 10px; }

.featured {
  padding: 105px 0 120px;
  background: var(--rust);
  color: var(--paper);
  box-shadow: 0 0 0 100vmax var(--rust);
  clip-path: inset(0 -100vmax);
}
.featured .eyebrow { color: var(--ink); }
.featured .button { border-color: var(--paper); color: var(--paper); }
.featured .button:hover { background: var(--paper); color: var(--rust); }
.featured .art-card img { background: var(--paper); padding: 10px; }
.featured .art-card figcaption span:last-child { color: var(--paper); opacity: .75; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.art-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.art-card { margin: 0; cursor: zoom-in; }
.art-card:nth-child(1) { grid-column: 1 / span 5; }
.art-card:nth-child(2) { grid-column: 7 / span 6; padding-top: 110px; }
.art-card:nth-child(3) { grid-column: 2 / span 4; padding-top: 30px; }
.art-card img { width: 100%; background: #f6f3ed; filter: saturate(.8); transition: .35s ease; }
.art-card:hover img { transform: translateY(-5px); }
.art-card figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 13px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.art-card figcaption span:last-child { color: var(--rust); }

.page-hero { padding: 105px 0 80px; border-bottom: 1px solid var(--line); }
.page-hero .display { max-width: 980px; font-size: clamp(3.7rem, 8vw, 8rem); }
.page-hero .lead { margin: 30px 0 0 auto; }
.manifesto { max-width: 900px; padding: 110px 0 150px; }
.manifesto p { font-family: Georgia, serif; font-size: clamp(1.65rem, 3vw, 3rem); line-height: 1.25; margin: 0 0 1.2em; }
.manifesto p:nth-child(even) { color: var(--muted); margin-left: 12%; }
.manifesto .last { color: var(--rust); font-style: italic; }

.gallery-page {
  padding: 100px 0 150px;
  background: var(--paper-deep);
  box-shadow: 0 0 0 100vmax var(--paper-deep);
  clip-path: inset(0 -100vmax);
}
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item {
  margin: 0;
  padding: 12px;
  background: var(--paper);
  border: 1px solid rgba(168, 95, 61, .38);
  box-shadow: 0 14px 35px rgba(56, 40, 30, .08);
}
.gallery-item:nth-child(3n+2) { transform: translateY(46px); }
.gallery-item button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-item figcaption { padding: 14px 4px 8px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 90px 0 140px; }
.process-step { background: var(--paper); padding: 48px 36px 54px; min-height: 330px; }
.process-step .num { font-family: Georgia, serif; color: var(--rust); font-size: 1.4rem; }
.process-step h2 { font-family: Georgia, serif; font-weight: 400; font-size: 2rem; margin: 80px 0 18px; }
.process-step p { color: var(--muted); }
.process-opening { padding-top: 1px; }
.process-metaphor { margin-bottom: 100px; }
.paths-section {
  padding: 115px 0 125px;
  background: #211d1a;
  color: var(--paper);
}
.paths-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 60px; align-items: end; margin-bottom: 60px; }
.paths-heading p { color: #c8c0b6; max-width: 460px; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.path-card {
  min-height: 570px;
  padding: 25px 28px 30px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rust);
  box-shadow: 0 18px 45px rgba(0,0,0,.2);
}
.path-top { display: flex; justify-content: space-between; gap: 18px; color: var(--rust); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.path-symbol { height: 145px; display: grid; place-items: center; }
.path-symbol span { display: block; width: 86px; height: 86px; border: 1px solid var(--rust); border-radius: 50%; position: relative; }
.path-symbol span::before, .path-symbol span::after { content: ""; position: absolute; background: var(--rust); opacity: .7; }
.path-symbol span::before { width: 1px; height: 112px; left: 42px; top: -13px; }
.path-symbol span::after { height: 1px; width: 112px; top: 42px; left: -13px; }
.path-card:nth-child(2) .path-symbol span { border-radius: 50% 50% 48% 52% / 40% 44% 56% 60%; transform: rotate(18deg); }
.path-card:nth-child(3) .path-symbol span { border-radius: 0; transform: rotate(45deg) scale(.72); }
.path-card h3 { margin: 4px 0 14px; font-family: Georgia, serif; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; font-weight: 400; }
.path-card strong { color: var(--rust); font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.path-card p { color: var(--muted); margin-bottom: 28px; }
.path-card a { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); text-decoration: none; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.path-card a span { color: var(--rust); float: right; }
.complete-path { padding: 100px 0; background: var(--rust); color: var(--paper); }
.complete-path-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.complete-path .eyebrow { color: var(--ink); }
.complete-path h2 { margin: 12px 0 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 6rem); line-height: .98; font-weight: 400; letter-spacing: -.04em; }
.complete-number { font-family: Georgia, serif; font-size: clamp(4.4rem, 8vw, 8rem); line-height: .8; }
.complete-number span { font-family: sans-serif; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.complete-path p { margin: 32px 0; font-family: Georgia, serif; font-size: 1.35rem; line-height: 1.55; }
.complete-path .button { border-color: var(--paper); color: var(--paper); }
.complete-path .button:hover { background: var(--paper); color: var(--rust); }

.product-layout, .commission-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 8vw, 120px); align-items: center; padding: 100px 0 150px; }
.product-art { position: relative; padding: 30px; border: 1px solid var(--line); }
.product-art::after { content: "15 / 15"; position: absolute; right: 14px; bottom: 10px; color: var(--rust); font-size: .65rem; letter-spacing: .16em; }
.facts { border-top: 1px solid var(--line); margin: 38px 0; }
.fact { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.fact span:last-child { color: var(--muted); text-align: right; }
.commission-list { list-style: none; padding: 0; margin: 35px 0; counter-reset: c; }
.commission-list li { counter-increment: c; border-top: 1px solid var(--line); padding: 18px 0 18px 44px; position: relative; }
.commission-list li::before { content: "0" counter(c); position: absolute; left: 0; color: var(--rust); font-size: .72rem; }
.contact-links { display: grid; gap: 12px; margin-top: 34px; }
.contact-links a { font-family: Georgia, serif; font-size: clamp(1.7rem, 4vw, 3.7rem); text-decoration: none; border-bottom: 1px solid var(--line); padding: 10px 0; }
.contact-links a:hover { color: var(--rust); }

.shop-intro { background: var(--rust); color: var(--paper); padding: 62px 0; }
.shop-intro .eyebrow { color: var(--ink); }
.shop-intro p { max-width: 800px; margin: 12px 0 0; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1.15; }
.shop-making-note { display: grid; grid-template-columns: minmax(150px, .42fr) minmax(0, 1.58fr); gap: 42px; padding-top: 58px; padding-bottom: 58px; border-bottom: 1px solid var(--line); }
.shop-making-note .eyebrow { padding-top: 8px; color: var(--rust); }
.shop-making-note h2 { max-width: 760px; margin: 0 0 14px; font-family: Georgia, serif; font-size: clamp(1.8rem, 3.4vw, 3.3rem); font-weight: 400; line-height: 1.08; }
.shop-making-note p { max-width: 780px; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.shop-page { padding: 0 0 0; }
.shop-category { width: 100vw; margin-left: calc(50% - 50vw); padding: 82px max(20px, calc((100vw - var(--max)) / 2)) 96px; scroll-margin-top: 82px; }
.shop-category + .shop-category { border-top: 12px solid var(--paper); }
.shop-category#indossare { background: var(--rust); color: var(--paper); }
.shop-category#abitare { background: var(--paper); color: var(--ink); }
.shop-category#praticare { background: var(--ink); color: var(--paper); }
.shop-category-head { display: grid; grid-template-columns: 78px minmax(0, 1040px); gap: 26px; align-items: start; margin-bottom: 48px; }
.shop-category-head > span { width: 62px; height: 62px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; letter-spacing: .18em; }
.shop-category-head h2 { width: fit-content; max-width: 100%; margin: 0 0 8px; padding: .16em .25em .19em; font-family: Arial, Helvetica, sans-serif; font-weight: 800; font-size: clamp(1.82rem, 2.25vw, 2.35rem); letter-spacing: -.035em; line-height: .96; text-transform: uppercase; }
.shop-category-head p { margin: 0; max-width: 690px; color: inherit; opacity: .78; font-size: 1.12rem; line-height: 1.65; }
.shop-category#indossare .shop-category-head > span { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.shop-category#abitare .shop-category-head > span { color: var(--rust); }
.shop-category#praticare .shop-category-head > span { color: var(--paper); }
.shop-category#indossare .shop-category-head h2 { color: var(--rust); background: var(--paper); }
.shop-category#abitare .shop-category-head h2 { color: var(--paper); background: var(--rust); }
.shop-category#praticare .shop-category-head h2 { color: var(--ink); background: var(--paper); }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 38px; }
.shop-card { border-top: 1px solid var(--ink); padding-top: 14px; }
.shop-category#indossare .shop-card { border-color: rgba(244,239,228,.72); }
.shop-category#praticare .shop-card { border-color: rgba(244,239,228,.5); }
.shop-category#indossare .shop-meta,
.shop-category#indossare .shop-card p,
.shop-category#indossare .coming-label { color: var(--paper); }
.shop-category#indossare .shop-card p { opacity: .88; }
.shop-category#indossare .coming-label { opacity: .78; }
.shop-media { aspect-ratio: 1 / 1.05; background: #faf8f3; display: grid; place-items: center; overflow: hidden; }
.shop-media img { width: 100%; height: 100%; object-fit: contain; }
.shop-media img[src*="adesivo-verso-il-centro"] { width: 91%; height: 91%; }
.shop-media img[src*="foglio-adesivi-a5"] { width: 84%; height: 84%; object-position: center; }
.shop-symbol { width: 62%; aspect-ratio: 1; border: 1px solid var(--rust); border-radius: 50%; display: grid; place-items: center; color: var(--rust); font-family: Georgia, serif; font-size: 3.2rem; position: relative; }
.shop-symbol span { position: absolute; bottom: 21%; font-family: sans-serif; font-size: .56rem; letter-spacing: .22em; }
.shop-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--rust); font-size: .68rem; letter-spacing: .11em; text-transform: uppercase; }
.shop-card h3 { font-family: Georgia, serif; font-weight: 400; font-size: 2.2rem; margin: 18px 0 8px; }
.shop-card p { min-height: 52px; color: var(--muted); }
.shop-card .button { margin-top: 12px; }
.shop-empty { min-height: 300px; border: 1px solid currentColor; padding: 48px; display: grid; align-content: center; justify-items: start; background: transparent; }
.shop-empty span { color: var(--rust); font-family: Georgia, serif; font-size: 3.2rem; }
.shop-category#praticare .shop-empty span { color: var(--paper); }
.shop-empty p { max-width: 520px; margin: 18px 0; font-family: Georgia, serif; font-size: 1.5rem; line-height: 1.4; }
.shop-empty strong { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; }
.coming-label { display: inline-block; margin-top: 22px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--line); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.footer-phrase { font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 3.2rem); max-width: 560px; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { text-decoration: none; color: var(--muted); }
.footer-nav a:hover { color: var(--rust); }
.copyright { margin-top: 70px; display: flex; justify-content: space-between; color: var(--muted); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 28px; background: rgba(23,23,23,.91); }
.modal.open { display: grid; }
.modal img { max-width: min(92vw, 900px); max-height: 88vh; }
.modal button { position: absolute; top: 24px; right: 26px; border: 0; background: transparent; color: white; font-size: 2rem; cursor: pointer; }

@media (max-width: 900px) {
  .menu-button { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 82px; padding: 22px 20px 30px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-art { min-height: 480px; order: -1; }
  .hero-art::before { width: min(82vw, 470px); }
  .home-intro, .product-layout, .commission-layout, .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .process-grid { grid-template-columns: 1fr; }
  .paths-heading, .complete-path-inner { grid-template-columns: 1fr; }
  .paths-grid { grid-template-columns: 1fr; }
  .path-card { min-height: 510px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(3n+2) { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-phrase { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .wrap, .header-inner { width: min(calc(100% - 28px), var(--max)); }
  .brand span { display: none; }
  .hero { padding-block: 28px 54px; }
  .hero-art { min-height: 360px; }
  .display { font-size: clamp(3.1rem, 16vw, 5rem); }
  .home-intro { padding: 85px 0; }
  .section-head { align-items: start; flex-direction: column; }
  .art-grid { display: block; }
  .art-card { margin-bottom: 34px; padding-top: 0 !important; }
  .page-hero { padding: 72px 0 58px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-making-note { grid-template-columns: 1fr; gap: 14px; padding-top: 42px; padding-bottom: 44px; }
  .shop-making-note .eyebrow { padding-top: 0; }
  .shop-category { padding-top: 60px; padding-bottom: 70px; }
  .shop-category + .shop-category { border-top-width: 8px; }
  .shop-category-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .shop-category-head h2 { margin-bottom: 7px; font-size: clamp(1.7rem, 6.8vw, 2.05rem); line-height: .98; }
  .shop-empty { padding: 28px; min-height: 230px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Magliette: viste del capo e colori della prima collezione. */
.shop-category#indossare .shop-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.shop-card.with-gallery { grid-column: span 1; width: 100%; }
.product-views { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.product-view { width:72px; height:72px; padding:3px; background:var(--paper); border:2px solid transparent; cursor:pointer; }
.product-view img { width:100%;height:100%;object-fit:contain; }
.product-view[aria-pressed="true"] { border-color:var(--ink); }
.product-view:focus-visible { outline:2px solid var(--paper);outline-offset:3px; }
.product-view-caption { font-size:.75rem;margin-top:8px; }
.product-colors { margin-top:20px;font-size:.78rem; }
.product-colors > span { text-transform:uppercase;letter-spacing:.08em;font-size:.65rem; }
.product-colors ul { display:flex;flex-wrap:wrap;gap:18px;padding:0;margin:10px 0 0;list-style:none; }
.product-colors li { display:flex;align-items:center;gap:7px; }
.color-swatch { width:17px;height:17px;border-radius:50%;border:1px solid rgba(255,255,255,.55);display:inline-block; }
.color-swatch.nero { background:#171717; }.color-swatch.bianco { background:#fff; }.color-swatch.ecru { background:#ded0b5; }
@media(max-width:600px) { .shop-card.with-gallery { grid-column:span 1; }.product-view { width:60px;height:60px; } }

.color-swatch.khaki { background: #73715a; }
