/* RESET BASE */
body {
    margin: 0;
    font-family: 'Segoe UI', Arial;
    background: #0b1c3d;
    color: white;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    background: #09142b;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* MENU LINKS */
.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

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

/* HAMBURGER */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* CONTAINER */
.container {
    padding: 25px;
}

/* TITOLI */
h1, h2, h3 {
    color: #ffd700;
    text-align: center;
}

/* CARD */
.card {
    background: #142a5c;
    border-radius: 12px;
    padding: 20px;
    margin: 10px 0;
}

/* BOTTONI */
button {
    background: #ffd700;
    border: none;
    padding: 8px 12px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* HERO */
.hero-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-right img {
    width: 250px;
    border-radius: 12px;
}

/* ========================= */
/* 🔥 BRACKET DESKTOP */
/* ========================= */

.wrapper {
    overflow-x: auto;
    padding: 20px;
}

/* layout orizzontale */
.bracket {
    display: flex;
    gap: 60px;
    min-width: 900px;
}

/* colonne */
.bracket-round {
    display: flex;
    flex-direction: column;
    gap: 60px;
    align-items: center;
}

.bracket-round.semi {
    flex-direction: column;
    gap: 60px;
}

/* match */
.bracket-match {
    background: linear-gradient(145deg, #142a5c, #1f3c88);
    padding: 12px;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.match-date {
    font-size: 12px;
    color: #ffd700;
    margin-bottom: 5px;
}

/* ========================= */
/* 📱 MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
    }

    .nav-links.open {
        display: flex;
    }

    .container {
        padding: 10px;
    }

    /* 🔥 BRACKET MOBILE (VERTICALE) */
    .wrapper {
        overflow-x: hidden;
    }

    .bracket {
        flex-direction: column;
        min-width: unset;
        gap: 40px;
        align-items: center;
    }

    .bracket-round {
        width: 100%;
        align-items: center;
    }

    .bracket-round.semi {
        flex-direction: column;
    }

    .bracket-match {
        width: 90%;
        max-width: 300px;
    }
 }

/* ========================= */
/* ⏳ COUNTDOWN PRO */
/* ========================= */

.countdown-wrapper{
    display:flex;
    justify-content:center;
    gap:15px;
    margin-top:30px;
    flex-wrap:wrap;
}

.countdown-box{
    background:linear-gradient(145deg,#142a5c,#1f3c88);
    border:1px solid rgba(255,215,0,0.3);
    border-radius:16px;
    padding:20px;
    min-width:90px;
    text-align:center;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
    animation:glow 2s infinite alternate;
}

.countdown-number{
    font-size:38px;
    font-weight:bold;
    color:#ffd700;
    line-height:1;
}

.countdown-label{
    margin-top:8px;
    font-size:13px;
    color:#ccc;
    text-transform:uppercase;
    letter-spacing:1px;
}

@keyframes glow{

    from{
        box-shadow:0 0 10px rgba(255,215,0,0.15);
    }

    to{
        box-shadow:0 0 25px rgba(255,215,0,0.4);
    }
}



