/**
 * SPA Suite Assisi — Idee Romantiche (blog hub + single)
 * Caricato solo su /blog/ e articoli. Token allineati al child theme.
 */

.ssa-blog-hub,
.ssa-blog-single-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 48px;
	box-sizing: border-box;
}

.ssa-blog-section-title,
.ssa-blog-subsection-title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	color: #211f35;
	margin: 0 0 20px;
	line-height: 1.2;
}

.ssa-blog-section-title {
	font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.ssa-blog-subsection-title {
	font-size: clamp(1.35rem, 2.5vw, 1.75rem);
	margin-top: 36px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* Hero */
.ssa-blog-hero {
	position: relative;
	margin: 0 -20px 40px;
	min-height: 420px;
	display: grid;
	align-items: end;
	border-radius: 0 0 16px 16px;
	overflow: hidden;
}

.ssa-blog-hero__media {
	position: absolute;
	inset: 0;
}

.ssa-blog-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ssa-blog-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(33, 31, 53, 0.25) 0%, rgba(33, 31, 53, 0.72) 100%);
}

.ssa-blog-hero__content {
	position: relative;
	z-index: 1;
	padding: 32px 24px 40px;
	color: #fff;
	max-width: 760px;
}

.ssa-blog-hero__brand {
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 10px;
	opacity: 0.92;
}

.ssa-blog-hero__title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	font-size: clamp(1.75rem, 4.5vw, 2.75rem);
	margin: 0 0 14px;
	line-height: 1.15;
}

.ssa-blog-hero__intro {
	font-size: clamp(1rem, 2vw, 1.125rem);
	line-height: 1.6;
	margin: 0 0 22px;
	max-width: 62ch;
}

/* Buttons */
.ssa-blog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ssa-blog-btn:focus-visible {
	outline: 3px solid #d88a6d;
	outline-offset: 2px;
}

.ssa-blog-btn--primary {
	background: #e98162;
	color: #fff;
}

.ssa-blog-btn--primary:hover,
.ssa-blog-btn--primary:focus {
	background: #d88a6d;
	color: #fff;
}

.ssa-blog-btn--secondary {
	background: #211f35;
	color: #fff;
}

.ssa-blog-btn--ghost {
	background: transparent;
	color: #fff;
	border-color: rgba(255, 255, 255, 0.65);
}

.ssa-blog-btn--ghost:hover,
.ssa-blog-btn--ghost:focus {
	border-color: #fff;
	color: #fff;
}

/* Moment cards */
.ssa-blog-moment {
	margin-bottom: 44px;
}

.ssa-blog-moment__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssa-blog-moment__card {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-height: 112px;
	padding: 18px 16px;
	border-radius: 14px;
	background: #f8f6f4;
	border: 1px solid #eae7de;
	color: #211f35;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.ssa-blog-moment__card:hover,
.ssa-blog-moment__card:focus-visible {
	transform: translateY(-2px);
	border-color: #d88a6d;
	box-shadow: 0 8px 24px rgba(33, 31, 53, 0.08);
}

.ssa-blog-moment__emoji {
	font-size: 1.5rem;
	line-height: 1;
}

.ssa-blog-moment__label {
	font-size: 0.98rem;
	line-height: 1.35;
	font-weight: 600;
}

/* Featured */
.ssa-blog-featured {
	margin-bottom: 40px;
}

.ssa-blog-featured__primary .ssa-blog-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	background: #fffaf6;
	border: 1px solid #eae7de;
	border-radius: 16px;
	overflow: hidden;
}

