/*
Theme Name: Accademia della Longevità
Description: Blog-aggregatore della community WhatsApp "Accademia della Longevità". Divulgazione su longevità e nutraceutica, anteprime Open Graph pronte per WhatsApp.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: adl
*/

/* ---------- Font ---------- */
@font-face { font-family: "Josefin Sans"; src: url("assets/fonts/josefin.woff2") format("woff2"); font-weight: 100 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }

/* ---------- Token ---------- */
:root {
	/* Palette del brand: campionata dai post social ufficiali (solo blu, azzurri e bianco) */
	--blu: #0c6dfa;
	--blu-600: #0a55d6;
	--blu-900: #0210fd;
	--royal: #0210fd;
	--notte: #06238f;
	--ciano: #00b6dc;
	--ciano-700: #0086a6;
	--cielo: #a9d3f2;
	--ghiaccio: #e8f3fe;
	--sfondo: #f4f8fc;
	--carta: #ffffff;
	--testo: #0b1220;
	--muto: #55647c;
	--linea: #d9e6f4;
	--giallo: var(--ciano);
	--wa: #25d366;
	--wa-testo: #06301a;

	--c-movimento: #0210fd;
	--c-nutrizione: #0086a6;
	--c-integrazione: #0c6dfa;
	--c-falsi-miti: #06238f;
	--c-default: var(--blu);

	--f-display: "Josefin Sans", "Figtree", system-ui, sans-serif;
	--f-testo: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--r-s: 10px;
	--r-m: 18px;
	--r-l: 28px;
	--ombra: 0 1px 2px rgba(2, 16, 253, .05), 0 14px 34px -14px rgba(12, 109, 250, .28);
	--gutter: clamp(16px, 4vw, 32px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
	margin: 0;
	background: var(--sfondo);
	color: var(--testo);
	font-family: var(--f-testo);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blu-600); text-underline-offset: .18em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--notte); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 760px; }

.eyebrow { font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blu-600); margin: 0 0 .6rem; }
.eyebrow--light { color: #fff; opacity: .85; }
.hl { color: var(--blu); }

/* ---------- Bottoni ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	font: 800 1rem/1 var(--f-testo); text-decoration: none; cursor: pointer;
	padding: .95em 1.4em; border-radius: 999px; border: 2px solid transparent;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--wa { background: var(--wa); color: var(--wa-testo); box-shadow: 0 8px 20px -8px rgba(37, 211, 102, .8); }
.btn--wa:hover { background: #3be07a; }
.btn--ghost { background: transparent; border-color: var(--linea); color: var(--testo); }
.btn--ghost:hover { border-color: var(--testo); }
.btn--sm { font-size: .9rem; padding: .7em 1.05em; }
.btn--lg { font-size: 1.1rem; padding: 1.05em 1.6em; }

/* ---------- Chip categoria ---------- */
.chip {
	--c: var(--c-default);
	display: inline-flex; align-items: center; gap: .45em; align-self: flex-start;
	font-weight: 800; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
	color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff);
	padding: .42em .8em; border-radius: 999px;
}
.chip::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: currentColor; }
/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--linea); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--testo); flex: none; }
.brand__mark { width: 44px; height: 44px; }
.brand__name { font: 700 1.12rem/1.05 var(--f-display); letter-spacing: -.02em; }
.brand__name small { display: block; font: 800 .64rem/1.4 var(--f-testo); letter-spacing: .2em; text-transform: uppercase; color: var(--blu-600); }
.brand--light { color: #fff; }
.brand--light .brand__name small { color: var(--ciano); }
.site-nav { margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55em .85em; border-radius: 999px; font-weight: 700; font-size: .95rem; color: var(--testo); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--ghiaccio); color: var(--blu-600); }
.site-header__cta { flex: none; }

@media (max-width: 900px) {
	.site-header__in { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
	.site-header__cta { margin-left: auto; }
	.site-nav { order: 3; width: calc(100% + 2 * var(--gutter)); margin: 8px calc(-1 * var(--gutter)) 0; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--linea); }
	.site-nav::-webkit-scrollbar { display: none; }
	.site-nav ul { padding: 8px var(--gutter); }
	.site-nav a { background: var(--ghiaccio); font-size: .88rem; }
}
@media (max-width: 420px) {
	.brand__mark { width: 38px; height: 38px; }
	.brand__name { font-size: 1rem; }
	.site-header__cta span { display: none; }
	.site-header__cta { padding: .7em; }
}

