/* Masone2 · vetrine della home (eventi, Bottega, galleria) e pagine v3: Bottega, Galleria, Evento, Disiscriviti. */

/* ---------- schede comuni ---------- */
.vetrina-lista { display: grid; gap: clamp(14px, 2vw, 24px); margin-top: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }

.vetrina-galleria .vetrina-lista { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.vetrina-piede { margin: clamp(24px, 3vw, 40px) 0 0; }
.vetrina .link-luce { display: inline-flex; align-items: center; min-height: 44px; color: var(--led); font: 500 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; }
.vetrina .link-luce:hover { text-decoration: underline; text-underline-offset: 6px; }
.vetrina .txt { margin-top: 14px; color: rgba(244, 239, 232, .8); }

.vt-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; text-align: left; cursor: pointer;
  color: var(--carta); text-decoration: none; font: inherit; background: rgba(244, 239, 232, .045);
  border: 0; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(240, 202, 143, .16), 0 24px 50px -34px rgba(0, 0, 0, .8);
  transition: transform .35s var(--e-out), box-shadow .35s var(--e-out), background .3s;
  -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) and (pointer: fine) { .vt-card:hover { transform: translateY(-4px); background: rgba(244, 239, 232, .07); box-shadow: inset 0 0 0 1px rgba(240, 202, 143, .5), 0 30px 60px -30px rgba(0, 0, 0, .9); } }
