body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    line-height: 1.3;
    color: #a72626;
    background-color: #5f5050;
    overflow-x: hidden;
}

/* Barra in alto e menu: definiti in ../style.css (come index.php) */

/* Immagine di fondo */
.background-image {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../immagini/campo.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Menu laterale (stesso stile della pagina Staff) */
.sidebar {
    position: absolute;
    width: 190px;
    background-image: linear-gradient(to bottom right, red, black, red);
    padding: 5px;
    margin: 10px;
    box-shadow: 3px 0 5px gold;
    z-index: 1;
    flex-direction: column;
    border-radius: 15px;
    color: gold;
    min-height: 200px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 20px;
}

.main-menu ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    cursor: pointer;
    padding: 5px;
    font-weight: bold;
    border-bottom: 1px solid gold;
}

.menu-item:hover {
    color: #d9d9d9;
}

/* Contenuto principale */
.main-content {
    flex-grow: 1;
    padding: 40px 40px 40px 250px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.sponsor-container {
    width: 85%;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sponsor-titolo {
    color: #000000;
    margin-top: 0;
    font-size: 1.8em;
    text-align: center;
}

.sponsor-intro {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

.sponsor-vuoto {
    color: #555;
    text-align: center;
}

/* Elenco schede */
.lista-sponsor {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sponsor-card {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 20px;
    border: 2px solid #000;
    border-left: 8px solid #a72626;
    border-radius: 10px;
    background: #fafafa;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    scroll-margin-top: 180px; /* lascia spazio all'header fisso */
}

.sponsor-card:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.sponsor-card.evidenziata {
    box-shadow: 0 0 0 4px gold;
}

/* Riquadro logo */
.sponsor-logo {
    flex: 0 0 220px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 3px solid #000;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    text-decoration: none;
}

.sponsor-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sponsor-iniziali {
    font-family: 'Oswald', sans-serif;
    font-size: 3em;
    font-weight: 700;
    color: #a72626;
}

/* Testo */
.sponsor-testo {
    flex: 1;
    min-width: 0;
}

.sponsor-testo h2 {
    font-family: 'Oswald', sans-serif;
    margin: 0 0 10px 0;
    font-size: 1.5em;
}

.sponsor-testo h2 a {
    color: #a72626;
    text-decoration: none;
}

.sponsor-testo h2 a:hover {
    text-decoration: underline;
}

.sponsor-testo p {
    color: #020202;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.sponsor-bottone {
    display: inline-block;
    padding: 8px 18px;
    background-image: linear-gradient(to bottom right, red, black, red);
    color: gold;
    font-weight: bold;
    text-decoration: none;
    border-radius: 20px;
    transition: opacity 0.3s ease;
}

.sponsor-bottone:hover {
    opacity: 0.85;
}

.sponsor-bottone i {
    margin-left: 6px;
    font-size: 0.85em;
}

/* Footer (stesso stile della pagina Staff) */
.main-footer {
    background-color: #0a0a0a;
    color: #fff;
    margin-top: 100px;
    padding: 20px;
    font-size: 0.9em;
}

.main-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-col {
    flex: 1;
    min-width: 200px;
    margin: 20px 10px;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    color: #FFD700;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 1.3em;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #fff;
}

.footer-contact p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-contact i {
    margin-right: 8px;
    color: #FFD700;
}

.footer-social-links a {
    color: #fff;
    font-size: 1.8em;
    margin-right: 18px;
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: #FFD700;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #2a2a2a;
    text-align: center;
    color: #ccc;
}

/* Tablet e telefono */
@media (max-width: 900px) {
    .sidebar {
        position: static;
        width: auto;
        min-height: 0;
        margin: 15px;
    }

    .main-content {
        padding: 15px;
    }

    .sponsor-container {
        width: 100%;
        padding: 20px;
        box-sizing: border-box;
    }

    .sponsor-card {
        flex-direction: column;
        text-align: center;
    }

    .sponsor-logo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 260px;
    }
}

@media (max-width: 768px) {
    .footer-col {
        text-align: center;
        min-width: unset;
        width: 100%;
        margin: 10px 0;
    }

    .footer-social-links {
        text-align: center;
    }

    .footer-social-links a {
        margin: 0 10px;
    }
}
