/* HENNIO-INDOSSATO-1 — «Guardalo indossato» */
.hi-cta-wrap {
  --hi-ink: var(--hennio-ink, #3B2A26);
  --hi-thread: var(--hennio-thread, #B9867E);
  margin: 14px 0 4px;
}
.hi-cta {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 16px;
  border: 1px solid var(--hi-ink);
  border-radius: 16px;
  background: var(--hi-ink);
  color: #FBF6F1;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(59, 42, 38, .16);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hi-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(59, 42, 38, .22); }
.hi-cta:focus-visible { outline: 3px solid var(--hi-thread); outline-offset: 2px; }
.hi-cta-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 999px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }
.hi-cta-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hi-cta-text strong { font-size: 18px; line-height: 1.15; letter-spacing: -.01em; }
.hi-cta-text small { font-size: 13px; opacity: .82; line-height: 1.25; }
.hi-cta-arrow { margin-left: auto; font-size: 30px; line-height: 1; opacity: .7; }
.hi-cta-ready { background: #FBF6F1; color: var(--hi-ink); border-color: var(--hi-thread); box-shadow: 0 4px 14px rgba(59,42,38,.10); }
.hi-cta-ready .hi-cta-ico { background: rgba(59,42,38,.08); }
.hi-cta-outfit { background: #FBF6F1; color: var(--hi-ink); border: 1px dashed var(--hi-thread); box-shadow: none; }
.hi-cta-outfit .hi-cta-ico { background: rgba(59,42,38,.06); }
.hi-cta-note { margin: 8px 2px 0; font-size: 13px; color: var(--hi-ink); }
.hi-cta-note.is-error { color: #A1261B; }

/* Attesa */
.hi-cta-ico.is-spin { border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; animation: hi-spin 1s linear infinite; }
@keyframes hi-spin { to { transform: rotate(360deg); } }

/* Foglio d'attesa */
.hi-sheet { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: flex-end; justify-content: center; background: rgba(30,22,20,.45); backdrop-filter: blur(3px); }
.hi-sheet-card { width: min(100%, 560px); background: #FBF6F1; color: #3B2A26; border-radius: 22px 22px 0 0; padding: 22px 22px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); animation: hi-up .25s ease; }
@keyframes hi-up { from { transform: translateY(30px); opacity: .5; } }
.hi-sheet h2 { margin: 0 0 4px; font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 600; letter-spacing: -.01em; }
.hi-sheet p { margin: 0 0 14px; font-size: 14px; color: #6E5A52; }
.hi-sheet-bar { height: 12px; border-radius: 999px; background: #EADCD4; overflow: hidden; margin: 10px 0 6px; }
.hi-sheet-bar span { display: block; height: 100%; width: 8%; background: linear-gradient(90deg, #B9867E, #3B2A26); border-radius: inherit; transition: width .5s ease; }
.hi-sheet-time { font-size: 13px; color: #6E5A52; margin-bottom: 16px; }
.hi-sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hi-sheet-actions .hi-btn { flex: 1 1 140px; border-radius: 999px; padding: 12px 16px; border: 1px solid var(--hi-ink, #3B2A26); background: var(--hi-ink, #3B2A26); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: center; text-decoration: none; }
.hi-sheet-actions .hi-btn-ghost { background: transparent; color: #3B2A26; }
.hi-sheet-actions .hi-btn[hidden] { display: none; }
.hi-sheet-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; color: #6E5A52; cursor: pointer; }
.hi-sheet-card { position: relative; }
.hi-sheet-photo { width: 100%; border-radius: 16px; margin: 4px 0 12px; display: block; max-height: 56vh; object-fit: contain; background: #F2EDE8; }

/* Galleria a schermo intero */
.hi-gallery { position: fixed; inset: 0; z-index: 9995; background: #14100F; display: flex; flex-direction: column; }
.hi-gallery-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; color: #fff; font-size: 14px; }
.hi-gallery-badge { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 5px 12px; }
.hi-gallery-close { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 38px; height: 38px; border-radius: 999px; font-size: 24px; cursor: pointer; }
.hi-gallery-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.hi-gallery-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 8px 12px 22px; }
.hi-gallery-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.hi-gallery-dots { display: flex; gap: 6px; justify-content: center; padding: 0 0 calc(14px + env(safe-area-inset-bottom)); }
.hi-gallery-dots span { width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.35); }
.hi-gallery-dots span.is-active { background: #fff; }

/* Avviso sul sito */
.hi-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 9998; background: #3B2A26; color: #FBF6F1; padding: 13px 18px; border-radius: 14px; box-shadow: 0 10px 34px rgba(0,0,0,.3); font-size: 14px; display: flex; gap: 12px; align-items: center; max-width: min(92vw, 460px); }
.hi-toast a { color: #fff; font-weight: 700; text-decoration: underline; }
.hi-toast button { border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }

/* Etichetta sulla prima foto */
.ad-ai-worn { position: absolute; left: 10px; bottom: 10px; background: rgba(59,42,38,.86); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; z-index: 2; }

@media (min-width: 760px) {
  .hi-cta-wrap { max-width: 560px; margin: 16px auto 6px; }
  .hi-cta-text strong { font-size: 19px; }
}

/* «Ultimi indossati» */
.hi-page { max-width: 1180px; margin: 0 auto; padding: 28px 18px 60px; color: var(--hennio-ink, #3B2A26); }
.hi-page h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(30px, 5vw, 46px); margin: 0 0 6px; letter-spacing: -.02em; }
.hi-lead { margin: 0 0 22px; color: #6E5A52; font-size: 16px; }
.hi-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 22px; }
.hi-pill { border: 1px solid #E9C9C1; background: #FBF6F1; color: #3B2A26; border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; text-decoration: none; }
.hi-pill.is-active { background: #3B2A26; color: #fff; border-color: #3B2A26; }
.hi-size { border: 1px solid #E9C9C1; border-radius: 999px; padding: 8px 12px; background: #fff; font: inherit; font-size: 14px; color: #3B2A26; }
.hi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hi-card { display: block; text-decoration: none; color: inherit; }
.hi-card-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: #F2EDE8; aspect-ratio: 3 / 4; }
.hi-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hi-card-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(59,42,38,.86); color: #fff; font-size: 11px; padding: 4px 8px; border-radius: 999px; }
.hi-card-body { display: block; padding: 8px 2px 0; }
.hi-card-brand { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8A736B; }
.hi-card-title { display: block; font-size: 14px; font-weight: 600; margin: 1px 0 3px; }
.hi-card-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.hi-empty { padding: 40px 0; color: #6E5A52; }
@media (min-width: 640px) { .hi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 960px) { .hi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Home: blocco Ultimi indossati */
.hh-hi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hh-hi-card { text-decoration: none; color: inherit; }
.hh-hi-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; display: block; background: #F2EDE8; }
.hh-hi-card span { display: block; font-size: 13px; font-weight: 600; margin-top: 4px; }
@media (min-width: 700px) { .hh-hi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .hh-hi-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
