/* Reset base */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Corpo pagina */
html, body {
    height: 100%;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #0f172a;
    color: #f8fafc;
}

/* Wrapper principale */
.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 120px;
}

/* Container centrale */
.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    width: 95%;
    max-width: 1400px;
    border: 2px solid #38bdf8;
    border-radius: 15px;
    padding: 20px;
    gap: 15px;
    background: rgba(15,23,42,0.95);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Colonne */
.column {
    background: rgba(15,23,42,0.85);
    border-radius: 12px;
    padding: 25px;
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.column:not(:last-child) {
    border-right: 1px solid #38bdf8;
}

/* Sinistra: manutenzione */
.left h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: center;
}

.left p {
    margin: 6px 0;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: center;
}

.left .gear {
    font-size: 3rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Centro: video */
.center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container {
    width: 100%;
    max-width: 640px;
    aspect-ratio: 16/9;
}

.video-js {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Destra: pagamento */
.payment h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    text-align: center;
}

.payment p {
    margin: 8px 0;
    text-align: center;
}

.payment input {
    width: 80%;
    padding: 10px 14px;
    margin: 10px auto;
    border-radius: 6px;
    border: none;
    font-size: 1rem;
    display: block;
}

.payment button {
    margin-top: 15px;
    padding: 12px 25px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: linear-gradient(90deg,#38bdf8,#0ea5e9);
    color: #0f172a;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: 0.3s;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.payment button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

/* QR Code */
.qr {
    text-align: center;
    border-right: none !important;
}

.qr img {
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.qr p {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #fbbf24;
}

/* Footer fisso */
footer {
    width: 100%;
    text-align: center;
    padding: 20px 10px;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.3);
    position: fixed;
    bottom: 0;
    left: 0;
}

footer a {
    color: #38bdf8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media(max-width:1024px) {
    .container {
        flex-direction: column;
        align-items: center;
    }

    .column {
        width: 100%;
        max-width: 95%;
        border-right: none;
        border-bottom: 1px solid #38bdf8;
        margin-bottom: 10px;
    }

    .column:last-child {
        border-bottom: none;
    }

    .video-container {
        max-width: 100%;
        height: auto;
    }
}

@media(max-width:480px) {
    .container {
        transform: scale(0.85);
    }

    .left h1,
    .payment h2 {
        font-size: 1.4rem;
    }
}