/* ==========================================================
   LE FIGARÒ · PALAZZO — Landing di lancio
   Velluto come colore principale, ottone e avorio come accenti.
   ========================================================== */
@font-face { font-family: "Cormorant"; src: url("fonts/corm-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/corm-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/corm-it-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/corm-it-500.woff2") format("woff2"); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Jost"; src: url("fonts/jost-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --velluto: #6E1420;
  --velluto-chiaro: #8E1E2C;
  --velluto-scuro: #4A0D16;
  --vino: #2E070D;
  --nero: #151112;
  --tufo: #C8B188;
  --ottone: #A3803F;
  --ottone-chiaro: #D2B274;
  --avorio: #F3EDE3;
  --carta: #F5EFE4;
  --testo: #2A2425;
  --grigio: #6F6765;

  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --gold: linear-gradient(105deg, #8A6A2C 0%, #E8CF8F 22%, #A3803F 40%, #F6E7BC 55%, #A3803F 72%, #8A6A2C 100%);

  --max: 1240px;
  --gutter: clamp(16px, 5vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --grain: url("img/grain.png");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--velluto-scuro); color: var(--avorio);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ottone); color: var(--vino); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }

/* ---------- Velluto ---------- */
.velvet {
  position: relative; isolation: isolate;
  background:
    radial-gradient(120% 80% at 50% -10%, #9A2433 0%, var(--velluto) 38%, var(--velluto-scuro) 78%, var(--vino) 100%);
}
.velvet::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .22;
}
.sheen { position: fixed; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px; z-index: 3; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 190, 190, .10), transparent); will-change: transform; }
@media (hover: none) { .sheen { display: none; } }

/* ---------- Tipografia ---------- */
.kicker { font-family: var(--sans); font-weight: 400; font-size: 11px; letter-spacing: .38em; text-transform: uppercase; color: var(--ottone-chiaro); }
.display {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(48px, 7.6vw, 118px); line-height: .98; letter-spacing: -.01em;
}
.display em, .title em {
  background: var(--gold); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: foil 7s ease-in-out infinite alternate; padding-right: .06em;
}
@keyframes foil { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.title { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; }
.lede { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.5; color: rgba(243, 237, 227, .78); max-width: 560px; }
.center .lede { margin-left: auto; margin-right: auto; }
.dark-text { color: var(--velluto); }
.lede.dark-text { color: var(--grigio); }

/* parole divise per l'animazione */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.wi { display: inline-block; will-change: transform; }
.display em .w, .title em .w { overflow: visible; }
.display em .wi, .title em .wi { background: var(--gold); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: foil 7s ease-in-out infinite alternate; padding-right: .06em; }
.display em:has(.wi), .title em:has(.wi) { background: none; animation: none; }
.door-after em { background: none; color: var(--velluto); animation: none; }

/* ---------- Bottoni ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 34px; cursor: pointer; background: transparent;
  font-family: var(--sans); font-weight: 400; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase;
  border: 1px solid var(--ottone); transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn:hover::before { transform: none; }
.btn-gold { background: var(--gold); background-size: 200% 100%; color: var(--vino); border-color: transparent; transition: background-position .8s var(--ease); }
.btn-gold:hover { background-position: 100% 50%; }
.btn-gold::before { display: none; }
.btn-line { color: var(--ottone-chiaro); }
.btn-line::before { background: var(--ottone); }
.btn-line:hover { color: var(--vino); }
.btn-velvet { background: var(--velluto); color: var(--avorio); border-color: var(--velluto); }
.btn-velvet::before { background: var(--vino); }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Cursore, progresso ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(210, 178, 116, .7); border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, opacity .4s; opacity: 0; }
.cursor i { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; border-radius: 50%; background: var(--ottone-chiaro); }
.cursor.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: rgba(210, 178, 116, .12); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 80; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Sipario ---------- */
.curtain { display: none; }
.js .curtain { display: block; position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.curtain-half {
  position: absolute; top: 0; bottom: 0; width: 50.5%;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), transparent 18%, transparent 82%, rgba(0,0,0,.45)),
    repeating-linear-gradient(90deg, #3E0A12 0, #7A1724 2.2%, #9A2433 3.4%, #6E1420 5%, #3E0A12 7%);
}
.curtain-half::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; }
.curtain-half.l { left: 0; box-shadow: 18px 0 40px rgba(0,0,0,.5); }
.curtain-half.r { right: 0; box-shadow: -18px 0 40px rgba(0,0,0,.5); }
.curtain-half.l::before, .curtain-half.r::before { content: ""; position: absolute; top: 0; bottom: 0; width: 6px; background: var(--gold); opacity: .8; }
.curtain-half.l::before { right: 0; } .curtain-half.r::before { left: 0; }
.curtain-mark { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 14px; z-index: 2; }
.curtain-mark img { width: 34px; height: 60px; }
.curtain-mark span { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--avorio); }
.curtain-line { width: 120px; height: 1px; background: rgba(210, 178, 116, .25); position: relative; overflow: hidden; }
.curtain-line::after { content: ""; position: absolute; inset: 0; background: var(--ottone-chiaro); transform-origin: 0 50%; animation: load 1.2s var(--ease) forwards; }
@keyframes load { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 22px 0; transition: background .6s var(--ease), padding .6s var(--ease), border-color .6s; border-bottom: 1px solid transparent; }
.site-header.solid { background: rgba(46, 7, 13, .95); padding: 12px 0; border-bottom-color: rgba(163, 128, 63, .3); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 22px; height: 38px; object-fit: contain; }
.brand span { font-family: var(--serif); font-style: italic; font-size: 24px; }
.menu { display: flex; align-items: center; gap: 36px; list-style: none; }
.menu a:not(.btn) { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 237, 227, .82); position: relative; padding: 6px 0; }
.menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ottone-chiaro); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.menu a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.menu .btn { min-height: 42px; padding: 0 20px; }
@media (max-width: 900px) { .menu li:not(:last-child) { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } .menu .btn { padding: 0 16px; letter-spacing: .22em; } }

/* ==========================================================
   HERO — il biglietto sul tavolo
   ========================================================== */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 90px; }
.spot { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(46% 60% at 68% 46%, rgba(255, 214, 170, .22), transparent 70%), radial-gradient(80% 60% at 50% 120%, rgba(0,0,0,.55), transparent 70%); }
.dust { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero-copy .kicker { margin-bottom: 26px; }
.hero-copy .lede { margin-top: 28px; }
.hero-copy .btns { margin-top: 40px; }
@media (max-width: 900px) {
  .hero { padding: 104px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; }
  .table { order: -1; }
  .hero-copy { text-align: center; } .hero-copy .lede { margin-left: auto; margin-right: auto; } .hero-copy .btns { justify-content: center; }
}

.table { position: relative; height: clamp(420px, 46vw, 600px); perspective: 1400px; }
@media (max-width: 900px) { .table { height: 440px; } }
@media (max-width: 480px) { .table { height: 390px; } }

.invite {
  position: absolute; left: 50%; top: 50%; width: clamp(230px, 25vw, 340px); aspect-ratio: 5 / 7;
  transform: translate(-50%, -50%) rotate(-5deg); perspective: 1000px; z-index: 2;
}
.invite-inner {
  position: absolute; inset: 0; border-radius: 3px; overflow: hidden;
  background: radial-gradient(120% 90% at 30% 10%, #FBF7EF, var(--carta) 55%, #E9DFCF);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 2px 3px rgba(0,0,0,.25), 0 30px 60px -18px rgba(0,0,0,.65), 0 60px 90px -40px rgba(0,0,0,.6);
  will-change: transform;
}
.invite-inner::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; }
.invite-frame {
  position: absolute; inset: 14px; border: 1px solid rgba(163, 128, 63, .8); outline: 1px solid rgba(163, 128, 63, .35); outline-offset: -6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 22px 16px; color: var(--velluto);
}
.invite-k { font-size: 8.5px; letter-spacing: .42em; text-transform: uppercase; color: var(--ottone); }
.invite-logo { width: 62%; margin: 22px 0 18px; }
.invite-rule { display: block; width: 40px; height: 1px; background: var(--ottone); }
.invite-t { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.4vw, 32px); margin-top: 14px; color: var(--velluto); }
.invite-s { font-size: 8.5px; letter-spacing: .38em; text-transform: uppercase; color: var(--grigio); margin-top: 8px; }
.foil { position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 236, 190, .55) 48%, rgba(255,255,255,.75) 50%, rgba(255, 236, 190, .5) 52%, transparent 60%); mix-blend-mode: soft-light; transform: translateX(-60%); pointer-events: none; }

.seal {
  position: absolute; right: -22px; bottom: 36px; width: 84px; height: 84px; z-index: 3; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 36% 30%, #B52E40 0%, #7E1623 45%, #4A0D16 100%);
  box-shadow: 0 0 0 4px #7E1623, 0 0 0 5px rgba(0,0,0,.15), 3px 6px 14px rgba(0,0,0,.55), inset -4px -6px 10px rgba(0,0,0,.35), inset 3px 4px 6px rgba(255,150,160,.25);
}
.seal::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px solid rgba(255, 190, 190, .18); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.seal img { width: 22px; height: 38px; filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)) drop-shadow(0 -1px 0 rgba(255,200,200,.2)); }
@media (max-width: 480px) { .seal { width: 66px; height: 66px; right: -12px; } .seal img { width: 18px; height: 30px; } }

