/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    padding-top: 180px; /* Spazio per l'header fisso */
}

/* Header Animato */
.main-header {
    position: fixed;
    top: 0;
    width: 80%;
    left: 10%;
    z-index: 1000;
    text-align: center;
    padding: 20px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    border: 3px solid black;
    animation: colorChange 7s infinite;
}

@keyframes colorChange {
    0% { background: #00ffff; color: #0000ff; }
    50% { background: #0000ff; color: #00ffff; }
    100% { background: #00ffff; color: #0000ff; }
}

.header-content h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

/* Container principale */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Slider */
.slider-container {
    width: 100%;
    margin-bottom: 40px;
    border: 5px solid black;
    background: #000;
    line-height: 0; /* Rimuove spazi bianchi sotto l'immagine */
    overflow: hidden;
    border-radius: 15px;
}

.slide {
    width: 100%;
    height: auto;
    display: block;
}

/* Grid Layout per le Card */
.grid-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.card {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 15px;
    border-bottom: 4px solid #00ffff;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h2 {
    margin-bottom: 15px;
    color: #00ffff;
    text-transform: uppercase;
}

.card p {
    margin-bottom: 20px;
    color: #ccc;
    font-size: 0.95rem;
}

/* Bottoni */
.btn {
    display: inline-block;
    background: #00ffff;
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%;
    text-align: center;
}

.btn:hover {
    background: #fff;
}

.btn.secondary {
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
}

.btn.secondary:hover {
    background: #00ffff;
    color: #000;
}

.btn-disabled {
    display: block;
    background: #444;
    color: #888;
    padding: 12px 25px;
    border-radius: 8px;
    text-align: center;
}

.card.disabled {
    opacity: 0.7;
    border-bottom-color: #555;
}

/* Mobile */
@media (max-width: 600px) {
    .main-header {
        width: 100%;
        left: 0;
        border-radius: 0;
    }
    body {
        padding-top: 140px;
    }
}