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

html,
body {
    height: 100%;
}

body {
    background-color: black !important;
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0 !important;
    padding: 0 !important;
}

html {
    scroll-padding-top: 80px;
    /* Ridotto per la navbar */
}

/* Contenitore principale che cresce per spingere il footer in basso */
.page-wrapper {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    /* Occupa tutto lo spazio rimanente */
    margin-top: 60px;
    /* Spazio per l'header fisso */
}

main {
    margin-left: 150px;
    margin-right: 150px;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: "Special Gothic Expanded One", Arial, sans-serif;
}

.form-container {
    max-width: 600px;
    margin: 1.5rem auto;
    padding: 1.5rem;
    border-color: white;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: border 0.3s ease-in-out;
}

.collab-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: left;
    color: greenyellow;
    margin-bottom: 1.5rem;
    letter-spacing: normal;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: bold;
    color: greenyellow;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    color: white;
    transition: border-color 0.3s;
    background-color: #333;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: greenyellow;
    box-shadow: 0 0 0 2px black;
}

p {
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.btn-submit {
    background: greenyellow;
    color: black;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: bold;
}

.btn-submit:hover {
    background: greenyellow;
    transform: translateY(-1px);
}

.alert {
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* STICKY FOOTER - rimane sempre in fondo */
.main-footer {
    flex-shrink: 0;
    /* Non si riduce mai */
    background-color: black;
    color: #f8f9fa;
    font-size: 14px;
    padding: 20px 0;
    margin-top: auto;
    margin-bottom: 0 !important;
    width: 100vw;
    /* Occupa tutta la larghezza viewport */
    margin-left: calc(-50vw + 50%);
    /* Centra e estende ai bordi */
    position: relative;
    border-top: 1px solid white;
}

.main-footer p {
    margin-bottom: 10px;
    font-family: "Special Gothic Expanded One", Arial, sans-serif;
}

/* Stili per i social */
#social {
    margin-top: 1rem;
    display: flex;
    gap: 3rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#social a {
    color: greenyellow;
    font-size: 1.5rem;
    transition: color 0.2s ease-in-out;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
}

#social a:hover {
    color: #fcfcfc;
}

#social a i {
    font-size: inherit;
    color: inherit;
}

/* Media query per dispositivi mobili */
@media (max-width: 767.98px) {
    main {
        margin-left: 20px;
        margin-right: 20px;
        margin-top: 60px;
        margin-bottom: 30px;
    }

    .form-container {
        max-width: 100%;
        margin: 1rem auto;
        padding: 1rem;
    }

    .collab-title {
        font-size: 1.8rem;
    }

    .main-footer {
        padding: 15px 0;
    }

    #social {
        gap: 2rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }

    #social a {
        font-size: 1.3rem;
        min-width: 40px;
        min-height: 40px;
    }
}