/* HENNIO-ARMADIO-1 — caricamento di gruppo. Mobile first, 375 px. */
.armadio-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 16px 110px;
}
.armadio-head { padding: 8px 0 14px; }
.armadio-back {
  display: inline-block;
  font-size: 14px;
  color: #6b645b;
  text-decoration: none;
  margin-bottom: 14px;
}
.armadio-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9a6b5f;
}
.armadio-head h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.12;
  color: #2d2925;
}
.armadio-lead { margin: 0; font-size: 15px; line-height: 1.5; color: #5c554d; }
.armadio-lead-small { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #5c554d; }
.armadio-loading { padding: 30px 0; text-align: center; color: #8a837a; }
.armadio-step { margin-top: 8px; }

.armadio-guide {
  background: #faf7f2;
  border: 1px solid #ebe3d8;
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.armadio-guide h2 { margin: 0 0 10px; font-size: 17px; color: #2d2925; }
.armadio-guide ul { list-style: none; margin: 0; padding: 0; }
.armadio-guide li {
  display: flex;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #5c554d;
  padding: 5px 0;
}
.armadio-guide li span:first-child { flex: 0 0 22px; }

.armadio-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 124px;
  padding: 18px;
  border: 1.5px dashed #cdbfae;
  border-radius: 18px;
  background: #fffdf9;
  text-align: center;
  cursor: pointer;
}
.armadio-pick-ico { font-size: 30px; line-height: 1; }
.armadio-pick-text { font-size: 17px; font-weight: 700; color: #2d2925; }
.armadio-pick-note { font-size: 12.5px; color: #7c746a; line-height: 1.4; }
.armadio-pick-camera {
  min-height: 48px;
  flex-direction: row;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  font-weight: 600;
  border-style: solid;
}
.armadio-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.armadio-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.armadio-progress-head h2 { margin: 0; font-size: 19px; color: #2d2925; }
.armadio-counter { font-size: 13px; color: #8a6a5f; white-space: nowrap; }
.armadio-bar {
  height: 9px;
  border-radius: 99px;
  background: #efe9e1;
  overflow: hidden;
  margin-bottom: 8px;
}
.armadio-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #b57b6b;
  border-radius: 99px;
  transition: width .25s ease;
}
.armadio-status { margin: 0 0 10px; font-size: 13px; color: #6b645b; min-height: 18px; }
.armadio-note { margin: 8px 0; font-size: 12.5px; color: #7c746a; line-height: 1.45; }
.armadio-error {
  margin: 8px 0;
  font-size: 13px;
  color: #a3352b;
  background: #fbeeeb;
  border-radius: 10px;
  padding: 9px 11px;
}

.armadio-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 10px 0 14px;
}
.armadio-thumb {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1ece5;
}
.armadio-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.armadio-thumb-ph { display: block; width: 100%; height: 100%; }
.armadio-thumb-busy, .armadio-thumb-bad {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(45, 41, 37, .78);
  color: #fff;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.armadio-thumb-bad { background: #a3352b; }

.armadio-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
}
.armadio-actions .btn { width: 100%; }

.armadio-body-pick {
  background: #faf7f2;
  border: 1px solid #ebe3d8;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 12px;
}
.armadio-body-pick label { display: block; font-size: 13px; font-weight: 700; color: #2d2925; margin-bottom: 6px; }
.armadio-body-pick select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8cec0;
  border-radius: 10px;
  background: #fffdf9;
  padding: 0 10px;
  font-size: 15px;
  color: #2d2925;
}
.armadio-body-pick p { margin: 6px 0 0; font-size: 12px; color: #7c746a; }

.armadio-groups { display: flex; flex-direction: column; gap: 12px; }
.armadio-group {
  border: 1px solid #e7ded2;
  border-radius: 15px;
  background: #fffdf9;
  padding: 12px;
}
.armadio-group header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.armadio-group h3 { margin: 0; font-size: 15.5px; color: #2d2925; }
.armadio-group-meta { font-size: 12px; color: #8a837a; }
.armadio-mini {
  margin-left: auto;
  border: 1px solid #d8cec0;
  background: #fff;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 11.5px;
  color: #5c554d;
}
.armadio-gthumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.armadio-gphoto {
  border: 0;
  padding: 0;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  background: #f1ece5;
}
.armadio-gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; }

.armadio-cards { display: flex; flex-direction: column; gap: 11px; margin-bottom: 16px; }
.armadio-card {
  display: flex;
  gap: 12px;
  border: 1px solid #e7ded2;
  border-radius: 15px;
  background: #fffdf9;
  padding: 10px;
}
.armadio-card.is-published { background: #f5faf4; border-color: #d8e8d3; }
.armadio-card-cover {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1ece5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.armadio-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.armadio-card-ph { font-size: 28px; }
.armadio-card-body { min-width: 0; flex: 1; }
.armadio-card-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.armadio-badge {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: #f0e7dc;
  color: #7a5b4f;
  padding: 3px 7px;
  border-radius: 99px;
}
.armadio-price { font-size: 15px; font-weight: 700; color: #2d2925; }
.armadio-price.is-suggested { color: #8a4f3d; }
.armadio-price.is-missing { color: #a3352b; font-weight: 600; }
.armadio-card h4 {
  margin: 5px 0 6px;
  font-size: 14.5px;
  line-height: 1.3;
  color: #2d2925;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.armadio-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.armadio-tag { font-size: 12px; color: #6b645b; }
.armadio-body-one { font-size: 11px; color: #8a837a; display: inline-flex; align-items: center; gap: 5px; }
.armadio-body-one select {
  font-size: 12px;
  border: 1px solid #ddd3c6;
  border-radius: 7px;
  background: #fff;
  padding: 4px 5px;
  color: #2d2925;
}
.armadio-warn, .armadio-missing { margin: 6px 0 0; font-size: 11.5px; line-height: 1.35; color: #8a5a30; }
.armadio-missing { color: #a3352b; }
.armadio-dup { margin-top: 6px; font-size: 11.5px; color: #5c554d; }
.armadio-dup p { margin: 0 0 5px; }
.armadio-card-actions { margin-top: 7px; }
.armadio-card-edit { font-size: 12.5px; font-weight: 700; color: #8a4f3d; text-decoration: none; }
.armadio-subtitle { margin: 18px 0 9px; font-size: 17px; color: #2d2925; }
.armadio-budget {
  margin: 10px 0;
  padding: 10px 12px;
  background: #fff6e8;
  border: 1px solid #ecd9b5;
  border-radius: 11px;
  font-size: 12.5px;
  color: #7a5a22;
}
.armadio-publishbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 253, 249, .96);
  border-top: 1px solid #e7ded2;
  backdrop-filter: blur(8px);
}
.armadio-publishbar .btn { width: 100%; }
.armadio-mine { display: block; text-align: center; font-size: 12px; color: #7c746a; margin-top: 7px; text-decoration: none; }

.armadio-party { text-align: center; padding: 40px 10px; }
.armadio-party-kicker { font-size: 44px; margin: 0 0 8px; }
.armadio-party h2 { font-family: Georgia, serif; font-size: 28px; margin: 0 0 8px; color: #2d2925; }
.armadio-party p { font-size: 14px; color: #5c554d; margin: 0 0 20px; }

.armadio-sheet { position: fixed; inset: 0; z-index: 60; }
.armadio-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(28, 25, 22, .42);
}
.armadio-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 76vh;
  overflow: auto;
  background: #fffdf9;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.armadio-sheet-panel h3 { margin: 0 0 10px; font-size: 17px; color: #2d2925; }
.armadio-sheet-label { margin: 0 0 6px; font-size: 12px; color: #8a837a; }
.armadio-sheet-list { display: flex; flex-direction: column; gap: 7px; margin-bottom: 10px; }
.armadio-sheet-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e2d8cb;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: #2d2925;
}

/* Il secondo ingresso su /vendi */
.vendi-armadio-link { margin-top: 9px; }
.vendi-armadio-note { margin: 7px 0 0; font-size: 12px; line-height: 1.4; color: #7c746a; text-align: center; }

@media (min-width: 720px) {
  .armadio-page { padding-top: 28px; }
  .armadio-head h1 { font-size: 38px; }
  .armadio-thumbs { grid-template-columns: repeat(8, 1fr); }
  .armadio-cards { display: grid; grid-template-columns: 1fr 1fr; }
  .armadio-actions { flex-direction: row; }
  .armadio-publishbar { left: 50%; transform: translateX(-50%); max-width: 760px; border-radius: 16px 16px 0 0; }
}
.armadio-new {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #8a4f3d;
  text-decoration: none;
}
.armadio-guest { margin-bottom: 9px; }
.armadio-guest > label { display: block; font-size: 12px; font-weight: 700; color: #2d2925; margin-bottom: 4px; }
.armadio-guest input[type=email] {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8cec0;
  border-radius: 10px;
  background: #fff;
  padding: 0 10px;
  font-size: 15px;
}
.armadio-guest p { margin: 5px 0; font-size: 11.5px; color: #7c746a; }
.armadio-terms { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: #5c554d; line-height: 1.35; }
.armadio-terms input { margin-top: 2px; }

/* HENNIO-ARMADIO-2 — taglia in evidenza sulla scheda, «Taglia per tutti» e
   riepilogo di cosa manca sopra «Pubblica tutti». */
.armadio-size-all-pick input {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8cec0;
  border-radius: 10px;
  background: #fffdf9;
  padding: 0 10px;
  font-size: 15px;
  color: #2d2925;
  box-sizing: border-box;
}
.armadio-size-ask {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 2px 0 2px;
  padding: 7px 9px;
  border: 1px solid #e0b4aa;
  background: #fff4f1;
  border-radius: 9px;
}
.armadio-size-ask-label { font-size: 12px; font-weight: 700; color: #a3352b; }
.armadio-size-ask select {
  flex: 1 1 120px;
  min-height: 36px;
  border: 1px solid #c98f83;
  border-radius: 8px;
  background: #fff;
  padding: 0 8px;
  font-size: 14px;
  color: #2d2925;
}
.armadio-tag.is-missing { color: #a3352b; font-weight: 700; }
.armadio-publish-needs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0 4px;
  padding: 9px 11px;
  border: 1px solid #ecd9b5;
  background: #fff8ec;
  border-radius: 11px;
}
.armadio-need { font-size: 12.5px; font-weight: 700; color: #7a4a1e; text-decoration: none; }
.armadio-need-size { color: #a3352b; }
.armadio-need-dup { color: #5c554d; font-weight: 600; }
.armadio-card:target { outline: 2px solid #ff5a36; outline-offset: 2px; }

/* HENNIO-ARMADIO-ATTESA-1 — l'attesa di ogni fase.
   Stessa matematica e stesse parole di HENNIO-INDOSSATO-1 / HENNIO-TIMER-1:
   ora vera di inizio, «Ancora circa…», «Quasi fatto…». Movimento sobrio. */
.armadio-wait { padding-top: 6px; }
.armadio-wait-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 12px;
}
.armadio-wait-head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.2;
  color: #2d2925;
}
.armadio-hen {
  flex: 0 0 46px;
  width: 46px;
  height: 40px;
  animation: armadio-hen-bob 2.4s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.armadio-bar-soft span { background: #8a6a5f; }
.armadio-spin {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 7px;
  border: 2px solid #d8cec0;
  border-top-color: #8a4f3d;
  border-radius: 50%;
  vertical-align: -1px;
  animation: armadio-spin .9s linear infinite;
}
.armadio-status.is-idle .armadio-spin { display: none; }
.armadio-status .armadio-spin { display: inline-block; }
.armadio-remaining {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  color: #8a4f3d;
  min-height: 20px;
}
.armadio-remaining.is-almost { color: #6b645b; font-weight: 600; }
.armadio-stall {
  margin: 10px 0;
  padding: 11px 13px;
  border: 1px solid #ecd9b5;
  background: #fff8ec;
  border-radius: 12px;
  font-size: 12.5px;
  color: #7a5a22;
  line-height: 1.45;
}
.armadio-stall p { margin: 0 0 8px; }
.armadio-stall strong { color: #5f441a; }
.armadio-stall-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.armadio-skel {
  display: flex;
  gap: 12px;
  border: 1px dashed #e2d8cb;
  border-radius: 15px;
  background: #fffdf9;
  padding: 10px;
  align-items: center;
}
.armadio-skel-cover {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(100deg, #f1ece5 25%, #f8f4ed 40%, #f1ece5 55%);
  background-size: 220% 100%;
  animation: armadio-shimmer 1.5s ease-in-out infinite;
}
.armadio-skel-lines { flex: 1; min-width: 0; }
.armadio-skel-line {
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(100deg, #efe9e1 25%, #f8f4ed 40%, #efe9e1 55%);
  background-size: 220% 100%;
  animation: armadio-shimmer 1.5s ease-in-out infinite;
  margin: 8px 0;
}
.armadio-skel-line:first-child { width: 45%; }
.armadio-skel-line:nth-child(2) { width: 80%; }
.armadio-skel-line:nth-child(3) { width: 60%; }
@keyframes armadio-spin { to { transform: rotate(360deg); } }
@keyframes armadio-hen-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-3px) rotate(-2deg); }
}
@keyframes armadio-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .armadio-spin, .armadio-hen, .armadio-skel-cover, .armadio-skel-line { animation: none; }
  .armadio-bar span { transition: none; }
}
