/* Imposta colori principali */
:root {
    --main-red: #d50000;
    --main-white: #ffffff;
    --secondary-black: #000000;
}

/* Stili generali */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--main-white);
    color: var(--secondary-black);
    padding-top: 70px; /* Altezza dell'header */
}

/* Header solo con il logo centrato */
header {
    background-color: var(--main-red);
    padding: 10px 20px;
    display: flex;
    justify-content: center; /* Centra il logo orizzontalmente */
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .logo img {
    width: 300px; /* Puoi adattare la larghezza secondo necessità */
    display: block;
}

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    color: white;
}

/* Sezione Storia */
.storia-section {
    padding: 50px;
    background-color: var(--main-white);
}

.storia-section h2 {
    color: var(--main-red);
}

/* Sezione Rosa */
.rosa-section {
    background-color: var(--main-red);
    color: var(--main-white);
    padding: 50px;
}

.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.player-card {
    background-color: var(--main-white);
    color: var(--main-red);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.player-card img {
    width: 100%;
    border-radius: 50%;
}

.player-card h3 {
    margin: 10px 0 5px;
}

.player-card p {
    margin: 0;
}

/* Sezione Sponsor */
.sponsor-section {
    padding: 50px;
    background-color: var(--main-white);
    overflow: hidden;
    position: relative;
}

.sponsor-carousel {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.sponsor-track {
    display: flex;
    width: calc(200%);
    animation: scroll 20s linear infinite;
}

.sponsor {
    flex: 0 0 20%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.sponsor img {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Animazione per lo scorrimento */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Sezione Dirette */
.dirette-section {
    background-color: var(--main-red);
    color: var(--main-white);
    padding: 50px;
    text-align: center;
}

.live-player iframe {
    width: 80%;
    height: 400px;
}

/* Footer */
footer {
    background-color: var(--main-red);
    color: var(--main-white);
    padding: 20px;
    text-align: center;
}

.social-links a {
    margin: 0 10px;
    text-decoration: none;
    color: var(--main-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

p {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

/* Media Queries per schermi più piccoli */
@media (max-width: 600px) {
    .hero-section {
        height: 300px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .player-card img {
        width: 60%;
    }

    .sponsor img {
        width: 100px;
    }

    .live-player iframe {
        width: 100%;
        height: 250px;
    }
}
