/*
Theme Name: Salute Child
Template: kadence
Text Domain: salute-child
Version: 1.3.6
Author: Salute Aurea
Description: Child theme for "Salute Aurea", an Italian health & wellness blog.
             Adds E-E-A-T trust components, AEO block patterns, MedicalWebPage
             schema, and a medical disclaimer on top of Kadence.
*/

/* =========================================================================
   Design tokens — soft-blue, calm & trustworthy. WCAG AA on white.
   Kadence supplies the global typography/layout; we only theme our own
   trust components and patterns. Keep this lean.
   ========================================================================= */
:root {
	--salute-primary: #2563a6;        /* links / CTA — 5.2:1 on #fff */
	--salute-primary-dark: #1f4e79;   /* headings / hover — 7.4:1 on #fff */
	--salute-accent: #e8f0f8;         /* soft panel background */
	--salute-accent-border: #c4d8ec;
	--salute-text: #1a2b3c;           /* body text — 13.6:1 on #fff */
	--salute-muted: #4a5b6c;          /* meta text — 6.7:1 on #fff */
	--salute-surface: #ffffff;
	--salute-radius: 8px;
	--salute-gap: 1rem;
	--salute-maxline: 70ch;
}

/* =========================================================================
   Blog-home hero — greets visitors above the posts grid.
   ========================================================================= */
.salute-hero {
	margin: 0 0 2.5rem;
	padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
	text-align: center;
	color: #fff;
	background:
		radial-gradient(120% 140% at 50% -20%, #3a78bd 0%, var(--salute-primary) 45%, var(--salute-primary-dark) 100%);
	border-radius: 14px;
	box-shadow: 0 18px 40px -24px rgba(31, 78, 121, 0.65);
}

.salute-hero__inner {
	max-width: 46rem;
	margin: 0 auto;
}

.salute-hero__eyebrow {
	margin: 0 0 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: #d7e6f5;
}

.salute-hero__title {
	margin: 0 0 0.6rem;
	font-size: clamp(2rem, 5vw, 3.1rem);
	line-height: 1.1;
	color: #fff;
}

.salute-hero__tagline {
	margin: 0;
	font-size: clamp(1.05rem, 2.2vw, 1.3rem);
	line-height: 1.5;
	color: #eaf2fb;
}

/* =========================================================================
   Hero image carousel — "Ultimi articoli".
   The latest posts (with featured images) slide horizontally. The first slide
   is visible without JS; slider.js adds `is-ready` to enable the transition,
   arrows, dots, autoplay and progress bar.
   ========================================================================= */
/* Visually-hidden but available to screen readers. */
.salute-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Kadence gives .content-area a top margin (5rem). On the blog home the
   carousel is the first element, so drop that margin to seat it flush under
   the header. Two classes outrank Kadence's single-class rule at every width. */
.home .content-area,
.blog .content-area {
	margin-top: 0;
}

/* Full-bleed: break out of Kadence's centered content column to the
   full viewport width, edge to edge, at the very top of the page. */
.salute-hero__latest {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	margin-top: 0;
	margin-bottom: clamp(2rem, 5vw, 3rem);
}

.salute-slider {
	position: relative;
}

.salute-slider__viewport {
	position: relative;
	overflow: hidden;
}

.salute-slider__track {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
}

.salute-slider.is-ready .salute-slider__track {
	transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.salute-slider__slide {
	position: relative;
	flex: 0 0 100%;
	margin: 0;
}

/* Without JS only the first slide shows, so the hero never overflows. */
.salute-slider:not(.is-ready) .salute-slider__slide + .salute-slider__slide {
	display: none;
}

.salute-slider__link,
.salute-slider__link:hover,
.salute-slider__link:focus,
.salute-slider__link:active {
	display: block;
	position: relative;
	color: #fff;
	text-decoration: none;
}

/* Keep the title white even when Kadence applies its link-hover color. */
.salute-slider__link:hover .salute-slider__title,
.salute-slider__link:focus .salute-slider__title {
	color: #fff;
}

.salute-slider__img {
	display: block;
	width: 100%;
	height: clamp(380px, 82vh, 820px);
	object-fit: cover;
}

.salute-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 33, 51, 0.85) 0%,
		rgba(15, 33, 51, 0.45) 38%,
		rgba(15, 33, 51, 0) 68%
	);
}

