/* Slide "CHIUSURA 2027" (dc_slider, presets CHIUSURA 2027 desktop/mobile).
   Il contenuto e' un blocco testo del modulo con classi .svdcl-*; qui stile + animazioni.
   Caricato solo in home da themes/svapodream/templates/_partials/header.tpl (blocco header_banner). */

/* il blocco del modulo diventa tela piena, non cattura i click (resta cliccabile il link della slide) */
.dcs-block:has(.svdcl){left:0 !important;top:0 !important;transform:none !important;width:100% !important;height:100% !important;max-width:none !important;pointer-events:none !important;}
.dcs-block:has(.svdcl) .dcs-block-content{width:100%;height:100%;}
.dcs-slide:has(.svdcl){background:#000 !important;}

.svdcl{--o:#ff6a13;position:relative;width:100%;height:100%;overflow:hidden;background:#000;color:#fff;font-family:Lato,Arial,Helvetica,sans-serif;line-height:1;text-align:left;}
.svdcl *{box-sizing:border-box;}
.svdcl p,.svdcl div{margin:0;}
.svdcl .a{font-family:Anton,Impact,'Arial Narrow Bold',sans-serif;text-transform:uppercase;font-weight:400;}
.svdcl-abs{position:absolute;}

/* nastro segnaletico che scorre */
.svdcl-tape{position:absolute;left:0;right:0;height:16px;background:repeating-linear-gradient(-45deg,var(--o) 0 22px,#000 22px 44px);background-size:62.2px 62.2px;animation:svdclTape 1.6s linear infinite;z-index:5;}
.svdcl-tape--t{top:0;}.svdcl-tape--b{bottom:0;animation-direction:reverse;}
@keyframes svdclTape{to{background-position:62.2px 0;}}

.svdcl-logo{background:url("../img/svd-logo-white.png") no-repeat left center/contain;}
.svdcl-tag{display:inline-block;background:#fff;color:#000;letter-spacing:3px;padding:4px 14px;transform:rotate(-2deg);animation:svdclPop .5s .15s cubic-bezier(.3,1.6,.5,1) both;}
.svdcl-chiud{color:#fff;letter-spacing:-1px;white-space:nowrap;text-shadow:8px 8px 0 var(--o);}
.svdcl-chiud .w{display:inline-block;animation:svdclShake 5s 3s infinite;}
.svdcl-chiud .w span{display:inline-block;animation:svdclDrop .55s cubic-bezier(.3,1.5,.5,1) both;}
.svdcl-chiud .w span:nth-child(1){animation-delay:.35s}.svdcl-chiud .w span:nth-child(2){animation-delay:.41s}.svdcl-chiud .w span:nth-child(3){animation-delay:.47s}.svdcl-chiud .w span:nth-child(4){animation-delay:.53s}.svdcl-chiud .w span:nth-child(5){animation-delay:.59s}.svdcl-chiud .w span:nth-child(6){animation-delay:.65s}.svdcl-chiud .w span:nth-child(7){animation-delay:.71s}.svdcl-chiud .w span:nth-child(8){animation-delay:.77s}.svdcl-chiud .w span:nth-child(9){animation-delay:.83s}.svdcl-chiud .w span:nth-child(10){animation-delay:.97s}
.svdcl-date{color:var(--o);white-space:nowrap;animation:svdclLeft .6s 1.1s cubic-bezier(.2,.9,.3,1) both;}
.svdcl-div{background:var(--o);transform-origin:50% 0;animation:svdclGrow .6s 1.2s ease-out both;}
.svdcl-kick{font-weight:900;color:var(--o);text-transform:uppercase;animation:svdclUp .5s 1.4s ease-out both;}
.svdcl-why{color:#fff;line-height:1.02;animation:svdclUp .5s 1.55s ease-out both;}
.svdcl-txt{color:#ccc;line-height:1.38;animation:svdclUp .5s 1.75s ease-out both;}
.svdcl-b{color:#fff;font-weight:900;}
.svdcl-ul{background:linear-gradient(var(--o),var(--o)) no-repeat 0 100%/0 4px;padding-bottom:3px;animation:svdclLine .6s 2.4s ease-out forwards;}

/* contatore "mancano xx giorni" (numero aggiornato da JS in header.tpl) */
.svdcl-cd{border:3px solid #444;display:flex;flex-direction:column;align-items:flex-start;animation:svdclUp .5s 1.3s ease-out both;}
.svdcl-cd__l{font-weight:900;text-transform:uppercase;color:#999;line-height:1.2;}
.svdcl-cd__r{display:flex;align-items:baseline;}
.svdcl-cd__n{color:var(--o);animation:svdclBlink 1.1s steps(1,end) infinite;}
.svdcl-cd__g{color:#fff;}
@keyframes svdclBlink{50%{opacity:.15;}}

/* pulsante "scopri di piu'" (decorativo: tutta la slide e' gia' un link alla pagina) */
.svdcl-cta{z-index:6;display:inline-flex;align-items:center;gap:.45em;background:var(--o);color:#000;letter-spacing:1px;white-space:nowrap;}
.svdcl-cta__a{display:inline-block;animation:svdclNudge 1.2s ease-in-out infinite;}
@keyframes svdclNudge{0%,100%{transform:translateX(0);}50%{transform:translateX(7px);}}
@keyframes svdclSticker{0%,100%{transform:rotate(-4deg) scale(1);}50%{transform:rotate(-4deg) scale(1.08);}}
@keyframes svdclStickerIn{0%{opacity:0;transform:rotate(-4deg) scale(2);}100%{opacity:1;transform:rotate(-4deg) scale(1);}}

/* pannello arancio strappato */
.svdcl-panel{background:var(--o);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;}
.svdcl-equindi{color:#fff;}
.svdcl-fuori{color:#000;letter-spacing:-1px;}
.svdcl-fuori .w{display:inline-block;animation:svdclStamp .45s 2.15s cubic-bezier(.2,1.6,.4,1) both,svdclBeat 2.4s 3.2s ease-in-out infinite;}
.svdcl-svuota{color:#fff;line-height:1.02;}

@keyframes svdclDrop{0%{opacity:0;transform:translateY(-140px) rotate(-12deg);}100%{opacity:1;transform:none;}}
@keyframes svdclShake{0%,88%,100%{transform:none;}90%{transform:translate(-6px,2px) rotate(-1.5deg);}92%{transform:translate(6px,-2px) rotate(1.5deg);}94%{transform:translate(-3px,1px) rotate(-.8deg);}96%{transform:translate(2px,0) rotate(.4deg);}}
@keyframes svdclPop{0%{opacity:0;transform:rotate(-2deg) scale(.4);}100%{opacity:1;transform:rotate(-2deg) scale(1);}}
@keyframes svdclLeft{0%{opacity:0;transform:translateX(-60px);}100%{opacity:1;transform:none;}}
@keyframes svdclUp{0%{opacity:0;transform:translateY(24px);}100%{opacity:1;transform:none;}}
@keyframes svdclGrow{0%{transform:scaleY(0);}100%{transform:scaleY(1);}}
@keyframes svdclLine{to{background-size:100% 4px;}}
@keyframes svdclPanel{0%{transform:translateX(110%);}70%{transform:translateX(-2%);}100%{transform:none;}}
@keyframes svdclPanelUp{0%{transform:translateY(110%);}70%{transform:translateY(-3%);}100%{transform:none;}}
@keyframes svdclStamp{0%{opacity:0;transform:scale(2);}100%{opacity:1;transform:scale(1);}}
@keyframes svdclBeat{0%,100%{transform:scale(1);}50%{transform:scale(1.05);}}

/* ===== DESKTOP 1920x500 ===== */
.svdcl--d .svdcl-logo{left:80px;top:52px;width:400px;height:46px;}
.svdcl--d .svdcl-tagw{left:80px;top:140px;}
.svdcl--d .svdcl-tag{font-size:40px;line-height:48px;}
.svdcl--d .svdcl-chiud{left:80px;top:200px;font-size:172px;line-height:176px;}
.svdcl--d .svdcl-date{left:80px;top:392px;font-size:62px;line-height:66px;}
.svdcl--d .svdcl-cd{left:500px;top:382px;padding:8px 18px 6px;border-width:3px;}
.svdcl--d .svdcl-cd__l{font-size:16px;letter-spacing:5px;}
.svdcl--d .svdcl-cd__n{font-size:58px;line-height:60px;}
.svdcl--d .svdcl-cd__g{font-size:26px;letter-spacing:2px;margin-left:10px;}
.svdcl--d .svdcl-div{left:830px;top:80px;width:4px;height:340px;}
.svdcl--d .svdcl-kick{left:880px;top:84px;font-size:26px;letter-spacing:6px;}
.svdcl--d .svdcl-why{left:880px;top:122px;font-size:64px;}
.svdcl--d .svdcl-txt{left:880px;top:266px;width:450px;font-size:27px;}
.svdcl--d .svdcl-cta{left:880px;top:404px;font-size:26px;padding:8px 20px 6px;box-shadow:5px 5px 0 #fff;animation:svdclUp .5s 2.7s ease-out both;}
.svdcl--d .svdcl-panel{left:1345px;top:16px;bottom:16px;right:0;padding-left:30px;clip-path:polygon(4% 0,100% 0,100% 100%,0 100%,3% 93%,1% 86%,5% 78%,2% 70%,6% 61%,3% 52%,7% 43%,2% 35%,6% 26%,3% 18%,7% 9%);animation:svdclPanel .7s 1.9s cubic-bezier(.2,.9,.3,1) both;}
.svdcl--d .svdcl-equindi{font-size:44px;line-height:50px;}
.svdcl--d .svdcl-fuori{font-size:150px;line-height:132px;padding:4px 0 10px;}
.svdcl--d .svdcl-svuota{font-size:50px;}

/* ===== MOBILE 768x500 ===== */
.svdcl--m .svdcl-tape{height:12px;}
.svdcl--m .svdcl-logo{left:36px;top:36px;width:250px;height:30px;}
.svdcl--m .svdcl-tagw{left:36px;top:92px;}
.svdcl--m .svdcl-tag{font-size:20px;line-height:26px;padding:2px 10px;letter-spacing:2px;}
.svdcl--m .svdcl-chiud{left:36px;top:124px;font-size:90px;line-height:94px;text-shadow:5px 5px 0 var(--o);}
.svdcl--m .svdcl-date{left:36px;top:234px;font-size:31px;line-height:36px;}
.svdcl--m .svdcl-cd{left:262px;top:224px;padding:4px 10px 3px;border-width:2px;}
.svdcl--m .svdcl-cd__l{font-size:10px;letter-spacing:3px;}
.svdcl--m .svdcl-cd__n{font-size:34px;line-height:36px;}
.svdcl--m .svdcl-cd__g{font-size:15px;letter-spacing:1px;margin-left:6px;}
.svdcl--m .svdcl-div{left:420px;top:44px;width:3px;height:220px;}
.svdcl--m .svdcl-kick{left:444px;top:50px;font-size:15px;letter-spacing:4px;}
.svdcl--m .svdcl-why{left:444px;top:74px;font-size:38px;}
.svdcl--m .svdcl-txt{left:444px;top:162px;width:300px;font-size:17px;}
.svdcl--m .svdcl-ul{background-size:0 3px;}
@keyframes svdclLineM{to{background-size:100% 3px;}}
.svdcl--m .svdcl-ul{animation-name:svdclLineM;}
.svdcl--m .svdcl-panel{left:0;right:0;top:285px;bottom:12px;padding-top:14px;clip-path:polygon(0 9%,6% 3%,12% 10%,19% 2%,26% 8%,33% 1%,41% 9%,48% 3%,56% 10%,63% 2%,71% 8%,78% 1%,86% 9%,93% 3%,100% 8%,100% 100%,0 100%);animation:svdclPanelUp .7s 1.9s cubic-bezier(.2,.9,.3,1) both;}
.svdcl--m .svdcl-equindi{font-size:26px;line-height:30px;}
.svdcl--m .svdcl-fuori{font-size:88px;line-height:86px;}
.svdcl--m .svdcl-svuota{font-size:30px;}
.svdcl--m .svdcl-cta{right:18px;bottom:26px;font-size:19px;padding:6px 12px 4px;background:#000;color:#fff;box-shadow:3px 3px 0 #fff;animation:svdclStickerIn .45s 2.7s cubic-bezier(.2,1.6,.4,1) both,svdclSticker 1.6s 3.3s ease-in-out infinite;}
.svdcl--m .svdcl-cta__a{color:var(--o);}

@media (prefers-reduced-motion:reduce){.svdcl *,.svdcl-tape,.svdcl-panel{animation:none !important;}.svdcl-ul{background-size:100% 4px !important;}}
