body {
    background: #0f0f0f;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

.section {
    padding: 50px 20px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.section p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #ddd;
}

.main {
    padding: 100px 20px;
    text-align: center;
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0;
    transition: opacity 1s ease;
    animation: fadeInContent 1s forwards 3s;
}

.main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.main h1,
.main p {
    position: relative;
    z-index: 2;
    animation: fadeIn 2s ease-out;
}

.main h1 {
    font-size: 3em;
    color: #fff;
}

.main p {
    font-size: 1.2em;
    color: #ddd;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInContent {
    to { opacity: 1; }
}

.main-dj {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-dj:nth-child(even) {
    flex-direction: row-reverse;
}

.main-dj img {
    width: 45%;
    max-width: 500px;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.main-dj:hover img {
    transform: scale(1.05);
}

.main-dj .testo {
    width: 45%;
    text-align: left;
    color: #ddd;
}

.sezione-card {
    padding: 50px 20px;
    background: #222;
    text-align: center;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateX(0);
}

.card {
    background: linear-gradient(45deg, #161616, #3b3b3b);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px;
    text-align: left;
    width: 30%;
    color: #ddd;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s forwards;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.card i {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff;
}

.card p {
    font-size: 1em;
    line-height: 1.6;
}

.section-ultima {
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
    padding: 50px 20px;
    text-align: center;
}

.section-ultima h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.section-ultima p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #ddd;
}

.section-ultima ul {
    list-style: none;
    padding: 0;
}

.section-ultima ul li {
    margin: 5px 0;
    font-size: 1.1em;
    color: #ccc;
}

.section-ultima .ispirazione,
.section-ultima .classe-eventi,
.section-ultima .goal-futuri {
    margin: 30px 0;
    padding: 20px;
    border-radius: 10px;
}

.section-ultima strong {
    color: #fb1d1d;
    font-weight: bold;
}

.social-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-button {
    background: #333;
    color: #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    transition: background 0.3s, transform 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    text-decoration: none;
}


.background-container {
    background-image: url('background.png');
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    position: relative;
    z-index: 0;
    color: #fff;
}

.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay scuro per migliorare la leggibilità */
    z-index: -1;
}


.social-button:hover {
    background: #1d6afb;
    transform: scale(1.1);
}

.whatsapp:hover {
    background: #25D366;
}

.instagram:hover {
    background: #E1306C;
}

footer {
    color: #777;
    padding: 30px 0;
    text-align: center;
    display: flex;
    justify-content: space-around;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: #1d6afb;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info p {
    margin: 5px 0;
}

.main-dj img,
.immagini-eventi img,
.immagini-futuro img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.immagini-futuro img,
.immagini-eventi img {
    object-fit: cover;
}

@media (max-width: 768px) {
    .main-dj {
        flex-direction: column;
    }

    .main-dj img,
    .main-dj .testo {
        width: 100%;
        text-align: center;
    }

    .card {
        width: 100%;
    }

    footer {
        flex-direction: column;
    }
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    animation: fadeOut 1s forwards 3s;
}

.logo-spin {
    width: 150px;
    animation: spin 3s ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.overlay::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(97, 95, 95, 0.3) 20%, transparent 70%);
    filter: blur(80px);
    animation: randomMovement 5s infinite alternate;
}

@keyframes randomMovement {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, -20px); }
}
