#catalogo-gioia, .gc-dialog {
  --gc-ink: #332c30;
  --gc-accent: #412734;
  --gc-paper: #fbf7f2;
  --gc-sand: #ecdfd8;
  --gc-line: #d4c7c0;
  --gc-muted: #645858;
  --gc-serif: var(--serif, Georgia, serif);
  --gc-sans: var(--sans, Arial, sans-serif);
  color: var(--gc-ink);
  font-family: var(--gc-sans);
}

#catalogo-gioia { width: 100%; }

.gc-toolbar, .gc-summary, .gc-filters, .gc-order {
  display: flex;
  align-items: center;
}
.gc-toolbar, .gc-summary { justify-content: space-between; gap: 1rem; }
.gc-toolbar { flex-wrap: wrap; padding-bottom: 1rem; border-bottom: 1px solid var(--gc-line); }
.gc-summary { margin: .7rem 0 1.25rem; }
.gc-filters { gap: .35rem; flex-wrap: wrap; }
.gc-filter {
  min-height: 40px;
  padding: .45rem 1rem;
  border: 1px solid var(--gc-line);
  border-radius: 100px;
  font: 550 .8rem/1.45 var(--gc-sans);
  color: var(--gc-ink);
  background: transparent;
}
.gc-filter[aria-pressed="true"] { background: var(--gc-accent); border-color: var(--gc-accent); color: white; }
.gc-filter:not([aria-pressed="true"]):hover { border-color: var(--gc-accent); }
.gc-search-box {
  width: min(100%, 19rem);
  display: flex;
  gap: .8rem;
  align-items: center;
  padding-inline: .95rem;
  min-height: 42px;
  border: 1px solid var(--gc-line);
  background: #fffdf9;
}
.gc-search-icon { position: relative; border: 1.5px solid var(--gc-muted); border-radius: 50%; width: 12px; height: 12px; flex: none; }
.gc-search-icon::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: var(--gc-muted); bottom: -2px; right: -4px; transform: rotate(45deg); }
.gc-search { width: 100%; min-width: 0; padding: .6rem 0; background: transparent; border: 0; color: var(--gc-ink); font: 450 .86rem/1.35 var(--gc-sans); }
.gc-search::placeholder { color: var(--gc-muted); opacity: 1; }
.gc-count, .gc-page, .gc-photo-caption, .gc-dialog-label, .gc-photo-number { font-family: var(--gc-sans); font-variant-numeric: tabular-nums; font-size: .75rem; }
.gc-count { margin: 0; font-weight: 560; color: var(--gc-muted); }
.gc-order { gap: .5rem; font-size: .74rem; color: var(--gc-muted); }
.gc-sort { border: 0; border-radius: 0; padding: .45rem .12rem; background: transparent; color: var(--gc-ink); font: 580 .78rem/1.35 var(--gc-sans); cursor: pointer; }

.gc-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2.25rem); }
.gc-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  margin: 0;
  padding: 0 0 1.05rem;
  border: 0;
  border-bottom: 1px solid var(--gc-line);
  text-align: left;
  background: transparent;
  color: var(--gc-ink);
}
.gc-cover, .gc-card-photo, .gc-gallery-photo {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  overflow: hidden;
}
.gc-cover, .gc-gallery-photo { background: #e8dcd6; }
.gc-cover { aspect-ratio: 1.55; position: relative; }
.gc-card-photo { height: 100%; }
.gc-cover img, .gc-gallery-photo img { display: block; width: 100%; height: 100%; min-width: 0; }
.gc-cover img { object-fit: cover; transition: transform .35s ease; }
.gc-card:hover .gc-cover img { transform: scale(1.026); }
.gc-cover .gc-photo-caption { position: absolute; left: .5rem; bottom: .45rem; padding: .15rem .4rem; border-radius: 2px; background: #241a20db; color: white; font-size: .62rem; letter-spacing: .015em; }
#catalogo-gioia :focus-visible, .gc-dialog :focus-visible { outline: 2px solid #7c3b5b; outline-offset: 3px; }
.gc-search-box:focus-within { border-color: #7c3b5b; }
.gc-missing { font: 500 .82rem/1.4 var(--gc-sans); color: var(--gc-ink); }

.gc-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: 1rem;
}
.gc-card-copy { display: block; min-width: 0; }
.gc-name, .gc-price { display: block; }
.gc-name {
  font: 400 clamp(1.48rem, 2vw, 2.25rem)/1.02 var(--gc-serif);
  letter-spacing: -.055em;
  overflow-wrap: anywhere;
}
.gc-price {
  margin-top: .65rem;
  font: 570 .98rem/1.4 var(--gc-sans);
  font-variant-numeric: tabular-nums;
}
.gc-photo-caption { color: var(--gc-muted); font-size: .7rem; line-height: 1.4; }
.gc-open-arrow { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--gc-line); border-radius: 50%; color: var(--gc-accent); font: 400 1.1rem/1 var(--gc-sans); }
.gc-card:hover .gc-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .13em; }

