*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:Arial, sans-serif;
}

body{
background:#0a0a10;
color:white;
overflow-x:hidden;
}

/* TOPBAR */
.topbar{
background:linear-gradient(90deg,#ff6a00,#ff2d55);
text-align:center;
padding:6px;
font-size:13px;
letter-spacing:1px;
}

/* NAVBAR */
.navbar{
position:fixed;
top:0;
width:100%;
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 40px;
background:rgba(0,0,0,0.45);
backdrop-filter:blur(15px);
z-index:1000;
}

.navbar ul{
display:flex;
gap:20px;
list-style:none;
}

.navbar a{
color:white;
text-decoration:none;
transition:0.3s;
}

.navbar a:hover{
color:#ff6a00;
}

.nav-right{
display:flex;
gap:15px;
align-items:center;
}

/* BUTTON GENERICO */
button{
background:#ff6a00;
border:none;
padding:8px 15px;
color:white;
border-radius:20px;
cursor:pointer;
transition:0.3s;
}

button:hover{
transform:scale(1.05);
background:#ff7a1a;
}

/* HERO */
.hero{
height:100vh;
background:url("images/hero.jpg") center/cover no-repeat;
display:flex;
align-items:center;
justify-content:center;
position:relative;
}

.overlay{
position:absolute;
inset:0;
background:radial-gradient(circle,rgba(0,0,0,0.4),rgba(0,0,0,0.9));
display:flex;
flex-direction:column;
align-items:center;
justify-content:center;
text-align:center;
padding:20px;
}

.title{
font-size:75px;
letter-spacing:3px;
text-transform:uppercase;
}

.hero p{
color:#ccc;
margin-top:10px;
}

/* COUNTDOWN */
.countdown{
margin-top:15px;
font-size:18px;
color:#ff6a00;
font-weight:bold;
}

/* HERO BUTTONS */
.hero-buttons{
margin-top:20px;
display:flex;
gap:15px;
flex-wrap:wrap;
justify-content:center;
}

.btn{
padding:12px 22px;
border-radius:30px;
text-decoration:none;
color:white;
font-weight:bold;
display:inline-block;
transition:0.3s;
}

.primary{background:#ff6a00;}
.secondary{background:#222;}
.ghost{background:transparent;border:1px solid #ff6a00;}

.btn:hover{
transform:scale(1.05);
}

/* SECTIONS */
.section{
padding:120px 10%;
}

.dark{
background:#111;
}

/* TITOLI */
h2{
text-align:center;
margin-bottom:40px;
font-size:38px;
}

/* GRID */
.grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
}

/* CARD */
.card{
background:#1a1a1a;
padding:18px;
border-radius:20px;
text-align:center;
cursor:pointer;
transition:0.3s;
border:1px solid #222;
}

.card:hover{
transform:scale(1.05);
border-color:#ff6a00;
}

/* IMMAGINI BIGLIETTI */
.ticket-img{
width:100%;
height:120px;
object-fit:cover;
border-radius:12px;
margin-bottom:10px;
}

/* INFO */
.info-box{
display:flex;
justify-content:center;
gap:30px;
flex-wrap:wrap;
font-size:18px;
color:#ccc;
}

/* ================= CART ================= */

.cart-panel{
position:fixed;
right:-420px;
top:0;
width:380px;
height:100%;
background:#111;
padding:25px;
transition:0.4s;
z-index:2000;
border-left:1px solid #222;
}

.cart-panel.active{
right:0;
}

body.cart-open{
overflow:hidden;
}

#items{
max-height:65vh;
overflow-y:auto;
padding-right:5px;
margin-top:10px;
}

#items::-webkit-scrollbar{
width:6px;
}

#items::-webkit-scrollbar-thumb{
background:#ff6a00;
border-radius:10px;
}

.cart-item{
display:flex;
justify-content:space-between;
align-items:center;
background:#1a1a1a;
padding:10px;
border-radius:12px;
margin-bottom:10px;
}

.cart-actions{
display:flex;
gap:5px;
}

.cart-actions button{
padding:5px 10px;
border-radius:10px;
font-size:16px;
}

