/* FF-PROVA-1 — «Provalo addosso». */
.pa-look [hidden], .pa-ad [hidden] { display: none !important; }
.pa-look, .pa-ad { margin: 14px 0 18px; }
.pa-hanger { display: inline-flex; align-items: center; }
.pa-look-open, .pa-ad-open {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 12px 18px;
  border: 1px solid #111; border-radius: 999px;
  background: #fff; color: #111; font: inherit; font-weight: 600;
  cursor: pointer;
}
.pa-look-open:hover, .pa-ad-open:hover { background: #111; color: #fff; }
.pa-ad { margin-top: 10px; }
.pa-ad-badge { font-size: 10px; letter-spacing: .08em; border: 1px solid currentColor; border-radius: 999px; padding: 1px 5px; }
.pa-look-panel, .pa-ad-panel {
  margin-top: 12px; padding: 14px;
  border: 1px solid #e3e0da; border-radius: 18px; background: #fbfaf8;
  position: relative;
  display: flex; flex-direction: column;
}
.pa-look-panel .pa-look-head { order: 2; }
.pa-look-panel .pa-stage { order: 1; }
.pa-look-panel .pa-below, .pa-look-panel .pa-ai-label, .pa-look-panel .pa-warn, .pa-look-panel .pa-stale { order: 3; }
.pa-collage-wrap { position: relative; }
.pa-collage-btn { display: none; }
.pa-look-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.pa-builds, .pa-views { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-pill {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 40px; padding: 7px 12px;
  border: 1px solid #d8d3cb; border-radius: 999px;
  background: #fff; color: #222; font: inherit; font-size: 13px; cursor: pointer;
}
.pa-pill.is-active { background: #111; border-color: #111; color: #fff; }
.pa-pill.is-ready::after { content: "✓"; font-size: 10px; opacity: .75; }
.pa-pill .pa-create { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: #8a6d3b; }
.pa-sil { flex: 0 0 auto; opacity: .85; }
.pa-stage { position: relative; background: #efece7; border-radius: 14px; max-width: 560px; margin: 0 auto; width: 100%; }
.pa-image-wrap { position: relative; max-width: none; margin: 0 auto; width: 100%; }
.pa-image-wrap img { display: block; width: 100%; height: auto; border-radius: 14px; }
.pa-spots { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.pa-i {
  pointer-events: auto; position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; color: #fff; font: 700 15px/1 Georgia, serif;
  cursor: pointer;
}
.pa-i-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex: 0 0 32px;
  border: 2px solid #111; border-radius: 50%;
  background: #fff; color: #111; font: 800 20px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  box-shadow: 0 1px 6px rgba(0,0,0,.35);
  /* FF-RIFINITURE-1 — le «i» non seguono l'ingrandimento della foto: restano
     32 px veri sullo schermo (area di tocco del bottone: 44 px). */
  transform: none;
}
.pa-zoom-spots .pa-i-dot {
  width: 32px; height: 32px; min-width: 32px; min-height: 32px; flex: 0 0 32px;
  border: 2px solid #111; background: #fff; color: #111; font-size: 20px;
  transform: none !important;
}
.pa-i:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; border-radius: 50%; }
.pa-i-small { position: static; transform: none; width: 24px; height: 24px; min-width: 24px; min-height: 24px; }
.pa-i-small .pa-i-dot { width: 24px; height: 24px; min-width: 24px; min-height: 24px; flex: 0 0 24px; font-size: 12px; border-width: 1px; }
.pa-info {
  position: absolute; z-index: 30;
  width: min(320px, 92%); padding: 12px 12px 10px;
  background: #fff; border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.28);
  font-size: 13px; color: #111;
}
.pa-info::after {
  content: ""; position: absolute; top: var(--arrow-y, 20px); width: 10px; height: 16px;
  background: #fff; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.pa-info[data-side="right"]::after { left: -9px; }
.pa-info[data-side="left"]::after { right: -9px; transform: rotate(180deg); }
.pa-info[data-side="bottom"]::after { left: var(--arrow-x, 20px); top: auto; bottom: -9px; transform: rotate(90deg); }
.pa-info[data-side="top"]::after { left: var(--arrow-x, 20px); top: -9px; transform: rotate(-90deg); }
.pa-info-close {
  position: absolute; top: 2px; right: 2px; width: 36px; height: 36px;
  border: 0; background: transparent; color: #555; font: 400 20px/1 sans-serif; cursor: pointer;
}
.pa-info-head { display: flex; gap: 10px; align-items: center; padding-right: 22px; }
.pa-info-head img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #eee; flex: 0 0 auto; }
.pa-info-head div { display: flex; flex-direction: column; gap: 2px; }
.pa-info-actions { display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.pa-info-actions .pa-btn { flex: 1 1 100%; }
.pa-sold { margin: 9px 0 0; font-weight: 600; color: #777; }
.pa-sold-inline { color: #777; font-weight: 600; }
.pa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid #111; background: #fff; color: #111; text-decoration: none; font-weight: 600; font-size: 13px;
}
/* La pagina Look colora tutti i link di #111: il bottone nero deve restare
   bianco su nero (contrasto 18:1). */
.look-page .pa-info .pa-btn-dark,
.look-buy-page .pa-info .pa-btn-dark,
.pa-info .pa-btn-dark { background: #111; border-color: #111; color: #fff; }
.pa-info .pa-btn-dark:hover { background: #000; color: #fff; }
.pa-ai-label { margin: 10px 0 0; font-size: 12px; color: #555; }
.pa-warn { margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; background: #fff4e5; color: #7a4b00; font-size: 13px; }
.pa-partial { margin: 8px 0 0; font-size: 13px; color: #555; text-align: center; }
.pa-fidelity { margin: 10px 0 0; padding: 12px 14px; border-radius: 12px; background: #f6f1e7; color: #4a3a1d; font-size: 14px; line-height: 1.45; }
.pa-stale { margin: 10px 0 0; padding: 10px; border-radius: 10px; background: #f1f5ff; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.pa-below { margin: 10px 0 0; padding-left: 18px; font-size: 13px; }
.pa-below li { margin: 4px 0; }
.pa-progress {
  position: absolute; inset: 0; z-index: 9; padding: 24px 18px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: rgba(250,249,247,.84); backdrop-filter: blur(1.5px);
}
.pa-stage.is-busy { min-height: 420px; }
.pa-spinner {
  width: 34px; height: 34px; margin: 0 0 12px; border-radius: 50%;
  border: 3px solid rgba(17,17,17,.18); border-top-color: #111;
  animation: pa-spin .9s linear infinite;
}
@keyframes pa-spin { to { transform: rotate(360deg); } }
.pa-progress-avatar { width: 64px; height: 84px; margin: 0 auto 12px; border-radius: 32px 32px 14px 14px; background: #d9d5cf; color: #fff; display: flex; align-items: center; justify-content: center; }
.pa-bar { height: 6px; background: #e2ded7; border-radius: 999px; overflow: hidden; max-width: 320px; width: 80%; margin: 0 auto; }
.pa-bar span { display: block; height: 100%; width: 8%; background: #111; border-radius: 999px; transition: width .7s ease; }
.pa-image-wrap { transition: opacity .18s ease; }
.pa-image-wrap.is-fading { opacity: .35; }
.pa-pill.is-loading { background: #f1efe9; border-color: #b9b3a9; color: #444; }
.pa-pill.is-loading::after {
  content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 2px;
  border-radius: 50%; border: 2px solid rgba(17,17,17,.2); border-top-color: #111;
  animation: pa-spin .8s linear infinite;
}
.pa-pill:disabled { opacity: .55; cursor: not-allowed; }
.pa-swipe {
  position: absolute; top: 42%; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12); background: rgba(255,255,255,.85); color: #111;
  font-size: 24px; line-height: 1; cursor: pointer;
}
.pa-swipe-prev { left: 8px; }
.pa-swipe-next { right: 8px; }
.pa-ad-selector { padding: 4px 0 8px; }
.pa-ad-note { margin: 0 0 10px; font-size: 13px; color: #555; }
.pa-ad-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pa-ad-fields label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.pa-ad-fields select { min-height: 42px; padding: 6px 8px; border: 1px solid #cfc9c0; border-radius: 10px; background: #fff; font: inherit; }
.pa-ad-progress { padding: 24px 12px; text-align: center; }
.pa-ad-result { position: relative; }
.pa-ad-figure { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.pa-ad-figure img { max-width: 72%; height: auto; border-radius: 12px; background: #efece7; }
.pa-ad-original { max-width: 26% !important; object-fit: cover; }
.pa-ad-sizeline { margin: 9px 0 0; font-size: 13px; }
.pa-ad-backnote { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #fff8e1; font-size: 13px; }
.pa-ad-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.pa-ad-close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.pa-signup { margin: 10px 0 0; }
.look-physical { margin-top: 10px; border-top: 1px solid #e5e1da; padding-top: 8px; }
.look-physical summary { cursor: pointer; font-size: 13px; font-weight: 600; }
.look-physical-note { margin: 6px 0; font-size: 12px; color: #666; }
.pa-ext-form { margin: 16px 0 8px; }
.pa-ext-form label { display: block; font-size: 13px; margin-bottom: 6px; }
.pa-ext-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pa-ext-row input { flex: 1 1 260px; min-height: 46px; padding: 8px 12px; border: 1px solid #cfc9c0; border-radius: 12px; font: inherit; }
.pa-ext-figure { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; }
.pa-ext-figure img { max-width: 46%; height: auto; border-radius: 14px; background: #efece7; }
.pa-similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin: 10px 0 18px; }
.pa-similar-card { display: flex; gap: 8px; align-items: center; text-decoration: none; color: inherit; border: 1px solid #e3e0da; border-radius: 12px; padding: 6px; background: #fff; }
.pa-similar-card img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.pa-similar-card span { display: flex; flex-direction: column; font-size: 12px; line-height: 1.25; }
.pa-similar-card small { color: #666; }
.pa-ext-mine { margin-top: 18px; }
.pa-mine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pa-mine-card { border: 1px solid #e3e0da; border-radius: 14px; padding: 8px; background: #fbfaf8; }
.pa-mine-card img { width: 100%; height: auto; border-radius: 10px; display: block; }
.pa-mine-title { font-weight: 600; margin: 7px 0 2px; font-size: 14px; }
.pa-mine-meta { margin: 0 0 6px; font-size: 12px; color: #666; }
.pa-mine-sold { display: inline-block; margin: 0 0 6px; padding: 2px 8px; border-radius: 999px; background: #111; color: #fff; font-size: 11px; }
.pa-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pa-admin-card { border: 1px solid #e3e0da; border-radius: 14px; padding: 10px; background: #fbfaf8; }
.pa-admin-card h2 { font-size: 13px; margin: 0 0 4px; word-break: break-all; }
.pa-admin-views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.pa-admin-views a { text-decoration: none; color: inherit; font-size: 10px; text-align: center; }
.pa-admin-views img { width: 100%; height: auto; border-radius: 8px; display: block; background: #eee; }
.pa-admin-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.pa-admin-runs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pa-admin-runs article { border: 1px solid #e3e0da; border-radius: 12px; padding: 8px; background: #fff; }
.pa-admin-runs img { width: 100%; height: auto; border-radius: 8px; display: block; }


@media (max-width: 639px) {
  .pa-look-open, .pa-ad-open { width: 100%; justify-content: center; }
  .pa-collage-btn { display: inline-flex; width: auto; position: absolute; right: 10px; bottom: 10px; z-index: 5; background: rgba(255,255,255,.94); box-shadow: 0 2px 12px rgba(0,0,0,.25); font-size: 13px; padding: 9px 13px; }
  .pa-look-panel, .pa-ad-panel { margin-left: -4px; margin-right: -4px; padding: 10px 10px 96px; }
  .pa-ad-fields { grid-template-columns: 1fr; }
  .pa-ad-figure img { max-width: 68%; }
  .pa-ad-original { max-width: 30% !important; }
  .pa-swipe { width: 36px; height: 36px; }
  .pa-info { padding: 10px; }
  .pa-info-head img { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .pa-bar span { transition: none; } }
.pa-ready-dot { display: inline-block; width: 8px; height: 8px; margin-left: 3px; border-radius: 50%; background: #ff5a36; vertical-align: top; }

/* FF-PROVA-1C — lente d'ingrandimento e visore a schermo intero. */
.pa-zoom-open {
  position: absolute; top: 10px; right: 10px; z-index: 7;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.16); background: rgba(255,255,255,.94); color: #111;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.pa-zoom-open:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.pa-zoom {
  position: fixed; inset: 0; z-index: 1000; background: #0c0c0c; color: #fff;
  display: flex; flex-direction: column; overscroll-behavior: contain;
}
.pa-zoom[hidden] { display: none; }
.pa-zoom-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.pa-zoom-title { font: 600 14px/1.2 inherit; color: #eee; }
.pa-zoom-tools { display: flex; gap: 6px; }
.pa-zoom-tools button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; font: 400 22px/1 sans-serif; cursor: pointer;
}
.pa-zoom-stage { position: relative; flex: 1 1 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; touch-action: none; }
.pa-zoom-stage > img { max-width: 94vw; max-height: 100%; width: auto; height: auto; transform-origin: center center; will-change: transform; user-select: none; -webkit-user-drag: none; }
.pa-zoom-spots { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.pa-zoom-spots .pa-i { position: absolute; pointer-events: auto; z-index: 4; }
.pa-zoom .pa-info { position: absolute; z-index: 60; }
.pa-zoom-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.pa-zoom-prev { left: 10px; }
.pa-zoom-next { right: 10px; }
.pa-zoom-hint { margin: 0; padding: 8px 14px 14px; text-align: center; font-size: 12px; color: #bbb; }
.pa-leader {
  position: absolute; height: 1px; background: rgba(255,255,255,.9);
  box-shadow: 0 0 2px rgba(0,0,0,.7); transform-origin: 0 50%; pointer-events: none; z-index: 3;
}
.pa-leader::before {
  content: ""; position: absolute; left: -3px; top: -3px; width: 7px; height: 7px;
  border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.5);
}

/* FF-PROVA-1F — scelta del motore dei vestiti nel pannello admin */
.pa-engine-card{border:1px solid #ddd;border-radius:12px;padding:14px 16px;margin:0 0 22px;background:#fafafa}
.pa-engine-form{display:flex;flex-wrap:wrap;gap:14px;align-items:center;margin:8px 0 10px}
.pa-engine-form label{display:inline-flex;align-items:center;gap:6px;font-weight:600}

/* HENNIO-PROVA-PUBBLICO-1 — invito ad accedere al posto della generazione */
.pa-signin{padding:22px 18px;text-align:center;background:#f6f3ee;border:1px solid #e3ddd2;border-radius:16px}
.pa-signin p{margin:0 0 14px;font-size:15px;line-height:1.5;color:#3c3630}
.pa-signin .pa-btn{display:inline-block;text-decoration:none}