/* ---------- Intro ---------- */
.intro { padding: clamp(36px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.intro h1 { font-size: clamp(2.2rem, 6.2vw, 4.4rem); font-weight: 800; max-width: 17ch; }
.intro__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muto); max-width: 60ch; margin: 1.2rem 0 0; }

/* ---------- Card ---------- */
.card { display: flex; flex-direction: column; background: var(--carta); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--ombra); position: relative; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10, 42, 102, .08), 0 24px 44px -16px rgba(10, 42, 102, .3); }
.card__media { display: block; aspect-ratio: 16 / 9; background: var(--ghiaccio); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: .7rem; padding: 18px 20px 20px; flex: 1; }
.card__title { font-size: 1.35rem; font-weight: 800; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card .chip { position: relative; z-index: 1; }
.card__text { color: var(--muto); margin: 0; }
.card__meta { margin: auto 0 0; font-size: .85rem; color: var(--muto); font-weight: 600; }
.card--lg .card__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.card--lg .card__body { padding: clamp(20px, 3vw, 32px); gap: .9rem; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; }
.hero__main, .hero__main .card { height: 100%; }
.hero__side { display: grid; gap: 24px; }
.hero__side .card__title { font-size: 1.3rem; }
.hero__main .card__text { font-size: 1.1rem; }
@media (max-width: 960px) {
	.hero { grid-template-columns: 1fr; }
	.hero__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.hero__side { grid-template-columns: 1fr; }
}

/* ---------- Sezioni ---------- */
.block { padding-block: clamp(44px, 7vw, 84px) 0; }
.block:last-of-type { padding-bottom: clamp(44px, 7vw, 84px); }
.block--tight { padding-top: clamp(24px, 4vw, 40px); padding-bottom: clamp(44px, 7vw, 84px); }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.block__head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 800; }
.link-more { font-weight: 800; text-decoration: none; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

/* ---------- Pillole (card tipografiche) ---------- */
.pill {
	--c: var(--c-default);
	position: relative; display: flex; flex-direction: column; gap: .8rem;
	padding: 22px 22px 20px; border-radius: var(--r-m); min-height: 260px;
	background: var(--c); color: #fff; overflow: hidden;
	transition: transform .2s ease;
}
.pill::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .14); pointer-events: none; }
.pill:hover { transform: translateY(-4px) rotate(-.4deg); }