.gc-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(1rem,2.2vw,2.5rem);
  margin-top: clamp(1.5rem,3vw,3.5rem);
  padding-top: .5rem;
}
.gc-step, .gc-photo-step, .gc-close {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 44px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--gc-accent);
  font: 400 1.55rem/1 Arial, sans-serif;
}
.gc-step:disabled { color: #a1938b; }
.gc-step:not(:disabled):hover, .gc-photo-step:hover, .gc-close:hover { background: #f0dfd2; }
.gc-page { text-align: center; color: var(--gc-muted); }
.gc-empty { grid-column: 1/-1; padding-block: 3rem; color: var(--gc-muted); font-size: .95rem; }
.gc-empty p { margin: 0 0 .8rem; }
.gc-clear {
  margin: 0;
  padding: .35rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--gc-accent);
  font: inherit;
}

.gc-modal-open { overflow: hidden; }
.gc-dialog {
  width: min(67rem, calc(100% - 3rem));
  max-width: none;
  max-height: min(90svh,62rem);
  margin: auto;
  padding: clamp(.9rem,2.5vw,2rem);
  border: 1px solid var(--gc-line);
  border-radius: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--gc-paper);
  box-shadow: 0 24px 85px #261b2566;
}
.gc-dialog::backdrop { background: rgb(39 29 29 / 72%); }
.gc-dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 clamp(1rem,2vw,1.7rem);
  padding: 0 0 .35rem;
  border-bottom: 1px solid var(--gc-line);
}
.gc-dialog-label { color: var(--gc-accent); font-weight: 610; }
.gc-close { font-size: 1.75rem; }
.gc-dialog-panel {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(0,1fr);
  gap: clamp(1.5rem,3vw,3rem);
  align-items: center;
}
.gc-gallery { align-self: start; min-width: 0; }
.gc-gallery-photo { aspect-ratio: 1.49; }
.gc-gallery-photo img { object-fit: contain; }
.gc-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  border-bottom: 1px solid var(--gc-line);
}
.gc-photo-tools { display: flex; align-items: center; gap: .2rem; margin-left: auto; }
.gc-photo-step { width: 40px; font-size: 1.7rem; }
.gc-photo-number { color: var(--gc-muted); }
.gc-detail-body { min-width: 0; }
.gc-detail-title {
  margin: 0;
  color: var(--gc-ink);
  font: 400 clamp(1.9rem,3.4vw,3.65rem)/1.03 var(--gc-serif);
  letter-spacing: -.052em;
  overflow-wrap: anywhere;
}
.gc-detail-price {
  margin: .85rem 0;
  font: 500 clamp(1.4rem,2vw,2rem)/1.2 var(--gc-serif);
  font-variant-numeric: tabular-nums;
}
.gc-spec, .gc-request-note { color: var(--gc-muted); font-size: .8rem; line-height: 1.5; }
.gc-spec { margin: .5rem 0 1rem; }
.gc-terms { display: flex; flex-wrap: wrap; gap: .35rem; color: var(--gc-accent); font-size: .85rem; font-weight: 540; }
.gc-terms span + span::before { content: "·"; margin-right: .35rem; }
.gc-request-note { margin: .45rem 0; }
.gc-contact {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.15rem;
  max-width: 100%;
  min-height: 46px;
  padding: .7rem 1.15rem;
  background: var(--gc-accent);
  border: 1px solid var(--gc-accent);
  color: #fff9f0;
  text-align: center;
  font: 550 .82rem/1.4 var(--gc-sans);
}
.gc-contact:hover { background: #61374e; }

@media (max-width: 760px) {
  .gc-dialog { width: calc(100% - 1.3rem); }
  .gc-dialog-panel { display: block; }
  .gc-gallery-photo { aspect-ratio: 1.55; }
  .gc-detail-body { padding: 1.25rem .2rem .35rem; }
}

@media (max-width: 979px) { .gc-list { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 619px) {
  .gc-toolbar { gap: .8rem; }
  .gc-filters { width: 100%; gap: .3rem; }
  .gc-filter { padding-inline: .84rem; font-size: .76rem; }
  .gc-search-box { width: 100%; }
  .gc-search { font-size: 1rem; }
  .gc-summary { margin: .45rem 0 .85rem; }
  .gc-list { grid-template-columns: minmax(0,1fr); }
  .gc-cover { aspect-ratio: 1.5; }
  .gc-meta { margin-top: .82rem; }
  .gc-name { font-size: clamp(1.55rem,6.5vw,2.2rem); }
  .gc-navigation { justify-content: space-between; margin-top: .7rem; }
  .gc-page { font-size: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gc-card .gc-cover img { transition: none; }
}
