/* HENNIO-RAPPORTO-1 — riga e scheda del «Rapporto hennio».
   Sobrio, «Tratto sartoriale»: fondo crema, linea sottile, dettaglio
   terracotta. Niente cerchietti rosa. Si carica solo sulla scheda del capo. */

body.hennio-body .hnr-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin: 12px 0 2px;
  padding: 9px 0 9px 11px;
  border: 0;
  border-top: 1px solid rgba(59, 42, 38, 0.16);
  border-bottom: 1px solid rgba(59, 42, 38, 0.16);
  box-shadow: inset 3px 0 0 #B4552F;
  background: transparent;
  color: var(--hennio-ink, #3B2A26);
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.38;
  text-align: left;
  cursor: pointer;
}
body.hennio-body .hnr-row:hover,
body.hennio-body .hnr-row:focus-visible {
  background: rgba(180, 85, 47, 0.06);
  outline: none;
}
body.hennio-body .hnr-row-check {
  flex: 0 0 auto;
  color: #B4552F;
  font-weight: 700;
}
body.hennio-body .hnr-row-text { min-width: 0; }
body.hennio-body .hnr-row-text b {
  font-weight: 650;
  color: var(--hennio-ink, #3B2A26);
}
body.hennio-body .hnr-row-text span { color: rgba(59, 42, 38, 0.76); }

/* ── Scheda del rapporto ───────────────────────────────────────────────── */
.hnr-sheet[hidden] { display: none !important; }
.hnr-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: block;
}
.hnr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(59, 42, 38, 0.46);
  opacity: 0;
  transition: opacity 180ms ease;
}
.hnr-sheet.is-open .hnr-backdrop { opacity: 1; }
.hnr-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  background: var(--hennio-paper, #FBF6F1);
  color: var(--hennio-ink, #3B2A26);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -12px 40px rgba(59, 42, 38, 0.22);
  transform: translateY(14px);
  transition: transform 200ms ease;
}
.hnr-sheet.is-open .hnr-panel { transform: translateY(0); }
.hnr-grab {
  width: 42px;
  height: 4px;
  margin: -4px auto 12px;
  border-radius: 4px;
  background: rgba(59, 42, 38, 0.2);
}
.hnr-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(59, 42, 38, 0.18);
  border-radius: 50%;
  background: transparent;
  color: var(--hennio-ink, #3B2A26);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.hnr-head { display: flex; gap: 12px; align-items: center; padding-right: 42px; }
.hnr-h { width: 34px; height: 40px; flex: 0 0 auto; }
.hnr-head-title {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.hnr-head-sub { margin: 3px 0 0; font-size: 0.8rem; color: rgba(59, 42, 38, 0.66); }

.hnr-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(59, 42, 38, 0.12);
  border-bottom: 1px solid rgba(59, 42, 38, 0.12);
}
.hnr-item-thumb {
  width: 70px;
  height: 92px;
  flex: 0 0 auto;
  object-fit: cover;
  background: var(--hennio-blush, #E9C9C1);
  border-radius: 3px;
}
.hnr-item-copy { min-width: 0; }
.hnr-item-brand {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(59, 42, 38, 0.66);
}
.hnr-item-title {
  margin: 4px 0 0;
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}
.hnr-item-meta { margin: 5px 0 0; font-size: 0.8rem; color: rgba(59, 42, 38, 0.7); }
.hnr-item-price { margin: 7px 0 0; font-size: 1.15rem; font-weight: 700; }

.hnr-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hnr-badge {
  padding: 12px 10px;
  border: 1px solid rgba(59, 42, 38, 0.16);
  border-top: 3px solid #B4552F;
  background: rgba(255, 255, 255, 0.36);
}
.hnr-badge-title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.3;
}
.hnr-badge-title span { color: #B4552F; }
.hnr-badge-text { margin: 6px 0 0; font-size: 0.74rem; line-height: 1.4; color: rgba(59, 42, 38, 0.72); }

.hnr-highlights-title {
  margin: 22px 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.hnr-highlights {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hnr-highlight {
  flex: 0 0 128px;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.hnr-highlight img {
  display: block;
  width: 128px;
  height: 162px;
  object-fit: cover;
  background: var(--hennio-blush, #E9C9C1);
  border-radius: 3px;
}
.hnr-highlight span {
  display: block;
  margin-top: 6px;
  font-size: 0.74rem;
  line-height: 1.3;
  color: rgba(59, 42, 38, 0.78);
}

.hnr-foot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(59, 42, 38, 0.12);
  font-size: 0.7rem;
  line-height: 1.45;
  color: rgba(59, 42, 38, 0.66);
}
.hnr-foot a { color: #8E3F22; text-decoration: underline; text-underline-offset: 2px; }

/* La foto del momento saliente, grande, dentro la stessa scheda. */
.hnr-zoom[hidden] { display: none !important; }
.hnr-zoom {
  position: fixed;
  inset: 0;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(30, 20, 18, 0.9);
}
.hnr-zoom img { max-width: 100%; max-height: 86dvh; object-fit: contain; border-radius: 3px; }
.hnr-zoom-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

body.hnr-lock { overflow: hidden; }

@media (min-width: 900px) {
  .hnr-sheet { display: flex; align-items: center; justify-content: center; padding: 24px; }
  .hnr-backdrop { border-radius: 0; }
  .hnr-panel {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: min(620px, 100%);
    max-height: 88vh;
    border-radius: 14px;
    padding: 22px 24px 24px;
    transform: translateY(10px) scale(0.985);
  }
  .hnr-grab { display: none; }
}
@media (max-width: 360px) {
  .hnr-badges { grid-template-columns: 1fr; }
}
