/* ==========================================================================
   Aperture: Busta, Scatola, Portone — piatte, a tema invernale, con animazioni al passaggio del mouse
   ========================================================================== */
.intro { overflow: hidden; background: linear-gradient(180deg, #8cc9d2 0%, #b0dce1 48%, #dff3f6 100%); }
.intro > * { position: relative; z-index: 1; }
.intro > .intro-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.intro > .snow-local { position: absolute; z-index: 1; pointer-events: none; }
.intro-stage { transition: transform .9s cubic-bezier(.5, 0, .75, 0), opacity .6s ease .2s; }
.intro.leaving .intro-stage { transform: scale(1.35); opacity: 0; }
.intro.k-porta.leaving .intro-stage { transform: scale(3); }

/* fondale: bagliori che respirano e colline con abeti che si muovono con il mouse */
.intro-bg .orb { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .65), rgba(255, 255, 255, 0) 68%); animation: orbDrift 11s ease-in-out infinite alternate; }
.intro-bg .o1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -16vmax; }
.intro-bg .o2 { width: 38vmax; height: 38vmax; right: -10vmax; top: 6vh; animation-duration: 14s; animation-delay: -4s; background: radial-gradient(circle, rgba(170, 243, 255, .6), rgba(170, 243, 255, 0) 68%); }
.intro-bg .o3 { width: 30vmax; height: 30vmax; left: 30%; bottom: -14vmax; animation-duration: 9s; }
@keyframes orbDrift { to { transform: translate(5vmax, 3vmax) scale(1.12); } }
.intro-bg .hills { position: absolute; left: -3%; right: -3%; bottom: 0; height: clamp(150px, 26vh, 280px); background-size: 100% 100%; background-repeat: no-repeat; transform: translateX(calc(var(--tx, 0) * -14px)); transition: transform .5s ease-out; animation: hillsRise 1.2s cubic-bezier(.2, .9, .2, 1) both; }
@keyframes hillsRise { from { transform: translateY(50px); opacity: 0; } }

/* l'oggetto fluttua piano e si inclina verso il puntatore */
.float { position: relative; transform: perspective(1100px) rotateY(calc(var(--tx, 0) * 9deg)) rotateX(calc(var(--ty, 0) * -7deg)); transition: transform .45s ease-out; animation: floatIn 1s cubic-bezier(.2, 1.2, .3, 1) both; }
.float > [role=button] { animation: bob 4.2s ease-in-out infinite; outline: 0; -webkit-tap-highlight-color: transparent; }
.float > [role=button].open { animation: none; }
.float::after { content: ''; position: absolute; left: 50%; bottom: -34px; width: 70%; height: 20px; margin-left: -35%; border-radius: 50%; background: radial-gradient(closest-side, rgba(36, 59, 69, .32), transparent); animation: shadowBreathe 4.2s ease-in-out infinite; pointer-events: none; }
@keyframes floatIn { from { opacity: 0; translate: 0 40px; scale: .86; } }
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes shadowBreathe { 50% { transform: scale(.84); opacity: .6; } }
.intro-hint { margin-top: 54px; }

/* coriandoli di forme: partono dal centro dell'oggetto */
.pops { position: absolute; left: 50%; top: 45%; width: 0; height: 0; pointer-events: none; z-index: 8; }
.pops i { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2); background: var(--c); clip-path: var(--sh); animation: popOut 1.5s cubic-bezier(.15, .8, .3, 1) both; }
@keyframes popOut { 0% { transform: translate(0, 0) scale(0) rotate(0); opacity: 1; } 15% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + 120px)) scale(1) rotate(var(--r)); opacity: 0; } }