.ssa-blog-featured__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Cards */
.ssa-blog-card {
	background: #fff;
	border: 1px solid #eae7de;
	border-radius: 14px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ssa-blog-card__media img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.ssa-blog-featured__primary .ssa-blog-card__media img {
	height: 100%;
	min-height: 280px;
}

.ssa-blog-card__body {
	padding: 18px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.ssa-blog-card__cat {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #d88a6d;
	margin: 0;
	font-weight: 700;
}

.ssa-blog-card__title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	font-size: 1.35rem;
	margin: 0;
	line-height: 1.25;
}

.ssa-blog-card__title a {
	color: #211f35;
	text-decoration: none;
}

.ssa-blog-card__title a:hover,
.ssa-blog-card__title a:focus {
	color: #d88a6d;
}

.ssa-blog-card__excerpt,
.ssa-blog-card__meta {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: #5f5a57;
}

.ssa-blog-card__link {
	margin-top: auto;
	font-weight: 600;
	color: #e98162;
	text-decoration: none;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
}

/* Filters */
.ssa-blog-filters {
	margin-bottom: 36px;
}

.ssa-blog-filters__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 18px;
}

.ssa-blog-chip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border-radius: 999px;
	background: #f8f6f4;
	border: 1px solid #eae7de;
	color: #211f35;
	text-decoration: none;
	font-size: 0.92rem;
	font-weight: 600;
}

.ssa-blog-chip.is-active,
.ssa-blog-chip[aria-pressed="true"] {
	background: #211f35;
	color: #fff;
	border-color: #211f35;
}

.ssa-blog-chip:focus-visible {
	outline: 3px solid #d88a6d;
	outline-offset: 2px;
}

.ssa-blog-search__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #211f35;
}

.ssa-blog-search__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.ssa-blog-search input[type="search"] {
	flex: 1 1 240px;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #ccc;
	border-radius: 10px;
	font-size: 1rem;
}

.ssa-blog-search input[type="search"]:focus-visible {
	outline: 3px solid #d88a6d;
	outline-offset: 1px;
	border-color: #d88a6d;
}

/* CTA mid */
.ssa-blog-cta-mid {
	background: #f8f6f4;
	border-radius: 16px;
	padding: 28px 24px;
	margin: 40px 0;
	text-align: center;
}

.ssa-blog-cta-mid__title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 12px;
	color: #211f35;
}

.ssa-blog-cta-mid__text {
	margin: 0 0 20px;
	color: #5f5a57;
	line-height: 1.6;
	max-width: 62ch;
	margin-inline: auto;
}

.ssa-blog-cta-mid__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ssa-blog-cta-mid .ssa-blog-btn--ghost {
	color: #211f35;
	border-color: #211f35;
}

/* Grid */
.ssa-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ssa-blog-grid__item.is-hidden {
	display: none;
}

.ssa-blog-empty {
	padding: 24px;
	background: #f8f6f4;
	border-radius: 12px;
	line-height: 1.6;
}

.ssa-blog-empty a {
	color: #e98162;
	font-weight: 600;
}

/* Single */
.ssa-blog-single-hero {
	margin: 24px 0 28px;
}

.ssa-blog-single-hero__cat a {
	color: #d88a6d;
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.ssa-blog-single-hero__title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.15;
	margin: 10px 0 12px;
	color: #211f35;
}

.ssa-blog-single-hero__meta {
	color: #5f5a57;
	margin: 0 0 20px;
	font-size: 0.95rem;
}

.ssa-blog-single-hero__img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.ssa-blog-single-body {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

@media (min-width: 960px) {
	.ssa-blog-single-body {
		grid-template-columns: 260px 1fr;
		align-items: start;
	}

	.ssa-blog-toc {
		position: sticky;
		top: 24px;
	}
}

.ssa-blog-toc {
	background: #f8f6f4;
	border: 1px solid #eae7de;
	border-radius: 12px;
	padding: 16px;
}

.ssa-blog-toc__toggle {
	width: 100%;
	text-align: left;
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: 1.05rem;
	font-weight: 700;
	color: #211f35;
	min-height: 44px;
	cursor: pointer;
}

.ssa-blog-toc__list {
	margin: 8px 0 0;
	padding-left: 18px;
	line-height: 1.5;
}

.ssa-blog-toc__list[hidden] {
	display: none;
}

.ssa-blog-toc__item--h3 {
	margin-left: 12px;
	font-size: 0.92rem;
}

.ssa-blog-entry-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #3d3a38;
}