.salute-slider__content {
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.7rem;
	width: min(70rem, 100%);
	margin-inline: auto;
	padding: clamp(1.5rem, 5vw, 3.5rem);
	padding-block-end: clamp(3rem, 6vw, 4.5rem);
}

.salute-slider__cat {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	background: var(--salute-primary);
	border-radius: 999px;
}

.salute-slider__title {
	margin: 0;
	max-width: 22ch;
	font-size: clamp(1.7rem, 5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.12;
	text-shadow: 0 2px 22px rgba(0, 0, 0, 0.45);
}

.salute-slider__link:focus-visible .salute-slider__title {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.salute-slider__date {
	font-size: 0.82rem;
	color: #dce8f4;
}

/* ---- Arrows (over the image, only once JS is ready) ---- */
.salute-slider__arrow {
	display: none;
	position: absolute;
	inset-block-start: 50%;
	transform: translateY(-50%);
	z-index: 2;
	place-items: center;
	inline-size: 2.6rem;
	block-size: 2.6rem;
	padding: 0;
	color: #fff;
	background: rgba(15, 33, 51, 0.45);
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(4px);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.salute-slider.is-ready .salute-slider__arrow {
	display: grid;
}

.salute-slider__arrow:hover {
	background: rgba(15, 33, 51, 0.75);
	border-color: #fff;
}

.salute-slider__arrow--prev {
	inset-inline-start: clamp(0.6rem, 2vw, 1rem);
}

.salute-slider__arrow--next {
	inset-inline-end: clamp(0.6rem, 2vw, 1rem);
}

/* ---- Progress bar across the bottom of the image ---- */
.salute-slider__progress {
	display: none;
	position: absolute;
	inset-inline: 0;
	inset-block-end: 0;
	z-index: 2;
	height: 3px;
	background: rgba(255, 255, 255, 0.25);
	overflow: hidden;
}

.salute-slider.is-ready .salute-slider__progress {
	display: block;
}

.salute-slider__bar {
	display: block;
	height: 100%;
	width: 100%;
	transform: scaleX(0);
	transform-origin: left center;
	background: #fff;
}

/* ---- Dots overlaid at the bottom of the image ---- */
.salute-slider__dots {
	display: flex;
	justify-content: center;
	gap: 0.6rem;
	position: absolute;
	inset-inline: 0;
	inset-block-end: clamp(1rem, 3vw, 1.6rem);
	z-index: 3;
}

.salute-slider__dot {
	inline-size: 9px;
	block-size: 9px;
	padding: 0;
	background: rgba(255, 255, 255, 0.4);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease;
}

.salute-slider__dot:hover {
	background: rgba(255, 255, 255, 0.7);
}

.salute-slider__dot.is-active {
	background: #fff;
	transform: scale(1.3);
}

.salute-slider__link:focus-visible,
.salute-slider__arrow:focus-visible,
.salute-slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* Phones: the default 82vh frame is taller than the screen is wide, so a wide
   photo loses its left/right edges. Drop to a landscape frame (~3:2) that
   matches real photos — the whole image reads with almost no cropping, and the
   overlay text still has room. */
@media ( max-width: 600px ) {
	.salute-slider__img {
		height: clamp(240px, 64vw, 380px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.salute-slider.is-ready .salute-slider__track {
		transition: none;
	}

	.salute-slider__bar {
		transition: none !important;
	}
}

/* =========================================================================
   "Più letti" — most-viewed strip under the hero.
   ========================================================================= */
.salute-popular {
	margin: 0 0 2.5rem;
}

.salute-popular__title {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	color: var(--salute-primary-dark);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.salute-popular__title::before {
	content: "";
	width: 0.5rem;
	height: 1.4rem;
	border-radius: 3px;
	background: var(--salute-primary);
}

.salute-popular__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, 1fr);
}

@media ( max-width: 880px ) {
	.salute-popular__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.salute-popular__item {
	margin: 0;
}

.salute-popular__link {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--salute-surface);
	border: 1px solid var(--salute-accent-border);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--salute-text);
	box-shadow: 0 10px 30px -24px rgba(31, 78, 121, 0.5);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.salute-popular__link:hover,
.salute-popular__link:focus-visible {
	transform: translateY(-3px);
	border-color: var(--salute-primary);
	box-shadow: 0 18px 36px -24px rgba(31, 78, 121, 0.55);
}

.salute-popular__rank {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	width: 1.9rem;
	height: 1.9rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--salute-primary);
	color: #fff;
	font-weight: 700;
	font-size: 0.9rem;
	box-shadow: 0 2px 8px -2px rgba(31, 78, 121, 0.7);
}

.salute-popular__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--salute-accent);
}

.salute-popular__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.salute-popular__body {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 0.75rem 0.85rem 0.9rem;
}

.salute-popular__heading {
	font-weight: 600;
	line-height: 1.3;
	color: var(--salute-primary-dark);
}

.salute-popular__link:hover .salute-popular__heading {
	color: var(--salute-primary);
}

.salute-popular__views {
	font-size: 0.8rem;
	color: var(--salute-muted);
}

@media ( prefers-reduced-motion: reduce ) {
	.salute-popular__link {
		transition: none;
	}
	.salute-popular__link:hover {
		transform: none;
	}
}

/* -------------------------------------------------------------------------
   Phones: drop the big stacked cards for a compact ranked list that scans
   in one glance — rank · small thumb · title · reads, all on one row.
   ---------------------------------------------------------------------- */
@media ( max-width: 600px ) {
	.salute-popular__title {
		font-size: 1.25rem;
	}

	.salute-popular__grid {
		grid-template-columns: 1fr;
		gap: 0.6rem;
	}

	.salute-popular__link {
		flex-direction: row;
		align-items: center;
		gap: 0.85rem;
		padding: 0.55rem;
		border-radius: 12px;
	}

	/* Tapping anywhere on the row shouldn't nudge it sideways. */
	.salute-popular__link:hover,
	.salute-popular__link:focus-visible {
		transform: none;
	}

	/* Rank leaves the image overlay and becomes a leading badge. */
	.salute-popular__rank {
		position: static;
		flex: 0 0 auto;
		width: 1.7rem;
		height: 1.7rem;
		box-shadow: none;
	}

	/* Landscape thumb (matches the photos' real shape) crops far less than a
	   square — same compact ranked row, just a wider, fuller picture. */
	.salute-popular__thumb {
		flex: 0 0 5.75rem;
		width: 5.75rem;
		aspect-ratio: 16 / 10;
		border-radius: 9px;
	}

	.salute-popular__body {
		flex: 1 1 auto;
		min-width: 0;
		padding: 0;
		gap: 0.2rem;
	}

	.salute-popular__heading {
		font-size: 0.98rem;
		/* Keep the row tidy: cap long titles at two lines. */
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.salute-popular__views {
		font-size: 0.78rem;
	}
}

/* =========================================================================
   Post cards on the blog index / archives — lift Kadence's boxed entries
   into something warmer without shipping a second framework.
   ========================================================================= */
.kadence-posts-list .loop-entry {
	border: 1px solid var(--salute-accent-border);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px -22px rgba(31, 78, 121, 0.5);
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.kadence-posts-list .loop-entry:hover,
.kadence-posts-list .loop-entry:focus-within {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -24px rgba(31, 78, 121, 0.55);
	border-color: var(--salute-primary);
}

/* Featured image: zoom gently on hover, clipped by the rounded card. */
.kadence-posts-list .loop-entry .post-thumbnail img {
	transition: transform 0.4s ease;
	width: 100%;
}

.kadence-posts-list .loop-entry:hover .post-thumbnail img {
	transform: scale(1.04);
}

/* Title + hover colour. */
.kadence-posts-list .loop-entry .entry-title a {
	color: var(--salute-primary-dark);
	text-decoration: none;
}

.kadence-posts-list .loop-entry .entry-title a:hover,
.kadence-posts-list .loop-entry .entry-title a:focus {
	color: var(--salute-primary);
}

/* Meta row — quieter and with a primary accent on the date. */
.kadence-posts-list .loop-entry .entry-meta {
	color: var(--salute-muted);
	font-size: 0.85rem;
}

/* Category pills in the footer. */
.kadence-posts-list .loop-entry .entry-taxonomies .category-style-pill,
.kadence-posts-list .loop-entry .entry-taxonomies a {
	color: var(--salute-primary);
}

/* "Read more" turned into a calm pill button. */
.kadence-posts-list .loop-entry .post-more-link {
	display: inline-block;
	margin-top: 0.5rem;
	padding: 0.5rem 1rem;
	border-radius: 999px;
	background: var(--salute-accent);
	color: var(--salute-primary-dark);
	font-size: 0.85rem;
	font-weight: 600;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease;
}

.kadence-posts-list .loop-entry .post-more-link:hover,
.kadence-posts-list .loop-entry .post-more-link:focus {
	background: var(--salute-primary);
	color: #fff;
}

/* Respect users who prefer reduced motion. */
@media ( prefers-reduced-motion: reduce ) {
	.kadence-posts-list .loop-entry,
	.kadence-posts-list .loop-entry .post-thumbnail img,
	.kadence-posts-list .loop-entry .post-more-link {
		transition: none;
	}
	.kadence-posts-list .loop-entry:hover {
		transform: none;
	}
	.kadence-posts-list .loop-entry:hover .post-thumbnail img {
		transform: none;
	}
}

/* =========================================================================
   Trust header (byline + reviewer + dates) — injected after entry header.
   ========================================================================= */
.salute-trust {
	margin: 0 0 1.5rem;
	padding: 1rem 1.25rem;
	background: var(--salute-accent);
	border: 1px solid var(--salute-accent-border);
	border-radius: var(--salute-radius);
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--salute-text);
}

.salute-trust__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.6rem;
	align-items: baseline;
}

.salute-trust__row + .salute-trust__row {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px solid var(--salute-accent-border);
}

.salute-trust__label {
	font-weight: 700;
	color: var(--salute-primary-dark);
}

.salute-trust__credentials,
.salute-trust__role {
	color: var(--salute-muted);
}

.salute-trust a {
	color: var(--salute-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.salute-trust a:hover,
.salute-trust a:focus {
	color: var(--salute-primary-dark);
}

.salute-trust time {
	color: var(--salute-muted);
}

/* =========================================================================
   Medical disclaimer — auto-appended to single-post footer.
   ========================================================================= */
.salute-disclaimer {
	margin: 2.5rem 0 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--salute-primary);
	background: var(--salute-accent);
	border-radius: 0 var(--salute-radius) var(--salute-radius) 0;
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--salute-text);
}

.salute-disclaimer__title {
	margin: 0 0 0.35rem;
	font-weight: 700;
	color: var(--salute-primary-dark);
}

.salute-disclaimer p {
	margin: 0;
}

/* =========================================================================
   Patterns: Key takeaways ("Punti chiave"), FAQ, Sources ("Fonti").
   These ship as block patterns; classes below give them a calm default
   that still inherits Kadence spacing.
   ========================================================================= */
.salute-takeaways {
	margin: 0 0 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--salute-accent);
	border: 1px solid var(--salute-accent-border);
	border-radius: var(--salute-radius);
}