/* ============================ BUSTA ============================ */
.intro .envelope { width: min(440px, 86vw); aspect-ratio: 1.5; perspective: 1300px; }
.intro .envelope .env-back { background: #a9231f; border-radius: 12px; box-shadow: 0 12px 0 rgba(36, 59, 69, .2), 0 50px 60px -30px rgba(20, 40, 50, .5); }
.intro .envelope .letter { background: #fff; border-radius: 8px; padding: 10% 8% 6%; box-shadow: 0 2px 0 rgba(36, 59, 69, .08); transition: transform 1.3s cubic-bezier(.22, 1.05, .3, 1) .6s; background-image: repeating-linear-gradient(0deg, transparent 0 21px, rgba(176, 220, 225, .35) 21px 22px); background-position: 0 70%; background-repeat: no-repeat; background-size: 100% 36%; }
.intro .envelope .letter .for { color: #e8352f; font-weight: 700; }
.intro .envelope .letter .frm { margin-top: 12px; }
.intro .envelope.open .letter { transform: translateY(-64%) rotate(-1.5deg); }
.intro .envelope .env-front::before { background: linear-gradient(172deg, #ee4540, #d92f29); border-radius: 12px; }
.intro .envelope .env-front::after { background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0, 0, 0, .13) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat, linear-gradient(to top left, transparent calc(50% - 1px), rgba(0, 0, 0, .13) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat; }
.intro .envelope .env-stamp { position: absolute; z-index: 4; right: 6%; bottom: 8%; width: 11%; transform: rotate(5deg); filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1); }
.intro .envelope:hover .env-stamp { transform: rotate(-3deg) scale(1.1); }
.intro .envelope .env-name { color: #fff; font-weight: 700; bottom: 9%; transition: opacity .4s, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.intro .envelope:hover .env-name { transform: translateY(-3px); }
.intro .envelope.open .env-name, .intro .envelope.open .env-stamp { opacity: 0; }
.intro .envelope .flap { background: none; clip-path: none; filter: none; height: 58%; transform-style: preserve-3d; transition: transform 1s cubic-bezier(.3, .9, .3, 1), z-index 0s .55s; }
.intro .envelope .flap i { position: absolute; inset: 0; clip-path: polygon(0 0, 100% 0, 50% 100%); backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 12px 12px 0 0; }
.intro .envelope .flap .ff { background: linear-gradient(180deg, #f5504a, #ea3b35); }
.intro .envelope .flap .fb { background: linear-gradient(0deg, #fbd9d6, #fff0ee); transform: rotateX(180deg); }
.intro .envelope:hover:not(.open) .flap { transform: rotateX(17deg); }
.intro .envelope.open .flap { transform: rotateX(180deg); z-index: 0; }
.intro .envelope .seal { top: 57%; width: 70px; height: 70px; background: none; box-shadow: none; font-family: var(--font-script); transition: opacity .3s .1s, transform .5s cubic-bezier(.3, 1.6, .5, 1); animation: sealBeat 2.6s ease-in-out infinite; }
.intro .envelope .seal i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fff 45%, #e3f4f7 100%); box-shadow: 0 5px 0 rgba(0, 0, 0, .22); transition: transform .7s cubic-bezier(.3, 1.2, .4, 1), opacity .5s; }
.intro .envelope .seal .sl { clip-path: polygon(0 0, 56% 0, 44% 100%, 0 100%); }
.intro .envelope .seal .sr { clip-path: polygon(56% 0, 100% 0, 100% 100%, 44% 100%); }
.intro .envelope .seal b { position: relative; font: 700 2.1rem/1 var(--font-script); color: #e8352f; }
.intro .envelope .seal::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); animation: sealRing 2.6s ease-out infinite; }
@keyframes sealBeat { 0%, 100% { scale: 1; } 8% { scale: 1.08; } 16% { scale: 1; } }
@keyframes sealRing { 0% { transform: scale(.92); opacity: .9; } 55%, 100% { transform: scale(1.5); opacity: 0; } }
.intro .envelope:hover .seal { transform: translate(-50%, -50%) scale(1.12) rotate(-8deg); animation: none; }
.intro .envelope.open .seal { opacity: 1; transform: translate(-50%, -50%); animation: none; }
.intro .envelope.open .seal::after, .intro .envelope.open .seal b { display: none; }
.intro .envelope.open .seal .sl { transform: translate(-46px, 30px) rotate(-46deg); opacity: 0; }
.intro .envelope.open .seal .sr { transform: translate(46px, 36px) rotate(52deg); opacity: 0; }

/* ============================ SCATOLA ============================ */
.intro .giftbox { width: min(270px, 66vw, 36vh); aspect-ratio: 1; margin: 70px auto 0; }
.giftbox .gb-rays { position: absolute; left: 50%; top: 28%; width: 340%; aspect-ratio: 1; margin-left: -170%; margin-top: -170%; border-radius: 50%; opacity: 0; transform: scale(.2); background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .85) 0 7deg, rgba(255, 255, 255, 0) 7deg 22deg); -webkit-mask: radial-gradient(closest-side, #000 8%, transparent 70%); mask: radial-gradient(closest-side, #000 8%, transparent 70%); transition: opacity .8s ease .2s, transform 1.4s cubic-bezier(.2, .9, .2, 1) .1s; pointer-events: none; }
.intro .giftbox.open .gb-rays { opacity: .9; transform: scale(1); animation: raysSpin 14s linear infinite; }
@keyframes raysSpin { to { rotate: 360deg; } }
.intro .giftbox .box { left: 7%; right: 7%; height: 70%; border-radius: 8px; background: linear-gradient(90deg, #e8352f, #ef4741 50%, #e8352f); box-shadow: 0 10px 0 rgba(36, 59, 69, .2), 0 40px 50px -26px rgba(20, 40, 50, .55); overflow: hidden; }
.giftbox .rib, .giftbox .rib-v { position: absolute; left: 50%; top: 0; bottom: 0; width: 17%; transform: translateX(-50%); background: #fff; box-shadow: inset 5px 0 0 rgba(176, 220, 225, .35), inset -5px 0 0 rgba(176, 220, 225, .35); }
.giftbox .box .shine { position: absolute; top: -20%; bottom: -20%; width: 22%; left: -40%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); animation: boxShine 4.5s ease-in-out infinite 1s; }
@keyframes boxShine { 0% { left: -40%; } 28%, 100% { left: 140%; } }
.intro .giftbox .lid { left: 0; right: 0; top: 17%; height: 19%; border-radius: 8px; background: linear-gradient(90deg, #f04b45, #f55e58 50%, #f04b45); box-shadow: 0 6px 0 rgba(0, 0, 0, .14); transition: transform 1.1s cubic-bezier(.3, 1.35, .4, 1); overflow: hidden; }
.intro .giftbox .bow { left: 50%; top: -3%; width: 66%; transition: transform 1.1s cubic-bezier(.3, 1.35, .4, 1), opacity .7s .3s; }
.intro .giftbox .tag { right: -17%; top: 46%; background: #fff; color: #e8352f; font-weight: 700; padding: 8px 16px 8px 18px; border-radius: 6px 10px 10px 6px; transform-origin: 0 0; transform: rotate(10deg); box-shadow: 0 4px 0 rgba(36, 59, 69, .18); animation: tagSwing 3.2s ease-in-out infinite; transition: opacity .5s; clip-path: none; }
.giftbox .tag .string { position: absolute; left: -26px; top: 50%; width: 28px; height: 3px; background: #fff; border-radius: 3px; transform: rotate(-18deg); }
@keyframes tagSwing { 50% { transform: rotate(3deg); } }
.intro .giftbox.open .tag { opacity: 0; animation: none; }

/* attesa: ogni tanto la scatola fa un saltello con schiacciamento */
.intro .giftbox:not(.open) { animation: giftHop 3.6s cubic-bezier(.3, 0, .3, 1) infinite; transform-origin: 50% 100%; }
@keyframes giftHop { 0%, 62%, 100% { transform: none; } 68% { transform: scale(1.06, .92); } 76% { transform: translateY(-26px) scale(.96, 1.06); } 84% { transform: scale(1.05, .93); } 90% { transform: scale(.98, 1.02); } }
.intro .giftbox:hover:not(.open) { animation: giftWiggle .55s ease-in-out infinite; }
.intro .giftbox:hover:not(.open) .lid { transform: translateY(-10px) rotate(-2deg); }
.intro .giftbox:hover:not(.open) .bow { transform: translateX(-50%) translateY(-12px) rotate(3deg); }
@keyframes giftWiggle { 25% { transform: rotate(-2.5deg); } 75% { transform: rotate(2.5deg); } }
.intro .giftbox.open { animation: none; }
.intro .giftbox.open .lid { transform: translateY(-150%) rotate(-24deg) translateX(-14%); }
.intro .giftbox.open .bow { transform: translateX(-50%) translateY(-260%) rotate(26deg); opacity: 0; }
.intro .giftbox.open .box { animation: boxPunch .6s cubic-bezier(.3, 1.5, .4, 1); }
@keyframes boxPunch { 30% { transform: scale(1.05, .9); } 60% { transform: scale(.97, 1.05); } }

/* ============================ PORTONE ============================ */
.intro .bigdoor { width: min(290px, 70vw, 36vh); aspect-ratio: .62; margin: 22px auto 0; perspective: 1500px; }
.bigdoor .frame { inset: -14px; border-radius: 160px 160px 8px 8px; background: #fff; box-shadow: 0 12px 0 rgba(36, 59, 69, .18), 0 50px 60px -30px rgba(20, 40, 50, .5); }
.bigdoor .snowcap { position: absolute; left: 6%; right: 6%; top: -14px; height: 26px; background: radial-gradient(circle at 12% 100%, #fff 0 15px, transparent 16px), radial-gradient(circle at 34% 100%, #fff 0 12px, transparent 13px), radial-gradient(circle at 56% 100%, #fff 0 17px, transparent 18px), radial-gradient(circle at 80% 100%, #fff 0 12px, transparent 13px); filter: drop-shadow(0 -2px 0 rgba(176, 220, 225, .7)); }
.intro .bigdoor .inside { border-radius: 148px 148px 4px 4px; background: radial-gradient(circle at 50% 55%, #fffdf0, #ffe9a0 45%, #f5b94a 100%); }
.bigdoor .light { position: absolute; left: 50%; top: 52%; width: 220%; aspect-ratio: 1; margin: -110% 0 0 -110%; border-radius: 50%; opacity: .55; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .8) 0 8deg, rgba(255, 255, 255, 0) 8deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 5%, transparent 70%); mask: radial-gradient(closest-side, #000 5%, transparent 70%); animation: raysSpin 26s linear infinite; }
.bigdoor .st { position: absolute; width: 7px; height: 7px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); animation: twinkle2 2.6s ease-in-out infinite; }
.bigdoor .s1 { left: 22%; top: 30%; } .bigdoor .s2 { left: 70%; top: 24%; animation-delay: .8s; } .bigdoor .s3 { left: 60%; top: 62%; animation-delay: 1.4s; width: 10px; height: 10px; } .bigdoor .s4 { left: 30%; top: 70%; animation-delay: 2s; }
.intro .bigdoor .panel { background: linear-gradient(160deg, #ee4540, #cf2c27); box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .16); transition: transform 1.6s cubic-bezier(.65, 0, .25, 1); backface-visibility: hidden; }
.intro .bigdoor .panel.l { border-radius: 146px 0 0 4px; }
.intro .bigdoor .panel.r { border-radius: 0 146px 4px 0; }
.bigdoor .panel .pn { position: absolute; left: 20%; right: 20%; top: 20%; height: 25%; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3), inset 0 3px 8px rgba(0, 0, 0, .12); }
.bigdoor .panel .pn.b { top: 54%; height: 30%; }
.bigdoor .panel.l .pn { left: 18%; right: 14%; } .bigdoor .panel.r .pn { left: 14%; right: 18%; }
.intro .bigdoor .panel::after { top: 56%; width: 12px; height: 12px; background: radial-gradient(circle at 35% 30%, #fff6c9, #f7c948); box-shadow: 0 0 0 3px rgba(255, 255, 255, .25); transition: box-shadow .3s; }
.intro .bigdoor:hover:not(.open) .panel::after { box-shadow: 0 0 0 4px rgba(255, 233, 160, .7), 0 0 16px 6px rgba(255, 220, 120, .85); }
/* socchiusa al passaggio del mouse: filtra un filo di luce */
.intro .bigdoor:hover:not(.open) .panel.l { transform: rotateY(-9deg); }
.intro .bigdoor:hover:not(.open) .panel.r { transform: rotateY(9deg); }
.intro .bigdoor .panel { transition: transform .5s cubic-bezier(.3, 1.3, .4, 1); }
.intro .bigdoor.open .panel { transition: transform 1.6s cubic-bezier(.65, 0, .25, 1) .1s; }
.intro .bigdoor.open .panel.l { transform: rotateY(-108deg); }
.intro .bigdoor.open .panel.r { transform: rotateY(108deg); }
.intro .bigdoor.open .inside .light { opacity: 1; animation-duration: 8s; }
.intro .bigdoor .wreath { top: 17%; width: 44%; transform-origin: 50% 0; rotate: 0deg; animation: wreathSway 3.6s ease-in-out infinite; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); }
@keyframes wreathSway { 0%, 100% { rotate: -3deg; } 50% { rotate: 3deg; } }
.intro .bigdoor:hover:not(.open) .wreath { animation-duration: 1.1s; }
.intro .bigdoor .name { bottom: 14%; color: #fff; font-weight: 700; text-shadow: none; transition: opacity .5s, transform .4s cubic-bezier(.3, 1.4, .5, 1); }
.intro .bigdoor:hover .name { transform: translateY(-4px); }
.bigdoor .step { position: absolute; left: -22px; right: -22px; bottom: -26px; height: 16px; border-radius: 6px; background: #fff; box-shadow: 0 6px 0 rgba(36, 59, 69, .16); }
/* lanterne ai lati: la luce pulsa */
.bigdoor .lamp { position: absolute; top: 46%; width: 24px; height: 44px; z-index: 2; }
.bigdoor .lamp.l { left: -66px; } .bigdoor .lamp.r { right: -66px; }
.bigdoor .lamp::before { content: ''; position: absolute; left: 50%; top: -12px; width: 3px; height: 12px; background: var(--teal); margin-left: -1.5px; }
.bigdoor .lamp i { position: absolute; inset: 0; border-radius: 6px 6px 10px 10px; background: var(--teal); box-shadow: inset 0 0 0 3px var(--teal); }
.bigdoor .lamp i::after { content: ''; position: absolute; inset: 3px; border-radius: 4px 4px 8px 8px; background: #ffe9a0; box-shadow: 0 0 18px 8px rgba(255, 224, 130, .75); animation: lampGlow 2.4s ease-in-out infinite; }
.bigdoor .lamp.r i::after { animation-delay: -1.2s; }
@keyframes lampGlow { 50% { box-shadow: 0 0 26px 14px rgba(255, 224, 130, .95); background: #fff6c9; } }
@media (max-width: 520px) { .bigdoor .lamp.l { left: -44px; } .bigdoor .lamp.r { right: -44px; } .bigdoor .lamp { width: 18px; height: 34px; } }

@media (prefers-reduced-motion: reduce) {html:not(.force-motion) .float, html:not(.force-motion) .float > [role=button], html:not(.force-motion) .float::after, html:not(.force-motion) .intro .giftbox:not(.open), html:not(.force-motion) .bigdoor .wreath, html:not(.force-motion) .intro-bg .orb, html:not(.force-motion) .intro .envelope .seal, html:not(.force-motion) .intro .envelope .seal::after { animation: none !important; }
}

.intro-bg .hills { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='260' viewBox='0 0 1600 260' preserveAspectRatio='none'%3E%3Cpath fill='%238fbcc6' opacity='.55' d='M40.0 130.0L52.6 153.8L46.6 153.8L59.7 176.2L50.1 176.2L65.2 197.2L42.5 197.2L42.5 200.0L37.5 200.0L37.5 197.2L14.8 197.2L29.9 176.2L20.3 176.2L33.4 153.8L27.4 153.8ZM158.0 93.0L177.3 129.4L168.0 129.4L188.0 163.6L173.4 163.6L196.5 195.7L161.9 195.7L161.9 200.0L154.1 200.0L154.1 195.7L119.5 195.7L142.6 163.6L128.0 163.6L148.0 129.4L138.7 129.4ZM276.0 116.0L291.1 144.6L283.9 144.6L299.6 171.4L288.1 171.4L306.2 196.6L279.0 196.6L279.0 200.0L273.0 200.0L273.0 196.6L245.8 196.6L263.9 171.4L252.4 171.4L268.1 144.6L260.9 144.6ZM394.0 79.0L415.8 120.1L405.3 120.1L428.0 158.9L411.4 158.9L437.6 195.2L398.4 195.2L398.4 200.0L389.6 200.0L389.6 195.2L350.4 195.2L376.6 158.9L360.0 158.9L382.7 120.1L372.2 120.1ZM512.0 102.0L529.6 135.3L521.2 135.3L539.5 166.7L526.1 166.7L547.3 196.1L515.5 196.1L515.5 200.0L508.5 200.0L508.5 196.1L476.7 196.1L497.9 166.7L484.5 166.7L502.8 135.3L494.4 135.3ZM630.0 125.0L643.5 150.5L637.0 150.5L651.1 174.5L640.8 174.5L657.0 197.0L632.7 197.0L632.7 200.0L627.3 200.0L627.3 197.0L603.0 197.0L619.2 174.5L608.9 174.5L623.0 150.5L616.5 150.5ZM748.0 88.0L768.2 126.1L758.5 126.1L779.4 161.9L764.1 161.9L788.3 195.5L752.0 195.5L752.0 200.0L744.0 200.0L744.0 195.5L707.7 195.5L731.9 161.9L716.6 161.9L737.5 126.1L727.8 126.1ZM866.0 111.0L882.0 141.3L874.3 141.3L891.0 169.7L878.8 169.7L898.0 196.4L869.2 196.4L869.2 200.0L862.8 200.0L862.8 196.4L834.0 196.4L853.2 169.7L841.0 169.7L857.7 141.3L850.0 141.3ZM984.0 74.0L1006.7 116.8L995.8 116.8L1019.4 157.2L1002.1 157.2L1029.4 195.0L988.5 195.0L988.5 200.0L979.5 200.0L979.5 195.0L938.6 195.0L965.9 157.2L948.6 157.2L972.2 116.8L961.3 116.8ZM1102.0 97.0L1120.5 132.0L1111.6 132.0L1130.9 165.0L1116.8 165.0L1139.1 195.9L1105.7 195.9L1105.7 200.0L1098.3 200.0L1098.3 195.9L1064.9 195.9L1087.2 165.0L1073.1 165.0L1092.4 132.0L1083.5 132.0ZM1220.0 120.0L1234.4 147.2L1227.5 147.2L1242.5 172.8L1231.5 172.8L1248.8 196.8L1222.9 196.8L1222.9 200.0L1217.1 200.0L1217.1 196.8L1191.2 196.8L1208.5 172.8L1197.5 172.8L1212.5 147.2L1205.6 147.2ZM1338.0 83.0L1359.1 122.8L1349.0 122.8L1370.9 160.2L1354.8 160.2L1380.1 195.3L1342.2 195.3L1342.2 200.0L1333.8 200.0L1333.8 195.3L1295.9 195.3L1321.2 160.2L1305.1 160.2L1327.0 122.8L1316.9 122.8ZM1456.0 106.0L1472.9 138.0L1464.8 138.0L1482.4 168.0L1469.5 168.0L1489.8 196.2L1459.4 196.2L1459.4 200.0L1452.6 200.0L1452.6 196.2L1422.2 196.2L1442.5 168.0L1429.6 168.0L1447.2 138.0L1439.1 138.0ZM1574.0 129.0L1586.8 153.1L1580.6 153.1L1593.9 175.9L1584.2 175.9L1599.6 197.2L1576.6 197.2L1576.6 200.0L1571.4 200.0L1571.4 197.2L1548.4 197.2L1563.8 175.9L1554.1 175.9L1567.4 153.1L1561.2 153.1Z' transform='translate(0 40)'/%3E%3Cpath fill='%233d393b' opacity='.88' d='M70.0 100.0L88.0 134.0L79.4 134.0L98.1 166.0L84.4 166.0L106.0 196.0L73.6 196.0L73.6 200.0L66.4 200.0L66.4 196.0L34.0 196.0L55.6 166.0L41.9 166.0L60.6 134.0L52.0 134.0ZM260.0 47.0L287.5 99.0L274.3 99.0L303.0 148.0L282.0 148.0L315.1 193.9L265.5 193.9L265.5 200.0L254.5 200.0L254.5 193.9L204.9 193.9L238.0 148.0L217.0 148.0L245.7 99.0L232.5 99.0ZM450.0 64.0L474.5 110.2L462.7 110.2L488.2 153.8L469.6 153.8L499.0 194.6L454.9 194.6L454.9 200.0L445.1 200.0L445.1 194.6L401.0 194.6L430.4 153.8L411.8 153.8L437.3 110.2L425.5 110.2ZM640.0 81.0L661.4 121.5L651.1 121.5L673.4 159.5L657.1 159.5L682.8 195.2L644.3 195.2L644.3 200.0L635.7 200.0L635.7 195.2L597.2 195.2L622.9 159.5L606.6 159.5L628.9 121.5L618.6 121.5ZM830.0 98.0L848.4 132.7L839.5 132.7L858.6 165.3L844.7 165.3L866.7 195.9L833.7 195.9L833.7 200.0L826.3 200.0L826.3 195.9L793.3 195.9L815.3 165.3L801.4 165.3L820.5 132.7L811.6 132.7ZM1020.0 45.0L1047.9 97.7L1034.5 97.7L1063.5 147.3L1042.3 147.3L1075.8 193.8L1025.6 193.8L1025.6 200.0L1014.4 200.0L1014.4 193.8L964.2 193.8L997.7 147.3L976.5 147.3L1005.5 97.7L992.1 97.7ZM1210.0 62.0L1234.8 108.9L1222.9 108.9L1248.8 153.1L1229.9 153.1L1259.7 194.5L1215.0 194.5L1215.0 200.0L1205.0 200.0L1205.0 194.5L1160.3 194.5L1190.1 153.1L1171.2 153.1L1197.1 108.9L1185.2 108.9ZM1400.0 79.0L1421.8 120.1L1411.3 120.1L1434.0 158.9L1417.4 158.9L1443.6 195.2L1404.4 195.2L1404.4 200.0L1395.6 200.0L1395.6 195.2L1356.4 195.2L1382.6 158.9L1366.0 158.9L1388.7 120.1L1378.2 120.1ZM1590.0 96.0L1608.7 131.4L1599.7 131.4L1619.2 164.6L1605.0 164.6L1627.4 195.8L1593.7 195.8L1593.7 200.0L1586.3 200.0L1586.3 195.8L1552.6 195.8L1575.0 164.6L1560.8 164.6L1580.3 131.4L1571.3 131.4Z' transform='translate(0 50)'/%3E%3Cpath fill='%23ffffff' d='M0 214C220 190 420 220 700 204S1180 186 1600 212V260H0Z'/%3E%3C/svg%3E") bottom center / 100% 100% no-repeat; }

/* ---- Busta: struttura più chiara (tasca con pieghe, lembo in rilievo, sigillo di ceralacca) ---- */
.intro .envelope .env-back { background: #8f1f1b; }
.intro .envelope .env-front::before {
  clip-path: none; border-radius: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 75,56 0,100' fill='%23c9302a'/%3E%3Cpolygon points='150,0 75,56 150,100' fill='%23c9302a'/%3E%3Cpolygon points='0,100 75,56 150,100' fill='%23ee4842'/%3E%3Cpath d='M0 100 75 56 150 100M0 0 75 56 150 0' fill='none' stroke='%23a6221d' stroke-width='.7' vector-effect='non-scaling-stroke' stroke-opacity='.55'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.intro .envelope .env-front::after {
  clip-path: none; border-radius: 12px; transition: opacity .3s; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 100' preserveAspectRatio='none'%3E%3Cpolygon points='0,0 150,0 75,66' fill='%236e0f0c' fill-opacity='.38'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.intro .envelope.open .env-front::after { opacity: 0; }
.intro .envelope .flap .ff { background: linear-gradient(180deg, #ff6d66, #f1463f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.intro .envelope .flap .fb { background: radial-gradient(circle, #fff 2.2px, transparent 2.8px) 0 0 / 17px 17px, linear-gradient(0deg, #9fd2da, #c3e7ec); }
.intro .envelope .seal i { background: radial-gradient(circle at 34% 28%, #fff1b8, #f7c948 45%, #d99a1f 100%); box-shadow: 0 5px 0 rgba(90, 20, 10, .35), inset 0 0 0 5px rgba(255, 255, 255, .2), inset 0 0 0 7px rgba(150, 90, 10, .25); }
.intro .envelope .seal b { color: #8f1426; text-shadow: 0 1px 0 rgba(255, 255, 255, .55); }
.intro .envelope .seal::after { border-color: rgba(255, 233, 160, .9); }
.intro .envelope .env-name { bottom: 8%; font-size: clamp(1.5rem, 5.4vw, 2.1rem); }

/* Busta aperta: il lembo (il triangolo azzurro a pallini) non resta visibile, si dissolve mentre si apre */
.intro .envelope .flap { opacity: 1; transition: transform 1s cubic-bezier(.3, .9, .3, 1), opacity .15s ease, z-index 0s .55s; }
.intro .envelope.open .flap { opacity: 0; transition: transform 1s cubic-bezier(.3, .9, .3, 1), opacity .4s ease .5s, z-index 0s .55s; }