.note-card {
  position: absolute; left: 50%; top: 50%; width: clamp(170px, 18vw, 240px); aspect-ratio: 4 / 3; z-index: 1;
  transform: translate(-4%, -98%) rotate(9deg);
  background: linear-gradient(160deg, #221B1C, var(--nero)); border: 1px solid rgba(163, 128, 63, .55); border-radius: 2px;
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
}
.note-k, .note-s { font-size: 8.5px; letter-spacing: .36em; text-transform: uppercase; color: rgba(210, 178, 116, .8); }
.note-card p { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 28px); line-height: 1.05; background: var(--gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .4em; text-transform: uppercase; color: rgba(243,237,227,.6); }
.scroll-cue i { width: 1px; height: 46px; background: linear-gradient(var(--ottone-chiaro), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px), (max-width: 900px) { .scroll-cue { display: none; } }

/* ==========================================================
   IL PORTONE — solo trasformazioni 2D (stabile su Safari/WebKit)
   ========================================================== */
.door-sec { position: relative; background: var(--vino); overflow: hidden; }
.door-stage { position: relative; height: 100vh; height: var(--app-h, 100svh); display: grid; place-items: center; overflow: hidden; background: radial-gradient(60% 60% at 50% 55%, #4A0D16, var(--vino) 70%, #1C0408); }
.door-above { position: absolute; top: 13vh; left: 0; right: 0; text-align: center; }
.arch-wrap { position: relative; width: min(58vw, 340px); aspect-ratio: 1 / 1.62; }
.arch-ring { position: absolute; inset: -10px; border-radius: 999px 999px 0 0; border: 1px solid rgba(163,128,63,.45); pointer-events: none; }
.arch {
  position: absolute; inset: 0; border-radius: 999px 999px 0 0; overflow: hidden;
  border: 2px solid var(--ottone); background: #1A0509;
  box-shadow: 0 40px 120px rgba(0,0,0,.6);
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* forza il ritaglio arrotondato su Safari */
}
.arch-light { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(70% 55% at 50% 62%, #FFF6E6, #F3E4C8 45%, #D9BE8E 100%); }
.arch-word { font-family: var(--serif); font-style: italic; font-size: clamp(30px, 4vw, 46px); color: var(--velluto); margin-top: 32%; }
.lunette {
  position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 2 / 1; z-index: 3; border-radius: 999px 999px 0 0; border-bottom: 2px solid var(--ottone);
  background: repeating-conic-gradient(from -90deg at 50% 100%, rgba(163,128,63,.9) 0deg .7deg, transparent .7deg 15deg), rgba(26,5,9,.55);
}
.lunette::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 22%; aspect-ratio: 2 / 1; transform: translateX(-50%); border-radius: 999px 999px 0 0; background: var(--ottone); }
.leaf {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 2;
  background: linear-gradient(90deg, rgba(0,0,0,.25), transparent 20%, transparent 80%, rgba(0,0,0,.25)), linear-gradient(180deg, #5A101B, #3A0A12);
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6%; padding: 0 12% 12%;
}
.leaf::after { content: ""; position: absolute; inset: 0; background: #000; opacity: var(--shade, 0); pointer-events: none; }
.leaf i { display: block; border: 1px solid rgba(163, 128, 63, .75); box-shadow: inset 0 0 0 5px rgba(0,0,0,.18), inset 0 0 0 6px rgba(163,128,63,.35); }
.leaf i:first-child { height: 36%; } .leaf i:last-child { height: 20%; }
.leaf.l { left: 0; transform-origin: 0% 50%; border-right: 1px solid rgba(0,0,0,.6); transform: scaleX(.06); }
.leaf.r { right: 0; transform-origin: 100% 50%; border-left: 1px solid rgba(163,128,63,.3); transform: scaleX(.06); }
.door-after { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); gap: 24px; opacity: 0; pointer-events: none; }
html:not(.js) .door-after, .no-anim .door-after { position: relative; inset: auto; opacity: 1; background: var(--avorio); padding: 120px var(--gutter); }

/* ==========================================================
   IL PERCORSO — si entra di porta in porta
   ========================================================== */
.tempo { position: relative; background: var(--nero); overflow: hidden; height: 100vh; height: var(--app-h, 100svh); display: flex; flex-direction: column; }
.tempo-head { padding-top: clamp(84px, 10vw, 112px); padding-bottom: 8px; position: relative; z-index: 20; }
.tempo-head .kicker { display: block; margin-bottom: 14px; }
.tempo-head .display { font-size: clamp(32px, 4.6vw, 70px); }
.steps-view { position: relative; flex: 1; min-height: 0; }
.steps-track { position: relative; width: 100%; height: 100%; }
.step { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw; padding: 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) 86px; isolation: isolate; overflow: hidden; }

.step::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--grain); opacity: .22; pointer-events: none; }
.tone-v { background: radial-gradient(80% 90% at 72% 45%, #8E1E2C, var(--velluto) 40%, var(--velluto-scuro) 85%); }
.tone-n { background: radial-gradient(50% 70% at 72% 45%, rgba(163,128,63,.2), transparent 70%), linear-gradient(#1D1718, var(--nero)); }
.step-text { position: relative; max-width: 500px; }
.step-num { position: absolute; left: -.04em; top: -.62em; z-index: -1; font-family: var(--serif); font-style: italic; font-size: clamp(130px, 17vw, 280px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(210, 178, 116, .32); pointer-events: none; user-select: none; }
.step-k { font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone-chiaro); display: flex; align-items: center; gap: 14px; }
.step-k::before { content: ""; width: 34px; height: 1px; background: var(--ottone-chiaro); }
.step h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(44px, 5.2vw, 82px); line-height: 1; margin-top: 16px; }
.step p { font-family: var(--serif); font-size: clamp(18px, 1.55vw, 23px); line-height: 1.55; margin-top: 20px; color: rgba(243, 237, 227, .84); }
.step-tags { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(210, 178, 116, .3); }
.step-tags span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243, 237, 227, .7); }
.step-visual { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }

.arch-frame {
  position: relative; width: min(26vw, 360px, 46vh); aspect-ratio: 3 / 4; border: 1px solid var(--ottone); border-radius: 999px 999px 0 0;
  display: grid; place-items: center; overflow: hidden; cursor: pointer; padding: 0; color: var(--ottone-chiaro);
  background: radial-gradient(70% 60% at 50% 55%, rgba(210, 178, 116, .16), transparent 70%);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transition: box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.arch-frame:hover, .arch-frame:focus-visible { box-shadow: 0 0 0 6px rgba(210,178,116,.12), 0 0 60px rgba(210,178,116,.25); outline: none; }
.arch-frame::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(210, 178, 116, .3); border-radius: 999px 999px 0 0; pointer-events: none; z-index: 2; }
.arch-frame svg { width: 74%; height: auto; overflow: visible; position: relative; z-index: 1; }
.arch-frame .base { position: absolute; left: 18%; right: 18%; bottom: 13%; height: 1px; background: rgba(210,178,116,.35); z-index: 1; }
.arch-next { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; opacity: 0; color: var(--avorio); text-align: center; padding: 0 12%; }
.arch-next .an-k { font-family: var(--sans); font-size: 9.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone-chiaro); }
.arch-next .an-num { font-family: var(--serif); font-style: italic; font-size: 64px; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ottone-chiaro); }
.arch-next .an-t { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; }
.arch-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--ottone-chiaro); }
.arch-hint i { width: 26px; height: 1px; background: var(--ottone-chiaro); position: relative; animation: hint 1.8s var(--ease) infinite; transform-origin: left; }
@keyframes hint { 0% { transform: scaleX(.3); } 60% { transform: scaleX(1); } 100% { transform: scaleX(.3); } }

.draw [pathLength] { stroke-dasharray: 1; stroke-dashoffset: 0; }
.svg-line { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.k-key { animation: keyIn 4.4s var(--ease) infinite; }
@keyframes keyIn { 0%, 15% { transform: translateX(-26px); } 45%, 70% { transform: translateX(0); } 100% { transform: translateX(-26px); } }
.k-glow { animation: glow 4.4s ease-in-out infinite; transform-origin: 178px 120px; transform-box: view-box; }
@keyframes glow { 0%, 40% { opacity: 0; transform: scale(.6); } 55%, 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2); } }
.ring-dash { animation: spin 18s linear infinite; transform-origin: 120px 120px; transform-box: view-box; }
.scanline { animation: scan 3.2s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translateY(-58px); } to { transform: translateY(58px); } }
.dot { opacity: 0; animation: dot 3.2s ease-in-out infinite; }
.dot:nth-of-type(2) { animation-delay: .5s; } .dot:nth-of-type(3) { animation-delay: 1s; } .dot:nth-of-type(4) { animation-delay: 1.5s; } .dot:nth-of-type(5) { animation-delay: 2s; }
@keyframes dot { 0%, 100% { opacity: 0; } 30%, 60% { opacity: 1; } }
.blade-a, .blade-b { transform-origin: 120px 112px; transform-box: view-box; }
.blade-a { animation: snipA 1.6s var(--ease) infinite; }
.blade-b { animation: snipB 1.6s var(--ease) infinite; }
@keyframes snipA { 0%, 100% { transform: rotate(-9deg); } 45% { transform: rotate(3deg); } }
@keyframes snipB { 0%, 100% { transform: rotate(9deg); } 45% { transform: rotate(-3deg); } }
.steam { animation: steam 3.6s ease-in-out infinite; }
.steam:nth-of-type(2) { animation-delay: 1.2s; } .steam:nth-of-type(3) { animation-delay: 2.4s; }
@keyframes steam { 0% { transform: translateY(16px); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
.drop { animation: drop 2.4s ease-in infinite; }
.drop:nth-of-type(2) { animation-delay: .8s; } .drop:nth-of-type(3) { animation-delay: 1.6s; }
@keyframes drop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(92px); opacity: 0; } }
.hg { transform-origin: 120px 120px; transform-box: view-box; }
.sand-t { transform-origin: 120px 116px; transform-box: view-box; }
.sand-b { transform-origin: 120px 196px; transform-box: view-box; }
.sand-flow { animation: sand 1.2s linear infinite; }
@keyframes sand { to { stroke-dashoffset: -12; } }

.steps-nav { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 30; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.steps-nav ol { list-style: none; display: flex; gap: clamp(8px, 2.4vw, 36px); align-items: center; }
.steps-nav button { background: none; border: 0; cursor: pointer; padding: 6px 2px; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 237, 227, .42); transition: color .5s; white-space: nowrap; display: inline-flex; align-items: baseline; gap: 8px; }
.steps-nav button b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 15px; letter-spacing: 0; }
.steps-nav button:hover, .steps-nav li.on button { color: var(--ottone-chiaro); }
.steps-nav .bar { width: min(560px, 80vw); height: 1px; background: rgba(210, 178, 116, .2); }
.steps-nav .bar i { display: block; height: 100%; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 899px) {
  .tempo-head { padding-top: 78px; }
  .tempo-head .kicker { margin-bottom: 8px; }
  .step { grid-template-columns: 1fr; align-content: center; gap: 22px; padding: 0 var(--gutter) 70px; text-align: left; }
  .step-visual { order: -1; flex-direction: row; gap: 18px; justify-self: start; align-items: flex-end; }
  .arch-frame { width: min(40vw, 190px, 28vh); }
  .arch-next .an-num { font-size: 40px; } .arch-next .an-t { font-size: 18px; }
  .step-num { font-size: 110px; top: -.5em; }
  .step h3 { font-size: clamp(36px, 10vw, 48px); margin-top: 10px; }
  .step p { font-size: 17px; margin-top: 12px; }
  .step-tags { margin-top: 14px; padding-top: 12px; }
  .steps-nav button span { display: none; }
  .steps-nav button b { font-size: 18px; }
}
@media (max-width: 899px) and (max-height: 760px) { .step-tags { display: none; } .step p { font-size: 16px; } }

/* ==========================================================
   IL PRIMO
   ========================================================== */
.primo { padding: clamp(110px, 14vw, 190px) 0; overflow: hidden; }
.primo-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .primo-grid { grid-template-columns: 1fr; } }
.primo-word svg { width: 100%; overflow: visible; }
.primo-text { font-family: var(--serif); font-style: italic; font-size: 220px; fill: url(#goldGrad); stroke: var(--ottone-chiaro); stroke-width: 1.2; }
.primo-copy .lede { margin-top: 24px; }
.badge { position: absolute; right: 0; top: -90px; width: 150px; height: 150px; display: grid; place-items: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.badge text { font-family: var(--sans); font-size: 12px; letter-spacing: 0; fill: var(--ottone-chiaro); }
.badge img { width: 26px; height: 46px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .badge { position: relative; top: 0; margin: 10px auto 0; width: 130px; height: 130px; } }

/* ==========================================================
   I RITUALI — carte
   ========================================================== */
.rituali { padding: clamp(110px, 13vw, 170px) 0 clamp(90px, 10vw, 130px); overflow: hidden; }
.sec-head .kicker { display: block; margin-bottom: 22px; }
.sec-head .lede { margin-top: 24px; }
.deck { display: flex; justify-content: center; gap: clamp(18px, 3vw, 40px); margin-top: 80px; flex-wrap: wrap; }
.pcard { width: clamp(230px, 24vw, 300px); aspect-ratio: 5 / 8; border: 0; background: none; cursor: pointer; padding: 0; perspective: 1200px; text-align: center; color: inherit; }
.pcard-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1s var(--ease); }
.pcard.flipped .pcard-inner { transform: rotateY(180deg); }
html:not(.js) .pcard:focus .pcard-inner, html:not(.js) .pcard:hover .pcard-inner { transform: rotateY(180deg); }
.pcard:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: 8px; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 24px; overflow: hidden; }
.face::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(163, 128, 63, .7); border-radius: 3px; pointer-events: none; }
.front { background: radial-gradient(120% 90% at 30% 10%, #FBF7EF, var(--carta) 55%, #E6DBC9); color: var(--velluto); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7), 0 2px 4px rgba(0,0,0,.2); }
.back { background: radial-gradient(120% 90% at 50% 0%, #2A2122, var(--nero)); color: var(--avorio); transform: rotateY(180deg); box-shadow: 0 30px 60px -24px rgba(0,0,0,.7); }
.pc-num { font-family: var(--serif); font-style: italic; font-size: 76px; line-height: 1; color: var(--ottone); }
.pc-num.sm { font-size: 34px; margin-bottom: 16px; }
.pc-name { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.05; margin-top: 18px; }
.pc-sub { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--grigio); margin-top: 14px; line-height: 1.6; }
.pc-icon { width: 20px; height: 34px; margin-top: 30px; opacity: .85; }
.pc-tag { position: absolute; top: 28px; font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--vino); background: var(--gold); padding: 5px 10px; }
.pcard.sig .front { background: radial-gradient(120% 90% at 30% 10%, #9A2433, var(--velluto) 50%, var(--velluto-scuro)); color: var(--avorio); }
.pcard.sig .front .pc-sub { color: rgba(243,237,227,.7); }
.pc-desc { font-family: var(--serif); font-size: 21px; line-height: 1.4; }
.pc-list { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.pc-list span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--ottone-chiaro); }
.deck-foot { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hint { font-family: var(--serif); font-style: italic; font-size: 19px; color: rgba(243,237,227,.7); }
.app-badge { display: inline-flex; align-items: center; gap: 12px; border: 1px solid rgba(210, 178, 116, .5); padding: 12px 18px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ottone-chiaro); text-align: left; }
.app-badge i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ottone-chiaro); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2; } }

/* ---------- Nastro ---------- */
.ribbon { background: var(--gold); background-size: 200% 100%; color: var(--vino); overflow: hidden; padding: 18px 0; border-top: 1px solid rgba(0,0,0,.2); border-bottom: 1px solid rgba(0,0,0,.2); }
.ribbon-track { display: flex; align-items: center; gap: 34px; width: max-content; white-space: nowrap; will-change: transform; }
.ribbon span { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 40px); }
.ribbon b { font-size: 14px; font-weight: 400; }