.salute-takeaways__title {
	margin: 0 0 0.5rem;
	color: var(--salute-primary-dark);
	font-size: 1.1rem;
}

.salute-takeaways ul {
	margin: 0;
	padding-left: 1.25rem;
}

.salute-takeaways li {
	margin: 0.25rem 0;
}

/* FAQ accordion — native <details> for zero-JS baseline; JS enhances a11y. */
.salute-faq {
	margin: 2rem 0;
}

.salute-faq__title {
	color: var(--salute-primary-dark);
}

.salute-faq__item {
	border: 1px solid var(--salute-accent-border);
	border-radius: var(--salute-radius);
	margin: 0.5rem 0;
	background: var(--salute-surface);
}

.salute-faq__item > summary {
	cursor: pointer;
	padding: 0.85rem 1rem;
	font-weight: 600;
	color: var(--salute-primary-dark);
	list-style: none;
	position: relative;
}

.salute-faq__item > summary::-webkit-details-marker {
	display: none;
}

.salute-faq__item > summary::after {
	content: "+";
	position: absolute;
	right: 1rem;
	font-weight: 700;
	color: var(--salute-primary);
}

.salute-faq__item[open] > summary::after {
	content: "\2013"; /* en dash */
}

.salute-faq__item > summary:focus-visible {
	outline: 2px solid var(--salute-primary);
	outline-offset: 2px;
}