.ssa-blog-entry-content h2,
.ssa-blog-entry-content h3 {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	color: #211f35;
	margin-top: 1.6em;
}

/* Tabella comparativa guide (responsive mobile) */
.ssa-blog-compare-table {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 1.5em 0;
}

.ssa-blog-compare-table table {
	width: 100%;
	min-width: 280px;
	border-collapse: collapse;
	font-size: 0.98rem;
}

.ssa-blog-compare-table th,
.ssa-blog-compare-table td {
	padding: 12px 14px;
	border: 1px solid #eae7de;
	text-align: left;
	vertical-align: top;
	line-height: 1.5;
}

.ssa-blog-compare-table th {
	background: #f8f6f4;
	font-weight: 700;
	color: #211f35;
}

.ssa-blog-compare-table tbody tr:nth-child(even) {
	background: #fffaf6;
}

@media (max-width: 480px) {
	.ssa-blog-compare-table th,
	.ssa-blog-compare-table td {
		display: block;
		width: 100%;
		box-sizing: border-box;
	}

	.ssa-blog-compare-table thead {
		display: none;
	}

	.ssa-blog-compare-table tbody tr {
		display: block;
		margin-bottom: 12px;
		border: 1px solid #eae7de;
		border-radius: 10px;
		overflow: hidden;
	}

	.ssa-blog-compare-table tbody td {
		border: 0;
		border-bottom: 1px solid #eae7de;
	}

	.ssa-blog-compare-table tbody td:last-child {
		border-bottom: 0;
	}

	.ssa-blog-compare-table tbody td:first-child {
		background: #f8f6f4;
		font-weight: 700;
		color: #211f35;
	}

	.ssa-blog-compare-table tbody td:first-child::before {
		content: "Se cerchi… ";
		font-weight: 700;
	}

	.ssa-blog-compare-table tbody td:last-child::before {
		content: "Potresti scegliere… ";
		display: block;
		font-weight: 700;
		color: #211f35;
		margin-bottom: 4px;
	}
}

.ssa-blog-contextual-cta,
.ssa-blog-related,
.ssa-blog-cta-final {
	margin: 36px 0;
}

.ssa-blog-cta-final {
	background: #211f35;
	color: #fff;
	border-radius: 16px;
	padding: 28px 24px;
	text-align: center;
}

.ssa-blog-cta-final__title {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 0 0 12px;
}

.ssa-blog-cta-final__text {
	margin: 0 0 20px;
	line-height: 1.6;
	opacity: 0.92;
}

.ssa-blog-cta-final__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
}

.ssa-blog-related__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (max-width: 900px) {
	.ssa-blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ssa-blog-featured__primary .ssa-blog-card {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.ssa-blog-hero {
		margin-inline: -16px;
		min-height: 360px;
	}

	.ssa-blog-hub,
	.ssa-blog-single-wrap {
		padding-inline: 16px;
	}

	.ssa-blog-moment__grid {
		display: flex;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		padding-bottom: 6px;
		-webkit-overflow-scrolling: touch;
	}

	.ssa-blog-moment__grid > li {
		flex: 0 0 78%;
		scroll-snap-align: start;
	}

	.ssa-blog-filters__chips {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 4px;
	}

	.ssa-blog-grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ssa-blog-btn,
	.ssa-blog-moment__card {
		transition: none;
	}
}

/* --- Single: override Superb Addons main hero band (full.css ::before) --- */
body.single-post main.ssa-blog-single-wrap#wp--skip-link--target::before,
main.ssa-blog-single-wrap#wp--skip-link--target::before {
	content: none !important;
	display: none !important;
	height: 0 !important;
	background: none !important;
	box-shadow: none !important;
}

body.single-post main.ssa-blog-single-wrap#wp--skip-link--target,
main.ssa-blog-single-wrap#wp--skip-link--target {
	background: #fff !important;
	padding-top: 12px !important;
	overflow: visible !important;
}