/* ---------- Video ---------- */
.video-sec { background: var(--nero); padding: clamp(100px, 12vw, 160px) 0; }
.screen { margin-top: 60px; aspect-ratio: 16 / 9; position: relative; overflow: hidden; border-radius: 6px; }
.screen-in { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 50% 60%, rgba(163,128,63,.25), transparent 70%), linear-gradient(90deg, transparent 0 33%, rgba(255,255,255,.06) 33% calc(33% + 1px), transparent calc(33% + 1px) 66%, rgba(255,255,255,.06) 66% calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(#3C3536, #161213); }
.screen-in::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; }
.play { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; border: 1px solid var(--ottone-chiaro); display: grid; place-items: center; }
.play::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--ottone-chiaro); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.play i { margin-left: 6px; border-left: 18px solid var(--ottone-chiaro); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.screen-cap { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; z-index: 1; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: rgba(243,237,227,.6); }

/* ==========================================================
   LAVORA CON NOI — la lettera
   ========================================================== */
.join { padding: clamp(110px, 13vw, 170px) 0; }
.join-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 960px) { .join-grid { grid-template-columns: 1fr; } }
.join-copy .kicker { display: block; margin-bottom: 22px; }
.join-copy .lede { margin-top: 26px; }
.values { list-style: none; margin-top: 46px; border-top: 1px solid rgba(210, 178, 116, .3); }
.values li { display: grid; grid-template-columns: 50px 1fr; padding: 22px 0; border-bottom: 1px solid rgba(210, 178, 116, .3); }
.values li > span { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ottone-chiaro); }
.values b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.2; }
.values em { font-style: normal; font-size: 14.5px; color: rgba(243,237,227,.68); }

.letter-wrap { position: relative; padding-top: 34px; }
.letter {
  position: relative; color: var(--testo); padding: clamp(50px, 5vw, 64px) clamp(22px, 4vw, 54px) clamp(34px, 4vw, 50px);
  background:
    linear-gradient(180deg, transparent 33.2%, rgba(0,0,0,.05) 33.33%, transparent 33.6%, transparent 66.5%, rgba(0,0,0,.05) 66.66%, transparent 67%),
    radial-gradient(120% 80% at 30% 0%, #FBF7EF, var(--carta) 60%, #EADFCD);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 2px 4px rgba(0,0,0,.2);
}
.letter::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .22; pointer-events: none; }
.letter-seal { position: absolute; left: 50%; top: 0; width: 68px; height: 68px; margin-left: -34px; z-index: 2; display: grid; place-items: center; }
.letter-seal .hs { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #B52E40 0%, #7E1623 45%, #4A0D16 100%); box-shadow: 3px 6px 12px rgba(0,0,0,.45), inset -3px -5px 8px rgba(0,0,0,.35); }
.letter-seal .hs.l { clip-path: polygon(0 0, 52% 0, 46% 30%, 54% 55%, 47% 100%, 0 100%); }
.letter-seal .hs.r { clip-path: polygon(52% 0, 100% 0, 100% 100%, 47% 100%, 54% 55%, 46% 30%); }
.letter-seal img { position: relative; width: 18px; height: 32px; }
.letter-head { text-align: center; position: relative; }
.lk { font-size: 9.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone); }
.letter-head h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; color: var(--velluto); margin-top: 10px; }

.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; margin-top: 36px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-size: 10px; font-weight: 400; letter-spacing: .28em; text-transform: uppercase; color: var(--velluto); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(110, 20, 32, .3); border-radius: 0;
  color: var(--testo); font-family: var(--serif); font-size: 21px; padding: 6px 0 10px; outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .3s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(42, 36, 37, .35); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ottone); }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--velluto) 50%), linear-gradient(135deg, var(--velluto) 50%, transparent 50%); background-position: calc(100% - 14px) 55%, calc(100% - 9px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 26px; }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.4; }
fieldset.field { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; }
.chip input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 10px 16px; border: 1px solid rgba(110, 20, 32, .35); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--velluto); cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.chip input:checked + span { background: var(--velluto); border-color: var(--velluto); color: var(--avorio); }
.chip input:focus-visible + span { outline: 1px solid var(--ottone); outline-offset: 3px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 13px; line-height: 1.55; color: var(--grigio); }
.consent input { width: 16px; height: 16px; margin-top: 3px; accent-color: var(--velluto); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { width: 100%; }
.form-msg { display: none; text-align: center; padding: 40px 0 10px; }
.form-msg.show { display: block; }
.form-msg img { width: 24px; height: 42px; margin: 0 auto 16px; }
.form-msg h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 44px; color: var(--velluto); }
.form-msg p { margin-top: 10px; color: var(--grigio); }
.preview-note { font-size: 12px; letter-spacing: .1em; }
.sent .form { display: none; }
.tbd { border-bottom: 1px dashed var(--ottone); }

/* ==========================================================
   APERTURA — biglietto numerato
   ========================================================== */
.apertura { padding: clamp(110px, 13vw, 170px) 0 clamp(80px, 9vw, 120px); overflow: hidden; }
.apertura .kicker { display: block; margin-bottom: 22px; }
.apertura .lede { margin-top: 24px; }
.ticket { position: relative; margin: 64px auto 0; max-width: 780px; display: grid; grid-template-columns: 1fr 150px; color: var(--testo); filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); text-align: left; }
.ticket-main, .ticket-stub { background: radial-gradient(120% 120% at 20% 0%, #FBF7EF, var(--carta) 60%, #E9DECB); }
.ticket-main { padding: 34px 40px 36px; -webkit-mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000); mask: radial-gradient(circle 14px at 0 50%, transparent 98%, #000); }
.ticket-stub { border-left: 2px dashed rgba(110, 20, 32, .35); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; -webkit-mask: radial-gradient(circle 14px at 100% 50%, transparent 98%, #000); mask: radial-gradient(circle 14px at 100% 50%, transparent 98%, #000); }
.ticket-stub span { font-size: 10px; letter-spacing: .3em; color: var(--ottone); }
.ticket-stub b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 46px; line-height: 1; color: var(--velluto); }
.ticket-stub img { width: 16px; height: 28px; margin-top: 10px; }
.tk { font-size: 9.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone); }
.wait { display: grid; grid-template-columns: 1fr 1fr auto; gap: 18px; align-items: end; margin-top: 20px; }
.wait .btn { min-height: 48px; padding: 0 24px; }
.wait-msg { display: none; margin-top: 18px; font-family: var(--serif); font-style: italic; font-size: 26px; color: var(--velluto); }
.wait-msg.show { display: block; }
@media (max-width: 700px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-main { padding: 30px 24px; -webkit-mask: none; mask: none; }
  .ticket-stub { border-left: 0; border-top: 2px dashed rgba(110,20,32,.35); flex-direction: row; padding: 14px; -webkit-mask: none; mask: none; }
  .ticket-stub b { font-size: 32px; } .ticket-stub img { margin: 0 0 0 10px; }
  .wait { grid-template-columns: 1fr; }
}
.address { margin-top: 70px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; font-size: 11.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243,237,227,.7); }
.address a { border-bottom: 1px solid var(--ottone-chiaro); color: var(--ottone-chiaro); }

/* ---------- Footer ---------- */
.site-footer { background: var(--nero); color: rgba(243, 237, 227, .7); padding: 90px 0 36px; text-align: center; }
.foot-logo { width: 140px; margin: 0 auto; }
.phr { font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ottone-chiaro); margin-top: 26px; }
.foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 30px; margin-top: 34px; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; }
.foot-links a:hover { color: var(--ottone-chiaro); }
.foot-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid rgba(163, 128, 63, .22); font-size: 11px; letter-spacing: .14em; color: rgba(243, 237, 227, .45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  .display em, .title em, .badge svg, .app-badge i, .play::before, .scroll-cue i { animation: none; }
  .js .curtain { display: none; }
}

.door-k { color: var(--ottone); }

/* ---------- Prenota (versione post apertura) ---------- */
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.book-actions .btn { min-height: 50px; }
.btn-outline-v { color: var(--velluto); border-color: var(--velluto); }
.btn-outline-v::before { background: var(--velluto); }
.btn-outline-v:hover { color: var(--avorio); }
.book-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px dashed rgba(110, 20, 32, .3); }
.book-info span { font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--ottone); }
.book-info p { font-family: var(--serif); font-size: 20px; color: var(--testo); margin-top: 4px; }
@media (max-width: 520px) { .book-info { grid-template-columns: 1fr; } .book-actions .btn { width: 100%; } }

/* ==========================================================
   L'ANELLO — al posto del sigillo
   ========================================================== */
.ring { position: absolute; right: -118px; bottom: -86px; width: clamp(220px, 22vw, 330px); aspect-ratio: 1; z-index: 3; user-select: none; -webkit-user-select: none; }
.ring::after { content: "Ruotalo"; position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-family: var(--sans); font-size: 9px; letter-spacing: .34em; text-transform: uppercase; color: rgba(243,237,227,.75); white-space: nowrap; opacity: 0; transition: opacity .8s var(--ease); pointer-events: none; }
.ring.ring-ready::after { opacity: 1; animation: ruota 2.6s ease-in-out 2.5s infinite; }
.ring.ring-touched::after { opacity: 0 !important; animation: none; }
@keyframes ruota { 0%, 100% { letter-spacing: .34em; } 50% { letter-spacing: .44em; } }
.ring::before { content: ""; position: absolute; left: 18%; right: 18%; bottom: 8%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(4px); }
.ring canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.ring.ring-ready canvas { opacity: 1; }
.ring-fb { display: none; position: absolute; left: 22%; top: 18%; width: 56%; aspect-ratio: 3 / 4; object-fit: cover; clip-path: polygon(19% 0, 81% 0, 100% 14%, 100% 86%, 81% 100%, 19% 100%, 0 86%, 0 14%); box-shadow: 0 10px 20px rgba(0,0,0,.5); }
.ring-fallback .ring-fb { display: block; }
@media (max-width: 900px) { .ring { right: -70px; bottom: -60px; width: 190px; } }
@media (max-width: 480px) { .ring { right: -44px; bottom: -64px; width: 168px; } }

/* ==========================================================
   CARTE DEI PERCORSI — bianco, rosso, nero e oro
   ========================================================== */