.salute-faq__answer {
	padding: 0 1rem 1rem;
	max-width: var(--salute-maxline);
}

/* Sources / Fonti */
.salute-sources {
	margin: 2rem 0;
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--salute-accent-border);
	border-radius: var(--salute-radius);
}

.salute-sources__title {
	margin-top: 0;
	color: var(--salute-primary-dark);
}

.salute-sources ol {
	margin: 0;
	padding-left: 1.5rem;
}

.salute-sources li {
	margin: 0.4rem 0;
}

.salute-sources a {
	color: var(--salute-primary);
	text-underline-offset: 2px;
}

/* =========================================================================
   In-content images — give images placed between paragraphs the same calm,
   rounded look as the rest of the theme, with a quiet branded caption.
   Scoped to the post body so it never touches card thumbnails or the hero.
   ========================================================================= */
.entry-content .wp-block-image img,
.single-content .wp-block-image img {
	border-radius: var(--salute-radius);
	box-shadow: 0 12px 30px -24px rgba(31, 78, 121, 0.5);
}

/* Don't round the circle-mask image style. */
.entry-content .wp-block-image.is-style-circle-mask img {
	border-radius: 9999px;
}

.entry-content .wp-block-image figcaption,
.single-content .wp-block-image figcaption {
	color: var(--salute-muted);
	font-size: 0.85rem;
	font-style: italic;
	text-align: center;
}

