/* Masone2 · stili condivisi: token V2, modulo di prenotazione, busta con sigillo, fascia demo. */
/* "hidden" nasconde sempre, anche se la classe dell'elemento ha un display suo (galleria, Bottega…) */
[hidden] { display: none !important; }
:root {
  --bianco: #F4EFE8; --bianco-2: #E6DED3; --bianco-3: #FBF8F4;
  --arancio: #C4562A; --arancio-p: #A8441C; --arancio-l: #E07A3F;
  --notte: #2A2019; --metallo: #6B5232; --ottone: #B9A062;
  --led: #F0CA8F; --oro-led: #DCC07E;
  --nero: #0F0D0B; --grigio: #6E675F; --pietra: #A99A86;
  --mattone: #B0705A; --ruggine: #3A2418; --bronzo-logo: #B78948;
  --carta: var(--bianco); --corten: var(--notte);
  --f-titoli: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-testo: 'Jost', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-luce: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --rimbalzo: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- pulsante Prenota (velluto) ---------- */
.btn-prenota {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border: 0; border-radius: 999px;
  background: var(--arancio-p); color: var(--bianco);
  font: 500 15px/1 var(--f-testo); letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: transform .16s var(--ease-out), filter .2s ease, box-shadow .3s ease;
  box-shadow: 0 10px 30px -12px rgba(168, 68, 28, .7);
}
.btn-prenota::before { /* velluto: una trama morbida che si sposta col passaggio */
  content: ''; position: absolute; inset: -20%; z-index: -1; opacity: .35;
  background: radial-gradient(120% 80% at 30% 20%, rgba(255, 190, 140, .55), transparent 55%), radial-gradient(90% 70% at 80% 90%, rgba(80, 20, 0, .55), transparent 60%),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 5px);
  transition: transform .6s var(--ease);
}
.btn-prenota::after { /* il riflesso LED che attraversa */
  content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(240, 202, 143, .55), transparent); transform: translateX(-160%);
}
.btn-prenota.riflesso::after { animation: m2-riflesso .9s var(--ease-luce); }
@keyframes m2-riflesso { to { transform: translateX(320%); } }
.btn-prenota svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn-prenota:hover { filter: brightness(1.06); }
  .btn-prenota:hover::before { transform: translate(8px, 4px); }
  .btn-prenota:hover svg:last-of-type { transform: translateX(4px); }
}
.btn-prenota:active { transform: scale(.97); }
.btn-prenota:focus-visible { outline: 2px solid var(--arancio-p); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(240, 202, 143, .45); }
.btn-prenota[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- fascia DEMO ---------- */

/* ======================= PRENOTAZIONE ======================= */
.pr { --pr-fondo: var(--bianco-2); --pr-sup: var(--bianco-3); color: var(--nero); font-family: var(--f-testo); }
.pr [hidden] { display: none !important; }

@keyframes pr-sale { from { opacity: 0; transform: translateY(12px); } }

@keyframes pr-salta { 50% { transform: scale(1.12); } }

.pr-az{ display: flex; gap: 10px; flex-wrap: wrap; }

@keyframes pr-luccica { to { background-position: -300% 0; } }

@keyframes pr-traccia { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

/* ======================= BUSTA ======================= */

.biglietto {
  position: absolute; z-index: 2; left: 6%; right: 6%; bottom: 10%; padding: 22px 24px 18px; border-radius: 6px;
  background: var(--bianco); color: var(--nero); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .4); text-align: center;
  transform: translateY(-62%); opacity: 0;
}
.biglietto::before { content: ''; position: absolute; inset: 7px; border: 1px solid rgba(185, 160, 98, .55); border-radius: 3px; pointer-events: none; }

.biglietto h2 { margin: 0 0 8px; font: 300 26px/1.1 var(--f-titoli); }

/* sequenza: biglietto entra → scivola nella busta → patta si chiude → sigillo cade e si imprime → pulsanti */

@keyframes b-entra { from { opacity: 0; transform: translateY(-20%); } to { opacity: 1; transform: translateY(-62%); } }
@keyframes b-scivola { from { opacity: 1; transform: translateY(-62%); } to { opacity: 1; transform: translateY(-6%); } }
@keyframes b-dentro { to { opacity: 0; transform: translateY(-6%); } }
@keyframes b-patta { to { transform: rotateX(0); } }
@keyframes b-sigillo { from { opacity: 0; transform: translateY(-60px) scale(1.3); } to { opacity: 1; transform: none; } }
@keyframes b-schiaccia { 50% { transform: scaleY(.92); } }
@keyframes b-imprimi { from { opacity: .2; filter: none; } }
@keyframes b-su { to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  
  .biglietto { padding: 16px 14px 12px; }
  .biglietto h2 { font-size: 21px; }
  
  
  
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; scroll-behavior: auto !important; }
}

@media (max-width: 860px) {  .barra-m { transition: transform .3s var(--ease-out); } }
