/* =========================================================
   PL Lab — foglio di stile (v3)
   Testi: Archivo. Titoli dei quaderni: immagini prese dalle copertine.
   Ogni quaderno porta il suo mondo: colori ed elementi grafici.
   ========================================================= */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --nero: #000;
  --bianco: #fff;
  --fucsia: #f30272;
  --fucsia-btn: #e5006b;
  --grigio: #5c5c5c;
  --linea: #e6e6e6;

  /* tema attivo (lo cambia lo script) */
  --t-bg: #fff;
  --t-sfondo: #ededed;
  --t-ink: #000;
  --t-accento: #f30272;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --w: 1680px;
  --gutter: clamp(18px, 5vw, 96px);
  --raggio: 14px;
  --ombra: 0 1px 2px rgba(0,0,0,.12), 0 10px 22px -8px rgba(0,0,0,.35), 0 26px 46px -22px rgba(0,0,0,.35);
  --header-h: 62px;
  --molla: cubic-bezier(.2, 1.35, .35, 1);
  --morbido: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--nero); background: var(--bianco); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fucsia); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.salta { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--nero); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.salta:focus { top: 12px; }
.contenitore { width: 100%; max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
h1, h2, h3 { margin: 0; font-weight: 900; font-stretch: 75%; letter-spacing: -.015em; line-height: .92; }

/* testo-adesivo: parole su un'etichetta storta, come gli sticker delle copertine */
.adesivo { display: inline-block; background: var(--nero); color: #fff; padding: .12em .45em .16em; border-radius: .25em; transform: rotate(-3deg); font-weight: 800; font-stretch: 85%; line-height: 1.1; }

/* ---------- pulsanti ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 2px solid currentColor;
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; background: transparent;
  text-align: center; line-height: 1.15; transition: transform .2s var(--molla), background-color .15s, color .15s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1deg); }
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-tema { background: #000; border-color: #000; color: #fff; }
.btn-tema:hover { background: #222; }
.btn-chiaro { background: #fff; border-color: #fff; color: var(--nero); }
.btn-nero { background: var(--nero); border-color: var(--nero); color: #fff; }
.btn-wa { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--header-h); background: #000; box-shadow: 0 6px 20px -10px rgba(0,0,0,.5); transition: transform .35s var(--morbido); }
.header.nascosto { transform: translateY(-105%); }

.header .contenitore { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; }
.logo img { width: 52px; height: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.btn-carrello { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 8px 0 14px; border-radius: 999px; background: var(--nero); color: #fff; border: 0; cursor: pointer; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.btn-carrello svg { width: 18px; height: 18px; }
.btn-carrello .conta { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 99px; background: var(--fucsia); color: #fff; font-size: 13px; line-height: 28px; text-align: center; transition: transform .3s var(--molla); }
.btn-carrello .conta[data-zero="true"] { background: #333; }
.btn-carrello .conta.salta-su { transform: scale(1.35); }

.pagina-interna main { padding-top: 0; }

/* =========================================================
   1. HERO — il ventaglio e la "copertina orizzontale" sotto
   ========================================================= */
.tema { background: var(--t-sfondo); color: var(--t-ink); transition: background-color .6s ease, color .6s ease; }
/* La scena occupa tutto lo schermo: le copertine sono protagoniste e,
   quando ne scegli una, l'intero sfondo diventa quella copertina. */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 2vh) 0 3vh;
  background: var(--t-bg); color: var(--t-ink); transition: background-color .7s ease, color .6s ease; }