.pill__top { display: flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.pill__fmt { background: rgba(0, 0, 0, .22); padding: .38em .75em; border-radius: 999px; }

.pill__title { font-size: 1.6rem; font-weight: 800; }
.pill__title a { color: inherit; text-decoration: none; }
.pill__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pill__text { margin: 0; font-size: 1rem; line-height: 1.45; opacity: .95; }
.pill__more { margin-top: auto; font-weight: 800; font-size: .9rem; }

/* ---------- CTA WhatsApp ---------- */
.cta {
	margin-top: clamp(44px, 7vw, 84px);
	position: relative; isolation: isolate;
	background: linear-gradient(160deg, #1390fa, #0c6dfa 55%);
	color: #fff; overflow: hidden;
}
.cta::before {
	content: ""; position: absolute; z-index: -1; left: -6%; right: -6%; top: 50%; aspect-ratio: 1600 / 556; transform: translateY(-50%);
	background: url("assets/img/onda-royal.png") center / contain no-repeat; opacity: .9;
}
.cta__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.cta h2 { font-size: clamp(1.9rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 1rem; }
.cta__copy > p:not(.eyebrow) { color: #fff; font-size: 1.1rem; max-width: 52ch; margin-bottom: 1.6rem; }
.cta__phone { display: grid; gap: 12px; justify-items: start; transform: rotate(-2deg); }
.bubble { background: #fff; color: var(--testo); border: 0; border-radius: 4px 18px 18px 18px; padding: 14px 16px 10px; max-width: 320px; display: grid; gap: 4px; box-shadow: 0 18px 40px -18px rgba(2, 16, 253, .6); }
.bubble strong { font-size: 1rem; }
.bubble span { color: var(--muto); font-size: .95rem; line-height: 1.4; }
.bubble em { font-style: normal; font-size: .72rem; color: var(--muto); justify-self: end; }
.bubble--2 { margin-left: 36px; }
.bubble--react { border-radius: 999px; padding: 8px 14px; margin-left: 36px; font-size: .95rem; display: block; }
.bubble--react b { color: var(--muto); margin-left: 4px; }
@media (max-width: 820px) {
	.cta__in { grid-template-columns: 1fr; }
	.cta__phone { transform: none; }
}

/* ---------- Temi ---------- */
.topics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.topic {
	--c: var(--c-default);
	display: flex; flex-direction: column; gap: .4rem; padding: 22px; border-radius: var(--r-m);
	background: var(--carta); text-decoration: none; color: var(--testo);
	border: 2px solid var(--linea); border-top: 8px solid var(--c);
	transition: transform .2s ease, border-color .2s ease;
}
.topic:hover { transform: translateY(-4px); border-color: var(--c); }
.topic { border-width: 1px; border-top-width: 6px; }
.topic__name { font: 700 1.45rem/1.1 var(--f-display); letter-spacing: -.02em; }
.topic__desc { color: var(--muto); font-size: .96rem; line-height: 1.45; }
.topic__count { margin-top: auto; padding-top: .8rem; font-weight: 800; font-size: .88rem; }

/* ---------- Come funziona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.steps li { background: var(--ghiaccio); border-radius: var(--r-m); padding: 24px; }
.steps__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--blu); color: #fff; font: 700 1.3rem/1 var(--f-display); margin-bottom: 14px; }
.steps h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .4rem; }
.steps p { margin: 0; color: var(--muto); }

/* ---------- Testata archivi ---------- */
.arch-head { --c: var(--c-default); padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 28px); border-bottom: 1px solid var(--linea); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #fff), var(--sfondo)); }
.arch-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
.arch-head__desc { color: var(--muto); font-size: 1.15rem; max-width: 60ch; margin-top: 1rem; }
.arch-head__desc p { margin: 0; }
.empty { font-size: 1.1rem; }
.pagination { margin-top: 40px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination .page-numbers { display: inline-block; padding: .6em 1em; border-radius: 999px; background: var(--carta); border: 2px solid var(--linea); font-weight: 800; text-decoration: none; color: var(--testo); }
.pagination .page-numbers.current { background: var(--blu); border-color: var(--blu); color: #fff; }

/* ---------- Articolo ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--giallo); transform: scaleX(0); transform-origin: 0 50%; }

.post { --c: var(--c-default); }
.post__head { padding-top: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 1rem; }
.crumbs { font-size: .88rem; font-weight: 600; color: var(--muto); }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.post__head h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 800; }
.post__lead { font-size: clamp(1.12rem, 1.8vw, 1.32rem); line-height: 1.5; color: var(--muto); margin: 0; }
.post__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 1rem; border-top: 1px solid var(--linea); }
.post__meta { margin: 0; font-size: .92rem; font-weight: 600; color: var(--muto); }
.post__cover { margin: clamp(24px, 4vw, 40px) auto 0; }
.post__cover img { width: 100%; border-radius: var(--r-l); box-shadow: var(--ombra); aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 600px) {
	.post__cover { padding-inline: 0; }
	.post__cover img { border-radius: 0; }
}
.post__content { padding-top: clamp(28px, 4vw, 48px); }
.post__foot { padding-top: 32px; }

/* Tipografia del corpo */
.prose { font-size: clamp(1.08rem, 1.3vw, 1.19rem); line-height: 1.7; }
.prose > * { margin-block: 0 1.25em; }
.prose h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 800; margin-top: 2em; margin-bottom: .6em; }
.prose h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); font-weight: 800; margin-top: 1.7em; margin-bottom: .5em; }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--c); font-weight: 800; }
.prose a { font-weight: 600; }
.prose > p:first-of-type { font-size: 1.08em; }
.prose blockquote { margin-inline: 0; padding: .2em 0 .2em 1.1em; border-left: 5px solid var(--c); font: 700 1.3em/1.35 var(--f-display); letter-spacing: -.01em; }
.prose blockquote p { margin: 0; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: .88rem; color: var(--muto); margin-top: .7em; text-align: center; }

/* --- Componenti editoriali --- */
.inbreve { background: var(--ghiaccio); border-radius: var(--r-m); padding: 24px 26px 12px; }
.inbreve__t { font: 800 .8rem/1 var(--f-testo); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .9rem; display: flex; align-items: center; gap: .5em; }
.inbreve__t { color: var(--blu); }
.inbreve ul { list-style: none; padding: 0; margin: 0; }
.inbreve li { position: relative; padding-left: 1.6em; margin-bottom: .7em; line-height: 1.5; }
.inbreve li::before { content: ""; position: absolute; left: 0; top: .5em; width: .6em; height: .6em; border-radius: 50%; background: var(--blu); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.stat { background: linear-gradient(160deg, #1390fa, #0c6dfa); color: #fff; border-radius: var(--r-m); padding: 20px; }
.stat b { display: block; font: 700 clamp(2.2rem, 5vw, 3rem)/1 var(--f-display); letter-spacing: -.01em; color: #fff; margin-bottom: .25em; }
.stat span { font-size: .95rem; line-height: 1.4; display: block; color: #fff; }

.callout { border-radius: var(--r-m); padding: 20px 22px; background: var(--ghiaccio); border-left: 8px solid var(--blu); }
.callout > :last-child { margin-bottom: 0; }
.callout__t { font: 800 .8rem/1 var(--f-testo); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; color: var(--blu-600); }
.callout--warn { background: #fff; border: 1px solid var(--linea); border-left: 8px solid var(--royal); }
.callout--warn .callout__t { color: var(--royal); }
.callout--warn .callout__t::before { content: "⚠ "; }
.callout--ok { background: var(--ghiaccio); border-color: var(--ciano); }
.callout--ok .callout__t { color: var(--ciano-700); }

.myth { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--linea); }
.myth > div { padding: 20px 22px; }
.myth > div > :last-child { margin-bottom: 0; }
.myth__no { background: #f1f3f6; }
.myth__si { background: var(--ghiaccio); }
.myth__t { font: 800 .8rem/1 var(--f-testo); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 .7rem; }
.myth__no .myth__t { color: var(--muto); }
.myth__si .myth__t { color: var(--blu-600); }

.verdict { display: flex; align-items: center; gap: 18px; background: linear-gradient(160deg, #1390fa, #0c6dfa); color: #fff; border-radius: var(--r-m); padding: 22px 24px; }
.verdict__badge { flex: none; font: 700 1.5rem/1 var(--f-display); background: #fff; color: var(--royal); padding: .6em .8em .45em; border-radius: 12px; }
.verdict p { margin: 0; font-size: 1.05em; line-height: 1.45; }
@media (max-width: 520px) { .verdict { flex-direction: column; align-items: flex-start; } }

.bars { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 22px 24px; }
.bars__t { font: 700 1.15rem/1.2 var(--f-display); margin: 0 0 1rem; }
.bars__row { display: grid; grid-template-columns: 6.2em 1fr 3.2em; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .95rem; font-weight: 700; }
.bars__track { height: 22px; border-radius: 999px; background: var(--ghiaccio); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 60%, #fff)); }
.bars__val { text-align: right; font-variant-numeric: tabular-nums; }
.bars__note { font-size: .85rem; color: var(--muto); margin: 1rem 0 0; line-height: 1.45; }

.plate { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
@media (max-width: 640px) { .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plate > div { background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 16px; text-align: center; }
.plate i { font-style: normal; font-size: 2rem; display: block; line-height: 1.2; }
.plate b { display: block; font: 700 1.5rem/1.1 var(--f-display); color: var(--c); margin: .2em 0 .1em; }
.plate span { font-size: .9rem; color: var(--muto); line-height: 1.35; display: block; }

.todo { list-style: none; padding: 0 !important; counter-reset: todo; display: grid; gap: 12px; }
.todo li { counter-increment: todo; position: relative; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 18px 20px 18px 72px; margin: 0; }
.todo li::before { content: counter(todo); position: absolute; left: 18px; top: 16px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font: 700 1.15rem/1 var(--f-display); }

.todo li > strong:first-child { display: block; font: 700 1.15rem/1.25 var(--f-display); margin-bottom: .2em; }

.tablewrap { overflow-x: auto; border: 1px solid var(--linea); border-radius: var(--r-m); background: var(--carta); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 480px; }
.tablewrap th, .tablewrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tablewrap th { font: 800 .78rem/1.2 var(--f-testo); letter-spacing: .08em; text-transform: uppercase; background: var(--ghiaccio); }
.tablewrap tr:last-child td { border-bottom: 0; }

.fonti { font-size: .9rem; line-height: 1.5; color: var(--muto); border-top: 1px solid var(--linea); padding-top: 1.4em; margin-top: 2.6em !important; }
.fonti h2 { font: 800 .8rem/1 var(--f-testo) !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--testo); margin: 0 0 1em !important; }
.fonti ol { padding-left: 1.2em; margin: 0; }
.fonti li { margin-bottom: .6em; }
.fonti a { font-weight: 400; word-break: break-word; }

/* Piede articolo */
.tags { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { display: block; padding: .4em .8em; border-radius: 999px; background: var(--ghiaccio); font-weight: 700; font-size: .88rem; text-decoration: none; }
.share { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--ghiaccio); border-radius: var(--r-m); padding: 24px 26px; }
.share h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: .3rem; }
.share p { margin: 0; color: var(--muto); font-size: .98rem; }
.share__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.disclaimer { font-size: .86rem; color: var(--muto); margin: 24px 0 0; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer { background: #0b6bff; color: #fff; padding-top: clamp(40px, 6vw, 64px); }
.cta + .site-footer { border-top: 1px solid rgba(255, 255, 255, .3); }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.site-footer__brand p { max-width: 44ch; margin: 1rem 0 1.4rem; }
.site-footer__col h2 { font: 800 .78rem/1 var(--f-testo); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a:not(.btn):not(.brand) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):not(.brand):hover { color: #fff; text-decoration: underline; }
.site-footer__legal { margin-top: 40px; padding-block: 24px 32px; border-top: 1px solid rgba(255, 255, 255, .3); font-size: .86rem; line-height: 1.5; color: #eaf2ff; }
.site-footer__legal p { margin: 0 0 .6em; max-width: 90ch; }
.site-footer__legal strong { color: #fff; }
@media (max-width: 760px) {
	.site-footer__in { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}

/* ---------- Colori per tema (in fondo: devono vincere sui default dei componenti) ---------- */
.chip--movimento, .pill--movimento, .topic--movimento, .post--movimento, .arch-head--movimento { --c: var(--c-movimento); }
.chip--nutrizione, .pill--nutrizione, .topic--nutrizione, .post--nutrizione, .arch-head--nutrizione { --c: var(--c-nutrizione); }
.chip--integrazione, .pill--integrazione, .topic--integrazione, .post--integrazione, .arch-head--integrazione { --c: var(--c-integrazione); }
.chip--falsi-miti, .pill--falsi-miti, .topic--falsi-miti, .post--falsi-miti, .arch-head--falsi-miti { --c: var(--c-falsi-miti); }


@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

/* Tabelle su telefono: ogni riga diventa una scheda, niente scorrimento laterale */
@media (max-width: 640px) {
	.tablewrap { border: 0; background: none; overflow: visible; }
	.tablewrap table { min-width: 0; display: block; }
	.tablewrap thead { display: none; }
	.tablewrap tbody { display: grid; gap: 12px; }
	.tablewrap tr { display: block; background: var(--carta); border: 1px solid var(--linea); border-radius: var(--r-m); padding: 16px 18px; }
	.tablewrap td { display: block; padding: 0; border: 0; }
	.tablewrap td:first-child { font: 700 1.15rem/1.25 var(--f-display); }
	.tablewrap td:nth-child(2) { margin: .35em 0 .5em; }
	.tablewrap td:nth-child(2) strong { display: inline-block; background: var(--ghiaccio); color: var(--blu-600); padding: .1em .6em; border-radius: 999px; font-size: .85rem; }
}

/* Logo ufficiale (blu su chiaro in testata, bianco su scuro nel footer) */
.brand__logo { height: 50px; width: auto; }
.site-footer .brand__logo { height: 64px; }
@media (max-width: 420px) { .brand__logo { height: 42px; } }

/* Josefin Sans ha l'occhio piccolo e siede alto: ritocchi ottici */
.card__title, .pill__title, .topic__name, .steps h3, .share h2 { font-weight: 700; }
.btn span, .chip, .eyebrow { font-family: var(--f-testo); }
.steps__n, .todo li::before { padding-top: .12em; }
.pill::after { background: rgba(255, 255, 255, .12); }