/* Phones: floated images would crowd the narrow column — let them go full
   width and clear the text instead. */
@media ( max-width: 600px ) {
	.entry-content .wp-block-image.alignleft,
	.entry-content .wp-block-image.alignright,
	.entry-content .wp-block-image.alignleft img,
	.entry-content .wp-block-image.alignright img {
		float: none;
		width: 100% !important;
		max-width: 100%;
		margin-left: 0;
		margin-right: 0;
	}
}

/* =========================================================================
   Single-post featured image — placed BELOW the title (see inc/hooks.php).
   Kadence crops it to a tall 2:3 box via padding-bottom; below the title we
   want the image in normal flow at its natural ratio, matching in-content
   images (rounded corners + soft shadow). Scoped to single posts only.
   ========================================================================= */
.single .post-thumbnail.kadence-thumbnail-position-below {
	padding-bottom: 0;
	height: auto;
	margin-bottom: var(--global-md-spacing, 2rem);
}

.single .post-thumbnail.kadence-thumbnail-position-below .post-thumbnail-inner {
	position: static;
}

.single .post-thumbnail.kadence-thumbnail-position-below img {
	width: 100%;
	height: auto;
	border-radius: var(--salute-radius);
	box-shadow: 0 12px 30px -24px rgba(31, 78, 121, 0.5);
}

/* =========================================================================
   Mobile menu — restyle Kadence's right side-panel drawer to be friendly
   and thumb-easy: branded header, big tap targets, clear submenu toggles.
   Scoped to .popup-drawer / mobile toggle so the desktop nav is untouched.
   ========================================================================= */

/* The hamburger trigger — a calm rounded button instead of a bare icon. */
.mobile-toggle-open-container .menu-toggle-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 10px;
	color: var(--salute-primary-dark);
	background: var(--salute-accent);
	border: 1px solid var(--salute-accent-border);
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-toggle-open-container .menu-toggle-open:hover,
.mobile-toggle-open-container .menu-toggle-open:focus-visible {
	background: var(--salute-primary);
	color: #fff;
}

/* Roomier panel so titles aren't cramped on small screens. */
.popup-drawer.popup-drawer-layout-sidepanel .drawer-inner {
	width: min(86vw, 360px);
	background: var(--salute-surface);
}

.popup-drawer .drawer-overlay {
	background: rgba(31, 78, 121, 0.55);
}

/* Branded drawer header with a friendly label + a clear close target. */
.popup-drawer .drawer-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	background: var(--salute-accent);
	border-bottom: 1px solid var(--salute-accent-border);
}

.popup-drawer .drawer-header::before {
	content: "Menu";
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--salute-primary-dark);
	letter-spacing: 0.01em;
}

.popup-drawer .menu-toggle-close {
	width: 2.5rem;
	height: 2.5rem;
	display: grid;
	place-items: center;
	border-radius: 8px;
	color: var(--salute-primary-dark);
	transition: background 0.2s ease;
}

.popup-drawer .menu-toggle-close:hover,
.popup-drawer .menu-toggle-close:focus-visible {
	background: #fff;
}

.popup-drawer .menu-toggle-close .toggle-close-bar {
	background: currentColor;
}

