/*
Theme Name: MEMO DIGITALE Tech
Theme URI: https://blog.memodigitale.it
Author: MEMO DIGITALE
Author URI: https://memodigitale.it
Description: Tema editoriale tecnologico per le guide MEMO DIGITALE su ricarica wireless e cover MagSafe.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: memo-digitale-tech
*/

:root {
	--navy-950: #030c17;
	--navy-900: #061525;
	--navy-850: #0a1d31;
	--navy-800: #0e2742;
	--blue-600: #087cff;
	--blue-500: #1e96ff;
	--blue-400: #42b7ff;
	--cyan-400: #39e4e8;
	--cyan-300: #78f5f2;
	--ink: #102840;
	--muted: #61768b;
	--line: #dce8f2;
	--surface: #ffffff;
	--surface-soft: #f3f8fc;
	--radius-sm: 12px;
	--radius-md: 20px;
	--radius-lg: 32px;
	--shadow-sm: 0 12px 34px rgba(5, 28, 50, 0.08);
	--shadow-lg: 0 28px 80px rgba(2, 18, 34, 0.18);
	--container: 1200px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--surface);
	color: var(--ink);
	font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

body.nav-is-open {
	overflow: hidden;
}

img {
	display: block;
	height: auto;
	max-width: 100%;
}

a {
	color: var(--blue-600);
	text-decoration: none;
}

a:hover {
	color: #005fc9;
}

button,
input {
	font: inherit;
}

h1,
h2,
h3,
h4 {
	color: var(--ink);
	font-family: "Space Grotesk", "Manrope", sans-serif;
	font-weight: 700;
	letter-spacing: -0.035em;
	line-height: 1.12;
	margin: 0 0 0.55em;
}

h1 {
	font-size: clamp(2.7rem, 6vw, 5.8rem);
}

h2 {
	font-size: clamp(2rem, 3.7vw, 3.6rem);
}

h3 {
	font-size: clamp(1.3rem, 2vw, 1.7rem);
}

p {
	margin: 0 0 1.25em;
}

.container {
	margin-inline: auto;
	max-width: var(--container);
	padding-inline: 24px;
	width: 100%;
}

.section {
	padding-block: clamp(72px, 9vw, 124px);
}

.section--tinted {
	background:
		linear-gradient(135deg, rgba(8, 124, 255, 0.035), transparent 48%),
		var(--surface-soft);
}

.section--dark {
	background:
		radial-gradient(circle at 80% 10%, rgba(30, 150, 255, 0.2), transparent 30%),
		linear-gradient(130deg, var(--navy-950), var(--navy-800));
	color: #d9e8f5;
}

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

.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	clip-path: none;
	color: var(--ink);
	display: block;
	font-weight: 700;
	height: auto;
	left: 8px;
	padding: 12px 18px;
	top: 8px;
	width: auto;
	z-index: 100000;
}

.eyebrow {
	align-items: center;
	color: var(--blue-600);
	display: flex;
	font-size: 0.73rem;
	font-weight: 800;
	gap: 9px;
	letter-spacing: 0.16em;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.eyebrow > span {
	background: currentColor;
	border-radius: 50%;
	box-shadow: 0 0 12px currentColor;
	height: 7px;
	width: 7px;
}

.eyebrow--cyan {
	color: #08aeb6;
}

.eyebrow--light {
	color: var(--cyan-300);
}

.button {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 12px;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1.2;
	min-height: 52px;
	padding: 14px 22px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
	transform: translateY(-2px);
}

.button--primary {
	background: linear-gradient(120deg, var(--blue-600), var(--blue-400));
	box-shadow: 0 14px 30px rgba(8, 124, 255, 0.28);
	color: #fff;
}

.button--primary:hover {
	color: #fff;
	box-shadow: 0 18px 38px rgba(8, 124, 255, 0.38);
}

.button--ghost,
.button--outline {
	border-color: #b9cad9;
	color: var(--ink);
}

.button--ghost:hover,
.button--outline:hover {
	background: #fff;
	border-color: var(--blue-500);
	color: var(--blue-600);
}

.button--light {
	background: #fff;
	color: var(--navy-900);
}

.button--ghost-light {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
}

.button--ghost-light:hover {
	background: rgba(255, 255, 255, 0.09);
	color: #fff;
}

.text-link {
	align-items: center;
	display: inline-flex;
	font-weight: 800;
	gap: 6px;
}

.text-link span {
	transition: transform 0.2s ease;
}

.text-link:hover span {
	transform: translateX(4px);
}

/* Header */
.site-header {
	background: rgba(3, 12, 23, 0.96);
	border-bottom: 1px solid rgba(102, 196, 255, 0.14);
	color: #fff;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.site-header__glow {
	background: linear-gradient(90deg, transparent, var(--blue-500), var(--cyan-400), transparent);
	height: 1px;
	left: 20%;
	opacity: 0.8;
	position: absolute;
	right: 20%;
	top: 0;
}

.site-header__inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	min-height: 80px;
}

