/*
Theme Name: ISGroup Consulenza
Author: ISGroup
Description: ISGroup Consulenza
Version: 1.0
Template: bjork

Child theme for the Bjork parent theme.
*/

/* Block adjustments */

:root :where(.wp-block-pullquote) {
	font-size: var(--wp--preset--font-size--heading-6) !important;
}

/* Cookie notice */

#daextlwcnf-cookie-notice-container #daextlwcnf-cookie-notice-button-1,
#daextlwcnf-cookie-settings-button-2 {
	font-weight: 700 !important;
}

/* Sidebar */

aside.site-sidebar {
	position: fixed !important;
	width: 20%;
}

aside.site-sidebar > .wp-block-group {
	padding-top: 60px;
}

@media (max-width: 781px) {
	aside.site-sidebar {
		position: static !important;
		width: 100%;
	}

	aside.site-sidebar > .wp-block-group {
		padding-top: 0;
	}
}

/* Guide satellite content */

.checklist,
.thesaurus,
.errors,
.faq {
	list-style: none;
	padding-left: 0;
	margin: 40px 0;
}

.checklist,
.thesaurus,
.errors {
	display: grid;
	gap: 16px;
}

.checklist li,
.thesaurus li,
.errors li {
	position: relative;
	padding: 18px 24px 18px 56px;
	border-radius: 6px;
	font-size: 1.05rem;
	line-height: 1.6;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.checklist li {
	background-color: #f7fafd;
	color: #2a2a2a;
	box-shadow: inset 0 0 0 1px #e1e8ed;
}

.checklist li::before {
	content: "✔";
	position: absolute;
	left: 16px;
	top: 18px;
	width: 24px;
	height: 24px;
	background-color: #0070c0;
	color: #fff;
	font-weight: bold;
	font-size: 14px;
	line-height: 24px;
	text-align: center;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff;
}

.checklist li:hover {
	background-color: #e6f2fb;
	box-shadow: inset 0 0 0 1px #bcdff5;
}

.thesaurus li {
	background-color: #fffdf8;
	color: #3a3a3a;
	box-shadow: inset 0 0 0 1px #e8e4d9;
}

.thesaurus li::before {
	content: "📘";
	position: absolute;
	left: 20px;
	top: 18px;
	font-size: 20px;
}

.thesaurus li strong {
	display: block;
	font-weight: 600;
	color: #5a4600;
	margin-bottom: 6px;
}

.thesaurus li:hover {
	background-color: #fdfaf2;
	box-shadow: inset 0 0 0 1px #dcd2ba;
}

.errors li {
	background-color: #fdf5f5;
	color: #3a3a3a;
	box-shadow: inset 0 0 0 1px #f0cfcf;
}

.errors li::before {
	content: "❌";
	position: absolute;
	left: 20px;
	top: 18px;
	font-size: 18px;
	color: #d9534f;
}

.errors li strong {
	color: #b02a28;
	font-weight: 600;
}

.faq-title {
	position: relative;
	padding: 16px 20px 16px 52px;
	margin-top: 20px;
	background-color: #f0f4f8;
	font-weight: bold;
	color: #003366;
	border-radius: 6px 6px 0 0;
	box-shadow: inset 0 0 0 1px #dbe3eb;
}

.faq-title::before {
	content: "Q";
	position: absolute;
	left: 16px;
	top: 16px;
	background-color: #0070c0;
	color: #fff;
	width: 24px;
	height: 24px;
	font-size: 14px;
	font-weight: bold;
	text-align: center;
	line-height: 24px;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #fff;
}

.faq-text {
	padding: 16px 20px;
	margin-bottom: 24px;
	background-color: #ffffff;
	border-radius: 0 0 6px 6px;
	box-shadow: inset 0 0 0 1px #dbe3eb;
	font-size: 1.02rem;
	color: #444;
	line-height: 1.6;
}

.faq-title:hover,
.faq-text:hover {
	background-color: #e9f1f8;
}

/* Inline and preformatted code */

pre {
	line-height: 1.1em;
	background: #92ae4faa;
	white-space: pre-wrap;
	padding: 1em;
	color: #262f0ff5;
}

code {
	background: #92ae4faa;
	color: #262f0ff5;
	line-height: 1em;
}

pre > code {
	background: transparent;
	line-height: 1.1em;
}

/* Archive cards */

body.category .wp-block-post-featured-image img {
	border-radius: 8px;
	aspect-ratio: 4 / 2.3;
}

/* Content rhythm */

hr {
	color: #f7f7f7;
	margin-top: 3em !important;
	margin-bottom: 3em !important;
}

.wp-block-post-content a {
	color: #5E7A27;
}

.cta-box {
	color: #f9fafb !important;
}

/* Navigation */

.post-navigation-link-previous a:before {
	content: "\2190";
	margin-right: 5px;
}

.post-navigation-link-next a:after {
	content: "\2192";
	margin-left: 5px;
}

/* Threat Intelligence */

figure.wp-block-table {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table.ti-alert-meta {
	min-width: 520px;
	border-spacing: 0;
	border: 1px solid #d6e2f0;
	border-radius: 14px;
	overflow: hidden;
}

table.ti-alert-meta td {
	padding: 12px 14px;
	vertical-align: top;
	border-bottom: 1px solid #eaf3ff;
}

table.ti-alert-meta tr:last-child td {
	border-bottom: 0;
}

table.ti-alert-meta td:first-child {
	width: 28%;
	font-weight: 600;
	white-space: nowrap;
	background: #eaf3ff;
	color: #163a5f;
	border-right: 1px solid #eaf3ff;
}

table.ti-alert-meta td:last-child {
	width: 72%;
	background: #f8fbff;
	color: #1f2937;
}

table.ti-alert-meta td ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

table.ti-alert-meta td ul li {
	display: inline-flex;
	align-items: center;
	margin: 0;
	padding: 6px 10px;
	border-radius: 999px;
	background: #eef6ff;
	border: 1px solid #b9d8ff;
	color: #0f3b66;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

@media (max-width: 768px) {
	table.ti-alert-meta {
		min-width: 480px;
	}
}