.pcard.lv2 .front { background: radial-gradient(120% 90% at 30% 10%, #A0293A, var(--velluto) 50%, var(--velluto-scuro)); color: var(--avorio); }
.pcard.lv2 .front .pc-sub { color: rgba(243,237,227,.72); }
.pcard.lv2 .front .pc-num { color: var(--ottone-chiaro); }
.pcard.sig .front { background: radial-gradient(120% 90% at 30% 0%, #2B2223, var(--nero) 60%); color: var(--ottone-chiaro); box-shadow: 0 30px 60px -24px rgba(0,0,0,.8), 0 0 0 1px rgba(210,178,116,.5); }
.pcard.sig .front::after { border-color: var(--ottone-chiaro); box-shadow: inset 0 0 0 4px rgba(0,0,0,.4), inset 0 0 0 5px rgba(210,178,116,.35); }
.pcard.sig .front .pc-name { background: var(--gold); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard.sig .front .pc-sub { color: rgba(243,237,227,.6); }
.pcard.sig .front .pc-num { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard .back { background: radial-gradient(120% 90% at 50% 0%, #FBF7EF, var(--carta) 60%, #E6DBC9); color: var(--velluto); }
.pcard .back .pc-list span { color: var(--ottone); }
.pcard.lv2 .back { background: radial-gradient(120% 90% at 50% 0%, #8E1E2C, var(--velluto-scuro)); color: var(--avorio); }
.pcard.lv2 .back .pc-list span { color: var(--ottone-chiaro); }
.pcard.sig .back { background: radial-gradient(120% 90% at 50% 0%, #2A2122, var(--nero)); color: var(--avorio); }
.pcard.sig .back .pc-list span { color: var(--ottone-chiaro); }
.deck-foot .btn { margin-bottom: 4px; }

/* ==========================================================
   MENU & PRENOTAZIONE — pannello a scomparsa
   ========================================================== */
.mp { position: fixed; inset: 0; z-index: 95; visibility: hidden; pointer-events: none; }
.mp.open { visibility: visible; pointer-events: auto; }
html.mp-lock, html.mp-lock body { overflow: hidden; }
.mp-bg { position: absolute; inset: 0; background: rgba(20, 4, 8, .7);  opacity: 0; }
.mp-panel { position: absolute; inset: 0; display: flex; flex-direction: column; color: var(--avorio);
  background: radial-gradient(120% 80% at 50% -10%, #8E1E2C 0%, var(--velluto) 35%, var(--velluto-scuro) 75%, var(--vino) 100%);
  clip-path: inset(0 0 100% 0); }
.mp-top { display: flex; justify-content: space-between; align-items: center; padding: 18px var(--gutter); border-bottom: 1px solid rgba(210,178,116,.3); }
.mp-brand { display: flex; align-items: center; gap: 14px; }
.mp-brand img { width: 20px; height: 34px; }
.mp-brand span { font-family: var(--serif); font-style: italic; font-size: 24px; }
.mp-close { position: relative; width: 48px; height: 48px; border: 1px solid rgba(210,178,116,.5); border-radius: 50%; background: none; cursor: pointer; }
.mp-close i { position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: var(--ottone-chiaro); transform: rotate(45deg); }
.mp-close i + i { transform: rotate(-45deg); }
.mp-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.5fr 1fr; }
.mp-menu { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid rgba(210,178,116,.25); }
.mp-tabs { display: flex; gap: 8px; padding: 18px var(--gutter); overflow-x: auto; scrollbar-width: none; }
.mp-tabs::-webkit-scrollbar { display: none; }
.mp-tab { flex: none; display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border: 1px solid rgba(210,178,116,.4); background: transparent; color: rgba(243,237,227,.8); cursor: pointer; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; transition: background .4s, color .4s, border-color .4s; }
.mp-tab b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 16px; letter-spacing: 0; }
.mp-tab.tier-w[aria-selected="true"] { background: var(--carta); color: var(--velluto); border-color: var(--carta); }
.mp-tab.tier-r[aria-selected="true"] { background: var(--velluto-chiaro); color: var(--avorio); border-color: var(--ottone-chiaro); }
.mp-tab.tier-n[aria-selected="true"] { background: var(--nero); color: var(--ottone-chiaro); border-color: var(--ottone-chiaro); }
.mp-tab.tier-a[aria-selected="true"] { background: rgba(210,178,116,.15); color: var(--ottone-chiaro); border-color: var(--ottone-chiaro); }
.mp-lists { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--gutter) 40px; overscroll-behavior: contain; }
.mp-list { border-radius: 4px; padding: clamp(22px, 3vw, 36px); position: relative; }
.mp-list.tier-w { background: radial-gradient(120% 80% at 30% 0%, #FBF7EF, var(--carta) 60%, #E8DECD); color: var(--testo); }
.mp-list.tier-r { background: radial-gradient(120% 80% at 30% 0%, #9A2433, var(--velluto) 55%, var(--velluto-scuro)); color: var(--avorio); box-shadow: inset 0 0 0 1px rgba(210,178,116,.3); }
.mp-list.tier-n { background: radial-gradient(120% 80% at 30% 0%, #2A2122, var(--nero) 60%); color: var(--avorio); box-shadow: inset 0 0 0 1px rgba(210,178,116,.6), inset 0 0 0 6px rgba(0,0,0,.4), inset 0 0 0 7px rgba(210,178,116,.25); }
.mp-list.tier-a { background: rgba(20, 4, 8, .35); box-shadow: inset 0 0 0 1px rgba(210,178,116,.25); }
.mp-list-head { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.mp-num { font-family: var(--serif); font-style: italic; font-size: 56px; line-height: 1; color: var(--ottone); }
.tier-n .mp-num, .tier-r .mp-num, .tier-a .mp-num { color: var(--ottone-chiaro); }
.mp-list-head h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; }
.tier-w .mp-list-head h3 { color: var(--velluto); }
.tier-n .mp-list-head h3 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mp-list-head p { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; opacity: .7; margin-top: 6px; }
.mp-group h4 { font-size: 10.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--ottone); margin: 24px 0 6px; }
.tier-r .mp-group h4, .tier-n .mp-group h4, .tier-a .mp-group h4 { color: var(--ottone-chiaro); }
.mp-item { width: 100%; display: grid; grid-template-columns: 1fr auto 34px; gap: 16px; align-items: center; text-align: left; background: none; border: 0; border-bottom: 1px solid rgba(163,128,63,.35); padding: 15px 0; cursor: pointer; color: inherit; transition: background .35s; }
.mp-item:hover { background: rgba(163,128,63,.07); }
.mi-name { display: block; font-family: var(--serif); font-size: 21px; line-height: 1.2; }
.mi-desc { display: block; font-size: 13.5px; line-height: 1.5; opacity: .72; margin-top: 4px; max-width: 520px; }
.mi-meta { text-align: right; white-space: nowrap; }
.mi-dur { display: block; font-size: 10px; letter-spacing: .22em; text-transform: uppercase; opacity: .65; }
.mi-price { display: block; font-family: var(--serif); font-size: 22px; margin-top: 2px; font-variant-numeric: lining-nums tabular-nums; }
.mi-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid currentColor; opacity: .7; position: relative; transition: background .35s, opacity .35s, transform .5s var(--ease); }
.mi-add::before, .mi-add::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; background: currentColor; transform: translate(-50%, -50%); }
.mi-add::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.mp-item[aria-pressed="true"] .mi-add { background: var(--ottone); border-color: var(--ottone); opacity: 1; color: var(--vino); transform: rotate(180deg); }
.mp-item[aria-pressed="true"] .mi-add::after { transform: translate(-50%, -50%) rotate(0deg); }
.mp-item[aria-pressed="true"] .mi-name { font-style: italic; }

.mp-cart { overflow-y: auto; padding: 26px var(--gutter) 40px; background: rgba(20, 4, 8, .28); }
.mp-k { font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ottone-chiaro); }
.mp-cart h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(30px, 2.8vw, 40px); margin-top: 8px; line-height: 1.1; }
.mp-empty { font-family: var(--serif); font-size: 19px; color: rgba(243,237,227,.7); margin-top: 14px; }
.mp-sel { list-style: none; margin-top: 16px; }
.mp-sel li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(210,178,116,.25); font-family: var(--serif); font-size: 18px; }
.mp-sel li button { background: none; border: 0; color: rgba(243,237,227,.5); cursor: pointer; font-size: 18px; margin-left: 10px; }
.mp-tot { display: flex; justify-content: space-between; margin-top: 16px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,237,227,.7); }
.mp-tot b { display: block; font-family: var(--serif); font-weight: 400; font-size: 28px; letter-spacing: 0; text-transform: none; color: var(--ottone-chiaro); margin-top: 4px; }
.mp-tot span:last-child { text-align: right; }
.mp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; margin-top: 26px; padding-top: 22px; border-top: 1px solid rgba(210,178,116,.3); }
.mp-form .full { grid-column: 1 / -1; }
.mp-form .field label { color: var(--ottone-chiaro); }
.mp-form .field input, .mp-form .field select { color: var(--avorio); border-bottom-color: rgba(210,178,116,.45); font-size: 19px; }
.mp-form .field input::placeholder { color: rgba(243,237,227,.35); }
.mp-form .field select { background-image: linear-gradient(45deg, transparent 50%, var(--ottone-chiaro) 50%), linear-gradient(135deg, var(--ottone-chiaro) 50%, transparent 50%); }
.mp-form .field select option { color: var(--testo); }
.mp-form .field input[type="date"] { color-scheme: dark; }
.mp-form .consent { color: rgba(243,237,227,.65); }
.mp-form .consent input { accent-color: var(--ottone); }
.mp-form .btn { width: 100%; }
.mp-note { font-size: 12.5px; color: rgba(243,237,227,.55); }
.mp-done { display: none; text-align: center; padding: 50px 0 10px; }
.mp-done img { width: 22px; height: 38px; margin: 0 auto 14px; }
.mp-done h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; }
.mp-done p { margin-top: 10px; color: rgba(243,237,227,.7); }
.mp-cart.sent .mp-form, .mp-cart.sent .mp-empty { display: none; }
.mp-cart.sent .mp-done { display: block; }
.mp-bar { display: none; }
@media (max-width: 960px) {
  .mp-body { display: block; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 80px; }
  .mp-menu { border-right: 0; }
  .mp-lists { overflow: visible; }
  .mp-cart { overflow: visible; border-top: 1px solid rgba(210,178,116,.3); }
  .mp-form { grid-template-columns: 1fr; }
  .mp-bar { display: flex; justify-content: space-between; align-items: center; position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px 20px; background: var(--gold); color: var(--vino); font-size: 11px; letter-spacing: .24em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.4); transform: translateY(150%); transition: transform .5s var(--ease); }
  .mp-bar.show { transform: none; }
  .mp-bar b { font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
}
.menu .btn-gold { min-height: 42px; padding: 0 20px; }

/* percorso senza animazioni */
html:not(.js) .tempo, .no-anim .tempo { height: auto; display: block; }
html:not(.js) .step, .no-anim .step { position: relative; inset: auto; min-height: 90vh; }
html:not(.js) .steps-nav, .no-anim .steps-nav, html:not(.js) .arch-next, .no-anim .arch-next { display: none; }



/* ---------- Portale della porta (solo transform/opacity) ---------- */
.portal, .portal-glow, .portal-wave { position: absolute; border-radius: 999px 999px 0 0; pointer-events: none; will-change: transform, opacity; backface-visibility: hidden; }
.portal.tone-v { background: radial-gradient(60% 45% at 50% 62%, #B5394A, var(--velluto) 55%, var(--velluto-scuro)); }
.portal.tone-n { background: radial-gradient(60% 45% at 50% 62%, #3A2F2C, #1D1718 60%, var(--nero)); }
.portal-glow { background: radial-gradient(50% 45% at 50% 62%, rgba(255, 236, 190, .95), rgba(210, 178, 116, .45) 45%, rgba(210, 178, 116, 0) 72%); }
.portal-wave { border: 1px solid var(--ottone-chiaro); box-shadow: 0 0 24px rgba(210, 178, 116, .35), inset 0 0 18px rgba(210, 178, 116, .2); }
.step, .arch-frame { will-change: opacity, transform; }
.step::after { opacity: .18; }

/* ==========================================================
   I RITUALI — la scrivania del Palazzo
   ========================================================== */
.rituali { padding: 0; overflow: hidden; background: #140909; }
.rit-stage { position: relative; height: 100vh; height: var(--app-h, 100svh); overflow: hidden; background: #140909; }
.desk-tilt { position: absolute; inset: 0; perspective: 1400px; transform-origin: 50% 40%; will-change: transform; }
.desk {
  position: absolute; left: 0; top: 0; width: 240em; height: 160em; font-size: 10px; transform-origin: 0 0; will-change: transform;
  background:
    repeating-linear-gradient(91deg, rgba(0,0,0,.10) 0 .2em, transparent .2em .9em),
    repeating-linear-gradient(89deg, rgba(255,210,160,.035) 0 .1em, transparent .1em 2.3em),
    radial-gradient(55% 60% at 38% 32%, rgba(255,214,160,.16), transparent 70%),
    radial-gradient(80% 80% at 50% 50%, transparent 60%, rgba(0,0,0,.45)),
    linear-gradient(170deg, #4a2c1b 0%, #3a2216 45%, #2a170e 100%);
}
@media (max-width: 899px) { .desk { font-size: 6px; } }
.blotter {
  position: absolute; left: 30em; top: 26em; width: 180em; height: 108em; border-radius: .6em;
  background: radial-gradient(80% 70% at 40% 35%, #5a1a22, #3e0f16 70%, #2a0a0f);
  box-shadow: 0 1.2em 3em rgba(0,0,0,.55), inset 0 0 0 .5em #2a0a0f, inset 0 0 0 .62em #A3803F, inset 0 0 0 1.4em rgba(0,0,0,0), inset 0 0 0 1.5em rgba(163,128,63,.45);
}
.lamp { display: none; }
.obj { position: absolute; display: block; overflow: visible; }
.ashtray { left: 6em; top: 4em; width: 46em; }
.whisky { left: 198em; top: 6em; width: 34em; }
.razor { left: 108em; top: 138em; width: 54em; transform: rotate(-5deg); }
.pen { left: 178em; top: 134em; width: 52em; transform: rotate(16deg); }
.key { left: 14em; top: 130em; width: 36em; transform: rotate(-18deg); }
.ember { animation: ember 2.6s ease-in-out infinite; }
@keyframes ember { 50% { fill: #ffb070; opacity: .7; } }
.smoke path { stroke-dasharray: 60 260; animation: smoke 5s linear infinite; }
.smoke path + path { animation-delay: -2.5s; }
@keyframes smoke { from { stroke-dashoffset: 0; opacity: .9; } to { stroke-dashoffset: -320; opacity: 0; } }

/* biglietti sulla scrivania (misure in em: nitidi a ogni zoom) */
.desk .pcard.dk { position: absolute; width: 34em; aspect-ratio: auto; height: 54.4em; padding: 0; perspective: none; }
.desk .dk0 { left: 55em; top: 54.8em; transform: rotate(-8deg); }
.desk .dk1 { left: 103em; top: 48.8em; transform: rotate(5deg); }
.desk .dk2 { left: 151em; top: 56.8em; transform: rotate(-3deg); }
.desk .face { padding: 3em 2.4em; border-radius: .6em; }
.desk .face::after { inset: 1.2em; border-radius: .3em; }
.desk .front { box-shadow: 0 2.4em 4em -1.2em rgba(0,0,0,.75), 0 .2em .4em rgba(0,0,0,.3); }
.desk .pc-num { font-size: 7.6em; }
.desk .pc-name { font-size: 3.4em; margin-top: .5em; }
.desk .pc-sub { font-size: .95em; margin-top: 1.4em; }
.desk .pc-icon { width: 2em; height: 3.4em; margin-top: 3em; }
.desk .pc-tag { font-size: .85em; top: 3.2em; padding: .5em 1em; }

.rit-vignette { position: absolute; left: 0; right: 0; top: 0; height: 26%; pointer-events: none; background: linear-gradient(180deg, rgba(10,4,4,.6), transparent); z-index: 1; will-change: opacity; }
.rit-shade { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; will-change: opacity; background: linear-gradient(90deg, transparent 40%, rgba(18,7,7,.9) 52%, rgba(18,7,7,.96)); }
@media (max-width: 899px) { .rit-shade { background: linear-gradient(180deg, transparent 40%, rgba(18,7,7,.88) 60%, rgba(18,7,7,.95)); } }
.rit-head { position: absolute; left: 0; right: 0; top: clamp(90px, 13vh, 140px); z-index: 3; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.rit-head .kicker { display: block; margin-bottom: 18px; }
.rit-head .lede { margin-top: 18px; }
.rit-info { position: absolute; z-index: 3; left: 53%; right: calc(max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))) + 70px); top: 50%; height: 0; }
.ri { position: absolute; left: 0; right: 0; top: 0; transform: translateY(-50%); opacity: 0; visibility: hidden; }
.ri-k { display: flex; align-items: center; gap: 14px; font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone-chiaro); }
.ri-k b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 26px; letter-spacing: 0; }
.ri h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(40px, 4.6vw, 72px); line-height: 1; margin-top: 12px; }
.ri[data-ri="2"] h3 { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ri-sub { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243,237,227,.6); margin-top: 12px; }
.ri-text { font-family: var(--serif); font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: rgba(243,237,227,.88); margin-top: 20px; max-width: 520px; }
.ri-list { list-style: none; margin-top: 20px; border-top: 1px solid rgba(210,178,116,.3); max-width: 520px; }
.ri-list li { font-family: var(--serif); font-size: 18px; padding: 8px 0 8px 26px; border-bottom: 1px solid rgba(210,178,116,.2); position: relative; }
.ri-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ottone-chiaro); }
.ri-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; max-width: 520px; }
.ri-foot span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243,237,227,.6); }
.ri-btn { background: none; border: 0; border-bottom: 1px solid var(--ottone-chiaro); color: var(--ottone-chiaro); padding: 4px 0; cursor: pointer; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; }
.rit-end { position: absolute; left: 0; right: 0; bottom: clamp(36px, 6vh, 64px); z-index: 3; padding-top: 30px; background: linear-gradient(180deg, transparent, rgba(18,7,7,.75) 40%); display: flex; flex-direction: column; align-items: center; gap: 14px; opacity: 0; visibility: hidden; padding: 0 var(--gutter); }
.rit-end .hint { text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.rit-nav { position: absolute; right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); top: 50%; transform: translateY(-50%); z-index: 4; display: flex; flex-direction: column; gap: 10px; opacity: 0; }
.rit-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(210,178,116,.35); background: rgba(18,7,7,.4); color: rgba(243,237,227,.6); font-family: var(--serif); font-style: italic; font-size: 15px; cursor: pointer; transition: all .4s var(--ease); }
.rit-nav button.on { background: var(--ottone); border-color: var(--ottone); color: var(--vino); }
@media (max-width: 899px) {
  .rit-info { left: var(--gutter); right: var(--gutter); top: auto; bottom: 28px; height: auto; }
  .ri { top: auto; bottom: 0; transform: none; }
  .ri h3 { font-size: clamp(32px, 9vw, 42px); margin-top: 6px; }
  .ri-sub { display: none; }
  .ri-text { font-size: 16px; margin-top: 10px; }
  .ri-list { display: flex; flex-wrap: wrap; gap: 4px 16px; border: 0; margin-top: 10px; }
  .ri-list li { font-size: 14px; padding: 2px 0 2px 16px; border: 0; }
  .ri-list li::before { width: 8px; }
  .ri-foot { margin-top: 12px; }
  .ri-foot span { display: none; }
  .rit-nav { flex-direction: row; top: 76px; right: var(--gutter); transform: none; }
  .rit-nav button { width: 32px; height: 32px; font-size: 13px; }
  .rit-end .hint { font-size: 16px; }
}
@media (max-width: 899px) and (max-height: 720px) { .ri-text { display: none; } }

/* senza animazioni */
.no-anim .rit-stage, html:not(.js) .rit-stage { height: auto; padding: 110px 0 90px; }
.no-anim .desk-tilt, html:not(.js) .desk-tilt { position: relative; height: 70vw; max-height: 640px; overflow: hidden; }
.no-anim .desk, html:not(.js) .desk { transform: scale(.5); }
.no-anim .rit-head, .no-anim .rit-info, .no-anim .rit-end, html:not(.js) .rit-head, html:not(.js) .rit-info, html:not(.js) .rit-end { position: relative; inset: auto; top: auto; left: auto; right: auto; bottom: auto; transform: none; height: auto; }
.no-anim .ri, html:not(.js) .ri { position: relative; transform: none; opacity: 1; visibility: visible; margin: 40px auto; max-width: 620px; padding: 0 var(--gutter); }
.no-anim .rit-end, html:not(.js) .rit-end { opacity: 1; visibility: visible; }
.no-anim .rit-nav, .no-anim .rit-shade, html:not(.js) .rit-nav, html:not(.js) .rit-shade { display: none; }

/* livelli separati: fumo e biglietti non costringono a ridisegnare la scrivania */
.desk .pcard.dk, .desk .ashtray { will-change: transform; backface-visibility: hidden; }

/* ---------- Passaggio morbido "Il primo" -> Rituali ---------- */
.primo { position: relative; padding-bottom: clamp(160px, 22vw, 280px); }
.primo-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(20,9,9,0) 0%, rgba(20,9,9,.55) 45%, #140909 100%); }
.primo-grid { z-index: 1; }
.rit-vignette { height: 42%; background: linear-gradient(180deg, #140909 0%, rgba(20,9,9,.75) 30%, transparent 100%); }

/* ==========================================================
   I RITUALI — il salone visto dall'alto: tre postazioni
   ========================================================== */
.desk.salone {
  width: 300em; height: 150em;
  background:
    radial-gradient(40% 70% at 18% 50%, rgba(255,214,160,.10), transparent 70%),
    radial-gradient(40% 70% at 50% 50%, rgba(255,214,160,.08), transparent 70%),
    radial-gradient(40% 70% at 82% 50%, rgba(255,214,160,.10), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.28) 0 .15em, transparent .15em 9em),
    repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 .1em, transparent .1em 1.2em),
    repeating-linear-gradient(0deg, rgba(255,210,160,.025) 0 .4em, transparent .4em 3.1em),
    linear-gradient(170deg, #3d2417 0%, #2e1a10 50%, #22130b 100%);
}
.wallband { position: absolute; left: 0; right: 0; top: 0; height: 12em;
  background: linear-gradient(180deg, #2a070d, #4a0d16 70%, #3a0a11); box-shadow: 0 1.2em 2.4em rgba(0,0,0,.55); }
.wallband::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: .6em; background: linear-gradient(90deg, #7a5a24, #E8CF8F 50%, #7a5a24); }
.zone { position: absolute; top: 24em; width: 88em; height: 112em; }
.zone.z0 { left: 11em; } .zone.z1 { left: 106em; } .zone.z2 { left: 201em; }
.zone-rug { position: absolute; inset: 0; border-radius: .5em;
  background: radial-gradient(80% 70% at 45% 38%, #3a2a24, #241815 70%, #170f0d);
  box-shadow: 0 1em 2.6em rgba(0,0,0,.5), inset 0 0 0 1.2em #170f0d, inset 0 0 0 1.35em #A3803F, inset 0 0 0 2.4em rgba(0,0,0,0), inset 0 0 0 2.5em rgba(163,128,63,.45); }
.salone .station { left: 17em; top: 13em; width: 76em; }
.salone .chair { left: 31em; top: 36em; width: 46em; }
.salone .tools { left: 75em; top: 104em; width: 19em; }
.salone .lounge { left: 108em; top: 33em; width: 82em; }
.salone .spa { left: 203em; top: 30em; width: 84em; }
.salone .pcard.dk { font-size: .55em; }
.desk.salone .dk0 { left: 30.9em; top: 172em; transform: rotate(-9deg); }
.desk.salone .dk1 { left: 210em; top: 186em; transform: rotate(6deg); }
.desk.salone .dk2 { left: 474em; top: 186em; transform: rotate(-5deg); }
.salone .candle .glow { animation: flick 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.salone .candle + .candle .glow { animation-delay: -1.1s; }
.salone .wick { animation: wick 1.3s ease-in-out infinite alternate; }
@keyframes flick { 0%, 100% { opacity: .85; transform: scale(1); } 40% { opacity: 1; transform: scale(1.08); } 70% { opacity: .75; transform: scale(.96); } }
@keyframes wick { from { fill: #ffd27a; } to { fill: #fff2c4; } }
.salone .obj { will-change: transform; }
@media (max-width: 899px) { .desk.salone { font-size: 6px; } }

/* ==========================================================
   I RITUALI — sequenza delle tre carte (pavimento visto dall'alto)
   ========================================================== */
.desk.floor { width: 520em; height: 300em;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.32) 0 .15em, transparent .15em 11em),
    repeating-linear-gradient(0deg, rgba(0,0,0,.1) 0 .1em, transparent .1em 1.3em),
    repeating-linear-gradient(0deg, rgba(255,210,160,.022) 0 .5em, transparent .5em 3.7em),
    linear-gradient(170deg, #2e1b11 0%, #24150d 50%, #1a0f09 100%);
  box-shadow: none; }
.pool { position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,206,150,.20), rgba(255,190,130,.07) 55%, transparent); }
.pool.p0 { left: 15em; top: 150em; width: 155em; height: 135em; }
.pool.p1 { left: 305em; top: 10em; width: 165em; height: 130em; }
.pool.p2 { left: 375em; top: 150em; width: 165em; height: 140em; }
.pool.pt { left: 200em; top: 95em; width: 120em; height: 110em; }
.floor .station { left: 50em; top: 158em; width: 80em; }
.floor .chair { left: 62em; top: 186em; width: 56em; }
.floor .tools { left: 124em; top: 236em; width: 24em; }
.floor .sensory { left: 359em; top: 36em; width: 90em; }
.floor .skin { left: 318em; top: 50em; width: 34em; }
.floor .headspa { left: 401.7em; top: 181em; width: 100em; }
.floor .ftable { left: 233em; top: 123em; width: 54em; }
.floor .obj { will-change: auto; }
.ripples .rp { transform-box: fill-box; transform-origin: center; animation: ripple 3s ease-out infinite; }
.ripples .rp:nth-child(2) { animation-delay: 1s; } .ripples .rp:nth-child(3) { animation-delay: 2s; }
@keyframes ripple { from { transform: scale(.4); opacity: .9; } to { transform: scale(4.2); opacity: 0; } }
.streams path { animation: stream .9s linear infinite; }
@keyframes stream { to { stroke-dashoffset: -16; } }
.vapor path { stroke-dasharray: 30 60; animation: smoke 4s linear infinite; }

/* le carte: carta spessa, sollevabile */
.fcard { position: absolute; left: 0; top: 0; width: 15.3em; height: 24.5em; margin: -12.25em 0 0 -7.65em; z-index: 5; will-change: transform; }
.fcard .fshadow { position: absolute; inset: -12%; border-radius: 1.2em; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(0,0,0,.62), rgba(0,0,0,.32) 62%, transparent); }
.fcard .ffloat { position: absolute; inset: 0; will-change: transform; }
.fcard .pcard { position: absolute; inset: 0; width: 100%; height: 100%; font-size: .45em; padding: 0; perspective: none; aspect-ratio: auto; }
.fcard .face { padding: 3em 2.4em; border-radius: .6em; }
.fcard .face::after { inset: 1.2em; border-radius: .3em; }
.fcard .front { box-shadow: 0 .35em 0 #cdc2ae, 0 .5em .2em rgba(0,0,0,.25); }
.fcard .lv2 .front { box-shadow: 0 .35em 0 #3a0910, 0 .5em .2em rgba(0,0,0,.3); }
.fcard .sig .front { box-shadow: 0 .35em 0 #000, 0 0 0 .1em rgba(210,178,116,.5), 0 .5em .2em rgba(0,0,0,.35); }
.fcard .pc-num { font-size: 7.6em; } .fcard .pc-name { font-size: 3.4em; margin-top: .5em; }
.fcard .pc-sub { font-size: .95em; margin-top: 1.4em; } .fcard .pc-icon { width: 2em; height: 3.4em; margin-top: 3em; }
.fcard .pc-tag { font-size: .85em; top: 3.2em; padding: .5em 1em; }
@media (max-width: 899px) { .desk.floor { font-size: 6px; } }

/* ==========================================================
   RITUALI v3 — tre luoghi distinti e distanti
   ========================================================== */
.desk.floor { width: 1100em; height: 880em; font-size: 12px;
  background: #3a1519 url("img/pavimento.jpg") 0 0 / 120em 120em repeat; }
@media (max-width: 899px) { .desk.floor { font-size: 7px; } }
.ground { position: absolute; pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); mask-image: radial-gradient(closest-side, #000 62%, transparent 100%); }
/* barberia: parquet di noce */
.ground.g0 { left: 350em; top: 220em; width: 380em; height: 340em;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.34) 0 .14em, transparent .14em 9.5em),
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 .12em, transparent .12em 38em),
    repeating-linear-gradient(0deg, rgba(255,210,160,.035) 0 .35em, transparent .35em 2.7em),
    linear-gradient(160deg, #4a2c1b, #33200f 55%, #2a170c); }
/* sensory: marmo avorio */
.ground.g1 { left: 560em; top: 190em; width: 380em; height: 340em; background: url("img/marmo.jpg") 0 0 / 150em 150em; }
/* head spa: travertino */
.ground.g2 { left: 600em; top: 370em; width: 390em; height: 360em; background: url("img/travertino.jpg") 0 0 / 130em 130em; }
/* tavolino: tappeto in velluto bordeaux, bordi sfumati */
.ground.gt { left: 530em; top: 500em; width: 220em; height: 200em; background: radial-gradient(closest-side, #6a1622, #4a0d16 60%, #3a0a11);
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); mask-image: radial-gradient(closest-side, #000 70%, transparent 100%); }
.pool { background: radial-gradient(closest-side, rgba(255,214,160,.22), rgba(255,190,130,.06) 55%, transparent); }
.pool.p0 { left: 420em; top: 290em; width: 240em; height: 220em; }
.pool.p1 { left: 630em; top: 260em; width: 240em; height: 210em; }
.pool.p2 { left: 670em; top: 430em; width: 250em; height: 240em; }
.pool.pt { left: 570em; top: 535em; width: 140em; height: 130em; }
/* oggetti: ogni postazione intorno al punto in cui si posa la carta */
.floor .station { left: 498em; top: 322em; width: 84em; }
.floor .chair { left: 512em; top: 355.8em; width: 56em; }
.floor .tools { left: 576em; top: 404em; width: 24em; }
.floor .sensory { left: 719.3em; top: 328.2em; width: 90em; }
.floor .skin { left: 676em; top: 340em; width: 36em; }
.floor .headspa { left: 741.7em; top: 495em; width: 100em; }
.floor .ftable { left: 613em; top: 573em; width: 54em; }
.floor .sensory, .floor .headspa, .floor .chair { filter: none; }

/* biglietti: carta spessa, grana, bordo */
.fcard { will-change: auto; }
.fcard .fshadow, .fcard .ffloat { will-change: auto; }
.r-moving .fcard, .r-moving .fcard .ffloat, .r-moving .fcard .fshadow { will-change: transform; }
.fcard .front { box-shadow: 0 .14em 0 #ece4d5, 0 .28em 0 #ddd2bf, 0 .42em 0 #c9bda7, 0 .7em .9em rgba(0,0,0,.28); }
.fcard .front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: url("img/carta.png") 0 0 / 30em 30em; opacity: .22; pointer-events: none; }
.fcard .lv2 .front { box-shadow: 0 .14em 0 #5a1019, 0 .28em 0 #460c14, 0 .42em 0 #33080e, 0 .7em .9em rgba(0,0,0,.35); }
.fcard .lv2 .front::before, .fcard .sig .front::before { opacity: .1; }
.fcard .sig .front { box-shadow: 0 .14em 0 #1d1718, 0 .28em 0 #121011, 0 .42em 0 #070606, 0 0 0 .12em rgba(210,178,116,.55), 0 .7em .9em rgba(0,0,0,.4); }
.fcard .face::after { border-width: .14em; }
.fcard .face > * { position: relative; z-index: 1; }
.fcard .pc-name { letter-spacing: .01em; }
.fcard .pc-sub { letter-spacing: .32em; font-weight: 400; }
.rit-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; will-change: opacity; background: #1c0a0d; }
.steps-view { overflow: hidden; }

/* ==========================================================
   IL PERCORSO — sentiero d'oro verticale (sostituisce le porte)
   ========================================================== */
.sentiero { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 150px) 0 clamp(90px, 10vw, 140px);
  background: radial-gradient(70% 40% at 50% 0%, rgba(142,30,44,.35), transparent 70%), linear-gradient(180deg, #1a0a0d, #24090f 30%, #2b0b12 70%, #1a0a0d); }
.sentiero::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .14; pointer-events: none; }
.sentiero-head { position: relative; z-index: 2; max-width: 860px; margin: 0 auto clamp(40px, 6vw, 80px); }
.sentiero-head .kicker { display: block; margin-bottom: 16px; }
.sentiero-head .display { font-size: clamp(34px, 4.8vw, 72px); }
.sentiero-head .lede { margin-top: 18px; color: rgba(243,237,227,.75); }
.sentiero-body { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; padding: 0 max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
.sentiero-path { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sentiero-path path { fill: none; stroke-linecap: round; }
.sp-base { stroke: rgba(210,178,116,.16); stroke-width: 1; stroke-dasharray: 2 7; }
.sp-gold { stroke: url(#spg); stroke-width: 1.6; }
.sp-tip { position: absolute; left: 0; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; pointer-events: none; z-index: 2;
  background: radial-gradient(circle, #fff6dc 0 25%, rgba(246,225,170,.85) 35%, rgba(210,178,116,0) 70%); box-shadow: 0 0 18px 6px rgba(246,225,170,.35); opacity: 0; will-change: transform, opacity; }
.tappe { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.tappa { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(120px, 14vw, 200px); align-items: center; padding: clamp(40px, 7vh, 80px) 0; }
.tappa + .tappa { margin-top: clamp(20px, 6vh, 60px); }
.tappa[data-side="l"] .tappa-vis { order: 0; justify-self: end; }
.tappa[data-side="l"] .tappa-txt { order: 1; }
.tappa[data-side="r"] .tappa-vis { order: 1; justify-self: start; }
.tappa[data-side="r"] .tappa-txt { order: 0; justify-self: end; text-align: right; }
.tappa[data-side="r"] .tappa-k { justify-content: flex-end; }
.tappa[data-side="r"] .tappa-tags { justify-content: flex-end; }
.tappa-node { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 1px solid rgba(210,178,116,.45); background: #1f0a0e; z-index: 3; transition: border-color .5s, box-shadow .5s; }
.tappa-node i { position: absolute; inset: 6px; border-radius: 50%; background: var(--ottone); transform: scale(0); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tappa-node.lit { border-color: var(--ottone-chiaro); box-shadow: 0 0 0 5px rgba(210,178,116,.08), 0 0 22px rgba(246,225,170,.35); }
.tappa-node.lit i { transform: scale(1); }
.tappa-vis { position: relative; margin: 0; width: min(100%, 340px); will-change: transform, opacity; }
.medal { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; display: grid; place-items: center; color: var(--ottone-chiaro);
  border: 1px solid rgba(210,178,116,.55);
  background: radial-gradient(70% 55% at 50% 45%, rgba(210,178,116,.18), transparent 70%), radial-gradient(120% 90% at 50% 30%, #6e1420, #3f0a12 60%, #24060b);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 0 0 10px rgba(0,0,0,.12); }
.medal::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(210,178,116,.28); border-radius: 999px 999px 2px 2px; pointer-events: none; }
.medal::after { content: ""; position: absolute; left: 18%; right: 18%; bottom: 12%; height: 1px; background: rgba(210,178,116,.35); }
.medal svg { width: 72%; height: auto; overflow: visible; position: relative; }
.tappa-n { position: absolute; bottom: -.32em; font-family: var(--serif); font-style: italic; font-size: clamp(72px, 7vw, 110px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(210,178,116,.55); pointer-events: none; }
.tappa[data-side="l"] .tappa-n { left: -.35em; }
.tappa[data-side="r"] .tappa-n { right: -.35em; }
.tappa-txt { max-width: 460px; will-change: transform, opacity; }
.tappa-k { font-size: 10.5px; letter-spacing: .36em; text-transform: uppercase; color: var(--ottone-chiaro); display: flex; align-items: center; gap: 14px; }
.tappa-k::before { content: ""; width: 34px; height: 1px; background: var(--ottone-chiaro); }
.tappa[data-side="r"] .tappa-k::before { order: 2; }
.tappa h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(34px, 3.6vw, 56px); line-height: 1.05; margin-top: 14px; color: var(--avorio); }
.tappa-p { font-family: var(--serif); font-size: clamp(18px, 1.45vw, 22px); line-height: 1.6; margin-top: 18px; color: rgba(243,237,227,.86); }
.tappa-tags { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(210,178,116,.28); }
.tappa-tags span { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243,237,227,.72); }
.tappa-cta { margin-top: 28px; }
.tappa[data-side="r"] .tappa-cta { margin-left: auto; }

@media (max-width: 899px) {
  .sentiero-body { padding: 0 var(--gutter) 0 calc(var(--gutter) + 40px); }
  .tappa { display: block; padding: 26px 0 34px; }
  .tappa + .tappa { margin-top: 18px; }
  .tappa-node { left: -22px; top: 34px; }
  .tappa[data-side] .tappa-vis { width: 100%; justify-self: auto; }
  .tappa[data-side] .tappa-txt { text-align: left; max-width: none; margin-top: 22px; }
  .tappa[data-side] .tappa-k, .tappa[data-side] .tappa-tags { justify-content: flex-start; }
  .tappa[data-side="r"] .tappa-k::before { order: 0; }
  .tappa[data-side="r"] .tappa-cta { margin-left: 0; }
  .medal { aspect-ratio: 16 / 11; border-radius: 120px 120px 6px 6px; max-height: 280px; width: 100%; }
  .medal::before { border-radius: 110px 110px 2px 2px; }
  .medal svg { width: auto; height: 84%; margin-top: 4%; }
  .medal::after { display: none; }
  .tappa-n { font-size: 64px; bottom: -.3em; }
  .tappa[data-side] .tappa-n { left: auto; right: 6px; }
  .tappa h3 { font-size: clamp(30px, 8.4vw, 40px); }
  .tappa-p { font-size: 17.5px; margin-top: 12px; }
  .tappa-tags { margin-top: 16px; padding-top: 12px; gap: 6px 18px; }
}
html:not(.js) .tappa-vis, .no-anim .tappa-vis, html:not(.js) .tappa-txt, .no-anim .tappa-txt { opacity: 1 !important; transform: none !important; }

/* Rituali: carta al centro, testi accanto senza coprirla */
.rit-info { left: var(--ri-left, 53%); right: auto; width: var(--ri-w, 440px); }
.ri h3 { font-size: clamp(38px, 3.8vw, 62px); }
.rit-nav { right: auto; left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); }
@media (max-width: 899px) {
  .rit-info { left: var(--gutter); right: var(--gutter); width: auto; }
  .rit-nav { left: auto; right: var(--gutter); }
}

/* ==========================================================
   I RITUALI — tre tessere semplici e interattive
   ========================================================== */
.rituali.tessere-sec { padding: clamp(100px, 12vw, 160px) 0 clamp(90px, 10vw, 140px); overflow: visible;
  background: radial-gradient(60% 45% at 50% 0%, rgba(142,30,44,.4), transparent 70%), linear-gradient(180deg, #1c0a0e, #2a0b12 50%, #1c0a0e); position: relative; }
.tessere-sec::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .12; pointer-events: none; }
.tessere-sec .wrap { position: relative; z-index: 1; }
.tessere-head { max-width: 760px; margin: 0 auto clamp(44px, 6vw, 72px); }
.tessere-head .kicker { display: block; margin-bottom: 16px; }
.tessere-head .display { font-size: clamp(40px, 5.4vw, 80px); }
.tessere-head .lede { margin-top: 18px; color: rgba(243,237,227,.76); }
.tessere { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.6vw, 40px); align-items: start; max-width: 1000px; margin: 0 auto; }
.tessera-col { display: flex; flex-direction: column; min-width: 0; }

/* la tessera */
.tessera { all: unset; box-sizing: border-box; display: block; cursor: pointer; position: relative; border-radius: 8px; -webkit-tap-highlight-color: transparent;
  transition: box-shadow .35s ease, filter .35s ease, opacity .35s ease; }
.ts-face { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; aspect-ratio: 5 / 5.9; padding: 30px 24px 26px; border-radius: 8px; overflow: hidden;
  box-shadow: 0 26px 50px -26px rgba(0,0,0,.85), 0 1px 0 rgba(255,255,255,.08) inset; transition: box-shadow .35s ease; }
.ts-face::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(163,128,63,.6); border-radius: 4px; pointer-events: none; transition: border-color .35s ease, inset .35s ease; }
.ts-face::after { content: ""; position: absolute; inset: 0; background: url("img/carta.png") 0 0 / 260px 260px; opacity: .16; pointer-events: none; }
.ts-face > * { position: relative; z-index: 1; }
.ts-num { font-family: var(--serif); font-style: italic; font-size: clamp(54px, 5.4vw, 74px); line-height: 1; }
.ts-name { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; margin-top: 14px; }
.ts-sub { font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; margin-top: 14px; line-height: 1.7; max-width: 220px; }
.ts-icon { width: 18px; height: 30px; margin-top: 24px; opacity: .85; }
.ts-tag { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--vino); background: var(--gold); padding: 5px 10px; }
.t-n .ts-num { margin-top: 14px; }
/* bianco · rosso · nero e oro */
.t-w .ts-face { background: radial-gradient(120% 90% at 30% 10%, #FBF7EF, var(--carta) 55%, #E3D7C3); color: var(--velluto); }
.t-w .ts-num { color: var(--ottone); }
.t-w .ts-sub { color: var(--grigio); }
.t-r .ts-face { background: radial-gradient(120% 90% at 30% 10%, #A0293A, var(--velluto) 50%, #3f0a12); color: var(--avorio); }
.t-r .ts-num { color: var(--ottone-chiaro); }
.t-r .ts-sub { color: rgba(243,237,227,.72); }
.t-r .ts-face::after, .t-n .ts-face::after { opacity: .06; }
.t-n .ts-face { background: radial-gradient(120% 90% at 30% 0%, #2B2223, #120e0f 60%); color: var(--ottone-chiaro); box-shadow: 0 26px 50px -26px rgba(0,0,0,.9), 0 0 0 1px rgba(210,178,116,.45); }
.t-n .ts-face::before { border-color: rgba(210,178,116,.75); }
.t-n .ts-num, .t-n .ts-name { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.t-n .ts-sub { color: rgba(243,237,227,.6); }

/* "Scopri il rituale" sotto la tessera */
.ts-more { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px 0 4px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ottone-chiaro); }
.ts-more i { position: relative; width: 14px; height: 14px; flex: none; }
.ts-more i::before, .ts-more i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; margin-top: -.5px; background: currentColor; transition: transform .3s ease; }
.ts-more i::after { transform: rotate(90deg); }
.tessera[aria-expanded="true"] .ts-more i::after { transform: rotate(0deg); }

/* stati: solo bordo e luminosità, nessuna inclinazione */
@media (hover: hover) and (pointer: fine) {
  .tessera:hover .ts-face::before { border-color: var(--ottone-chiaro); }
  .tessera:hover .ts-face { box-shadow: 0 26px 50px -26px rgba(0,0,0,.85), 0 0 0 1px rgba(210,178,116,.55), 0 0 40px -10px rgba(210,178,116,.35); }
  .tessera:hover { filter: brightness(1.05); }
}
.tessera:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: 6px; }
.tessera[aria-expanded="true"] .ts-face { box-shadow: 0 26px 50px -26px rgba(0,0,0,.85), 0 0 0 2px var(--ottone-chiaro), 0 0 46px -8px rgba(210,178,116,.45); }
.tessera[aria-expanded="true"] .ts-face::before { border-color: var(--ottone-chiaro); }
.tessere.has-open .tessera[aria-expanded="false"] { opacity: .72; }
@media (hover: hover) and (pointer: fine) { .tessere.has-open .tessera[aria-expanded="false"]:hover { opacity: 1; } }

/* descrizione: si apre sotto la tessera */
.tessera-det { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .38s cubic-bezier(.2,.7,.2,1), opacity .28s ease; }
.tessera-det.open { grid-template-rows: 1fr; opacity: 1; }
.td-in { overflow: hidden; min-height: 0; }
.tessera-det:not(.open) .td-in { visibility: hidden; transition: visibility 0s .38s; }
.td-box { margin-top: 10px; padding: 24px 24px 22px; border: 1px solid rgba(210,178,116,.35); border-radius: 6px; background: linear-gradient(180deg, rgba(20,7,9,.75), rgba(20,7,9,.55)); }
.td-k { display: flex; align-items: center; gap: 12px; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ottone-chiaro); }
.td-k b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 22px; letter-spacing: 0; }
.td-text { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: rgba(243,237,227,.88); margin-top: 14px; }
.td-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid rgba(210,178,116,.25); }
.td-list li { font-family: var(--serif); font-size: 17px; padding: 8px 0 8px 22px; border-bottom: 1px solid rgba(210,178,116,.16); position: relative; color: var(--avorio); }
.td-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--ottone-chiaro); }
.td-foot { margin-top: 14px; font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; color: rgba(243,237,227,.6); }
.td-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.td-menu { min-height: 46px; padding: 0 24px; }
.td-close { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243,237,227,.7); padding: 10px 0; }
.td-close i { position: relative; width: 12px; height: 12px; }
.td-close i::before, .td-close i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; transform: rotate(45deg); }
.td-close i::after { transform: rotate(-45deg); }
@media (hover: hover) and (pointer: fine) { .td-close:hover { color: var(--ottone-chiaro); } }
.td-close:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: 4px; }

.tessere-end { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: clamp(50px, 7vw, 90px); }

/* telefono: tessere in verticale, formato orizzontale compatto */
@media (max-width: 899px) {
  .tessere { grid-template-columns: 1fr; gap: 18px; max-width: 520px; }
  .ts-face { aspect-ratio: auto; min-height: 168px; display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; justify-items: start; text-align: left; padding: 26px 26px 24px 22px; }
  .ts-num { grid-row: 1 / 3; justify-self: center; font-size: 52px; margin: 0 !important; }
  .ts-name { margin-top: 0; font-size: 30px; align-self: end; }
  .ts-sub { margin-top: 8px; align-self: start; max-width: none; }
  .ts-icon { display: none; }
  .ts-tag { top: 14px; left: auto; right: 18px; transform: none; font-size: 7.5px; }
  .ts-more { padding: 12px 0 2px; }
  .td-box { padding: 20px 18px 18px; }
  .td-text { font-size: 17px; }
  .td-actions { flex-direction: column-reverse; align-items: stretch; }
  .td-menu { width: 100%; justify-content: center; }
  .td-close { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .tessera-det, .tessera, .ts-face { transition: none; } }

/* Tessere che si girano: fronte e retro nella stessa cella (l'altezza si adatta al contenuto) */
.tessere .tessera { all: unset; box-sizing: border-box; display: block; position: relative; perspective: 1400px; -webkit-perspective: 1400px; border-radius: 8px; }
.ts-inner { display: grid; position: relative; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .7s cubic-bezier(.25,.8,.25,1); }
.tessera.flipped .ts-inner { transform: rotateY(180deg); }
.ts-inner > .ts-face { grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden; aspect-ratio: auto; min-height: 0; }
.ts-front { all: unset; box-sizing: border-box; cursor: pointer; -webkit-tap-highlight-color: transparent; aspect-ratio: 5 / 6 !important; }
.ts-back { transform: rotateY(180deg); justify-content: flex-start !important; align-items: stretch !important; text-align: left !important; padding: 30px 28px 24px !important; }
.ts-face { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 30px 24px 26px; border-radius: 8px; position: relative; overflow: hidden; box-shadow: 0 26px 50px -26px rgba(0,0,0,.85); transition: box-shadow .35s ease; }
.ts-turn { margin-top: 22px; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; opacity: .75; display: inline-flex; align-items: center; gap: 10px; }
.ts-turn::after { content: "↻"; font-size: 13px; letter-spacing: 0; }
/* retro */
.tb-k { display: flex; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; }
.tb-k b { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 20px; letter-spacing: 0; }
.tb-name { font-family: var(--serif); font-style: italic; font-size: 26px; line-height: 1.1; margin-top: 8px; }
.tb-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.5; margin-top: 12px; }
.tb-list { list-style: none; margin: 14px 0 0; padding: 0; }
.tb-list li { font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; padding: 7px 0 7px 18px; position: relative; border-top: 1px solid currentColor; border-color: rgba(163,128,63,.3); }
.tb-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 1px; background: var(--ottone); }
.tb-foot { margin-top: 10px; font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.tb-actions { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tb-menu { min-height: 42px; padding: 0 18px; font-size: 10px; }
.tb-back { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; padding: 8px 0; opacity: .8; }
.tb-back i { width: 12px; height: 12px; position: relative; }
.tb-back i::before { content: "↺"; position: absolute; inset: -3px 0 0; font-size: 13px; letter-spacing: 0; }
.tb-back:focus-visible, .ts-front:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: 6px; }
/* colori del retro: stessa carta del fronte */
.t-w .ts-back { background: radial-gradient(120% 90% at 50% 0%, #FBF7EF, var(--carta) 60%, #E6DBC9); color: var(--velluto); }
.t-w .tb-k, .t-w .tb-foot { color: var(--ottone); }
.t-w .tb-text { color: #3b2a2a; }
.t-r .ts-back { background: radial-gradient(120% 90% at 50% 0%, #8E1E2C, #4a0d16); color: var(--avorio); }
.t-r .tb-k { color: var(--ottone-chiaro); }
.t-r .tb-list li { border-color: rgba(210,178,116,.3); }
.t-n .ts-back { background: radial-gradient(120% 90% at 50% 0%, #2A2122, #120e0f); color: var(--avorio); box-shadow: 0 26px 50px -26px rgba(0,0,0,.9), 0 0 0 1px rgba(210,178,116,.45); }
.t-n .tb-k, .t-n .tb-name { color: var(--ottone-chiaro); }
.t-n .tb-list li { border-color: rgba(210,178,116,.3); }
.ts-back .tb-list li:first-child { border-top: 1px solid rgba(163,128,63,.3); }
/* passaggio del mouse: solo bordo e luce */
@media (hover: hover) and (pointer: fine) {
  .ts-front:hover::before { border-color: var(--ottone-chiaro); }
  .ts-front:hover { box-shadow: 0 26px 50px -26px rgba(0,0,0,.85), 0 0 0 1px rgba(210,178,116,.55), 0 0 40px -10px rgba(210,178,116,.35); }
  .tb-back:hover { opacity: 1; }
}
.tessera.flipped .ts-back { box-shadow: 0 26px 50px -26px rgba(0,0,0,.85), 0 0 0 1px rgba(210,178,116,.6), 0 0 40px -12px rgba(210,178,116,.3); }
@media (max-width: 899px) {
  .ts-front { aspect-ratio: auto !important; }
  .ts-front .ts-turn { grid-column: 2; margin-top: 10px; }
  .ts-back { padding: 24px 22px 20px !important; }
  .tb-text { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ts-inner { transition: none; } }
.tessere { align-items: stretch; }
.tessere .tessera, .ts-inner { height: 100%; }
@media (max-width: 899px) {
  .tessere .ts-face { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 0; padding: 30px 24px 24px; }
  .tessere .ts-back { align-items: stretch; text-align: left; }
  .tessere .ts-num { grid-row: auto; font-size: 56px; margin: 0 !important; }
  .tessere .ts-name { margin-top: 10px; font-size: 30px; align-self: auto; }
  .tessere .ts-sub { margin-top: 10px; align-self: auto; }
  .tessere .ts-front .ts-turn { margin-top: 18px; }
  .tessere .ts-tag { top: 16px; left: 50%; right: auto; transform: translateX(-50%); }
  .tessere .t-n .ts-num { margin-top: 18px !important; }
}
.t-w .tb-foot { opacity: 1; }
/* fronte e retro sempre della stessa altezza: la tessera non cambia misura quando si gira */
.tessere .ts-front { aspect-ratio: auto !important; }
.ts-inner > .ts-face { align-self: stretch; height: auto; min-height: 100%; }
@media (max-width: 899px) { .tessere .ts-inner { min-height: 430px; } }

/* ==========================================================
   VIDEO DAL CANTIERE · INSTAGRAM · PIETRA
   ========================================================== */
.video-sec { position: relative; overflow: hidden; background: #120708; }
.video-sec .wrap { position: relative; z-index: 1; }
/* la pietra vera del Palazzo, scurita: solo atmosfera, mai protagonista */
/* la pietra vera del Palazzo, nel suo colore: velata quanto basta per leggere e guardare i video */
.pietra-foto { position: absolute; inset: 0; background: url("img/pietra-vera.jpg") center / cover no-repeat; }
.video-sec::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 55% at 50% 55%, rgba(18,7,8,.55), rgba(18,7,8,.3) 75%), linear-gradient(180deg, #120708 0%, rgba(18,7,8,0) 14%, rgba(18,7,8,0) 86%, #120708 100%); }
.video-sec .sec-head .lede { margin-top: 18px; color: rgba(243,237,227,.75); }
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
.clip { margin: 0; }
.clip-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 8px; overflow: hidden; background: #0c0506; border: 1px solid rgba(210,178,116,.35);
  box-shadow: 0 40px 70px -40px rgba(0,0,0,.9); }
.clip-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0c0506; }
.clip-play { all: unset; position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, rgba(12,5,6,0) 45%, rgba(12,5,6,.55)); transition: opacity .3s ease; }
.clip-play .play { width: 76px; height: 76px; background: rgba(18,7,8,.45); transition: background .3s ease, border-color .3s ease; }
.clip-play .play i { border-left-width: 15px; border-top-width: 9px; border-bottom-width: 9px; margin-left: 5px; }
.clip-play:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: -6px; }
@media (hover: hover) and (pointer: fine) { .clip-play:hover .play { background: rgba(110,20,32,.55); border-color: #F6E1AA; } }
.clip.playing .clip-play { opacity: 0; pointer-events: none; }
.clip figcaption { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(210,178,116,.25); }
.clip-n { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ottone-chiaro); }
.clip-t { font-family: var(--serif); font-style: italic; font-size: 21px; color: var(--avorio); }
.clip-d { margin-left: auto; font-size: 10.5px; letter-spacing: .24em; color: rgba(243,237,227,.55); }
.ig-ic { width: 18px; height: 18px; flex: none; }
.ig-link { display: flex; width: fit-content; align-items: center; gap: 12px; margin: clamp(44px, 5vw, 64px) auto 0; padding: 14px 22px; border: 1px solid rgba(210,178,116,.45);
  font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: rgba(243,237,227,.82); transition: border-color .3s ease, color .3s ease; }
.ig-link b { font-weight: 400; color: var(--ottone-chiaro); letter-spacing: .16em; text-transform: none; font-size: 13px; }
.ig-link .ig-ic { color: var(--ottone-chiaro); }
@media (hover: hover) and (pointer: fine) { .ig-link:hover { border-color: var(--ottone-chiaro); color: var(--avorio); } }
.foot-ig { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 12px; letter-spacing: .14em; color: var(--ottone-chiaro); }
@media (hover: hover) and (pointer: fine) { .foot-ig:hover { color: #F6E1AA; } }
@media (max-width: 700px) {
  .clips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .clip-play .play { width: 54px; height: 54px; }
  .clip-play .play i { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 4px; }
  .clip figcaption { flex-wrap: wrap; gap: 2px 8px; margin-top: 10px; padding-top: 8px; }
  .clip-t { font-size: 17px; line-height: 1.2; }
  .clip-n { font-size: 16px; }
  .clip-d { margin-left: 0; width: 100%; font-size: 9.5px; }
  .ig-link { padding: 13px 16px; gap: 10px; letter-spacing: .2em; flex-wrap: wrap; justify-content: center; text-align: center; }
}

/* motivo a pietra in linea d'oro: un dettaglio, appena percettibile */
.tessere-sec::before, .site-footer::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: url("img/pietra.svg") 0 0 / 760px 520px repeat; opacity: .07; }
.tessere-sec::before { -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 35%, #000 100%); mask-image: radial-gradient(ellipse 60% 55% at 50% 55%, transparent 35%, #000 100%); }
.site-footer { position: relative; overflow: hidden; }
.site-footer::before { opacity: .06; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.site-footer > .wrap { position: relative; z-index: 1; }
@media (max-width: 700px) { .tessere-sec::before, .site-footer::before { background-size: 520px 356px; } }

/* fascia "pietra su pietra": il muro vero con una nicchia ad arco bordeaux */
.muro { position: relative; overflow: hidden; height: clamp(360px, 52vh, 520px); display: grid; place-items: center; background: #2a2018; }
.muro-pietra { position: absolute; inset: 0; background: url("img/pietra-vera.jpg") center 40% / cover no-repeat; }
.muro::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(18,7,8,.5), rgba(18,7,8,0) 18%, rgba(18,7,8,0) 78%, rgba(18,7,8,.7)); }
.nicchia { position: relative; z-index: 1; width: min(78vw, 340px); aspect-ratio: 4 / 5; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 28px 34px;
  border-radius: 999px 999px 4px 4px; border: 1px solid rgba(210,178,116,.7);
  background: radial-gradient(120% 90% at 50% 25%, #8e1e2c, #6e1420 45%, #3a0a12);
  box-shadow: inset 0 0 0 10px rgba(0,0,0,.12), inset 0 18px 40px rgba(0,0,0,.45), 0 30px 60px -20px rgba(0,0,0,.75); }
.nicchia::before { content: ""; position: absolute; inset: 12px; border-radius: 999px 999px 2px 2px; border: 1px solid rgba(210,178,116,.3); pointer-events: none; }
.nicchia-ic { width: 26px; height: 44px; opacity: .9; }
.nicchia-k { margin-top: 18px; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--ottone-chiaro); }
.nicchia-t { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; color: var(--avorio); }
.nicchia-t em { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 700px) { .muro { height: 420px; } .nicchia { width: 250px; padding: 34px 22px 28px; } }

/* fondo pagina: la stessa pietra, molto scurita */
.site-footer { background: #120708; }
.site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: linear-gradient(180deg, rgba(18,7,8,.78), rgba(18,7,8,.94) 60%), url("img/pietra-vera.jpg") center / cover no-repeat; }
.site-footer::before { display: none; }

/* comandi video essenziali */
.clip-frame video { cursor: pointer; }
.clip-frame video::-webkit-media-controls { display: none !important; }
.clip.started .clip-play { opacity: 0; pointer-events: none; }
.clip.started:not(.playing) .clip-play { opacity: 1; pointer-events: auto; background: rgba(12,5,6,.25); }
.clip-ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 34px 14px 12px; z-index: 2;
  background: linear-gradient(180deg, rgba(12,5,6,0), rgba(12,5,6,.78)); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.clip.started .clip-ui { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .clip.playing .clip-ui { opacity: 0; }
  .clip.playing:hover .clip-ui, .clip.playing:focus-within .clip-ui { opacity: 1; }
}
.clip-ui button { all: unset; cursor: pointer; flex: none; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ottone-chiaro); -webkit-tap-highlight-color: transparent; }
.clip-ui button:focus-visible, .cu-bar:focus-visible { outline: 1px solid var(--ottone-chiaro); outline-offset: 2px; }
/* play / pausa */
.cu-play i { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; box-sizing: border-box; }
.clip:not(.playing) .cu-play i { width: 0; height: 0; border-right: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
/* linea di avanzamento */
.cu-bar { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.cu-bar::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(243,237,227,.28); }
.cu-fill { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--ottone-chiaro); transform: scaleX(0); transform-origin: 0 50%; }
.cu-time { flex: none; font-size: 10.5px; letter-spacing: .12em; color: rgba(243,237,227,.75); font-variant-numeric: tabular-nums; }
/* audio */
.cu-vol i { position: relative; width: 14px; height: 12px; }
.cu-vol i::before { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 6px; background: currentColor; }
.cu-vol i::after { content: ""; position: absolute; left: 3px; top: 0; border-right: 6px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.clip-ui .cu-vol { position: relative; }
.cu-vol::after { content: ""; position: absolute; right: 3px; top: 9px; width: 5px; height: 10px; border: 1.5px solid currentColor; border-left: 0; border-radius: 0 10px 10px 0; }
.clip.muted .cu-vol::after { border: 0; width: 9px; height: 1.5px; top: 13px; right: 1px; background: currentColor; transform: rotate(45deg); border-radius: 0; }
/* schermo intero (solo telefono) */
.cu-full i { width: 13px; height: 13px; border: 1.5px solid currentColor; box-sizing: border-box;
  -webkit-mask: linear-gradient(#000 0 0) 0 0/5px 5px no-repeat, linear-gradient(#000 0 0) 100% 0/5px 5px no-repeat, linear-gradient(#000 0 0) 0 100%/5px 5px no-repeat, linear-gradient(#000 0 0) 100% 100%/5px 5px no-repeat;
  mask: linear-gradient(#000 0 0) 0 0/5px 5px no-repeat, linear-gradient(#000 0 0) 100% 0/5px 5px no-repeat, linear-gradient(#000 0 0) 0 100%/5px 5px no-repeat, linear-gradient(#000 0 0) 100% 100%/5px 5px no-repeat; }
@media (max-width: 700px) {
  .clip-ui { gap: 6px; padding: 26px 8px 8px; }
  .cu-time { display: none; }
  .clip-ui button { width: 26px; height: 26px; }
}
.mp-tot span:only-child { text-align: left; }

/* pre-apertura: menu da sfogliare, prenotazioni "coming soon" */
.mp-item.is-view { grid-template-columns: 1fr auto; cursor: default; }
.mp-item.is-view:hover { background: none; }
.mp-soon { display: flex; flex-direction: column; align-items: flex-start; position: relative; }
.soon-badge { align-self: flex-start; font-size: 9.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--vino); background: var(--gold); padding: 7px 12px; margin-bottom: 26px; }
.soon-ic { width: 26px; height: 44px; opacity: .85; margin-bottom: 18px; }
.mp-soon h3 em { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.soon-text { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: rgba(243,237,227,.85); margin-top: 14px; }
.soon-list { list-style: none; margin: 22px 0 0; padding: 0; width: 100%; border-top: 1px solid rgba(210,178,116,.25); }
.soon-list li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid rgba(210,178,116,.18); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: rgba(243,237,227,.75); }
.soon-list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--ottone-chiaro); }
.soon-cta { margin-top: 28px; }
.mp-soon .mp-note { margin-top: 14px; }

/* informativa breve sotto la lista d'attesa e link legali nel fondo pagina */
.wait-note { margin-top: 12px; font-size: 11px; line-height: 1.6; color: rgba(42,20,20,.65); }
.wait-note a, .foot-bottom a { color: inherit; border-bottom: 1px solid currentColor; }
.foot-bottom a { color: rgba(243,237,227,.6); }
@media (hover: hover) and (pointer: fine) { .foot-bottom a:hover { color: var(--ottone-chiaro); } }

/* pagine legali */
.legal-page { background: #1a0a0d; color: var(--avorio); min-height: 100vh; }
.legal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--gutter); border-bottom: 1px solid rgba(210,178,116,.25); }
.legal-top a { display: inline-flex; align-items: center; gap: 12px; color: var(--avorio); font-family: var(--serif); font-style: italic; font-size: 22px; }
.legal-top img { width: 18px; height: 30px; }
.legal-top .legal-back { font-family: var(--sans, inherit); font-style: normal; font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--ottone-chiaro); }
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) var(--gutter) 90px; }
.legal .kicker { display: block; margin-bottom: 14px; }
.legal h1 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(38px, 5vw, 60px); line-height: 1.05; }
.legal .upd { margin-top: 14px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,237,227,.5); }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 24px; margin-top: 44px; color: var(--ottone-chiaro); }
.legal p, .legal li { font-family: var(--serif); font-size: 18px; line-height: 1.65; color: rgba(243,237,227,.86); margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--ottone-chiaro); border-bottom: 1px solid currentColor; }
.legal .todo { background: rgba(210,178,116,.16); color: #F6E1AA; padding: 0 6px; border-radius: 3px; font-style: italic; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(210,178,116,.22); vertical-align: top; font-family: var(--serif); color: rgba(243,237,227,.86); }
.legal th { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--ottone-chiaro); font-family: inherit; }

/* Tessere: Safari su iPhone a volte mostra il retro "a specchio" attraverso la faccia davanti.
   Per evitarlo, a metà rotazione (90°) la faccia nascosta viene tolta del tutto, invece di affidarsi solo al backface-visibility. */
.ts-inner { transition: transform .7s cubic-bezier(.45,.05,.55,.95); }
.ts-inner > .ts-face { transition: box-shadow .35s ease, visibility 0s linear .35s; -webkit-transform: translateZ(0); }
.ts-inner > .ts-back { -webkit-transform: rotateY(180deg) translateZ(0); transform: rotateY(180deg) translateZ(0); }
.tessera:not(.flipped) .ts-back, .tessera.flipped .ts-front { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .ts-inner > .ts-face { transition: none; } }