#total{
margin-top:15px;
font-size:20px;
color:#ff6a00;
}
.cart-item{
display:flex;
align-items:center;
gap:10px;
background:#1a1a1a;
padding:10px;
border-radius:12px;
margin-bottom:10px;
}

.cart-img{
width:50px;
height:50px;
object-fit:cover;
border-radius:10px;
}

.cart-info{
flex:1;
display:flex;
flex-direction:column;
}

.cart-info small{
color:#aaa;
}

.cart-actions{
display:flex;
gap:5px;
}

.cart-actions button{
padding:5px 8px;
border-radius:8px;
font-size:14px;
}

/* miglior carrello */
.cart-panel{
width:420px;
}

#items{
max-height:65vh;
overflow-y:auto;
}

/* ================= LOGIN ================= */

.modal{
position:fixed;
inset:0;
background:rgba(0,0,0,0.85);
display:none;
align-items:center;
justify-content:center;
z-index:3000;
}

.modal.active{
display:flex;
}

.modal-box{
background:#1a1a1a;
padding:30px;
border-radius:20px;
display:flex;
flex-direction:column;
gap:10px;
min-width:280px;
}

.modal-box input{
padding:10px;
border:none;
border-radius:10px;
background:#222;
color:white;
}

/* ================= TICKET MODAL ================= */

.ticket-modal{
position:fixed;
inset:0;
background:rgba(0,0,0,0.85);
display:none;
justify-content:center;
align-items:center;
z-index:4000;
backdrop-filter:blur(10px);
padding:20px;
}

.ticket-modal.active{
display:flex;
}

.ticket-box{
background:#1a1a1a;
padding:30px;
border-radius:25px;
width:min(1000px,95vw);
max-height:90vh;
overflow-y:auto;
text-align:center;
position:relative;
animation:pop 0.25s ease;
border:1px solid #222;
}

@keyframes pop{
from{transform:scale(0.85);opacity:0;}
to{transform:scale(1);opacity:1;}
}

.modal-img{
width:100%;
height:280px;
object-fit:cover;
border-radius:18px;
margin-bottom:15px;
}

.ticket-box h2{
font-size:32px;
margin:10px 0;
}

.ticket-box h3{
font-size:26px;
color:#ff6a00;
margin:10px 0;
}

.ticket-box p{
color:#ccc;
font-size:16px;
line-height:1.5;
}

.close{
position:absolute;
top:15px;
right:20px;
cursor:pointer;
font-size:22px;
}
.gallery-carousel{
display:flex;
align-items:center;
justify-content:center;
gap:20px;
max-width:1200px;
margin:auto;
}

.gallery-carousel img{
width:100%;
max-width:900px;
height:500px;
object-fit:cover;
border-radius:25px;
box-shadow:0 0 40px rgba(0,0,0,.5);
}

.gallery-btn{
width:60px;
height:60px;
font-size:24px;
border-radius:50%;
background:#ff6a00;
border:none;
cursor:pointer;
transition:.3s;
}

.gallery-btn:hover{
transform:scale(1.1);
}
/* GALLERY CAROUSEL */

.gallery-carousel{
display:flex;
align-items:center;
justify-content:center;
gap:15px;
max-width:800px;
margin:auto;
}

.gallery-carousel img{
width:100%;
max-width:600px;
height:320px;
object-fit:cover;
border-radius:20px;
border:1px solid #222;
box-shadow:0 10px 30px rgba(0,0,0,.4);
transition:.3s;
}

.gallery-btn{
width:50px;
height:50px;
border:none;
border-radius:50%;
background:#ff6a00;
color:white;
font-size:20px;
cursor:pointer;
display:flex;
align-items:center;
justify-content:center;
transition:.3s;
}

.gallery-btn:hover{
transform:scale(1.1);
background:#ff7a1a;
}

@media(max-width:768px){

.gallery-carousel{
gap:10px;
}

.gallery-carousel img{
max-width:100%;
height:220px;
}

.gallery-btn{
width:40px;
height:40px;
font-size:16px;
}

}