/*
 * Blog Hotel San Michele (OpenRosetta Blog)
 * Maps the plugin CSS variables to the Jampaa / San Michele palette and fonts.
 * Variables are scoped to the blog wrappers so the plugin's global rules
 * (e.g. its "li" rule) do not change the rest of the site.
 */

.orb-blog-page,
.orb-blog-article {
	--color-primary: var(--color-blue, #37678D);
	--color-secondary: var(--link-color, #DB6C79);
	--color-tertiary: #F5BC41;
	--color-quaternary: #E6ECF2;
	--color-white: #ffffff;
	--color-black: #080A0C;

	--font-family-primary: var(--global--font-secondary, 'Roboto', sans-serif);
	--font-family-secondary: var(--global--font-secondary, 'Roboto', sans-serif);
	--font-family-buttons: var(--global--font-primary, 'Advent Pro', sans-serif);
	--font-family-headings: var(--global--font-primary, 'Advent Pro', sans-serif);

	--colore-h3: var(--color-blue, #37678D);
	--colore-h4: var(--color-blue, #37678D);
	--colore-p: #444444;
	--colore-a: var(--link-color, #DB6C79);

	--font-size-h3: 2.7rem;
	--font-size-h4: 2.2rem;
	--font-weight-h3: 600;
	--font-weight-h4: 600;

	--font-size-p-l: 1.9rem;
	--font-size-p-r: 1.8rem;
	--font-size-p-s: 1.6rem;
	--font-size-p-xs: 1.3rem;
	--font-size-span: 1.5rem;
	--font-size-a: 1.5rem;
	--font-weight-p-l: 300;
	--font-weight-p-r: 300;
	--font-weight-p-s: 400;
	--font-weight-p-xs: 500;
	--font-weight-a: 400;
	--line-height-p-l: 1.6;
	--line-height-p-r: 1.6;
	--line-height-p-s: 1.35;

	--font-button: 1.9rem;
	--font-weight-button: 600;
	--line-height-button: 1.2;

	font-family: var(--font-family-primary);
	color: var(--colore-p);
}

/* Container (as in the reference template: 80% wide, 90% on laptop/mobile, max 1640px) */
.orb-container {
	width: 80%;
	max-width: 1640px;
	margin: 0 auto;
	padding: 5rem 0;
}

@media (max-width: 1440px) {
	.orb-container { width: 90%; }
}

/* Lower hero on blog pages (the rest of the site keeps the theme height) */
body.blog .entry-header figure.full-width,
body.category .entry-header figure.full-width,
body.tag .entry-header figure.full-width,
body.single-post .entry-header figure.full-width {
	height: 50vh;
	min-height: 30rem;
	max-height: 55rem;
}

body.blog .entry-header figure.full-width img,
body.category .entry-header figure.full-width img,
body.tag .entry-header figure.full-width img,
body.single-post .entry-header figure.full-width img {
	height: 100%;
	max-height: none;
}

@media (max-width: 767px) {
	body.blog .entry-header figure.full-width,
	body.category .entry-header figure.full-width,
	body.tag .entry-header figure.full-width,
	body.single-post .entry-header figure.full-width {
		height: 30vh;
		min-height: 20rem;
	}
}

/* Headings in the theme font */
.orb-blog-page h3,
.orb-blog-page h4,
.orb-blog-article h2,
.orb-blog-article h3,
.orb-blog-article h4,
.orb-blog-page a.blog-post-link {
	font-family: var(--font-family-headings);
	color: var(--color-primary);
}

/* ---------- Archive ---------- */
.orb-blog-page .blog-filter {
	font-size: var(--font-size-p-r);
}

.orb-blog-page .blog-filter select {
	font-size: var(--font-size-p-r);
}

.orb-blog-page .blog-main {
	min-width: 0;
}

.orb-blog-page .blog-post {
	border-radius: 1.6rem;
	box-shadow: 0 0.4rem 2rem rgba(55, 103, 141, 0.08);
}

/* Card image: fills the card height without dictating it */
.orb-blog-page .post-thumbnail {
	flex: 0 0 34%;
	height: auto;
	min-height: 24rem;
	position: relative;
}

.orb-blog-page .post-thumbnail img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
}

.orb-blog-page .post-category {
	padding: 3.5rem 4rem;
}

.orb-blog-page a.blog-post-link {
	font-size: 2.8rem !important;
	line-height: 1.2;
	font-weight: 600 !important;
}

.orb-blog-page a.blog-post-link:hover {
	color: var(--color-secondary);
}

.orb-blog-page .post-category p {
	margin: 0 0 2rem;
}

.orb-blog-page .read-more-btn {
	font-family: var(--font-family-headings);
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--color-secondary);
}

/* Category / tag labels */
.orb-blog-page .category-label,
.orb-blog-article .category-label {
	font-family: var(--font-family-primary);
	background: var(--color-primary);
	border-radius: 2rem;
	padding: 0.5rem 1.4rem;
}

.orb-blog-page .tag-label {
	background: var(--color-secondary);
}

/* Pagination */
.orb-blog-page .pagination li a {
	font-family: var(--font-family-headings);
	font-size: 1.8rem;
}

/* ---------- Sidebar ---------- */
.orb-blog-page .blog-sidebar,
.orb-blog-article .blog-sidebar {
	min-width: 0;
}

.orb-blog-page .widget,
.orb-blog-article .widget {
	border-radius: 1.6rem;
	padding: 3rem;
	box-shadow: 0 0.4rem 2rem rgba(55, 103, 141, 0.08);
}

.orb-blog-page .widget h4,
.orb-blog-article .widget h4 {
	font-size: var(--font-size-h4);
	line-height: 1.2;
	margin-bottom: 2rem;
}

.orb-blog-page .cta-box,
.orb-blog-article .cta-box {
	background: var(--color-primary);
}

.orb-blog-page .cta-button,
.orb-blog-article .cta-button {
	border-radius: 2.5rem;
	color: var(--color-primary) !important;
}

.orb-blog-page .cta-button:hover,
.orb-blog-article .cta-button:hover {
	background: var(--color-secondary);
	border-color: var(--color-secondary);
	color: #ffffff !important;
}

.orb-blog-page .popular-post-item a,
.orb-blog-article .popular-post-item a {
	align-items: center;
}

.orb-blog-page .popular-thumb:empty,
.orb-blog-article .popular-thumb:empty {
	display: none;
}

.orb-blog-page .popular-thumb,
.orb-blog-article .popular-thumb {
	flex: 0 0 35%;
}

.orb-blog-page .popular-thumb img,
.orb-blog-article .popular-thumb img {
	height: 8rem !important;
}

.orb-blog-page .popular-title,
.orb-blog-article .popular-title {
	flex: 1;
	width: auto;
	font-family: var(--font-family-headings);
	font-size: 1.8rem;
	font-weight: 600;
	color: var(--color-primary);
}

.orb-blog-page .tag-cloud a,
.orb-blog-article .tag-cloud a {
	font-size: 1.4rem;
	color: var(--color-primary);
}

.orb-blog-page .tag-cloud a:hover,
.orb-blog-article .tag-cloud a:hover {
	background: var(--color-primary);
	color: #ffffff !important;
}

/* ---------- Single article ---------- */
/* The theme header already prints the H1: hide the duplicate H2 from the plugin */
.orb-blog-article .post-title {
	display: none;
}

.orb-blog-article .blog-main {
	flex: 0 0 calc(70% - 3.5rem);
	min-width: 0;
}

.orb-blog-article .blog-sidebar {
	flex: 0 0 calc(30% - 3.5rem);
	margin-top: 0;
}

.orb-blog-article .blog-layout {
	gap: 7rem;
	padding: 0;
	align-items: flex-start;
}

.orb-blog-article #breadcrumbs {
	padding-top: 0;
	font-size: 1.5rem;
}

.orb-blog-article .post-meta-date {
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--color-secondary);
}

.orb-blog-article .blog-main p,
.orb-blog-article .blog-main li {
	font-size: var(--font-size-p-r) !important;
	line-height: var(--line-height-p-r) !important;
}

.orb-blog-article .riassunto-articolo-openrosetta {
	background: var(--color-quaternary);
	padding: 4rem 4rem 4rem 6rem;
}

.orb-blog-article .riassunto-articolo-openrosetta::before {
	font-family: var(--font-family-headings);
	font-size: 6rem;
	top: 1.5rem;
	left: 2rem;
}

.orb-blog-article .box-takeaway-articolo-openrosetta {
	background: #FFF8E1;
	border: 2px dashed var(--color-tertiary);
}

.orb-blog-article .tit-takeaway {
	font-size: 1.8rem;
	color: var(--color-primary);
}

.orb-blog-article img.post-image-content {
	border-radius: 1.6rem;
}

.orb-blog-article .faq-articolo-openrosetta {
	margin-top: 5rem;
	padding: 4rem;
	border-radius: 1.6rem;
	background: var(--color-quaternary);
}

.orb-blog-article .faq-articolo-openrosetta .faq-tit {
	margin-top: 0 !important;
	font-size: 3rem;
}

.orb-blog-article .faq-articolo-openrosetta h4 {
	margin: 2.5rem 0 0.8rem;
	font-size: 2.2rem;
	color: var(--color-primary);
}

.orb-blog-article .box-autore-completo {
	margin: 2rem 0 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.orb-container { width: 90%; padding: 3rem 0; }

	.orb-blog-article .blog-main,
	.orb-blog-article .blog-sidebar {
		flex: 1 1 100%;
	}

	.orb-blog-article .blog-layout {
		gap: 3rem;
	}

	.orb-blog-page .post-thumbnail {
		flex: 0 0 22rem;
		height: 22rem;
		min-height: 0;
	}

	.orb-blog-page .post-category {
		padding: 2.5rem;
	}

	.orb-blog-page .blog-filter {
		flex-wrap: wrap;
		gap: 1rem 2rem;
		width: 100%;
	}

	.category p#breadcrumbs,
	.tag p#breadcrumbs {
		width: 100%;
	}
}
