/* GestioneEventi - public-widget.css */
.jatte-ev {
	max-width: 760px;
	margin: 2rem auto;
	padding: 0 1rem;
	font-family: Arial, Helvetica, sans-serif;
	color: #333;
	line-height: 1.45;
}
.jatte-ev *,
.jatte-ev *::before,
.jatte-ev *::after {
	box-sizing: border-box;
}
.jatte-ev-loading {
	text-align: center;
	color: #777;
}
.jatte-ev-title {
	font-size: 2rem;
	text-align: center;
	margin: 0 0 0.25rem;
}
.jatte-ev-intro {
	text-align: center;
	color: #666;
	margin: 0 0 1.25rem;
}
.jatte-ev-card {
	background: #fff;
	border: 2px solid #9c5f14;
	border-radius: 8px;
	padding: 1.25rem 1.5rem;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	margin-bottom: 1.25rem;
}
.jatte-ev-card h3 {
	margin: 0 0 0.35rem;
	font-size: 1.25rem;
}
.jatte-ev-desc {
	margin: 0 0 0.5rem;
	color: #555;
}
.jatte-ev-desc ul,
.jatte-ev-desc ol {
	margin: 0.4rem 0 0.4rem 1.2rem;
	padding: 0;
}
.jatte-ev-desc blockquote {
	margin: 0.4rem 0;
	padding-left: 0.8rem;
	border-left: 3px solid #e7d3ad;
	color: #555;
}
.jatte-ev-desc code {
	background: #f2f2f2;
	padding: 0 0.25rem;
	border-radius: 3px;
}
.jatte-ev-desc img.jatte-bb-img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}
.jatte-ev-meta {
	margin: 0.25rem 0;
	color: #666;
	font-size: 0.9rem;
}
.jatte-ev-user {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	flex-wrap: wrap;
	background: #fdf7ee;
	border: 1px solid #e7d3ad;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}
.jatte-ev-regs {
	border-top: 1px solid #eee;
	margin-top: 0.75rem;
	padding-top: 0.5rem;
}
.jatte-ev-regs h4 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
}
.jatte-ev-reg {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	background: #f7f9f7;
	border: 1px solid #e2e8e2;
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	margin-bottom: 0.4rem;
}
.jatte-ev-reg-info {
	font-size: 0.9rem;
}
.jatte-ev-reg-main {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	flex: 1;
	min-width: 200px;
}
.jatte-ev-photo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.jatte-ev-photo-thumb {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
	border: 1px solid #ddd;
}
.jatte-ev-photo-status {
	font-size: 0.8rem;
}
.jatte-ev-photo-status.ok {
	color: #2e7d32;
}
.jatte-ev-photo-status.missing {
	color: #b26a00;
}
.jatte-ev-photo-msg {
	font-size: 0.78rem;
	color: #c0392b;
}
.jatte-ev-reg-actions {
	display: flex;
	gap: 0.4rem;
}
.jatte-ev-btn-mini {
	padding: 0.3rem 0.6rem;
	font-size: 0.78rem;
}
.jatte-ev-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 0.3rem;
}
.jatte-ev-group label {
	font-weight: bold;
	font-size: 0.85rem;
	margin-bottom: 0.08rem;
}
/* Griglia dei campi: 2 colonne sugli schermi larghi, textarea a tutta larghezza. */
.jatte-ev-fields {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.jatte-ev-fields > .jatte-ev-field {
	margin-bottom: 0;
}
@media (min-width: 680px) {
	.jatte-ev-fields {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 0.35rem 0.8rem;
	}
	/* Con un numero dispari di campi l'ultimo occupa l'intera riga. */
	.jatte-ev-fields > .jatte-ev-field:last-child:nth-child(odd) {
		grid-column: 1 / -1;
	}
}
.jatte-ev-fascia-row {
	flex-direction: row;
	align-items: flex-end;
	gap: 0.5rem;
}
.jatte-ev-fascia-field {
	flex: 1;
	display: flex;
	flex-direction: column;
}
.jatte-ev-posti-field {
	flex: 0 0 auto;
	width: 96px;
	display: flex;
	flex-direction: column;
}
.jatte-ev-posti-field input {
	text-align: center;
}
@media (max-width: 420px) {
	.jatte-ev-fascia-row {
		flex-direction: column;
		align-items: stretch;
	}
	.jatte-ev-posti-field {
		width: 100%;
	}
}
.jatte-ev input,
.jatte-ev select,
.jatte-ev textarea {
	padding: 0.45rem 0.5rem;
	font-size: 0.95rem;
	border: 1px solid #ccc;
	border-radius: 4px;
	width: 100%;
	font-family: inherit;
}
.jatte-ev input[type="checkbox"] {
	width: auto;
	margin-right: 0.4rem;
}
.jatte-ev-check label {
	font-weight: normal;
	font-size: 0.9rem;
	display: flex;
	align-items: flex-start;
}
.jatte-ev-hint {
	color: #888;
	font-size: 0.78rem;
	margin-top: 0.1rem;
}
.jatte-ev-cf {
	text-transform: uppercase;
	letter-spacing: 0.05em;
}
.jatte-ev-btn {
	cursor: pointer;
	border: none;
	border-radius: 4px;
	padding: 0.6rem 1.1rem;
	font-size: 0.9rem;
	font-family: inherit;
}
.jatte-ev-btn-primary {
	background: #9c5f14;
	color: #fff;
}
.jatte-ev-btn-primary:hover {
	background: #7b4d10;
}
.jatte-ev-btn-secondary {
	background: #e6e6e6;
	color: #333;
}
.jatte-ev-btn-secondary:hover {
	background: #d4d4d4;
}
.jatte-ev-btn-danger {
	background: #c0392b;
	color: #fff;
}
.jatte-ev-btn-danger:hover {
	background: #96291d;
}
.jatte-ev-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}
.jatte-ev-subscribe {
	margin-top: 0.75rem;
}
.jatte-ev-actions {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.4rem;
	flex-wrap: wrap;
}
.jatte-ev-form {
	display: none;
	margin-top: 0.75rem;
	border-top: 1px dashed #ddd;
	padding-top: 0.75rem;
}
.jatte-ev-form.open {
	display: block;
}
.jatte-ev-alert {
	border-radius: 6px;
	padding: 0.85rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.92rem;
}
.jatte-ev-alert-success {
	background: #e8f6ec;
	border: 1px solid #4caf50;
	color: #256029;
}
.jatte-ev-alert-error {
	background: #fdecea;
	border: 1px solid #c0392b;
	color: #8a231a;
}
.jatte-ev-msg {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	min-height: 1rem;
}
.jatte-ev-msg-error {
	color: #c0392b;
}
.jatte-ev-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.jatte-ev-privacy-link {
	color: #9c5f14;
}
.jatte-ev-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.jatte-ev-modal.open {
	display: flex;
}
.jatte-ev-modal-content {
	background: #fff;
	border-radius: 8px;
	max-width: 560px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	padding: 1.25rem;
}
.jatte-ev-modal-body {
	font-size: 0.9rem;
	margin-bottom: 0.75rem;
	line-height: 1.5;
}
.jatte-ev-modal-body h4 {
	margin: 1rem 0 0.35rem;
	font-size: 0.95rem;
	color: #9c5f14;
}
.jatte-ev-modal-body h4:first-child {
	margin-top: 0;
}
.jatte-ev-modal-body p {
	margin: 0.35rem 0;
}
.jatte-ev-modal-body ul {
	margin: 0.35rem 0 0.35rem 1.2rem;
	padding: 0;
}
.jatte-ev-modal-body li {
	margin-bottom: 0.2rem;
}
.jatte-ev-preview {
	margin-top: 0.5rem;
}
.jatte-ev-preview-title {
	font-size: 1.1rem;
	margin: 0 0 0.6rem;
}
.jatte-ev-preview-card {
	padding: 1rem 1.25rem;
}
.jatte-ev-fasce-preview {
	list-style: none;
	padding: 0;
	margin: 0.4rem 0;
}
.jatte-ev-fasce-preview li {
	display: flex;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding: 0.35rem 0;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
}
.jatte-ev-posti {
	color: #2e7d32;
	font-size: 0.82rem;
	white-space: nowrap;
}
.jatte-ev-posti.esauriti {
	color: #c0392b;
}
.jatte-ev-fasce {
	border-top: 1px solid #eee;
	margin-top: 0.75rem;
	padding-top: 0.5rem;
}
.jatte-ev-fasce h4 {
	margin: 0 0 0.5rem;
	font-size: 0.95rem;
}
.jatte-ev-fascia-tags {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}
.jatte-ev-iscritto {
	background: #2e7d32;
	color: #fff;
	border-radius: 10px;
	padding: 0 0.5rem;
	font-size: 0.72rem;
	line-height: 1.5;
	white-space: nowrap;
}
.jatte-ev-fasce-preview li.iscritto {
	background: #f1f9f2;
}
.jatte-ev-preview-cta {
	margin: 0.75rem 0 0;
	font-size: 0.85rem;
	color: #777;
}

@media (max-width: 560px) {
	.jatte-ev-title {
		font-size: 1.6rem;
	}
	.jatte-ev-card {
		padding: 1rem;
	}
}
