/*
Theme Name: Servizio Clienti Colussi Group
Author: Fosforica
Description: Your description goes here
Version: 1.0
Template: twentytwentyfive

This is the child theme for Twenty Twenty-Five theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/


.form-label {
	font-size: var(--wp--preset--font-size--small);
}

.card-form {
	border: 4px solid #f5f5f5; border-radius: 20px; background-color: #f5f5f5;
}

 
.wpml-language-switcher-block ul li.wp-block-navigation-item,
.wpml-language-switcher-block [data-wpml='language-item']:first-of-type {
	margin-top: 0px !important;
}

/* Stili per il pulsante di invio del form */
.wpcf7-form .button-primary {
	background-color: #062f87 !important;
	border-color: #062f87 !important;
	color: #ffffff !important;
	font-weight: 600;
	padding: 12px 30px;
	border-radius: 8px;
	transition: all 0.3s ease;
	text-decoration: none;
	display: block;
	width: 100% !important;
	cursor: pointer;
}

.wpcf7-form .button-primary:hover,
.wpcf7-form .button-primary:focus {
	background-color: #0a4bb8 !important;
	border-color: #0a4bb8 !important;
	color: #ffffff !important;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(6, 47, 135, 0.3);
}

.wpcf7-form .button-primary:active {
	background-color: #051f5e !important;
	border-color: #051f5e !important;
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(6, 47, 135, 0.3);
}

/* Stili per i messaggi di Contact Form 7 basati sui data-status */
.wpcf7 form .wpcf7-response-output {
	margin: 2rem 0 !important;
	padding: 2rem !important;
	border: none !important;
	border-radius: 15px !important;
	text-align: center !important;
	position: relative !important;
	overflow: hidden !important;
	animation: messageSlideIn 0.6s ease-out !important;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Stati nascosti (init, resetting, submitting) */
.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
	display: none !important;
}

/* Successo (sent) */
.wpcf7 form.sent .wpcf7-response-output {
	background: linear-gradient(135deg, #28a745, #20c997) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3) !important;
}



.wpcf7 form.sent .wpcf7-response-output::after {
	content: "";
	position: absolute !important;
	top: 0 !important;
	left: -100% !important;
	width: 100% !important;
	height: 100% !important;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
	animation: shimmer 2s infinite !important;
}

/* Errori (failed, aborted) */
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output {
	background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3) !important;
}



/* Spam */
.wpcf7 form.spam .wpcf7-response-output {
	background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3) !important;
}