.popup-drawer .drawer-content {
	padding: 0.5rem 0.75rem 1.25rem;
}

/* Menu list: each row a generous, finger-sized tap target. */
.mobile-navigation #mobile-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mobile-navigation #mobile-menu .menu-item {
	border-bottom: 1px solid var(--salute-accent-border);
}

.mobile-navigation #mobile-menu > .menu-item:last-child {
	border-bottom: 0;
}

.mobile-navigation #mobile-menu .menu-item a {
	display: flex;
	align-items: center;
	min-height: 3rem;
	padding: 0.5rem 0.75rem;
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--salute-primary-dark);
	text-decoration: none;
	border-radius: 8px;
	transition: background 0.2s ease, color 0.2s ease;
}

.mobile-navigation #mobile-menu .menu-item a:hover,
.mobile-navigation #mobile-menu .menu-item a:focus-visible {
	background: var(--salute-accent);
	color: var(--salute-primary);
}

/* Current page gets a clear left accent so users know where they are. */
.mobile-navigation #mobile-menu .current-menu-item > a,
.mobile-navigation #mobile-menu .current_page_item > a {
	background: var(--salute-accent);
	color: var(--salute-primary-dark);
	box-shadow: inset 3px 0 0 var(--salute-primary);
}

/* Parent rows: keep the link and the expand toggle on the same line. */
.mobile-navigation .drawer-nav-drop-wrap {
	display: flex;
	align-items: center;
}

.mobile-navigation .drawer-nav-drop-wrap > a {
	flex: 1 1 auto;
}

/* Submenu expand toggle — a big, obvious arrow button.
   Kadence's arrow is an <svg fill="currentColor"> that inherits the drawer's
   near-white menu colour (#F7FAFC). On our white panel that vanishes, so we
   FORCE the arrow colour to brand blue (!important beats the inherited value)
   instead of hiding it — that's why earlier attempts looked white. */
.mobile-navigation .drawer-sub-toggle {
	flex: 0 0 auto;
	width: 3rem;
	height: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: var(--salute-primary) !important;
	cursor: pointer;
	transition: background 0.2s ease;
}

.mobile-navigation .drawer-sub-toggle:hover,
.mobile-navigation .drawer-sub-toggle:focus-visible {
	background: var(--salute-accent);
}

/* Make the real Kadence arrow brand-blue and a touch larger; it already
   rotates 180° on open via Kadence's own rule. */
.mobile-navigation .drawer-sub-toggle .kadence-svg-iconset,
.mobile-navigation .drawer-sub-toggle svg {
	color: var(--salute-primary) !important;
	fill: currentColor !important;
	width: 1.4em;
	height: 1.4em;
	transition: transform 0.2s ease;
}

/* Submenu: indented, softly tinted, lighter weight than parents. */
.mobile-navigation #mobile-menu .sub-menu {
	margin: 0 0 0.35rem;
	padding: 0;
	list-style: none;
	background: rgba(232, 240, 248, 0.5);
	border-radius: 8px;
}

.mobile-navigation #mobile-menu .sub-menu .menu-item {
	border-bottom: 0;
}

.mobile-navigation #mobile-menu .sub-menu .menu-item a {
	min-height: 2.75rem;
	padding-left: 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	color: var(--salute-text);
}

@media ( prefers-reduced-motion: reduce ) {
	.mobile-toggle-open-container .menu-toggle-open,
	.mobile-navigation .drawer-sub-toggle,
	.mobile-navigation .drawer-sub-toggle::after,
	.mobile-navigation #mobile-menu .menu-item a {
		transition: none;
	}
}

/* Belt-and-braces: on our white drawer, force menu text/links dark so none of
   Kadence's near-white defaults can wash out. */
.popup-drawer .mobile-navigation #mobile-menu a,
.popup-drawer .mobile-navigation .drawer-nav-drop-wrap > a {
	color: var(--salute-primary-dark);
}

/* =========================================================================
   Desktop header nav — visible, brand-coloured dropdown arrows that rotate
   when the submenu opens, plus a tidy animated underline for hover/current.
   ========================================================================= */
.main-navigation .primary-menu-container .dropdown-nav-toggle .kadence-svg-icon {
	color: var(--salute-primary);
	transition: transform 0.2s ease;
}

