Prenota ora – Riva Marina Resort 2026
00Giorni
00Ore
00Min
00Sec
(function(){
const deadline=new Date('2026-01-07T23:59:59+01:00').getTime();
const KEY='cralCountdownDismiss_v3'; // v3 per ignorare eventuale chiusura precedente
function init(){
const bar=document.getElementById('cral-banner');
if(!bar) return;
document.body.classList.add('has-cral-banner');
try{
if(localStorage.getItem(KEY)==='1'){
bar.remove();
document.body.classList.remove('has-cral-banner');
return;
}
}catch(e){}
const d=document.getElementById('cral-d'),
h=document.getElementById('cral-h'),
m=document.getElementById('cral-m'),
s=document.getElementById('cral-s');
const btn=bar.querySelector('.close');
if(btn){
btn.addEventListener('click',function(){
bar.remove();
document.body.classList.remove('has-cral-banner');
try{ localStorage.setItem(KEY,'1'); }catch(e){}
});
}
function pad(n){return (n<10?'0':'')+n;}
function tick(){
const now=Date.now(), diff=deadline-now;
if(diff<=0){
bar.innerHTML='