.news_form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    width: 100%;
	margin: 30px 0;
}
	
@media screen and (min-width : 768px) {
	.news_form { grid-template-columns: repeat(6, 1fr); }
}

.news_form input:not(#file1),
.news_form select {
    height: 50px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    background-color: var(--fourth_color);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
}

.news_form textarea {
    height: auto;
    min-height: 120px;
    font-family: 'Google Sans Flex', sans-serif;
    font-size: 15px;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
    background-color: var(--fourth_color);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px 20px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

	#div_field1, #div_field2, #div_field3, #div_field4, #div_field5, #div_field7, #div_file1 {
		grid-column: 1;
		position: relative;
	}

	#div_field3 {
		min-width: 0;
		width: 100%;
		overflow: hidden;
	}

	.news_form #field3 {
		width: 100%;
		max-width: 100%;
		min-width: 0;
		box-sizing: border-box;
		display: block;
	}

	#div_file1 input[type="file"] {
		width: 100%;
		font-family: 'Oswald', sans-serif;
		color: rgba(255,255,255,0.8);
	}

	#div_file1 input[type="file"]::file-selector-button {
		background: #011019;
		border: 0;
		border-radius: 6px;
		padding: 10px 20px;
		font-family: 'Oswald', sans-serif;
		text-transform: uppercase;
		color: var(--first_color);
		cursor: pointer;
		margin-right: 15px;
	}
		
	@media (min-width: 768px) {
		.news_form:has(#file1) #div_field1,
		.news_form:has(#file1) #div_field2,
		.news_form:has(#file1) #div_field3,
		.news_form:has(#file1) #div_field4,
		.news_form:has(#file1) #div_field5,
		.news_form:has(#file1) #div_field7 {
			grid-column: span 2;
		}

		.news_form:has(#file1) #div_field6,
		.news_form:has(#file1) #div_file1 {
			grid-column: span 6;
		}

		.news_form:not(:has(#file1)) #div_field1,
		.news_form:not(:has(#file1)) #div_field2,
		.news_form:not(:has(#file1)) #div_field3 {
			grid-column: span 2;
		}

		.news_form:not(:has(#file1)) #div_field4,
		.news_form:not(:has(#file1)) #div_field5 {
			grid-column: span 6;
		}
}

		.news_label {
			margin-bottom: 10px;
			letter-spacing: 2px;
			text-transform: uppercase;
			font-size: 15px;
		}

		.news_input {
			width: 100%;
			box-sizing: border-box;
		}

		#field6 {
			resize: vertical;
			width: 100%;
		}
	
		#file1 {
			width: 100%;
		}

.news_informativa {
	margin: 30px 0;
}

	.news_informativa a {
		color: var(--second_color);
	}

#news_invia {
    background-color: #011019;
}

#news_invia {
    display: inline-block;
    padding: 10px 40px;
    font-family: 'Oswald', sans-serif;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    border-radius: 6px;
    color: var(--second_color);
	background-color: #011019;
	cursor: pointer;
    transition: background-color 0.3s linear;
}
	
@media screen and (min-width : 768px) {
    #news_invia { padding: 17px 40px; border-radius: 10px; }
}

#news_invia.inactive {
    filter: alpha(opacity=50);
    opacity: 0.5;
    cursor: not-allowed;
}

#news_invia:not(.inactive):hover {
    background-color: var(--fourth_color);
}

.inactive {
	filter: alpha(opacity=50);
	opacity: 0.5;
	cursor: not-allowed;
}

.text a, .news_informativa a {
    position: relative;
    text-decoration: none;
	color: var(--first_color);
}

.text a::after, .news_informativa a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 100%;
    height: 1px;
    background: var(--second_color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.text a:hover::after, .news_informativa a:hover::after {
    transform: scaleX(1);
}

.chk2_msg {
	color: #f00;
}

.error_box {
	position: absolute;
	line-height: 50px;
	right: 20px;
	color: red;
}

#div_file1 .error_box {
	left: 240px;
	line-height: 42px;
}

.error_box_green {
	position: relative;
	color: green;
	top: 0;
	left: 0;
}