.main-navigation .primary-menu-container > ul > li.menu-item-has-children:hover .dropdown-nav-toggle .kadence-svg-icon,
.main-navigation .primary-menu-container > ul > li.menu-item-has-children:focus-within .dropdown-nav-toggle .kadence-svg-icon {
	transform: rotate(180deg);
}

/* Animated underline that grows from the centre on hover and stays for the
   current page — clearer "you are here" than a colour swap alone. */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
	position: relative;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a::before {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 0.35em;
	height: 2px;
	border-radius: 2px;
	background: var(--salute-primary);
	transition: left 0.2s ease, right 0.2s ease;
}

.main-navigation .primary-menu-container > ul > li.menu-item > a:hover::before,
.main-navigation .primary-menu-container > ul > li.menu-item > a:focus-visible::before,
.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a::before {
	left: calc(1.2em / 2);
	right: calc(1.2em / 2);
}

.main-navigation .primary-menu-container > ul > li.menu-item.current-menu-item > a {
	color: var(--salute-primary-dark);
}

@media ( prefers-reduced-motion: reduce ) {
	.main-navigation .primary-menu-container .dropdown-nav-toggle .kadence-svg-icon,
	.main-navigation .primary-menu-container > ul > li.menu-item > a::before {
		transition: none;
	}
}

/* =========================================================================
   Mobile reading comfort — Kadence's default heading scale is large on a
   phone. Cap titles/headings so posts read calmly instead of shouting.
   ========================================================================= */
@media ( max-width: 600px ) {
	/* Single-post title. */
	.entry-hero .entry-title,
	.content-area .entry-title {
		font-size: clamp(1.5rem, 6vw, 1.85rem);
		line-height: 1.25;
	}

	/* In-article headings. */
	.entry-content h2 {
		font-size: 1.35rem;
		line-height: 1.3;
	}

	.entry-content h3 {
		font-size: 1.15rem;
		line-height: 1.35;
	}

	.entry-content h4 {
		font-size: 1.05rem;
	}

	/* Comfortable body copy + spacing on small screens. */
	.entry-content p,
	.entry-content li {
		font-size: 1rem;
		line-height: 1.65;
	}

	/* Post-card titles on the blog/archive grid. */
	.kadence-posts-list .loop-entry .entry-title,
	.kadence-posts-list .loop-entry .entry-title a {
		font-size: 1.2rem;
		line-height: 1.3;
	}
}

/* =========================================================================
   Blog-index post cards — calmer proportions.
   Kadence's cards use a tall 2:3 portrait thumbnail, which makes each card
   very vertical. Swap it for a relaxed landscape ratio (matches the "Più
   letti" cards) so the grid reads lighter.
   ========================================================================= */
.kadence-posts-list .loop-entry .post-thumbnail {
	padding-bottom: 62% !important; /* ~16:10 landscape, was a tall portrait. */
}

/* Dangling "By" with no author on cards looks unfinished; the real byline
   lives on the single post. Keep the date, drop the empty author. */
.kadence-posts-list .loop-entry .entry-meta .posted-by {
	display: none;
}

/* -------------------------------------------------------------------------
   Phones: lay each card out horizontally like the "Più letti" rows —
   image left, then category · title · date · description · read more.
   ---------------------------------------------------------------------- */