.brand {
	align-items: center;
	color: #fff;
	display: inline-flex;
	gap: 12px;
}

.brand:hover {
	color: #fff;
}

.brand__mark {
	align-items: center;
	background:
		linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent),
		linear-gradient(135deg, var(--blue-600), var(--cyan-400));
	border-radius: 11px;
	box-shadow: 0 8px 22px rgba(9, 126, 255, 0.3);
	display: inline-flex;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.88rem;
	font-weight: 700;
	height: 42px;
	justify-content: center;
	letter-spacing: -0.06em;
	width: 42px;
}

.brand__text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.brand__text strong {
	font-size: 0.92rem;
	letter-spacing: 0.075em;
}

.brand__text small {
	color: #9eb5c9;
	font-size: 0.66rem;
	letter-spacing: 0.04em;
	margin-top: 4px;
}

.site-nav__list {
	align-items: center;
	display: flex;
	gap: 3px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav__list a {
	border-radius: 10px;
	color: #c6d6e5;
	display: block;
	font-size: 0.82rem;
	font-weight: 700;
	padding: 10px 13px;
}

.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current-menu-ancestor > a {
	background: rgba(69, 179, 255, 0.1);
	color: #fff;
}

.site-nav__list .site-nav__shop,
.site-nav__list > li:last-child > a {
	background: var(--blue-600);
	color: #fff;
	margin-left: 6px;
	padding-inline: 17px;
}

.nav-toggle {
	background: transparent;
	border: 0;
	display: none;
	height: 42px;
	padding: 10px;
	width: 44px;
}

.nav-toggle > span:not(.screen-reader-text) {
	background: #fff;
	display: block;
	height: 2px;
	margin: 5px 0;
	transition: transform 0.2s ease, opacity 0.2s ease;
	width: 23px;
}

/* Hero */
.hero {
	background:
		radial-gradient(circle at 82% 28%, rgba(8, 124, 255, 0.23), transparent 29%),
		linear-gradient(135deg, var(--navy-950), #09213a 70%, #0b2947);
	color: #d5e4f0;
	min-height: 740px;
	overflow: hidden;
	position: relative;
}

.hero__grid,
.article-hero__grid,
.error-page__grid {
	background-image:
		linear-gradient(rgba(70, 176, 255, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(70, 176, 255, 0.055) 1px, transparent 1px);
	background-size: 46px 46px;
	inset: 0;
	mask-image: linear-gradient(to right, rgba(0, 0, 0, 0.5), transparent 80%);
	position: absolute;
}

.hero__orb {
	border: 1px solid rgba(72, 194, 255, 0.26);
	border-radius: 50%;
	position: absolute;
}

.hero__orb--one {
	height: 520px;
	right: -120px;
	top: 25px;
	width: 520px;
}

.hero__orb--two {
	height: 340px;
	right: -30px;
	top: 115px;
	width: 340px;
}

.hero__inner {
	align-items: center;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	min-height: 740px;
	padding-block: 82px;
	position: relative;
	z-index: 1;
}

.hero__content {
	max-width: 680px;
}

.hero h1 {
	color: #fff;
	font-size: clamp(3.5rem, 6.6vw, 6.2rem);
	line-height: 0.98;
}

.hero h1 em {
	background: linear-gradient(90deg, var(--blue-400), var(--cyan-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-style: normal;
}

.hero__lead {
	color: #b8ccdc;
	font-size: clamp(1.06rem, 1.7vw, 1.28rem);
	max-width: 610px;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 32px;
}

.hero .button--ghost {
	border-color: rgba(180, 218, 243, 0.35);
	color: #e5f1fa;
}

.hero .button--ghost:hover {
	background: rgba(255, 255, 255, 0.06);
}

.hero__proof {
	display: flex;
	gap: clamp(24px, 5vw, 54px);
	list-style: none;
	margin: 58px 0 0;
	padding: 0;
}

.hero__proof li {
	display: flex;
	flex-direction: column;
}

.hero__proof strong {
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.25rem;
}

.hero__proof span {
	color: #8099ad;
	font-size: 0.72rem;
}

.hero__visual {
	height: 500px;
	position: relative;
}

.device {
	position: absolute;
}

.device--phone {
	background: linear-gradient(145deg, #132e49, #040b13);
	border: 3px solid #537189;
	border-radius: 42px;
	box-shadow: -30px 40px 80px rgba(0, 0, 0, 0.44), inset 0 0 35px rgba(37, 155, 255, 0.08);
	height: 390px;
	left: 142px;
	top: 16px;
	transform: rotate(12deg);
	width: 202px;
	z-index: 3;
}

.device__island {
	background: #02070d;
	border-radius: 15px;
	height: 22px;
	left: 58px;
	position: absolute;
	top: 18px;
	width: 82px;
}

.device__ring {
	border: 10px solid rgba(83, 196, 255, 0.8);
	border-radius: 50%;
	box-shadow: 0 0 40px rgba(57, 228, 232, 0.35);
	height: 118px;
	left: 42px;
	position: absolute;
	top: 118px;
	width: 118px;
}

.device__bolt {
	color: var(--cyan-300);
	font-size: 48px;
	left: 83px;
	position: absolute;
	top: 145px;
}

.device--base {
	background: linear-gradient(145deg, #27425a, #07101b);
	border: 1px solid #4c6b83;
	border-radius: 50%;
	bottom: 62px;
	height: 124px;
	left: 90px;
	transform: perspective(300px) rotateX(60deg);
	width: 350px;
}

.device--base span {
	border: 2px solid var(--blue-400);
	border-radius: 50%;
	box-shadow: 0 0 32px rgba(66, 183, 255, 0.42);
	inset: 22px 70px;
	position: absolute;
}

.device--case {
	background: rgba(5, 18, 31, 0.75);
	border: 3px solid rgba(79, 173, 231, 0.62);
	border-radius: 38px;
	height: 270px;
	left: 258px;
	top: 138px;
	transform: rotate(-13deg);
	width: 155px;
	z-index: 2;
}

.device--case span {
	border: 7px solid rgba(57, 228, 232, 0.55);
	border-radius: 50%;
	height: 96px;
	left: 27px;
	position: absolute;
	top: 78px;
	width: 96px;
}

.signal {
	border: 1px solid rgba(57, 228, 232, 0.4);
	border-radius: 50%;
	position: absolute;
}

.signal--one {
	height: 430px;
	left: 8px;
	top: 5px;
	width: 430px;
}

.signal--two {
	height: 500px;
	left: -28px;
	top: -30px;
	width: 500px;
}

.hero__visual-label {
	color: #a9bdcf;
	font-size: 0.78rem;
	letter-spacing: 0.12em;
	position: absolute;
	right: -8px;
	text-transform: uppercase;
	top: 74px;
}

.hero__visual-label strong {
	color: var(--cyan-300);
}

/* Section headings and cluster */
.section-heading {
	margin-bottom: 42px;
	max-width: 780px;
}

.section-heading > p:not(.eyebrow) {
	color: var(--muted);
	font-size: 1.05rem;
}

.section-heading--split {
	align-items: end;
	display: flex;
	justify-content: space-between;
	max-width: none;
}

.section-heading--split > p {
	max-width: 420px;
}

.section-heading--light h2 {
	color: #fff;
}

.cluster-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(2, 1fr);
}

.cluster-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	min-height: 390px;
	overflow: hidden;
	padding: clamp(32px, 5vw, 58px);
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cluster-card:hover {
	border-color: rgba(8, 124, 255, 0.35);
	box-shadow: var(--shadow-lg);
	color: var(--ink);
	transform: translateY(-6px);
}

.cluster-card::after {
	border: 1px solid rgba(8, 124, 255, 0.13);
	border-radius: 50%;
	content: "";
	height: 280px;
	position: absolute;
	right: -105px;
	top: -90px;
	width: 280px;
}

.cluster-card--cover::after {
	border-color: rgba(12, 183, 190, 0.18);
}

.cluster-card__number {
	color: #9eb3c6;
	font-family: "Space Grotesk", sans-serif;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	position: absolute;
	right: 34px;
	top: 28px;
}

.cluster-card__icon {
	align-items: center;
	background: linear-gradient(145deg, #eaf5ff, #dceefe);
	border-radius: 20px;
	color: var(--blue-600);
	display: flex;
	font-size: 38px;
	height: 84px;
	justify-content: center;
	margin-bottom: 42px;
	width: 84px;
}

.cluster-card__icon--ring::before {
	border: 6px solid #0db9c0;
	border-radius: 50%;
	content: "";
	height: 43px;
	width: 43px;
}

.cluster-card h3 {
	font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.cluster-card p {
	color: var(--muted);
	max-width: 430px;
}

/* Cards */
.guides-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-md);
	box-shadow: 0 10px 34px rgba(4, 30, 55, 0.055);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.guide-card:hover {
	box-shadow: var(--shadow-sm);
	transform: translateY(-5px);
}

.guide-card__media {
	aspect-ratio: 16 / 10;
	background: #eaf2f8;
	display: block;
	overflow: hidden;
}

.guide-card__media img {
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	width: 100%;
}

.guide-card:hover .guide-card__media img {
	transform: scale(1.025);
}

.guide-card__placeholder {
	align-items: center;
	background:
		radial-gradient(circle at 70% 25%, rgba(53, 210, 232, 0.24), transparent 30%),
		linear-gradient(135deg, #071525, #123b64);
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.guide-card.is-cover .guide-card__placeholder {
	background:
		radial-gradient(circle at 35% 30%, rgba(57, 228, 232, 0.26), transparent 27%),
		linear-gradient(135deg, #061725, #0a4655);
}

.guide-card__placeholder span {
	border: 1px solid rgba(116, 226, 255, 0.3);
	border-radius: 50%;
	color: #fff;
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.2rem;
	padding: 38px 30px;
}

.guide-card__body {
	padding: 25px;
}

.guide-card__meta {
	align-items: center;
	color: #8194a6;
	display: flex;
	font-size: 0.72rem;
	font-weight: 700;
	justify-content: space-between;
	margin-bottom: 14px;
	text-transform: uppercase;
}

.guide-card__meta a {
	color: var(--blue-600);
}

.guide-card.is-cover .guide-card__meta a {
	color: #009ca5;
}

.guide-card__title {
	font-size: 1.42rem;
	margin-bottom: 12px;
}

.guide-card__title a {
	color: var(--ink);
}

.guide-card__body > p {
	color: var(--muted);
	font-size: 0.9rem;
}

.guide-card .text-link {
	font-size: 0.84rem;
}

.section-action {
	margin-top: 42px;
	text-align: center;
}

.empty-state,
.no-results {
	background: #fff;
	border: 1px dashed #b9cbd9;
	border-radius: var(--radius-md);
	color: var(--muted);
	grid-column: 1 / -1;
	padding: 42px;
	text-align: center;
}

/* Scenarios */
.scenario-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(4, 1fr);
}

.scenario-card {
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid rgba(140, 208, 255, 0.16);
	border-radius: var(--radius-md);
	color: #fff;
	display: flex;
	flex-direction: column;
	min-height: 190px;
	padding: 26px;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.scenario-card:hover {
	background: rgba(53, 166, 255, 0.11);
	border-color: rgba(99, 211, 255, 0.46);
	color: #fff;
	transform: translateY(-4px);
}

.scenario-card > span {
	color: var(--cyan-300);
	font-size: 2rem;
	margin-bottom: auto;
}

.scenario-card strong {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.2rem;
}

.scenario-card small {
	color: #93aabc;
}

/* CTA */
.shop-cta {
	padding-top: 0;
}

.shop-cta__inner {
	align-items: center;
	background:
		radial-gradient(circle at 80% 20%, rgba(72, 228, 240, 0.28), transparent 30%),
		linear-gradient(120deg, #076ede, #0a8ee7 58%, #05aebb);
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 70px rgba(0, 102, 211, 0.28);
	color: #eaf7ff;
	display: flex;
	justify-content: space-between;
	overflow: hidden;
	padding: clamp(38px, 6vw, 70px);
	position: relative;
}

.shop-cta h2 {
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.5rem);
}

.shop-cta p {
	margin-bottom: 0;
	max-width: 610px;
}

.shop-cta__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 240px;
}

/* Archive */
.archive-hero {
	background:
		radial-gradient(circle at 85% 0, rgba(33, 154, 255, 0.19), transparent 28%),
		linear-gradient(140deg, var(--navy-950), var(--navy-800));
	color: #d7e6f1;
	padding-block: 58px 78px;
}

.archive-hero h1 {
	color: #fff;
	font-size: clamp(2.7rem, 5vw, 4.7rem);
	max-width: 900px;
}

.archive-hero .archive-hero__description {
	color: #adc1d1;
	font-size: 1.08rem;
	max-width: 700px;
}

.archive-hero .archive-hero__description p {
	margin: 0;
}

.breadcrumbs {
	align-items: center;
	color: #8fa6b9;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.74rem;
	gap: 8px;
	margin-bottom: 32px;
}

.breadcrumbs a {
	color: #a9c3d7;
}

.breadcrumbs a:hover {
	color: #fff;
}

.navigation.pagination {
	margin-top: 50px;
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.page-numbers {
	align-items: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--ink);
	display: inline-flex;
	font-weight: 700;
	min-height: 42px;
	padding: 7px 14px;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--blue-600);
	border-color: var(--blue-600);
	color: #fff;
}

.archive-search {
	margin-top: 28px;
	max-width: 650px;
}

.search-form {
	display: flex;
	gap: 8px;
}

.search-form label {
	flex: 1;
}

.search-field {
	background: #fff;
	border: 1px solid #bdcfdd;
	border-radius: 11px;
	color: var(--ink);
	min-height: 50px;
	padding: 11px 16px;
	width: 100%;
}

.search-form button {
	background: var(--blue-600);
	border: 0;
	border-radius: 11px;
	color: #fff;
	font-weight: 800;
	padding: 11px 22px;
}

.no-results > span {
	color: var(--blue-500);
	font-size: 3rem;
}

/* Single */
.article-hero {
	background:
		radial-gradient(circle at 76% 28%, rgba(47, 169, 255, 0.18), transparent 32%),
		linear-gradient(135deg, var(--navy-950), #09243d);
	color: #d4e3ef;
	overflow: hidden;
	padding-block: 45px 76px;
	position: relative;
}

.article-hero .container {
	position: relative;
	z-index: 1;
}

.article-hero__content {
	align-items: center;
	display: grid;
	gap: 56px;
	grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
}

.article-hero__content:has(.article-hero__copy:only-child) {
	display: block;
}

.article-hero__copy {
	max-width: 800px;
}

.article-kicker {
	color: var(--cyan-300);
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.article-hero h1 {
	color: #fff;
	font-size: clamp(2.8rem, 5.4vw, 5.2rem);
}

.article-hero__lead {
	color: #b7cad9;
	font-size: 1.1rem;
	max-width: 720px;
}

.article-meta {
	color: #89a2b5;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.74rem;
	gap: 9px 22px;
	margin-top: 30px;
}

.article-meta span {
	position: relative;
}

.article-meta span:not(:last-child)::after {
	color: var(--blue-400);
	content: "•";
	position: absolute;
	right: -14px;
}

.article-hero__media {
	border: 1px solid rgba(104, 199, 255, 0.25);
	border-radius: 24px;
	box-shadow: var(--shadow-lg);
	margin: 0;
	overflow: hidden;
}

.article-hero__media img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
}

.article-layout {
	align-items: start;
	display: grid;
	gap: 52px;
	grid-template-columns: 250px minmax(0, 790px);
	justify-content: center;
	padding-block: 76px 110px;
}

.article-sidebar {
	position: sticky;
	top: 112px;
}

.memo-toc {
	border-left: 2px solid var(--line);
	padding-left: 22px;
}

.memo-toc > strong {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 0.08em;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.memo-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.memo-toc__list li {
	line-height: 1.35;
	margin: 0 0 10px;
}

.memo-toc__list li.is-subsection {
	padding-left: 13px;
}

.memo-toc__list a {
	color: var(--muted);
	font-size: 0.78rem;
}

.memo-toc__list a:hover {
	color: var(--blue-600);
}

.sidebar-shop {
	background: linear-gradient(145deg, var(--navy-900), var(--navy-800));
	border-radius: 16px;
	color: #fff;
	display: flex;
	flex-direction: column;
	margin-top: 34px;
	padding: 22px;
}

.sidebar-shop span {
	color: var(--cyan-300);
	font-size: 0.64rem;
	font-weight: 800;
	letter-spacing: 0.11em;
	text-transform: uppercase;
}

.sidebar-shop strong {
	font-family: "Space Grotesk", sans-serif;
	line-height: 1.3;
	margin-block: 10px 18px;
}

.sidebar-shop a {
	color: #fff;
	font-size: 0.8rem;
	font-weight: 800;
}

.memo-summary {
	align-items: flex-start;
	background: linear-gradient(120deg, #eaf6ff, #edfdfd);
	border: 1px solid #c6e5f7;
	border-radius: 18px;
	display: flex;
	gap: 17px;
	margin-bottom: 42px;
	padding: 25px 28px;
}

.memo-summary__icon {
	align-items: center;
	background: var(--blue-600);
	border-radius: 50%;
	color: #fff;
	display: flex;
	flex: 0 0 31px;
	font-family: Georgia, serif;
	font-weight: 700;
	height: 31px;
	justify-content: center;
}

.memo-summary h2 {
	font-family: "Manrope", sans-serif;
	font-size: 0.83rem;
	letter-spacing: 0.09em;
	margin: 1px 0 5px;
	text-transform: uppercase;
}

.memo-summary p {
	color: #38566e;
	font-size: 0.92rem;
	margin: 0;
}

.memo-summary ul {
	color: #38566e;
	font-size: 0.92rem;
	margin: 0;
	padding-left: 1.1rem;
}

.memo-summary li + li {
	margin-top: 0.4rem;
}

.article-body {
	color: #284359;
	font-size: 1.02rem;
}

.article-body > * {
	max-width: 100%;
}

.article-body h2 {
	color: var(--ink);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	margin-top: 2.1em;
	scroll-margin-top: 110px;
}

.article-body h3 {
	font-size: 1.45rem;
	margin-top: 1.8em;
	scroll-margin-top: 110px;
}

.article-body a:not(.button):not(.memo-product-card) {
	text-decoration: underline;
	text-decoration-color: rgba(8, 124, 255, 0.32);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;
}

.article-body ul,
.article-body ol {
	padding-left: 1.25em;
}

.article-body li {
	margin-bottom: 0.55em;
}

.article-body blockquote {
	background: var(--surface-soft);
	border-left: 4px solid var(--blue-500);
	border-radius: 0 14px 14px 0;
	color: #38566e;
	margin: 2em 0;
	padding: 22px 28px;
}

.article-body blockquote p:last-child {
	margin-bottom: 0;
}

.article-body figure {
	margin-block: 2.4em;
}

.article-body figcaption {
	color: var(--muted);
	font-size: 0.78rem;
	margin-top: 8px;
	text-align: center;
}

.article-body table {
	border-collapse: collapse;
	font-size: 0.88rem;
	margin-block: 2.4em;
	width: 100%;
}

.article-body th,
.article-body td {
	border: 1px solid var(--line);
	padding: 13px 15px;
	text-align: left;
}

.article-body th {
	background: var(--navy-900);
	color: #fff;
}

.article-body tr:nth-child(even) td {
	background: var(--surface-soft);
}

/* Componenti editoriali per il contenuto */
.memo-product-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-block: 36px;
}

.memo-product-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 17px;
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 22px;
	text-decoration: none !important;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.memo-product-card:hover {
	border-color: var(--blue-400);
	color: var(--ink);
	transform: translateY(-3px);
}

.memo-product-card img {
	aspect-ratio: 4 / 3;
	margin: -22px -22px 20px;
	max-width: calc(100% + 44px);
	object-fit: contain;
	width: calc(100% + 44px);
}

.memo-product-media {
	display: block;
	text-decoration: none !important;
}

.memo-product-card h3 {
	font-size: 1.08rem;
	line-height: 1.35;
	margin: 0 0 0.65rem;
}

.memo-product-card h3 a {
	color: var(--ink);
	text-decoration: none !important;
}

.memo-product-card p {
	color: var(--muted);
	font-size: 0.84rem;
	margin-bottom: 1rem;
}

.memo-product-card small {
	color: var(--blue-600);
	font-size: 0.68rem;
	font-weight: 800;
	letter-spacing: 0.09em;
	text-transform: uppercase;
}

.memo-product-card strong {
	font-family: "Space Grotesk", sans-serif;
	font-size: 1.08rem;
	line-height: 1.35;
	margin-block: 7px 13px;
}

.memo-product-card span:last-child {
	color: var(--blue-600);
	font-size: 0.82rem;
	font-weight: 800;
	margin-top: auto;
}

.article-body details {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 13px;
	box-shadow: 0 7px 24px rgba(5, 33, 57, 0.045);
	margin-bottom: 11px;
	padding: 0 20px;
}

.article-body details[open] {
	border-color: #b9dffa;
}

.article-body summary {
	color: var(--ink);
	cursor: pointer;
	font-weight: 800;
	padding-block: 17px;
}

.article-body details > *:not(summary) {
	color: var(--muted);
}

.article-body details > p:last-child {
	margin-bottom: 18px;
}

.memo-faq-answer p:last-child {
	margin-bottom: 18px;
}

.memo-product-section {
	border-top: 1px solid var(--line);
	margin-top: 3.4rem;
	padding-top: 2.3rem;
}

.memo-product-section > h2 {
	margin-top: 0;
}

.memo-shop-cta {
	align-items: center;
	background:
		radial-gradient(circle at 85% 0, rgba(66, 183, 255, 0.2), transparent 34%),
		linear-gradient(130deg, var(--navy-950), var(--navy-800));
	border: 1px solid rgba(120, 245, 242, 0.18);
	border-radius: 20px;
	color: #d9e8f5;
	display: flex;
	gap: 28px;
	justify-content: space-between;
	margin-top: 2.3rem;
	padding: 30px;
}

.memo-shop-cta h2 {
	color: #fff;
	font-size: clamp(1.45rem, 3vw, 2.1rem);
	margin: 0;
}

.memo-shop-cta .eyebrow {
	color: var(--cyan-300);
	margin-bottom: 10px;
}

.memo-shop-cta .button {
	background: linear-gradient(120deg, var(--blue-500), var(--cyan-400));
	color: var(--navy-950);
	flex: 0 0 auto;
	text-decoration: none;
}

.memo-callout {
	background: #f4f9fd;
	border: 1px solid #d4e6f3;
	border-radius: 15px;
	margin-block: 28px;
	padding: 22px 24px;
}

.memo-callout--warning {
	background: #fff9e9;
	border-color: #f0d99a;
}

.article-footer {
	border-top: 1px solid var(--line);
	margin-top: 58px;
	padding-top: 32px;
}

.article-footer__note {
	color: var(--muted);
	font-size: 0.83rem;
}

.article-footer__note strong {
	color: var(--ink);
}

.tag-list {
	display: flex;
	flex-wrap: wrap;
	font-size: 0.76rem;
	gap: 7px;
	margin-top: 20px;
}

.tag-list a {
	background: var(--surface-soft);
	border-radius: 20px;
	padding: 5px 10px;
}

.page-content {
	margin-block: 70px 110px;
	max-width: 800px;
}

/* 404 */
.error-page {
	background:
		radial-gradient(circle at 72% 20%, rgba(33, 154, 255, 0.22), transparent 28%),
		linear-gradient(135deg, var(--navy-950), var(--navy-800));
	color: #bcd0df;
	min-height: 680px;
	position: relative;
}

.error-page__inner {
	padding-block: 105px;
	position: relative;
	z-index: 1;
}

.error-code {
	background: linear-gradient(90deg, var(--blue-400), var(--cyan-300));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-family: "Space Grotesk", sans-serif;
	font-size: clamp(5rem, 14vw, 10rem);
	font-weight: 700;
	letter-spacing: -0.08em;
	line-height: 0.8;
}

.error-page h1 {
	color: #fff;
	font-size: clamp(2.3rem, 5vw, 4.4rem);
}

.error-page__inner > p:not(.error-code) {
	max-width: 600px;
}

.error-page .search-form {
	margin-block: 30px;
	max-width: 600px;
}

.error-page__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.error-page .button--ghost {
	border-color: rgba(255, 255, 255, 0.35);
	color: #fff;
}

/* Footer */
.site-footer {
	background: var(--navy-950);
	color: #9db2c3;
	position: relative;
}

.site-footer__beam {
	background: linear-gradient(90deg, transparent, var(--blue-500), var(--cyan-400), transparent);
	height: 1px;
	left: 12%;
	position: absolute;
	right: 12%;
	top: 0;
}

.site-footer__grid {
	display: grid;
	gap: 46px;
	grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
	padding-block: 68px 50px;
}

.site-footer__brand p {
	font-size: 0.86rem;
	margin-top: 22px;
	max-width: 330px;
}

.site-footer h2 {
	color: #fff;
	font-family: "Manrope", sans-serif;
	font-size: 0.76rem;
	letter-spacing: 0.1em;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-links li {
	margin-bottom: 9px;
}

.footer-links a,
.site-footer__company a {
	color: #9db2c3;
	font-size: 0.83rem;
}

.footer-links a:hover,
.site-footer__company a:hover {
	color: #fff;
}

.site-footer__company p {
	font-size: 0.8rem;
}

.site-footer__bottom {
	align-items: center;
	border-top: 1px solid rgba(151, 198, 230, 0.12);
	display: flex;
	font-size: 0.72rem;
	justify-content: space-between;
	padding-block: 20px;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__bottom a {
	color: #b8cede;
}

/* Motion */
.reveal {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: no-preference) {
	.js .reveal {
		opacity: 0;
		transform: translateY(16px);
		transition: opacity 0.5s ease, transform 0.5s ease;
	}

	.js .reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

/* Responsive */
@media (max-width: 980px) {
	.nav-toggle {
		display: block;
	}

	.site-nav {
		background: var(--navy-950);
		border-top: 1px solid rgba(117, 194, 246, 0.15);
		display: none;
		inset: 80px 0 auto;
		max-height: calc(100vh - 80px);
		overflow-y: auto;
		padding: 16px 24px 28px;
		position: fixed;
	}

	.site-nav.is-open {
		display: block;
	}

	.site-nav__list {
		align-items: stretch;
		flex-direction: column;
	}

	.site-nav__list a {
		font-size: 0.95rem;
		padding: 13px 15px;
	}

	.site-nav__list .site-nav__shop,
	.site-nav__list > li:last-child > a {
		margin-left: 0;
		margin-top: 8px;
		text-align: center;
	}

	.nav-toggle[aria-expanded="true"] > span:nth-child(1) {
		transform: translateY(7px) rotate(45deg);
	}

	.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
		opacity: 0;
	}

	.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
		transform: translateY(-7px) rotate(-45deg);
	}

	.hero__inner {
		grid-template-columns: 1fr;
		padding-top: 90px;
	}

	.hero__visual {
		display: none;
	}

	.cluster-grid {
		grid-template-columns: 1fr;
	}

	.guides-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.scenario-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.shop-cta__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 32px;
	}

	.shop-cta__actions {
		flex-direction: row;
		flex-wrap: wrap;
	}

	.article-hero__content {
		grid-template-columns: 1fr;
	}

	.article-hero__media {
		max-width: 650px;
	}

	.article-layout {
		display: block;
	}

	.article-sidebar {
		position: static;
	}

	.memo-toc {
		background: var(--surface-soft);
		border: 1px solid var(--line);
		border-radius: 15px;
		margin-bottom: 36px;
		padding: 20px 22px;
	}

	.sidebar-shop {
		display: none;
	}

	.site-footer__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.container {
		padding-inline: 18px;
	}

	.site-header__inner {
		min-height: 72px;
	}

	.site-nav {
		inset: 72px 0 auto;
		max-height: calc(100vh - 72px);
	}

	.brand__text small {
		display: none;
	}

	.hero {
		min-height: auto;
	}

	.hero__inner {
		min-height: auto;
		padding-block: 80px;
	}

	.hero h1 {
		font-size: clamp(3rem, 15vw, 4.4rem);
	}

	.hero__actions,
	.hero__actions .button {
		width: 100%;
	}

	.hero__proof {
		gap: 20px;
		justify-content: space-between;
		margin-top: 42px;
	}

	.hero__proof span {
		font-size: 0.62rem;
	}

	.section {
		padding-block: 70px;
	}

	.section-heading--split {
		align-items: flex-start;
		flex-direction: column;
	}

	.cluster-card {
		min-height: 340px;
		padding: 30px;
	}

	.guides-grid,
	.scenario-grid,
	.memo-product-grid {
		grid-template-columns: 1fr;
	}

	.scenario-card {
		min-height: 155px;
	}

	.shop-cta {
		padding-top: 0;
	}

	.shop-cta__inner {
		border-radius: 22px;
	}

	.shop-cta__actions,
	.shop-cta__actions .button {
		width: 100%;
	}

	.archive-hero {
		padding-block: 42px 60px;
	}

	.article-hero {
		padding-block: 34px 55px;
	}

	.article-hero h1 {
		font-size: clamp(2.5rem, 12vw, 3.7rem);
	}

	.article-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.article-meta span::after {
		display: none;
	}

	.article-layout {
		padding-block: 45px 80px;
	}

	.memo-summary {
		padding: 20px;
	}

	.memo-shop-cta {
		align-items: flex-start;
		flex-direction: column;
		padding: 24px;
	}

	.memo-shop-cta .button {
		width: 100%;
	}

	.article-body {
		font-size: 0.98rem;
	}

	.article-body table {
		display: block;
		overflow-x: auto;
	}

	.search-form {
		flex-direction: column;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}

	.site-footer__bottom {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