.hero:not(.scelto) { --t-sfondo: #f3efe9; --t-bg: #f3efe9; --t-ink: #000; }
.scena { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; }
.hero-centro { position: relative; z-index: 2; width: 100%; }

/* ventaglio di carte: grande */
.ventaglio-zona { --vz: clamp(290px, 52vh, 640px); position: relative; height: var(--vz); width: 100%; margin: 0 auto; }
.ventaglio { list-style: none; margin: 0; padding: 0; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
@media (prefers-reduced-motion: no-preference) { .ventaglio { animation: dondolo-mano 7s ease-in-out infinite; transform-origin: 50% 160%; } }
@keyframes dondolo-mano { 0%,100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
.ventaglio li {
  --w: min(15.4vw, calc(var(--vz) * .58)); --dx: 0px; --dy: 0px; --sp: .74;
  position: absolute; left: 50%; bottom: 2%; width: var(--w); margin-left: calc(var(--w) / -2);
  transform-origin: 50% 140%;
  transform: translateX(calc(var(--i) * var(--w) * var(--sp) + var(--dx))) translateY(var(--dy)) rotate(var(--r));
  transition: transform .5s var(--morbido);
}
.ventaglio li:nth-child(1) { --i: -2; --r: -13deg; bottom: 0%; }
.ventaglio li:nth-child(2) { --i: -1; --r: -6.5deg; bottom: 3%; }
.ventaglio li:nth-child(3) { --i: 0;  --r: 0deg;   bottom: 4%; }
.ventaglio li:nth-child(4) { --i: 1;  --r: 6.5deg;  bottom: 3%; }
.ventaglio li:nth-child(5) { --i: 2;  --r: 13deg;  bottom: 0%; }
.ventaglio li.sopra { --dy: calc(var(--w) * -.1); z-index: 5; }
.ventaglio li.attiva { --dy: calc(var(--w) * -.2); z-index: 6; }
.carta { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; perspective: 900px; position: relative; z-index: 1; }
.carta img { width: 100%; aspect-ratio: 600/840; object-fit: cover; border-radius: 4px 9px 9px 4px; box-shadow: 0 2px 4px rgba(0,0,0,.14), 0 24px 40px -18px rgba(0,0,0,.45); transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) scale(var(--sc, 1)); transition: transform .3s ease-out, box-shadow .3s; }
.ventaglio li.sopra .carta img { --sc: 1.04; box-shadow: 0 40px 60px -24px rgba(0,0,0,.55); }
.ventaglio li.attiva .carta img { --sc: 1.1; box-shadow: 0 46px 70px -26px rgba(0,0,0,.6); }
.ventaglio:has(li.attiva) li:not(.attiva):not(.sopra) .carta img { filter: saturate(.75) brightness(.97); }
.ventaglio li.saltella .carta { animation: saltella .7s var(--morbido); }
@keyframes saltella { 0% { transform: rotate(0); } 20% { transform: rotate(-5deg); } 45% { transform: rotate(4deg); } 70% { transform: rotate(-2deg); } 100% { transform: rotate(0); } }
.carta-nome { position: absolute; left: 50%; top: -42px; z-index: 3; transform: translateX(-50%) rotate(-4deg) scale(.6); opacity: 0; white-space: nowrap; background: #000; color: #fff; font-weight: 800; font-size: clamp(13px, 1vw, 16px); padding: 5px 12px; border-radius: 7px; transition: opacity .2s, transform .4s var(--molla); pointer-events: none; }
.ventaglio li.sopra .carta-nome { opacity: 1; transform: translateX(-50%) rotate(-4deg) scale(1); }
@media (prefers-reduced-motion: no-preference) {
  .ventaglio.entra li { animation: distribuisci 1s var(--molla) both; }
  .ventaglio.entra li:nth-child(2) { animation-delay: .07s; } .ventaglio.entra li:nth-child(3) { animation-delay: .14s; }
  .ventaglio.entra li:nth-child(4) { animation-delay: .21s; } .ventaglio.entra li:nth-child(5) { animation-delay: .28s; }
  @keyframes distribuisci { from { transform: translateX(0) translateY(160px) rotate(0); opacity: 0; } }
}

/* testo sotto il ventaglio: piccolo, le copertine restano protagoniste */
.hero-testo { text-align: center; margin: clamp(10px, 2.4vh, 26px) auto 0; padding: 0 var(--gutter); display: grid; justify-items: center; }
.titolo-zona { display: grid; place-items: center; min-height: clamp(52px, 9vh, 96px); }
.titolo-zona > * { grid-area: 1 / 1; }
.intro h1 { font-size: clamp(30px, 3.6vw, 54px); color: #000; }
.intro h1 em { font-style: normal; display: inline-block; transform: rotate(-3deg); background: #000; color: #fff; box-shadow: .07em .07em 0 var(--fucsia); padding: 0 .16em; border-radius: .08em; }
.intro { transition: opacity .3s, transform .5s var(--morbido); }
.hero.scelto .intro { opacity: 0; transform: scale(.9); pointer-events: none; }
.titolo-img { height: clamp(52px, 9vh, 96px); width: auto; max-width: 80vw; opacity: 0; transform: scale(.6) rotate(-5deg); transition: opacity .3s, transform .7s var(--molla); filter: drop-shadow(0 0 6px var(--t-bg)); }
.titolo-img.visibile { opacity: 1; transform: none; }
.titolo-img.t-good-luck { height: clamp(96px, 16vh, 170px); }
.titolo-img.t-scrivilo { height: clamp(110px, 18vh, 190px); }
.titolo-img.t-re-di-denari { height: clamp(80px, 13vh, 140px); }
.frase-hero { margin: 10px auto 16px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.45; max-width: 46ch; font-weight: 600; text-shadow: 0 0 4px var(--t-bg), 0 0 8px var(--t-bg), 0 0 14px var(--t-bg), 0 0 22px var(--t-bg); }
.azioni { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.hero:not(.scelto) .azioni .btn { display: none; }

/* cartellino del prezzo */
.cartellino { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 16px 9px 30px; background: var(--t-eti, #000); color: var(--t-eti-ink, #fff); font-weight: 900; font-stretch: 80%; font-size: 26px; line-height: 1; transform: rotate(-4deg); clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%); filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.cartellino::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--t-sfondo); box-shadow: inset 0 1px 2px rgba(0,0,0,.35); }
.cartellino small { font-size: 12px; font-weight: 700; font-stretch: 100%; letter-spacing: .02em; }
.hero:not(.scelto) .cartellino::before { background: #f3efe9; }
.hero:not(.scelto) .cartellino { filter: drop-shadow(0 6px 12px rgba(0,0,0,.16)); }

/* elementi grafici: nella home riempiono tutta la scena */
.palco-set { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none; }
.palco-set .d { position: absolute; opacity: 0; transition: transform 1s var(--molla), opacity .45s ease; }
.palco-set .d img { display: block; width: 100%; height: auto; max-width: none; }
.palco-set .d .p { transform: translate(calc(var(--mx, 0) * var(--z, 8px)), calc(var(--my, 0) * var(--z, 8px))); transition: transform .3s ease-out; }
.palco-set.attivo .d { opacity: 1; transform: none; }
.palco-set.attivo .d img.galleggia { animation: galleggia 5.5s ease-in-out infinite; }
.palco-set.attivo .d:nth-child(2) { transition-delay: .07s; } .palco-set.attivo .d:nth-child(3) { transition-delay: .14s; }
.palco-set.attivo .d:nth-child(4) { transition-delay: .21s; } .palco-set.attivo .d:nth-child(5) { transition-delay: .28s; }
.palco-set.attivo .d:nth-child(6) { transition-delay: .35s; } .palco-set.attivo .d:nth-child(7) { transition-delay: .42s; }
.palco-set.attivo .d:nth-child(8) { transition-delay: .49s; }
@keyframes galleggia { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(3deg); } }
.a-tl { left: 0; top: 0; transform: translate(-60%, -60%); }
.a-tr { right: 0; top: 0; transform: translate(60%, -60%); }
.a-bl { left: 0; bottom: 0; transform: translate(-60%, 60%); }
.a-br { right: 0; bottom: 0; transform: translate(60%, 60%); }
.a-sx { left: 0; transform: translateX(-100%); }
.a-dx { right: 0; transform: translateX(100%); }
.a-bot { bottom: 0; transform: translateY(100%); }
.pop { transform: scale(0) rotate(-40deg); }
.scende { transform: translateY(-120%); }

/* sulla scena (home) */
.scena .p-pl-tl { width: 30vw; } .scena .p-pl-br { width: 32vw; }
.scena .p-unf-tl { width: 34vw; } .scena .p-unf-br { width: 36vw; }
.scena .p-unf-s1 { left: 36vw; top: 11%; width: 26px; } .scena .p-unf-s2 { right: 30vw; top: 10%; width: 32px; }
.scena .p-unf-s3 { left: 22vw; bottom: 24%; width: 34px; } .scena .p-unf-s4 { right: 26vw; bottom: 38%; width: 22px; }
.scena .p-unf-s5 { left: 8vw; top: 52%; width: 28px; } .scena .p-unf-s6 { right: 7vw; top: 36%; width: 34px; }
.scena .p-unf-s7 { left: 31vw; bottom: 8%; width: 20px; } .scena .p-unf-s8 { right: 12vw; top: 15%; width: 22px; }
.scena .p-re-tl { width: 24vw; } .scena .p-re-br { width: 29vw; }
.scena .p-ves-monte { left: -4vw; width: 40vw; }
.scena .p-ves-monte img { opacity: .8; }
.scena .p-ves-corno { right: 0; top: 30%; width: clamp(110px, 11vw, 210px); }
.scena .p-ves-corno .p { transform-origin: 50% 0; transform: translateX(28%) rotate(-24deg); }
.palco-set.attivo .p-ves-corno img { transform-origin: 50% 0; animation: dondola 3.6s ease-in-out 1s infinite; }
.scena .p-ves-golfo { left: 50%; width: min(78vw, 1300px); margin-left: calc(min(78vw, 1300px) / -2); }
.scena .p-ves-golfo img { opacity: .9; }
.scena .p-ves-c1, .scena .p-ves-c2 { top: var(--header-h); width: clamp(60px, 6.5vw, 120px); }
.scena .p-ves-c1 { left: 9vw; } .scena .p-ves-c2 { right: 9vw; }
.scena .p-ves-c2 img { animation-delay: 1.6s !important; }
.p-ves-c1 img, .p-ves-c2 img, .p-ves-cornetto img { transform-origin: 50% 0; }
.palco-set.attivo .p-ves-c1 img, .palco-set.attivo .p-ves-c2 img, .palco-set.attivo .p-ves-cornetto img { animation: dondola 3.4s ease-in-out .9s infinite; }
@keyframes dondola { 0%,100% { transform: rotate(0); } 30% { transform: rotate(6deg); } 70% { transform: rotate(-5deg); } }
.scena .p-gl-sx, .scena .p-gl-dx { --g: min(14.5vw, (100vh - var(--header-h) - 24px) * .41); width: var(--g); top: calc(var(--header-h) + 10px); }
.scena .p-gl-sx { left: 1.2vw; } .scena .p-gl-dx { right: 1.2vw; }
.scena .p-scr-tl { width: 25vw; } .scena .p-scr-tr { width: 20vw; } .scena .p-scr-bl { width: 34vw; } .scena .p-scr-br { width: 34vw; }
.scena .p-scr-punti1 { left: 26vw; top: 16%; width: 7vw; } .scena .p-scr-punti2 { right: 24vw; bottom: 14%; width: 6vw; } .p-scr-punti2 img { transform: rotate(160deg); }
.scena .p-scr-rosa1 { left: 17vw; top: 36%; width: 8vw; } .scena .p-scr-rosa2 { right: 17vw; bottom: 34%; width: 7vw; }

@media (max-width: 760px) {
  .hero { min-height: 0; padding-bottom: 36px; }
  .ventaglio-zona { --vz: 200px; margin-top: 8px; }
  .ventaglio li { --w: 24.5vw; --sp: .5; }
  .intro h1 { font-size: clamp(30px, 9vw, 40px); }
  .scena .p-unf-tl, .scena .p-pl-tl { width: 50vw; } .scena .p-unf-br, .scena .p-pl-br { width: 30vw; }
  .scena .p-unf-s3, .scena .p-unf-s4, .scena .p-unf-s7 { display: none; }
  .scena .p-re-tl { width: 32vw; } .scena .p-re-br { width: 22vw; }
  .scena .p-scr-tl { width: 44vw; } .scena .p-scr-tr { width: 36vw; } .scena .p-scr-bl { width: 40vw; } .scena .p-scr-br { width: 40vw; }
  .scena .p-scr-rosa1, .scena .p-scr-rosa2, .scena .p-scr-punti1 { display: none; }
  .scena .p-gl-sx, .scena .p-gl-dx { --g: 19vw; top: 64px; }
  .scena .p-ves-golfo { width: 130vw; margin-left: -65vw; }
  .scena .p-ves-monte { left: -10vw; width: 80vw; } .scena .p-ves-monte img { opacity: .35; }
  .scena .p-ves-corno { top: 66px; width: 70px; }
  .scena .p-ves-c1 { left: 4vw; } .scena .p-ves-c2 { right: 4vw; }
  .scena .p-unf-s1, .scena .p-unf-s2 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .palco-set .d { transition: opacity .2s linear !important; transform: none !important; }
  .palco-set .d img { animation: none !important; }
  .ventaglio, .ventaglio li .carta { animation: none !important; }
}

/* =========================================================
   2. SCARTALO
   ========================================================= */
.scarta { --u: min(1vw, 1.42vh); position: relative; overflow: hidden; min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; padding: calc(var(--u) * 3) 0 calc(var(--u) * 2.5); background: var(--t-bg); color: var(--t-ink); transition: background-color .6s, color .6s; }
.scarta-testa { text-align: center; position: relative; z-index: 3; }
.scarta-testa h2 { font-size: max(44px, calc(var(--u) * 6.4)); transform: rotate(-2deg); color: var(--t-titolo); text-shadow: .045em .045em 0 var(--t-ombra); transition: color .6s, text-shadow .6s; }
.scarta-testa p { margin: 4px auto 0; font-size: max(15px, calc(var(--u) * 1.35)); font-weight: 600; max-width: 60ch; }
.tavolo { position: relative; z-index: 2; height: calc(var(--u) * 41); max-width: none; margin: 0 auto; --k: 1; }
.oggetto { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--r0, 0deg)); transition: transform .8s var(--molla), opacity .4s; }
.tavolo.aperto .oggetto { transform: translate(calc(-50% + var(--x) * var(--k)), calc(-50% + var(--y) * var(--k))) rotate(var(--r)) scale(var(--s, 1)); }
.tavolo.aperto .oggetto:nth-child(2) { transition-delay: .05s; } .tavolo.aperto .oggetto:nth-child(3) { transition-delay: .1s; }
.tavolo.aperto .oggetto:nth-child(4) { transition-delay: .15s; } .tavolo.aperto .oggetto:nth-child(5) { transition-delay: .2s; }
.tavolo.aperto .oggetto:nth-child(6) { transition-delay: .25s; }
.oggetto img { box-shadow: var(--ombra); border-radius: 3px; }
.o-quaderno { width: calc(var(--u) * 21); --x: 0px; --y: calc(var(--u) * -.5); --r: -3deg; --s: 1.06; z-index: 4; }
.o-quaderno img { border-radius: 3px 7px 7px 3px; }
.o-cart1 { width: calc(var(--u) * 22); --r0: -6deg; --x: calc(var(--u) * -29); --y: calc(var(--u) * -9); --r: -9deg; z-index: 2; }
.o-cart2 { width: calc(var(--u) * 22); --r0: 5deg; --x: calc(var(--u) * -26); --y: calc(var(--u) * 10.5); --r: 7deg; z-index: 2; }
.o-seg1 { width: calc(var(--u) * 6.4); --r0: 8deg; --x: calc(var(--u) * 19); --y: calc(var(--u) * -6); --r: 10deg; z-index: 3; }
.o-seg2 { width: calc(var(--u) * 6.4); --r0: -4deg; --x: calc(var(--u) * 26.5); --y: calc(var(--u) * -4); --r: -6deg; z-index: 3; }
.o-sorpresa { --x: calc(var(--u) * 27); --y: calc(var(--u) * 13); --r: -6deg; z-index: 5; opacity: 0; }
.tavolo.aperto .o-sorpresa { opacity: 1; }
.tavolo:not(.aperto) .o-cart1, .tavolo:not(.aperto) .o-cart2, .tavolo:not(.aperto) .o-seg1, .tavolo:not(.aperto) .o-seg2 { opacity: 0; }

/* adesivo sorpresa, come gli sticker della copertina Good Luck */
.sorpresa { position: relative; display: grid; place-items: center; width: max(110px, calc(var(--u) * 13)); height: max(96px, calc(var(--u) * 11.3)); border: 0; padding: 0; cursor: pointer; background: none; }
.sorpresa-fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: var(--t-eti); border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; box-shadow: 0 0 0 5px #fff, 0 16px 26px -12px rgba(0,0,0,.45); }
.sorpresa img { position: absolute; left: 14%; top: 8%; width: 72%; height: 80%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); transition: transform .4s var(--molla); }
.sorpresa .scritta { position: absolute; left: 50%; bottom: -16px; transform: translateX(-50%) rotate(-4deg); white-space: nowrap; background: #fff; color: #000; font-weight: 900; font-stretch: 85%; font-size: 15px; padding: 4px 10px; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,.15); }
.sorpresa.gira img { animation: estrai .5s var(--molla); }
@keyframes estrai { 0% { transform: scale(.4) rotate(-30deg); } 100% { transform: scale(1) rotate(0); } }
.sorpresa-fissa { width: auto; height: max(110px, calc(var(--u) * 14)); filter: drop-shadow(0 10px 14px rgba(0,0,0,.3)); }

.etichetta { position: absolute; z-index: 8; white-space: nowrap; background: var(--t-eti); color: var(--t-eti-ink); font-weight: 800; font-size: max(13px, calc(var(--u) * 1.25)); padding: .45em .9em; border-radius: 8px; transform: rotate(var(--er, -4deg)) scale(0); transition: transform .4s var(--molla) .5s; }
.etichetta small { display: block; font-weight: 600; font-size: 12px; opacity: .8; }
.tavolo.aperto .etichetta { transform: rotate(var(--er, -4deg)) scale(1); }
.e-quaderno { left: 50%; top: calc(50% + var(--u) * 14.5); --er: 3deg; margin-left: calc(var(--u) * -5); }
.e-cart { left: calc(50% - var(--u) * 36); top: calc(50% - var(--u) * 1.5); --er: -5deg; }
.e-seg { left: calc(50% + var(--u) * 17.5); top: calc(50% - var(--u) * 17); --er: 4deg; }
.e-ciondolo { left: calc(50% + var(--u) * 33); top: calc(50% + var(--u) * 9.5); --er: -3deg; }

/* la busta trasparente */
.busta { position: absolute; left: 50%; top: 47%; z-index: 7; width: calc(var(--u) * 29); aspect-ratio: .74; transform: translate(-50%, -50%) rotate(-3deg); border: 0; padding: 0; cursor: pointer; background: none; transition: transform .5s var(--molla), opacity .35s; }
.busta-vetro { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: 8px; background: linear-gradient(115deg, rgba(255,255,255,.6) 0%, rgba(255,255,255,.14) 28%, rgba(255,255,255,0) 45%, rgba(255,255,255,.3) 62%, rgba(255,255,255,.06) 80%); border: 1.5px solid rgba(255,255,255,.85); box-shadow: inset 0 0 18px rgba(255,255,255,.4), 0 26px 44px -18px rgba(0,0,0,.45); }
.busta-vetro::before { content: ""; position: absolute; left: -2px; right: -2px; top: -2px; height: 26px; border-radius: 8px 8px 2px 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.9) 0 3px, rgba(255,255,255,.4) 3px 6px); border-bottom: 1px solid rgba(255,255,255,.85); }
.busta-dentro { position: absolute; top: 28px; right: 10px; bottom: 10px; left: 10px; overflow: hidden; border-radius: 0 0 6px 6px; }
.busta-dentro img { position: absolute; box-shadow: 0 5px 12px rgba(0,0,0,.25); }
.busta-dentro .b-cart1 { left: -10%; top: 34%; width: 92%; transform: rotate(-16deg); border-radius: 2px; }
.busta-dentro .b-cart2 { left: 18%; top: 62%; width: 90%; transform: rotate(11deg); border-radius: 2px; }
.busta-dentro .b-seg1 { left: 3%; top: 4%; width: 22%; transform: rotate(-12deg); }
.busta-dentro .b-seg2 { right: 2%; top: 14%; width: 22%; transform: rotate(15deg); }
.busta-dentro .b-cop { left: 15%; top: 4%; width: 68%; transform: rotate(-4deg); border-radius: 2px 5px 5px 2px; }
.busta-dentro .b-ciondolo { right: 6%; bottom: 3%; width: 22%; transform: rotate(14deg); box-shadow: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.35)); }
.busta-logo { position: absolute; left: -14px; top: 30px; z-index: 2; width: 66px; transform: rotate(-12deg); filter: drop-shadow(0 4px 8px rgba(0,0,0,.3)); }
.busta-invito { position: absolute; left: 50%; bottom: -22px; z-index: 3; transform: translateX(-50%) rotate(-3deg); white-space: nowrap; font-weight: 900; font-stretch: 85%; font-size: max(16px, calc(var(--u) * 1.6)); background: var(--t-eti); color: var(--t-eti-ink); padding: 8px 16px; border-radius: 8px; box-shadow: 0 8px 16px -8px rgba(0,0,0,.45); transition: transform .25s var(--molla); }
.busta:hover { transform: translate(-50%, -50%) rotate(2deg) scale(1.03); }
.busta:hover .busta-invito { transform: translateX(-50%) rotate(2deg) scale(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .busta:not(:hover) { animation: respira 2.8s ease-in-out infinite; }
  @keyframes respira { 0%,100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -52%) rotate(-1deg); } }
  .busta.trema { animation: trema .45s ease-in-out; }
  @keyframes trema { 0%,100% { transform: translate(-50%,-50%) rotate(-3deg); } 20% { transform: translate(-52%,-50%) rotate(-8deg); } 40% { transform: translate(-48%,-50%) rotate(4deg); } 60% { transform: translate(-51%,-50%) rotate(-6deg); } 80% { transform: translate(-49%,-50%) rotate(2deg); } }
}
.tavolo.aperto .busta { opacity: 0; transform: translate(-50%, 10%) rotate(-12deg) scale(.7); pointer-events: none; animation: none; }

.scarta-piede { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 4px; }
.dati-piccoli { width: 100%; text-align: center; font-size: 13px; font-weight: 600; opacity: .75; margin: 4px 0 0; }
.richiudi { background: none; border: 0; font-weight: 800; text-decoration: underline; cursor: pointer; padding: 8px; }
.tavolo:not(.aperto) ~ .scarta-piede .richiudi { display: none; }

@media (max-width: 900px) {
  .scarta { min-height: 0; }
  .tavolo { transition: height .6s var(--morbido); }
  .tavolo:not(.aperto) { height: 400px; }
  .tavolo { height: 620px; }
  .o-quaderno { width: 150px; --x: 0px; --y: -120px; --r: -3deg; --s: 1; }
  .o-cart1, .o-cart2 { width: 150px; }
  .o-cart1 { --x: -85px; --y: 40px; --r: -6deg; } .o-cart2 { --x: -78px; --y: 150px; --r: 5deg; }
  .o-seg1 { width: 42px; --x: 62px; --y: 60px; --r: 8deg; } .o-seg2 { width: 42px; --x: 112px; --y: 72px; --r: -5deg; }
  .o-sorpresa { --x: 92px; --y: 190px; --r: -6deg; }
  .sorpresa { width: 112px; height: 98px; } .sorpresa .scritta { font-size: 12px; }
  .sorpresa-fissa { height: 110px; }
  .busta { width: 220px; }
  .etichetta { font-size: 12px; padding: 5px 9px; }
  .etichetta small { font-size: 10.5px; }
  .e-quaderno { left: auto; right: 4px; top: calc(50% - 215px); margin-left: 0; }
  .e-cart { left: calc(50% - 165px); top: calc(50% - 42px); }
  .e-seg { left: calc(50% + 48px); right: auto; top: calc(50% - 24px); }
  .e-ciondolo { left: calc(50% + 22px); right: auto; top: calc(50% + 262px); }
}

/* =========================================================
   3. NEGOZIO
   ========================================================= */
.negozio { padding: clamp(48px, 5vw, 76px) 0; background: #f4f1ec; }
.negozio-testa { display: block; margin-bottom: 28px; }
.negozio-testa h2 { font-size: clamp(48px, 7vw, 88px); color: #000; }
.negozio-testa p { margin: 12px 0 0; font-weight: 600; font-size: 17px; max-width: 52ch; }
.schede { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.scheda { position: relative; border-radius: 16px; padding: 14px 14px 16px; background: var(--c-bg); color: var(--c-ink); display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.06); transition: transform .45s var(--molla), box-shadow .3s; }
.scheda:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: 0 26px 40px -24px rgba(0,0,0,.45); }
.scheda-titolo { height: 70px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.scheda-titolo img { max-height: 100%; max-width: 100%; width: auto; }
.scheda-cop { perspective: 900px; display: block; margin: 0 6px; }
.scheda-cop img { width: 100%; aspect-ratio: 600/840; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: var(--ombra); transform: rotateY(var(--ty, 0deg)) rotateX(var(--tx, 0deg)); transition: transform .25s ease-out; }
.scheda-piede { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; }
.scheda-piede b { font-size: 26px; font-weight: 900; font-stretch: 75%; }
.scheda-nome { font-weight: 800; font-size: 14px; }
.piu { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #000; color: #fff; display: grid; place-content: center; cursor: pointer; transition: transform .3s var(--molla), background-color .2s; flex: none; }
.piu:hover { transform: rotate(90deg) scale(1.08); background: var(--fucsia); }
.piu svg { width: 22px; height: 22px; }
.piu[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.scheda a.coprente { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; }
.scheda .piu { position: relative; z-index: 2; }
@media (max-width: 1000px) {
  .schede { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 16px; scrollbar-width: none; }
  .schede::-webkit-scrollbar { display: none; }
  .scheda { flex: 0 0 min(62vw, 240px); scroll-snap-align: center; }
}

/* =========================================================
   4. REGALO
   ========================================================= */
.regalo { position: relative; overflow: hidden; background: var(--t-reg, #000); color: var(--t-reg-ink, #fff); transition: background-color .6s, color .6s; padding: clamp(48px, 6vw, 90px) 0; }
.regalo-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.regalo h2 { font-size: clamp(58px, 8.6vw, 124px); }
.regalo p { font-size: 19px; font-weight: 600; max-width: 30ch; margin: 22px 0 28px; }
.polaroid-mucchio { position: relative; height: clamp(420px, 46vw, 620px); }
.polaroid { position: absolute; margin: 0; width: 58%; background: #fff; padding: 10px 10px 34px; border-radius: 4px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.5); transform: rotate(var(--r)); transition: transform .5s var(--molla); }
.polaroid img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.polaroid::before { content: ""; position: absolute; left: 50%; top: -12px; width: 90px; height: 26px; margin-left: -45px; background: rgba(255,255,255,.6); transform: rotate(-4deg); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

.polaroid:nth-child(1) { left: 0; top: 4%; width: 66%; --r: -4deg; }
.polaroid.polaroid-piccola { left: auto; right: 0; top: 30%; width: 40%; --r: 6deg; z-index: 2; padding: 7px 7px 24px; }
.polaroid.polaroid-piccola::before { width: 60px; margin-left: -30px; left: 82%; transform: rotate(18deg); }
@media (max-width: 900px) { .regalo-griglia { grid-template-columns: minmax(0, 1fr); } .polaroid-mucchio { height: 380px; } .polaroid { width: 64%; } .polaroid.polaroid-piccola { width: 42%; top: 34%; } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--nero); color: #fff; padding: 20px 0 16px; }
.footer-alto { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px; }
.footer-alto > img { width: 42px; height: auto; }
.social { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-content: center; background: #1c1c1c; color: #fff; transition: transform .25s var(--molla), background-color .2s; }
.social a:hover { transform: translateY(-4px) rotate(-8deg); background: var(--fucsia); }
.social svg { width: 17px; height: 17px; }
.footer-legale { margin-top: 12px; padding-top: 10px; border-top: 1px solid #2a2a2a; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9a9a9a; font-size: 12px; }
.footer-legale a { color: #c9c9c9; }

/* =========================================================
   ORDINE (pannello laterale)
   ========================================================= */
.velo { position: fixed; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0,0,0,.45); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.velo.aperto { opacity: 1; pointer-events: auto; }
.carrello { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); background: #fff; color: var(--nero); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--morbido), visibility 0s linear .35s; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.carrello.aperto { transform: none; visibility: visible; transition: transform .35s var(--morbido); }
.carrello-testa { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 2px solid var(--nero); }
.carrello-testa h2 { font-size: 30px; }
.chiudi { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #f2f2f2; cursor: pointer; display: grid; place-content: center; }
.chiudi svg { width: 18px; height: 18px; }
.carrello-corpo { flex: 1; overflow-y: auto; padding: 4px 20px 18px; }
.carrello-vuoto { text-align: center; padding: 40px 8px; }
.carrello-vuoto p { margin: 0 0 18px; }
.riga { display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.riga img { width: 54px; aspect-ratio: 600/840; object-fit: cover; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.riga strong { display: block; font-size: 15px; line-height: 1.2; }
.riga .riga-prezzo { font-size: 13px; color: var(--grigio); }
.riga .togli { background: none; border: 0; padding: 2px 0; color: var(--grigio); font-size: 12px; text-decoration: underline; cursor: pointer; }
.quantita { display: inline-flex; align-items: center; border: 1.5px solid currentColor; border-radius: 99px; height: 40px; }
.quantita button { width: 38px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; line-height: 1; border-radius: 50%; }
.quantita output { width: 26px; text-align: center; font-weight: 800; font-size: 15px; }
.campi { display: grid; gap: 10px; margin-top: 18px; }
.campi label { display: grid; gap: 5px; font-size: 13px; font-weight: 700; }
.campi input { height: 44px; border: 1.5px solid #cfcfcf; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; }
.campi input:focus { border-color: var(--nero); outline: none; }
.facoltativo { font-weight: 400; color: var(--grigio); }
.carrello-piede { border-top: 2px solid var(--nero); padding: 14px 20px 18px; display: grid; gap: 10px; }
.totale { display: flex; justify-content: space-between; align-items: baseline; }
.totale span { font-weight: 700; }
.totale b { font-size: 30px; font-weight: 900; font-stretch: 75%; }
.carrello-piede .btn { width: 100%; }
.carrello-piede p { margin: 0; font-size: 12.5px; color: var(--grigio); line-height: 1.4; }

.barra-ordine { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 70; display: none; align-items: center; justify-content: space-between; gap: 12px; background: var(--nero); color: #fff; border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.3); border: 0; cursor: pointer; font-weight: 800; font-size: 14px; text-align: left; }
.barra-ordine .vai { background: var(--fucsia-btn); border-radius: 99px; padding: 10px 14px; }
@media (max-width: 760px) { .barra-ordine.visibile { display: flex; } body.con-barra { padding-bottom: 72px; } }
body.ordine-aperto .barra-ordine { display: none; }

.avviso { position: fixed; left: 50%; bottom: 22px; z-index: 110; transform: translate(-50%, 160%); visibility: hidden; transition: transform .35s var(--molla), visibility 0s linear .35s; background: var(--nero); color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; display: flex; gap: 14px; align-items: center; font-weight: 700; font-size: 14px; max-width: calc(100% - 24px); }
.avviso img { width: 34px; border-radius: 2px; }
.avviso.visibile { transform: translate(-50%, 0); visibility: visible; transition: transform .35s var(--molla); }
.avviso button { background: var(--fucsia-btn); color: #fff; border: 0; border-radius: 99px; padding: 8px 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
@media (max-width: 760px) { .avviso { display: none; } }

/* =========================================================
   PAGINA QUADERNO
   ========================================================= */
.prodotto { position: relative; overflow: hidden; padding: calc(var(--header-h) + 26px) 0 clamp(64px, 8vw, 100px); }
.briciole { display: inline-block; font-size: 13px; margin: 0 0 18px; font-weight: 600; background: var(--t-bg); padding: 5px 12px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.briciole a { font-weight: 800; }
.prodotto-griglia { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.galleria-principale { position: relative; aspect-ratio: 1 / 1.08; border-radius: 22px; background: var(--t-bg); overflow: hidden; box-shadow: 0 30px 60px -36px rgba(0,0,0,.45); }
.galleria-principale img { position: absolute; top: 7%; right: 7%; bottom: 7%; left: 7%; width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0,0,0,.28)); }
.galleria-principale img.foto { top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.miniature { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 3px 2px 6px; }
.miniature button { flex: 0 0 78px; padding: 6px 4px 5px; border-radius: 10px; border: 2px solid transparent; background: var(--t-bg); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.miniature .min-img { width: 100%; height: 64px; display: grid; place-items: center; }
.miniature .min-nome { font-size: 11px; font-weight: 700; line-height: 1; }
.miniature button[aria-current="true"] { border-color: currentColor; }
.miniature img { max-height: 64px; max-width: 100%; width: auto; height: auto; box-shadow: 0 2px 5px rgba(0,0,0,.18); }
.miniature img.foto { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.prodotto-info .nome { font-size: clamp(54px, 7vw, 96px); margin: 0 0 6px; }
.prodotto-info .sottonome { margin: 0 0 18px; font-weight: 700; opacity: .75; }
.prodotto-info .frase { margin: 0 0 22px; max-width: 44ch; font-size: 17px; }
.aggiungi-riga { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 12px; }
.prodotto .quantita { height: 50px; }
.prodotto .quantita button { width: 44px; height: 48px; }
.disponibilita { font-size: 13px; font-weight: 700; margin: 0 0 22px; display: flex; align-items: center; gap: 8px; }
.disponibilita::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #1fa855; }
.disponibilita.no::before { background: #d5172a; }
.specifiche { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.specifiche li { background: var(--t-bg); border-radius: 12px; padding: 12px 12px 10px; display: grid; gap: 4px; font-size: 13px; font-weight: 600; line-height: 1.25; }
.specifiche svg { width: 26px; height: 26px; }
.specifiche b { font-size: 18px; font-weight: 900; font-stretch: 80%; }
.link-wa { font-size: 14px; font-weight: 800; }
.prodotto .palco-set { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }
.prodotto > .contenitore { position: relative; z-index: 2; }
@media (max-width: 760px) { .prodotto-griglia { grid-template-columns: minmax(0, 1fr); } .specifiche { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.altri-sez h2 { font-size: clamp(40px, 5.5vw, 70px); margin-bottom: 24px; }
.pagina-testo { padding: calc(var(--header-h) + 36px) 0 90px; }
.pagina-testo h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 24px; }
.pagina-testo h2 { font-size: 22px; margin: 28px 0 8px; font-stretch: 85%; }
.pagina-testo .testo { max-width: 66ch; }

/* header: tasto WhatsApp */
.header-azioni { display: flex; align-items: center; gap: 10px; }
.btn-wa-header { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 12px; border-radius: 999px; background: #1fa855; color: #fff; text-decoration: none; font-weight: 800; font-size: 14px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35); transition: transform .25s var(--molla); }
.btn-wa-header:hover { transform: translateY(-2px) rotate(-2deg); }
.btn-wa-header svg { width: 20px; height: 20px; }
@media (max-width: 520px) { .btn-wa-header span { display: none; } .btn-wa-header { padding: 0; width: 42px; justify-content: center; } }

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

/* pagina quaderno: angoli decorativi più piccoli, dietro al contenuto */
.prodotto .palco-set .d { opacity: 0; }
.prodotto .palco-set.attivo .d { opacity: 1; }
/* angoli a filo dei bordi della sezione (che inizia sotto il banner) */
.prodotto .a-tl { top: var(--header-h); left: 0; } .prodotto .a-tr { top: var(--header-h); right: 0; }
.prodotto .a-bl { bottom: 0; left: 0; } .prodotto .a-br { bottom: 0; right: 0; }
.prodotto .p-unf-tl { width: clamp(160px, 17vw, 300px); } .prodotto .p-unf-br { width: clamp(170px, 18vw, 320px); }
.prodotto .p-re-tl { width: clamp(130px, 13vw, 230px); } .prodotto .p-re-br { width: clamp(150px, 15vw, 270px); }
.prodotto .p-scr-tl { width: clamp(130px, 13vw, 230px); } .prodotto .p-scr-tr { width: clamp(110px, 11vw, 190px); }
.prodotto .p-scr-bl { width: clamp(170px, 18vw, 320px); } .prodotto .p-scr-br { width: clamp(170px, 18vw, 320px); }
.prodotto .p-ves-appeso { right: clamp(8px, 2.5vw, 50px); top: var(--header-h); width: clamp(90px, 8vw, 150px); }
.prodotto .p-ves-appeso .p { display: block; position: relative; padding-top: 4vh; transform: none; transform-origin: 50% 0; }
.prodotto .palco-set.attivo .p-ves-appeso .p { animation: penzola 4s ease-in-out .8s infinite; }
.prodotto .p-ves-appeso .p::before { content: ""; position: absolute; left: 50.9%; top: 0; width: 6.2%; transform: translateX(-50%); height: calc(4vh + 4px); background: linear-gradient(90deg, #1b2c6e, #2f4aa8 45%, #1b2c6e); }
.prodotto .p-gl-carta { top: 0; right: 0; bottom: 0; left: 0; background-position: center top; background-size: clamp(300px, 26vw, 460px) auto; background-repeat: repeat; }
.prodotto .p-gl-carta::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(239,227,204,.82); }
.prodotto .briciole { position: relative; z-index: 3; }
@media (max-width: 760px) { .prodotto .palco-set .d:not(.p-gl-carta) { display: none; } }

.regalo .btn-chiaro { background: var(--t-reg-ink, #fff); border-color: var(--t-reg-ink, #fff); color: var(--t-reg, #000); }
.oggetto .sorpresa img, .oggetto .sorpresa-fissa { box-shadow: none; border-radius: 0; }

/* header nero: logo, WhatsApp, ordine */
.header .btn-carrello { background: #fff; color: #000; box-shadow: none; }
.header .btn-carrello .conta[data-zero="true"] { background: #e9e6e1; color: #000; }

/* Vesuvio: il vulcano dietro le copertine, cornetto appeso col laccio rosso */
.scena .p-ves-monte { left: 50%; top: 7%; bottom: auto; width: min(124vw, 2100px); margin-left: calc(min(124vw, 2100px) / -2); }
.scena .p-ves-monte img { opacity: .5; }
.scena .p-ves-appeso { right: clamp(8px, 2vw, 50px); top: 0; width: clamp(100px, 9vw, 170px); }
.scena .p-ves-appeso .p { display: block; position: relative; padding-top: calc(var(--header-h) + 7vh); transform: none; transform-origin: 50% 0; }
.palco-set.attivo .p-ves-appeso .p { animation: penzola 4s ease-in-out .8s infinite; }
.scena .p-ves-appeso .p::before { content: ""; position: absolute; left: 50.9%; top: 0; width: 6.2%; transform: translateX(-50%); height: calc(var(--header-h) + 7vh + 4px); background: linear-gradient(90deg, #1b2c6e, #2f4aa8 45%, #1b2c6e); }
@keyframes penzola { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }

/* Good Luck: carta da regalo con tutti i portafortuna della copertina */
.scena .p-gl-carta { top: 0; right: 0; bottom: 0; left: 0; background-position: center top; background-size: clamp(300px, 26vw, 460px) auto; background-repeat: repeat; }
.scena .p-gl-carta::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse 34% 24% at 50% 87%, rgba(251,244,232,.97) 0 55%, rgba(251,244,232,0) 100%), rgba(251,244,232,.38); }
.palco-set .p-gl-carta { transition: opacity .6s ease; }

@media (max-width: 760px) {
  .scena .p-ves-monte { top: 14%; width: 190vw; margin-left: -95vw; }
  .scena .p-ves-appeso { right: 0; width: 56px; }
  .scena .p-ves-appeso .p { padding-top: calc(var(--header-h) + 14px); }
  .scena .p-ves-appeso .p::before { height: calc(var(--header-h) + 18px); }
  .scena .p-gl-carta { background-size: 220px auto; }
  .scena .p-gl-carta::after { background: radial-gradient(ellipse 62% 24% at 50% 79%, rgba(251,244,232,.97) 0 60%, rgba(251,244,232,0) 100%), rgba(251,244,232,.38); }
}
.polaroid.polaroid-piccola img { aspect-ratio: 3 / 4; object-position: 50% 0; }
.polaroid.polaroid-piccola img { aspect-ratio: 941 / 1254; object-fit: cover; object-position: 50% 0; }
.pagina-interna main.pagina-testo { padding-top: calc(var(--header-h) + 36px); }
.hero .cartellino::before { background: var(--t-bg); }

/* compatibilità con browser meno recenti (Chrome/Safari di qualche anno fa) */
@supports not (aspect-ratio: 1) {
  .busta { height: calc(var(--u) * 39.2); }
  .galleria-principale { height: 0; padding-bottom: 108%; }
  .polaroid img { height: auto; }
}

/* pacchetto fotografato: sostituisce la busta disegnata */
.busta-foto-box { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.busta-foto { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 22px 26px rgba(0,0,0,.35)); }
.busta-mistero { position: absolute; transform: translate(-50%, -50%) rotate(-8deg); filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.busta.con-foto { aspect-ratio: var(--ar, .74); }
.busta.con-foto .busta-dentro, .busta.con-foto .busta-vetro { display: none; }
.busta.con-foto .busta-logo { display: none; }
.busta.con-foto { width: calc(var(--u) * 37); width: min(calc(var(--u) * 37), calc(var(--u) * 35 * var(--ar, .74))); }
@media (max-width: 900px) { .busta.con-foto { width: 270px; } }

.scarta .cartellino::before { background: var(--t-bg); }
.scarta-piede .cartellino { margin-right: 6px; }
@media (min-width: 761px) and (max-aspect-ratio: 4/5) { .hero { min-height: 0; padding-top: calc(var(--header-h) + 72px); padding-bottom: 56px; } .ventaglio-zona { --vz: 36vw; } .ventaglio li { --w: 16.5vw; } }