.vt-card:active { transform: scale(.985); }
.vt-card > span, .vt-card .vt-corpo > span { display: block; }
.vt-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #1c140f; }
.vt-prod .vt-foto { aspect-ratio: 1; }
.vt-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .vt-card:hover .vt-foto img { transform: scale(1.05); } }
.vt-segn { position: absolute; inset: 0; display: grid !important; place-items: center; color: rgba(240, 202, 143, .5); background: radial-gradient(ellipse 80% 70% at 30% 20%, rgba(196, 86, 42, .38), transparent 70%), linear-gradient(160deg, #3A2418, #17110D); }
.vt-segn svg { width: 34%; height: auto; opacity: .85; filter: drop-shadow(0 0 18px rgba(240, 202, 143, .35)); }
.vt-corpo { display: flex !important; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.vt-cat { font: 500 11px/1.3 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--led); }
.vt-tit { font: 400 clamp(24px, 2.4vw, 30px)/1.1 var(--serif); letter-spacing: -.003em; text-wrap: balance; }
.vt-desc { font: 400 14.5px/1.55 var(--sans); color: rgba(244, 239, 232, .74); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vt-riga { display: flex !important; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }
.vt-prezzo { font: 500 17px/1.2 var(--sans); color: var(--carta); }
.vt-prezzo small { font-weight: 400; font-size: 12.5px; color: var(--pietra); }
.vt-prezzo.su-richiesta { font: italic 400 19px/1.2 var(--serif); color: var(--pietra); }
.vt-freccia { color: var(--led); font-size: 20px; transition: transform .25s var(--e-out); }
.vt-card:hover .vt-freccia { transform: translateX(4px); }

.vt-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 11px; border-radius: 999px; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; background: rgba(244, 239, 232, .1); color: var(--carta); }
.vt-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; background: currentColor; }
.vt-ok { background: rgba(140, 190, 120, .16); color: #BFE0A8; }
.vt-ult { background: rgba(240, 202, 143, .16); color: var(--led); }
.vt-fin { background: rgba(224, 122, 63, .16); color: #F2A57A; }
.vt-arr { background: rgba(244, 239, 232, .1); color: var(--pietra); }

/* evento */
.vt-ev .vt-corpo { flex-direction: row; gap: 18px; align-items: flex-start; }
.vt-data { display: flex !important; flex-direction: column; align-items: center; justify-content: center; flex: none; width: 66px; padding: 10px 0 9px; border-radius: 14px; background: linear-gradient(180deg, rgba(240, 202, 143, .2), rgba(240, 202, 143, .07)); box-shadow: inset 0 0 0 1px rgba(240, 202, 143, .35); text-align: center; }
.vt-data b { font: 400 36px/1 var(--serif); color: var(--carta); }
.vt-data i { font: 500 11px/1.2 var(--sans); font-style: normal; letter-spacing: .2em; text-transform: uppercase; color: var(--led); margin-top: 3px; }
.vt-ev-testo { display: flex !important; flex-direction: column; gap: 6px; min-width: 0; flex: 1; align-self: stretch; }
.vt-ev .vt-desc { -webkit-line-clamp: 2; }

/* album */
.vt-alb-foto { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1c140f; }
.vt-alb-cover { position: absolute; inset: 0; display: block; transition: right .5s var(--e-out); }
.vt-alb-foto.con-mosaico .vt-alb-cover { right: 34%; }
.vt-alb-cover img, .vt-mosaico img { width: 100%; height: 100%; object-fit: cover; }
.vt-mosaico { position: absolute; top: 0; right: 0; bottom: 0; width: 34%; display: grid !important; grid-template-rows: repeat(var(--n, 3), 1fr); gap: 2px; padding-left: 2px; background: #0F0D0B; }
.vt-mosaico > span { display: block; overflow: hidden; min-height: 0; }
.vt-mosaico img { transition: transform .8s var(--e-out); }
@media (hover: hover) and (pointer: fine) { .vt-card:hover .vt-mosaico img { transform: scale(1.08); } }

/* ---------- struttura delle pagine v3 ---------- */
.vp { max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) var(--gutter) 40px; position: relative; z-index: 1; }
.vp-testa { display: grid; gap: 16px; margin-bottom: clamp(24px, 4vw, 44px); max-width: 760px; }
.vp-testa .pg-titolo { font-size: clamp(44px, 8.4vw, 88px); }
.vp-testa .pg-titolo em { color: var(--led); }
.vp-lead { margin: 0; font: 400 clamp(16px, 1.3vw, 18px)/1.65 var(--sans); color: rgba(244, 239, 232, .8); max-width: 58ch; text-wrap: pretty; }
.vp-ritorna { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--led); text-decoration: none; font: 500 12px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.vp-ritorna:hover { text-decoration: underline; text-underline-offset: 6px; }
.vp-stato { display: grid; justify-items: start; gap: 16px; padding: clamp(32px, 6vw, 72px) 0; color: rgba(244, 239, 232, .8); }
.vp-stato[hidden], [hidden].vp-stato { display: none; }
.vp-stato h2 { margin: 0; font: 300 clamp(32px, 5vw, 52px)/1.05 var(--serif); color: var(--carta); }
.vp-stato h2 em { font-style: italic; color: var(--led); }
.vp-stato p { margin: 0; max-width: 54ch; line-height: 1.65; }
.vp-led { width: 120px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--led), transparent); background-size: 200% 100%; animation: vp-scorre 1.2s linear infinite; }
@keyframes vp-scorre { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.vp-azioni { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.vp-azioni .btn, .vp-azioni .btn-prenota { height: 48px; min-height: 48px; }
.vp-piedi { margin-top: clamp(32px, 5vw, 56px); }

/* ---------- bottega: filtri e griglia ---------- */
.bt-filtri { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px var(--gutter) 10px; margin: 0 calc(var(--gutter) * -1) 18px; scroll-snap-type: x proximity; }
.bt-filtri::-webkit-scrollbar { display: none; }
.bt-chip { flex: none; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer; scroll-snap-align: start; background: transparent; color: var(--carta); font: 500 13px/1 var(--sans); letter-spacing: .08em; box-shadow: inset 0 0 0 1px rgba(244, 239, 232, .28); transition: background .2s, color .2s, box-shadow .2s, transform .15s; }
.bt-chip:active { transform: scale(.96); }
.bt-chip[aria-pressed="true"] { background: var(--led); color: var(--nero); box-shadow: none; }
@media (hover: hover) { .bt-chip[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1px var(--led); color: var(--led); } }
.bt-griglia { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.bt-regola { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 clamp(24px, 3vw, 36px); padding: 16px 18px; border-radius: 14px; background: rgba(240, 202, 143, .09); box-shadow: inset 0 0 0 1px rgba(240, 202, 143, .3); font-size: 15px; line-height: 1.55; color: rgba(244, 239, 232, .92); max-width: 760px; }
.bt-regola svg { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--led); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bt-regola b { color: var(--led); font-weight: 500; }

/* ---------- foglio prodotto / evento (scheda chiara) ---------- */
.sh { position: fixed; inset: 0; z-index: 200; display: grid; align-items: end; justify-items: center; }
.sh-fondo { position: absolute; inset: 0; background: rgba(15, 13, 11, .66); opacity: 0; transition: opacity .3s var(--e-out); }
.sh-in {
  position: relative; width: min(1000px, 100%); max-height: 94svh; overflow: auto; overscroll-behavior: contain;
  background: var(--carta); color: var(--nero); border-radius: 22px 22px 0 0;
  transform: translateY(100%); transition: transform .42s cubic-bezier(.32, .72, 0, 1);
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.sh.su .sh-fondo { opacity: 1; }
.sh.su .sh-in { transform: none; }
.sh-x { position: absolute; top: 10px; right: 10px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(244, 239, 232, .88); color: var(--nero); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); }
.sh-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; }
.sh-gal { position: relative; background: #1c140f; min-width: 0; }
.sh-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.sh-gal.segn .sh-pista { aspect-ratio: 16 / 7; }
.sh-gal.segn .vt-segn svg { width: 14%; min-width: 64px; }
.sh-pista::-webkit-scrollbar { display: none; }
.sh-pista > * { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.sh-pista img { width: 100%; height: 100%; object-fit: cover; }
.sh-pista .vt-segn { position: absolute; }
.sh-freccia { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: none; place-items: center; background: rgba(244, 239, 232, .88); color: var(--nero); }
.sh-freccia.sx { left: 10px; } .sh-freccia.dx { right: 10px; }
.sh-freccia svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sh-gal.multi .sh-freccia { display: grid; }
.sh-punti { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 2px; }
.sh-punti button { width: 24px; height: 24px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.sh-punti button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(244, 239, 232, .55); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); transition: background .2s, transform .2s; }
.sh-punti button[aria-current="true"]::before { background: #fff; transform: scale(1.3); }
.sh-testo { padding: 22px 20px calc(26px + env(safe-area-inset-bottom)); display: grid; gap: 14px; align-content: start; min-width: 0; }
.sh-cat { font: 500 11px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--bscuro); }
.sh-tit { margin: 0; font: 400 clamp(32px, 4.4vw, 46px)/1.04 var(--serif); letter-spacing: -.005em; padding-right: 36px; }
.sh-riga { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sh-prezzo { font: 500 22px/1.1 var(--sans); }
.sh-prezzo.su-richiesta { font: italic 400 24px/1.1 var(--serif); color: var(--grigio); }
.sh-desc { margin: 0; font: 400 16px/1.7 var(--sans); color: #3a342d; white-space: pre-line; }
.sh-in .vt-pill { background: rgba(15, 13, 11, .07); color: var(--nero); }
.sh-in .vt-ok { background: #E3EEDD; color: #2f5a23; }
.sh-in .vt-ult { background: #FBEBD9; color: #8a4b12; }
.sh-in .vt-fin { background: #F3DDD5; color: #8a2c12; }
@media (min-width: 820px) {
  .sh { align-items: center; padding: 24px; }
  .sh-in { border-radius: 22px; max-height: min(92svh, 860px); transform: translateY(24px); opacity: 0; transition: transform .35s var(--e-out), opacity .3s var(--e-out); }
  .sh.su .sh-in { opacity: 1; }
  .sh-in.due { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: linear-gradient(90deg, #1c140f 45.45%, var(--carta) 45.45%); }
  .sh-in.due .sh-gal { position: sticky; top: 0; align-self: start; }
  .sh-in.due .sh-pista { aspect-ratio: 4 / 5; }
  .sh-gal.segn .sh-pista { aspect-ratio: 4 / 5; }
  .sh-gal.segn .vt-segn svg { width: 34%; }
  .sh-testo { padding: 34px 32px 32px; }
}

/* ---------- moduli (scheda chiara) ---------- */
.vf { display: grid; gap: 14px; margin-top: 6px; padding-top: 18px; border-top: 1px solid rgba(15, 13, 11, .12); }
.vf-h { margin: 0; font: 400 28px/1.1 var(--serif); }
.vf-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vf-campo label, .vf-campo .vf-lab { font: 500 14px/1.2 var(--sans); }
.vf-campo label small { font-weight: 400; color: var(--grigio); }
.vf-campo input, .vf-campo textarea, .vf-campo select {
  width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid rgba(15, 13, 11, .22);
  background: #fff; color: var(--nero); font: 400 16px/1.3 var(--sans);
}
.vf-campo textarea { padding: 12px 14px; min-height: 76px; resize: vertical; }
.vf-campo input:focus, .vf-campo textarea:focus, .vf-campo select:focus { outline: none; border-color: #A8441C; box-shadow: 0 0 0 3px rgba(240, 202, 143, .6); }
.vf-campo.err input, .vf-campo.err textarea, .vf-campo.err select { border-color: #B3321A; }
.vf-err { margin: 0; font: 500 13px/1.35 var(--sans); color: #A12A12; }
.vf-err:empty { display: none; }
.vf-due { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 440px) { .vf-due { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.vf-qty { display: inline-flex; align-items: center; border-radius: 12px; border: 1.5px solid rgba(15, 13, 11, .22); background: #fff; width: max-content; }
.vf-qty button { width: 48px; height: 46px; border: 0; background: none; cursor: pointer; font: 400 24px/1 var(--sans); color: var(--nero); border-radius: 10px; }
.vf-qty button:disabled { opacity: .3; cursor: default; }
.vf-qty output { min-width: 40px; text-align: center; font: 500 18px/1 var(--sans); }
.vf-ok { display: flex; gap: 12px; align-items: flex-start; font: 400 14.5px/1.45 var(--sans); cursor: pointer; padding: 4px 0; min-height: 44px; }
.vf-ok input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: #A8441C; }
.vf-ok.err span { color: #A12A12; }
.vf-pag { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: #FBEBD9; color: #5b3209; font: 400 14.5px/1.5 var(--sans); }
.vf-pag svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vf-pag b { font-weight: 500; }
.vf-invia { height: 54px; width: 100%; }
.vf-invia[disabled] { opacity: .55; cursor: default; box-shadow: none; }
.vf-msg { padding: 14px 16px; border-radius: 12px; background: #F3DDD5; color: #7a2410; font: 500 14.5px/1.45 var(--sans); }
.vf-msg:empty { display: none; }
.vf-chiuso { padding: 16px; border-radius: 12px; background: rgba(15, 13, 11, .06); font: 400 15px/1.55 var(--sans); color: #3a342d; }

/* biglietto di conferma (prenotazione riuscita) */
.sh-fatto { display: grid; gap: 14px; justify-items: start; padding: 4px 0; }
.sh-fatto h3 { margin: 0; font: 300 clamp(34px, 5vw, 46px)/1.05 var(--serif); }
.sh-fatto h3 em { font-style: italic; color: #A8441C; }
.sh-codice { display: inline-block; padding: 12px 22px; border-radius: 12px; font: 500 28px/1 var(--sans); letter-spacing: .22em; background: var(--nero); color: var(--led); box-shadow: 0 0 0 4px var(--carta), 0 0 0 5px rgba(15, 13, 11, .2); }
.sh-fatto dl { margin: 0; display: grid; gap: 8px; width: 100%; }
.sh-fatto dl div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(15, 13, 11, .2); font-size: 15px; }
.sh-fatto dt { color: var(--grigio); }
.sh-fatto dd { margin: 0; font-weight: 500; text-align: right; }
.sh-fatto p { margin: 0; font-size: 15px; line-height: 1.6; color: #3a342d; }

/* ---------- galleria ---------- */
.gl-album-testa { display: grid; gap: 10px; margin-bottom: 22px; }
.gl-album-testa h2 { margin: 0; font: 300 clamp(36px, 6vw, 64px)/1.02 var(--serif); }
.gl-griglia { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.gl-griglia::after { content: ''; flex-grow: 1e6; }
.gl-griglia li { flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 190px); min-width: 0; }
.gl-foto { display: block; position: relative; width: 100%; padding: 0; border: 0; border-radius: 6px; overflow: hidden; cursor: zoom-in; background: #1c140f; aspect-ratio: var(--r); }
.gl-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--e-out), opacity .4s; }
@media (hover: hover) and (pointer: fine) { .gl-foto:hover img { transform: scale(1.04); } }
.gl-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px; text-align: left; font: 400 13px/1.35 var(--sans); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); opacity: 0; transition: opacity .3s; }
.gl-foto:hover .gl-cap, .gl-foto:focus-visible .gl-cap { opacity: 1; }
@media (hover: none) { .gl-cap { display: none; } }
.gl-albums { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.gx { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: 1fr auto; background: rgba(10, 8, 6, .985); opacity: 0; transition: opacity .25s; touch-action: pan-y; }
.gx.su { opacity: 1; }
.gx-scena { position: relative; min-height: 0; display: grid; place-items: center; padding: 56px 8px 4px; overflow: hidden; }
.gx-scena img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 4px; transition: transform .25s var(--e-out), opacity .2s; user-select: none; -webkit-user-drag: none; }
.gx-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; color: var(--pietra); font: 500 13px/1 var(--sans); letter-spacing: .12em; z-index: 2; }
.gx-b { width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: rgba(244, 239, 232, .1); color: var(--carta); transition: background .2s; }
@media (hover: hover) { .gx-b:hover { background: rgba(244, 239, 232, .22); } }
.gx-b svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gx-fr { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.gx-fr.sx { left: 10px; } .gx-fr.dx { right: 10px; }
@media (max-width: 600px) { .gx-fr { display: none; } }
.gx-did { min-height: 56px; padding: 10px 20px calc(14px + env(safe-area-inset-bottom)); text-align: center; color: rgba(244, 239, 232, .85); font: 300 italic 19px/1.4 var(--serif); }

/* ---------- evento ---------- */

/* ---------- disiscriviti ---------- */
.ds { max-width: 640px; }
.ds .vp-stato { padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .vt-card, .vt-foto img, .sh-in, .sh-fondo, .gx, .gx-scena img, .gl-foto img, .vt-alb-cover, .vt-mosaico img { transition: none !important; }
  .vp-led { animation: none; }
}

.gx-b[hidden] { display: none; }
.gx-scena { touch-action: none; }
.vp [tabindex="-1"]:focus, .sh-fatto [tabindex="-1"]:focus, .gl-album-testa [tabindex="-1"]:focus { outline: none; }