@media ( max-width: 600px ) {
	.kadence-posts-list.grid-cols {
		grid-template-columns: 1fr !important;
		gap: 1rem;
	}

	/* Stack each card so the photo runs full width on top, text below — a
	   wide landscape frame matches real photos, so almost nothing is cropped
	   (the old image-left column was tall and narrow, chopping the sides). */
	.kadence-posts-list .loop-entry {
		display: block;
	}

	/* Full-width landscape thumbnail (~16:10) on top of the card. */
	.kadence-posts-list .loop-entry .post-thumbnail {
		padding-bottom: 56% !important;
		height: auto;
		min-height: 0;
	}

	.kadence-posts-list .loop-entry .entry-content-wrap {
		padding: 0.8rem 0.9rem !important;
		display: flex;
		flex-direction: column;
		gap: 0.3rem;
	}

	.kadence-posts-list .loop-entry .entry-taxonomies {
		font-size: 0.72rem;
		margin: 0;
	}

	.kadence-posts-list .loop-entry .entry-title,
	.kadence-posts-list .loop-entry .entry-title a {
		font-size: 1.02rem;
		line-height: 1.25;
	}

	/* Keep the title to two lines so the row stays compact. */
	.kadence-posts-list .loop-entry .entry-title a {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.kadence-posts-list .loop-entry .entry-meta {
		font-size: 0.74rem;
		margin: 0;
	}

	/* Description: smaller, clamped to two lines. */
	.kadence-posts-list .loop-entry .entry-summary,
	.kadence-posts-list .loop-entry .entry-summary p {
		font-size: 0.82rem;
		line-height: 1.45;
		margin: 0;
	}

	.kadence-posts-list .loop-entry .entry-summary {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	/* Trim default spacing around the footer/read-more so the row stays tight. */
	.kadence-posts-list .loop-entry .entry-footer {
		margin: 0;
	}

	.kadence-posts-list .loop-entry .more-link-wrap {
		margin: 0;
	}

	/* Compact "read more" pill. */
	.kadence-posts-list .loop-entry .post-more-link {
		margin-top: 0.35rem;
		padding: 0.35rem 0.75rem;
		font-size: 0.78rem;
	}
}

/* =========================================================================
   Site footer — link columns above Kadence's copyright bar.
   ========================================================================= */
.salute-footer {
	background: var(--salute-primary-dark);
	color: #eaf2fb;
	padding: 2.75rem 1.5rem 1.75rem;
}

.salute-footer__inner {
	max-width: 70rem;
	margin: 0 auto;
	display: grid;
	gap: 2rem;
	grid-template-columns: 1.6fr 1fr 1fr;
}

.salute-footer__name {
	margin: 0 0 0.5rem;
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
}

.salute-footer__about {
	margin: 0;
	max-width: 32ch;
	font-size: 0.92rem;
	line-height: 1.6;
	color: #cfe0f2;
}

.salute-footer__heading {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #9fc1e3;
}

.salute-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.salute-footer__list a {
	color: #eaf2fb;
	text-decoration: none;
	font-size: 0.95rem;
	transition: color 0.2s ease, padding-left 0.2s ease;
}

.salute-footer__list a:hover,
.salute-footer__list a:focus-visible {
	color: #fff;
	padding-left: 0.25rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.salute-footer__bottom {
	max-width: 70rem;
	margin: 2rem auto 0;
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.5rem;
	align-items: baseline;
	justify-content: space-between;
}

.salute-footer__copy {
	margin: 0;
	font-size: 0.85rem;
	color: #cfe0f2;
}

.salute-footer__note {
	margin: 0;
	flex: 1 1 22rem;
	min-width: 0;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #9fc1e3;
}

.salute-footer__social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.35rem;
}

.salute-footer__social a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	color: #eaf2fb;
	background: rgba(255, 255, 255, 0.08);
	transition: color 0.2s ease, background-color 0.2s ease;
}

.salute-footer__social a:hover,
.salute-footer__social a:focus-visible {
	color: #fff;
	background: rgba(255, 255, 255, 0.18);
}

.salute-footer__social a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.salute-footer__social svg {
	width: 1.15rem;
	height: 1.15rem;
}

@media ( max-width: 720px ) {
	.salute-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
	.salute-footer__brand {
		grid-column: 1 / -1;
	}
}

@media ( max-width: 480px ) {
	.salute-footer__inner {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}
}

@media ( prefers-reduced-motion: reduce ) {
	.salute-footer__list a {
		transition: none;
	}
}

/* =========================================================================
   Phones: relax padding on the in-article components so text isn't pinched
   against the screen edges, and keep tap targets comfortable.
   ========================================================================= */
@media ( max-width: 600px ) {
	.salute-trust,
	.salute-disclaimer,
	.salute-takeaways,
	.salute-sources {
		padding: 1rem 1.1rem;
	}

	.salute-takeaways__title {
		font-size: 1.05rem;
	}

	/* FAQ summaries: bigger touch area, room for the +/- marker. */
	.salute-faq__item > summary {
		padding: 0.9rem 2.25rem 0.9rem 0.9rem;
		font-size: 0.98rem;
	}

	.salute-faq__answer {
		padding: 0 0.9rem 0.9rem;
		font-size: 0.95rem;
		line-height: 1.6;
	}

	.salute-sources li,
	.salute-takeaways li {
		font-size: 0.95rem;
		line-height: 1.55;
	}
}