main.ssa-blog-single-wrap > header.ssa-blog-single-hero,
.ssa-blog-single-hero {
	position: relative;
	z-index: 2;
	background: #fff !important;
	color: #211f35 !important;
	padding: 8px 0 0;
}

.ssa-blog-single-hero__title {
	color: #211f35 !important;
}

.ssa-blog-single-hero__cat a {
	color: #d88a6d !important;
}

.ssa-blog-single-hero__meta {
	color: #5f5a57 !important;
}

.ssa-blog-single-wrap {
	padding-bottom: 56px;
}

/* --- Entry content: Gutenberg blocks nel wrapper shortcode --- */
.ssa-blog-entry-content > *:first-child {
	margin-top: 0;
}

.ssa-blog-entry-content p,
.ssa-blog-entry-content .wp-block-paragraph {
	margin-bottom: 1.15em;
}

.ssa-blog-entry-content h2.wp-block-heading,
.ssa-blog-entry-content h3.wp-block-heading,
.ssa-blog-entry-content h2,
.ssa-blog-entry-content h3 {
	font-family: var(--wp--preset--font-family--fontsecondary, "Cormorant Garamond", serif);
	color: #211f35;
	line-height: 1.25;
}

.ssa-blog-entry-content h2.wp-block-heading,
.ssa-blog-entry-content h2 {
	font-size: clamp(1.65rem, 3vw, 2.1rem);
	margin-top: 2rem;
	margin-bottom: 0.75rem;
}

.ssa-blog-entry-content h3.wp-block-heading,
.ssa-blog-entry-content h3 {
	font-size: clamp(1.25rem, 2.2vw, 1.5rem);
	margin-top: 1.75rem;
	margin-bottom: 0.65rem;
}

.ssa-blog-entry-content a {
	color: #e98162;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.ssa-blog-entry-content a:hover,
.ssa-blog-entry-content a:focus {
	color: #d88a6d;
}

.ssa-blog-entry-content .wp-block-group.has-border-color {
	border-radius: 12px;
	margin: 1.5rem 0;
}

.ssa-blog-entry-content .wp-block-group.has-border-color h3 {
	margin-top: 0;
}

.ssa-blog-entry-content .wp-block-image {
	margin: 1.75rem 0;
}

.ssa-blog-entry-content .wp-block-image img {
	width: 100%;
	height: auto;
	border-radius: 14px;
	display: block;
}

.ssa-blog-entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	margin: 1.75rem 0;
}

.ssa-blog-entry-content .wp-block-button__link {
	border-radius: 999px !important;
	padding: 12px 22px !important;
	font-weight: 600;
	text-decoration: none !important;
}

.ssa-blog-entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background-color: #e98162 !important;
	color: #fff !important;
}

.ssa-blog-entry-content .wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid #211f35 !important;
	color: #211f35 !important;
	background: transparent !important;
}

.ssa-blog-entry-content .schema-faq-section,
.ssa-blog-entry-content .wp-block-yoast-faq-block .schema-faq-section {
	border: 1px solid #eae7de;
	border-radius: 10px;
	padding: 14px 16px;
	margin-bottom: 10px;
	background: #fff;
}

.ssa-blog-entry-content .schema-faq-question,
.ssa-blog-entry-content strong.schema-faq-question {
	font-weight: 700;
	color: #211f35;
	margin-bottom: 8px;
	display: block;
}

.ssa-blog-entry-content .schema-faq-answer {
	color: #3d3a38;
	line-height: 1.65;
}

@media (max-width: 1024px) {
	.ssa-blog-single-body {
		grid-template-columns: 1fr !important;
	}

	.ssa-blog-toc {
		position: static;
		margin-bottom: 8px;
	}
}

@media (min-width: 1025px) {
	.ssa-blog-single-body {
		grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
		gap: 32px;
	}
}