/* Validazione (invalid, unaccepted, payment-required) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	background: linear-gradient(135deg, #ffb900, #ffc107) !important;
	color: #ffffff !important;
	box-shadow: 0 8px 25px rgba(255, 185, 0, 0.3) !important;
}



/* Animazioni */
@keyframes messageSlideIn {
	0% {
		opacity: 0;
		transform: translateY(-20px) scale(0.95);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes shimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

/* Stili per i messaggi di errore sui singoli campi */
.wpcf7-not-valid-tip {
	background: linear-gradient(135deg, #dc3545, #e74c3c) !important;
	color: #ffffff !important;
	border: none !important;
	border-radius: 8px !important;
	padding: 0.5rem 1rem !important;
	font-size: 0.875rem !important;
	margin-top: 0.25rem !important;
	box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3) !important;
	animation: errorTipSlideIn 0.3s ease-out !important;
}

@keyframes errorTipSlideIn {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Stili per i campi con errore */
.wpcf7-not-valid {
	border-color: #dc3545 !important;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

/* Stili per i form-check professionali */
.form-check {
	background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border: 2px solid #e9ecef;
	border-radius: 12px;
	padding: 1.5rem;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
}

.form-check .wpcf7-form-control-wrap {
	margin: 0px !important;
}

.form-check:hover {
	border-color: #062f87;
	box-shadow: 0 4px 15px rgba(6, 47, 135, 0.1);
	transform: translateY(-2px);
}

.form-check:focus-within {
	border-color: #062f87;
	box-shadow: 0 0 0 0.2rem rgba(6, 47, 135, 0.25);
}

.form-check .form-check-input {
	width: 1.5rem;
	height: 1.5rem;
	margin-right: 1rem;
	border: 2px solid #dee2e6;
	border-radius: 4px;
	background-color: #ffffff;
	transition: all 0.3s ease;
	position: relative;
	top: 2px;
}

.form-check .form-check-input:checked {
	background-color: #062f87;
	border-color: #062f87;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
	background-size: 70%;
	background-position: center;
	background-repeat: no-repeat;
}

.form-check .form-check-input:focus {
	box-shadow: 0 0 0 0.2rem rgba(6, 47, 135, 0.25);
	border-color: #062f87;
}

.form-check label {
	font-weight: 500;
	color: #495057;
	margin-bottom: 0;
	line-height: 1.5;
	cursor: pointer;
	user-select: none;
}

.form-check a {
	color: #062f87;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.form-check a:hover {
	color: #0a4bb8;
	text-decoration: underline;
}

/* Stili specifici per il primo form-check (consenso trattamento dati) */
.form-check:first-of-type {
	background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border-color: #e9ecef;
}

.form-check:first-of-type:hover {
	border-color: #062f87;
	box-shadow: 0 4px 15px rgba(6, 47, 135, 0.1);
}

.form-check:first-of-type .form-check-input:checked {
	background-color: #062f87;
	border-color: #062f87;
}

/* Stili specifici per il secondo form-check (newsletter) */
.form-check:last-of-type {
	background: linear-gradient(135deg, #f1f8e9, #e8f5e8);
	border-color: #c8e6c9;
}

.form-check:last-of-type:hover {
	border-color: #4caf50;
	box-shadow: 0 4px 15px rgba(76, 175, 80, 0.1);
}

.form-check:last-of-type .form-check-input:checked {
	background-color: #4caf50;
	border-color: #4caf50;
}

/* Animazione per il check */
.form-check .form-check-input:checked {
	animation: checkPulse 0.3s ease-out;
}

@keyframes checkPulse {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.1);
	}
	100% {
		transform: scale(1);
	}
}

/* Stili per il testo legale con toggle */
.legal-text-container {
	margin-top: 1.5rem;
}

.legal-toggle {
	background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border: 2px solid #e9ecef;
	border-radius: 8px;
	padding: 1rem 1.5rem;
	width: 100%;
	text-align: left;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-weight: 500;
	color: #495057;
}

.legal-toggle:hover {
	border-color: #062f87;
	background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
	box-shadow: 0 4px 15px rgba(6, 47, 135, 0.1);
}

.legal-toggle:focus {
	outline: none;
	border-color: #062f87;
	box-shadow: 0 0 0 0.2rem rgba(6, 47, 135, 0.25);
}

.toggle-icon {
	font-size: 0.8rem;
	transition: transform 0.3s ease;
}

.legal-toggle.active .toggle-icon {
	transform: rotate(180deg);
}

.legal-text {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out;
	background: #ffffff;
	border: 1px solid #e9ecef;
	border-top: none;
	border-radius: 0 0 8px 8px;
}

.legal-text.active {
	max-height: 1000px;
}

.legal-content {
	padding: 1.5rem;
	font-size: 0.9rem;
	line-height: 1.6;
	color: #495057;
}

.legal-content h4 {
	color: #062f87;
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1rem;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0.5rem;
}

.legal-content h5 {
	color: #495057;
	font-size: 1rem;
	font-weight: 600;
	margin: 1rem 0 0.5rem 0;
}

.legal-section {
	margin-bottom: 1.5rem;
}

.legal-section ul {
	margin: 0.5rem 0;
	padding-left: 1.5rem;
}

.legal-section li {
	margin-bottom: 0.5rem;
}

.legal-section a {
	color: #062f87;
	text-decoration: none;
	font-weight: 500;
}

.legal-section a:hover {
	text-decoration: underline;
}

.legal-section small {
	color: #6c757d;
	font-style: italic;
}

/* Stili per le note sui limiti dei file */
.wpcf7-form-control-wrap + small.text-muted {
	display: block;
	margin-top: 0.5rem;
	margin-bottom: 0.75rem;
	padding: 0.25rem 0.5rem;
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	border-left: 3px solid #062f87;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 500;
	color: #495057;
}

/* Stili professionali per i pulsanti di caricamento file */
.wpcf7-form-control-wrap input[type="file"] {
	position: relative;
	display: block;
	width: 100%;
	padding: 0.75rem 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.5;
	color: #495057;
	background: linear-gradient(135deg, #ffffff, #f8f9fa);
	border: 2px solid #e9ecef;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.wpcf7-form-control-wrap input[type="file"]:hover {
	border-color: #062f87;
	background: linear-gradient(135deg, #f8f9fa, #e3f2fd);
	box-shadow: 0 4px 12px rgba(6, 47, 135, 0.15);
	transform: translateY(-1px);
}

.wpcf7-form-control-wrap input[type="file"]:focus {
	outline: none;
	border-color: #062f87;
	box-shadow: 0 0 0 0.2rem rgba(6, 47, 135, 0.25);
	background: linear-gradient(135deg, #ffffff, #e3f2fd);
}

.wpcf7-form-control-wrap input[type="file"]::before {
	content: "📎 Scegli file";
	display: inline-block;
	margin-right: 0.5rem;
	font-weight: 600;
	color: #062f87;
}

.wpcf7-form-control-wrap input[type="file"]::-webkit-file-upload-button {
	visibility: hidden;
	width: 0;
}

.wpcf7-form-control-wrap input[type="file"]::-moz-file-upload-button {
	visibility: hidden;
	width: 0;
}

/* Stile per il testo del file selezionato */
.wpcf7-form-control-wrap input[type="file"].has-file {
	background: linear-gradient(135deg, #d4edda, #c3e6cb);
	border-color: #28a745;
	color: #155724;
}

.wpcf7-form-control-wrap input[type="file"].has-file::before {
	content: "✅ File selezionato";
	color: #155724;
}

/* Animazione di caricamento */
.wpcf7-form-control-wrap input[type="file"]:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive per dispositivi mobili */
@media (max-width: 768px) {
	.wpcf7-form-control-wrap input[type="file"] {
		padding: 0.875rem 1rem;
		font-size: 1rem;
	}
	
	.wpcf7-form-control-wrap input[type="file"]::before {
		content: "📎 Carica file";
	}
	
	/* Layout mobile per le immagini di riferimento */
	.reference-image-side {
		margin-bottom: 1rem;
		height: auto;
	}
	
	.row.align-items-start {
		align-items: stretch !important;
	}
}

/* Stili per le immagini di riferimento */
.field-with-reference {
	position: relative;
}

.reference-image {
	margin-top: 1rem;
	padding: 2rem;
	background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border: 1px solid #e9ecef;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Stili per le immagini laterali */
.reference-image-side {
	padding: 1rem;
	/**background: linear-gradient(135deg, #f8f9fa, #ffffff);
	border: 1px solid #e9ecef;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);**/
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.image-container {
	text-align: center;
	position: relative;
}

.reference-img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-img:hover {
	transform: scale(1.02);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.image-caption {
	margin-top: 0.75rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #062f87;
	background: linear-gradient(135deg, #e3f2fd, #f8f9fa);
	padding: 0.5rem 1rem;
	border-radius: 20px;
	display: inline-block;
	border: 1px solid #bbdefb;
}

/* Stili per il titolo della sezione */
.text-muted.mb-3 {
	font-size: 1rem;
	font-weight: 600;
	color: #495057;
	border-bottom: 2px solid #e9ecef;
	padding-bottom: 0.5rem;
}

/* Messaggio di successo personalizzato */
.success-message {
	background: linear-gradient(135deg, #28a745, #20c997);
	border-radius: 20px;
	padding: 3rem 2rem;
	text-align: center;
	color: #ffffff;
	margin: 2rem 0;
	box-shadow: 0 15px 35px rgba(40, 167, 69, 0.3);
	animation: successMessageSlideIn 0.8s ease-out;
	position: relative;
	overflow: hidden;
}

.success-message::before {
	content: "";
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
	animation: successShimmer 3s infinite;
}

.success-content {
	position: relative;
	z-index: 2;
}

.success-icon {
	font-size: 4rem;
	margin-bottom: 1rem;
	animation: bounce 2s infinite;
}

.success-message h3 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 1rem;
	color: #ffffff;
}

.success-message p {
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
	line-height: 1.6;
}

.success-details {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	padding: 1.5rem;
	margin-top: 1.5rem;
	backdrop-filter: blur(10px);
}

.success-details p {
	margin-bottom: 0.5rem;
}

#reference-number {
	background: rgba(255, 255, 255, 0.2);
	padding: 0.3rem 0.8rem;
	border-radius: 5px;
	font-weight: bold;
}

@keyframes successMessageSlideIn {
	0% {
		opacity: 0;
		transform: translateY(-30px) scale(0.9);
	}
	100% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes successShimmer {
	0% {
		left: -100%;
	}
	100% {
		left: 100%;
	}
}

@keyframes bounce {
	0%, 20%, 50%, 80%, 100% {
		transform: translateY(0);
	}
	40% {
		transform: translateY(-10px);
	}
	60% {
		transform: translateY(-5px);
	}
}