/* ISHAWS - avvisi legati all'iscrizione: barra, contenuto riservato, stato nella scheda. */

.ish-bar,
.ish-lock,
.ish-state {
	--n-navy: #1c244b;
	--n-title: #07346f;
	--n-text: #324a6d;
	--n-outline: #0b3c6d;
	box-sizing: border-box;
	font-family: Poppins, sans-serif;
}

.ish-bar *,
.ish-lock *,
.ish-state * {
	box-sizing: border-box;
}

.ish-n-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Toni */
.ish-bar--info,
.ish-state--info { --n-bg: #eaf0fe; --n-line: #d6e2fb; --n-fg: #2f63d6; --n-head: #1c244b; }
.ish-bar--warn,
.ish-state--warn { --n-bg: #fff6e5; --n-line: #f3d9a4; --n-fg: #7a4b00; --n-head: #7a4b00; }
.ish-bar--err,
.ish-state--err  { --n-bg: #fdf3f2; --n-line: #f1c7c3; --n-fg: #b3261e; --n-head: #b3261e; }
.ish-bar--ok,
.ish-state--ok   { --n-bg: #e7f3eb; --n-line: #b9dcc5; --n-fg: #1e6b3a; --n-head: #1e6b3a; }
.ish-lock--info  { --n-bg: #eaf0fe; --n-fg: #2f63d6; }
.ish-lock--err   { --n-bg: #fdf3f2; --n-fg: #b3261e; }

/* ------------------------------------------------------------ Barra */

.ish-bar {
	position: relative;
	z-index: 5;
	border-bottom: 1px solid var(--n-line);
	background: var(--n-bg);
	color: var(--n-navy);
}

.ish-bar-in {
	display: flex;
	gap: 16px;
	align-items: center;
	max-width: 1240px;
	margin: 0 auto;
	padding: 12px 24px;
}

.ish-bar-icon {
	display: flex;
	color: var(--n-fg);
}

.ish-bar-text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: 13px;
	line-height: 1.45;
}

.ish-bar-text strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--n-head);
}

body .ish-bar a.ish-bar-btn,
body .ish-bar a.ish-bar-btn:visited {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	min-height: 44px;
	padding: 0 18px;
	border-radius: 6px;
	background: var(--n-navy);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	color: #fff;
}

body .ish-bar a.ish-bar-btn:hover,
body .ish-bar a.ish-bar-btn:focus {
	background: var(--n-outline);
	color: #fff;
}

body .ish-bar button.ish-bar-close {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(28, 36, 75, .07);
	color: var(--n-navy);
	cursor: pointer;
}

body .ish-bar button.ish-bar-close:hover,
body .ish-bar button.ish-bar-close:focus-visible {
	background: rgba(28, 36, 75, .14);
}

body .ish-bar button.ish-bar-close .ish-n-icon {
	width: 16px;
	height: 16px;
}

@media (max-width: 767px) {
	.ish-bar-in {
		flex-wrap: wrap;
		gap: 10px 12px;
		align-items: flex-start;
		padding: 12px 16px;
	}

	.ish-bar-text {
		flex-basis: calc(100% - 90px);
	}

	body .ish-bar button.ish-bar-close {
		order: 2;
		margin-left: auto;
	}

	body .ish-bar a.ish-bar-btn {
		order: 3;
		width: 100%;
		justify-content: center;
		white-space: normal;
		text-align: center;
	}
}

/* ------------------------------------------------ Contenuto riservato */

.members-access-error {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

.ish-lock {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	max-width: 560px;
	margin: 32px auto;
	padding: 32px 28px;
	border: 1px solid #e3e9ef;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 32px rgba(28, 36, 75, .06);
	text-align: center;
	color: var(--n-text);
}

.ish-lock-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--n-bg);
	color: var(--n-fg);
}

.ish-lock-icon .ish-n-icon {
	width: 26px;
	height: 26px;
}

.ish-lock .ish-lock-title {
	margin: 0;
	font-family: Poppins, sans-serif;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--n-title);
}

.ish-lock .ish-lock-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
}

.ish-lock-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
	margin-top: 6px;
}

body .ish-lock a.ish-lock-btn,
body .ish-lock a.ish-lock-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 20px;
	border: 1px solid var(--n-navy);
	border-radius: 6px;
	background: var(--n-navy);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 1.2px;
	text-decoration: none;
	text-transform: uppercase;
	color: #fff;
}

body .ish-lock a.ish-lock-btn:hover,
body .ish-lock a.ish-lock-btn:focus {
	background: var(--n-outline);
	color: #fff;
}

body .ish-lock a.ish-lock-btn--ghost,
body .ish-lock a.ish-lock-btn--ghost:visited {
	border-color: var(--n-outline);
	background: #fff;
	font-weight: 400;
	color: var(--n-outline);
}

body .ish-lock a.ish-lock-btn--ghost:hover,
body .ish-lock a.ish-lock-btn--ghost:focus {
	background: #f3f5f8;
	color: var(--n-outline);
}

/* ------------------------------------------------ Stato nella scheda */

.ish-state {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 14px;
	border: 1px solid var(--n-line);
	border-radius: 10px;
	background: var(--n-bg);
	color: var(--n-navy);
}

.ish-state-icon {
	display: flex;
	margin-top: 1px;
	color: var(--n-fg);
}

.ish-state-icon .ish-n-icon {
	width: 20px;
	height: 20px;
	stroke-width: 2.2;
}

.ish-state div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	line-height: 1.5;
}

.ish-state strong {
	font-size: 14px;
	font-weight: 600;
	color: var(--n-head);
}
