    /* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #297a38;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.container-home {
    background: white;
    border-radius: 10px;
    width: 60px;
    height: 60px;
    font-size: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    cursor: pointer;
}


header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

input[type="text"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
    font-family: inherit;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="time"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #155227;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-container {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

button[type="submit"],
button[type="reset"] {
    flex: 1;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"] {
    background: #155227;
    color: white;
}

button[type="submit"]:hover {
    background: #0f431f;
}

button[type="reset"] {
    background: #e0e0e0;
    color: #333;
}

button[type="reset"]:hover {
    background: #d0d0d0;
}

.btn-container {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

button[type="submit"],
button[type="reset"],
button[type="button"] {
    flex: 1;
    min-width: 150px;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

button[type="submit"] {
    background: #155227;
    color: white;
}

button[type="submit"]:hover {
    background: #0f431f;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

.btn-cancel {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel:hover {
    background: #d0d0d0;
}

.modal-delete {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    width: 80%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.modal-buttons button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
    width: 120px;
}

.btn-confirm-delete {
    background: #f44336;
    color: white;
}

.btn-confirm-delete:hover {
    background: #d32f2f;
}

.btn-cancel-delete {
    background: #e0e0e0;
    color: #333;
}

.btn-cancel-delete:hover {
    background: #d0d0d0;
}

.image-upload-container {
    margin-bottom: 20px;
    }        

.image-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background: #155227;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    }
 
.image-upload-label:hover {
    background: #0f431f;
    }
 
input[type="file"] {
    display: none;
    }
 
#image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    }
 
.image-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 5px;
    overflow: hidden;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    }
 
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    }
 
.image-item button {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: #ff6b6b;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    display: none;
    }
 
.image-item:hover button {
    display: block;
    }

/* PREVIEW IMMAGINI EVENTO */
.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.image-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}

.preview-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

/* Bottone X */
.remove-img {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: red;
    color: white;
    font-size: 12px;
    cursor: pointer;
}
