/* NexMind Guide prodotto: token del child theme (--nx-*) */

.nxp { --nxp-border: var(--nx-border, rgba(0, 0, 0, .08)); --nxp-surface: var(--nx-surface, #f5f5f7); --nxp-muted: var(--nx-muted, #6e6e73); }
.nxp h2 { scroll-margin-top: 90px; }
.nxp section { scroll-margin-top: 90px; margin: 0 0 2.2em; }

.nxp-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; font-size: 14px; color: var(--nxp-muted); }
.nxp-status {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
	text-transform: uppercase;
	background: var(--nxp-surface);
	color: var(--nx-text, #1d1d1f);
}
.nxp-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.nxp-status.is-disponibile { background: rgba(52, 199, 89, .14); color: #1d7a36; }
.nxp-status.is-annunciato { background: rgba(0, 122, 255, .12); color: #0060c7; }
.nxp-status.is-rumor { background: rgba(255, 159, 10, .16); color: #9a5b00; }
html.nx-dark .nxp-status.is-disponibile { color: #30d158; }
html.nx-dark .nxp-status.is-annunciato { color: #64a8ff; }
html.nx-dark .nxp-status.is-rumor { color: #ffb340; }
.nxp-expected { font-weight: 600; color: var(--nx-text, #1d1d1f); }

.entry-content .nxp-intro { font-size: 1.15em; line-height: 1.55; color: var(--nx-text, #1d1d1f); margin: 0 0 1.2em; }

/* Menu interno */
.nxp-nav {
	position: sticky;
	top: 64px;
	z-index: 5;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	margin: 0 0 1.6em;
	padding: 10px 0;
	background: var(--nx-bg, #fff);
	scrollbar-width: none;
}
.nxp-nav::-webkit-scrollbar { display: none; }
.site .entry-content .nxp-nav a {
	flex: none;
	padding: 7px 14px;
	border: 1px solid var(--nxp-border);
	border-radius: 999px;
	color: var(--nx-text, #1d1d1f);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.site .entry-content .nxp-nav a:hover { border-color: var(--nx-accent, #ff6a00); color: var(--nx-accent-text, #e65c00); }
html.nx-dark .site .entry-content .nxp-nav a { border-color: rgba(255, 255, 255, .2); }

/* Consiglio d'acquisto */
.nxp-advice {
	display: flex;
	gap: 16px;
	align-items: center; /* testo centrato in verticale rispetto all'etichetta */
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--nxp-surface);
}
.nxp-advice-label {
	flex: none;
	min-width: 96px;
	padding: 8px 14px;
	border-radius: 12px;
	font-size: 17px;
	font-weight: 800;
	text-align: center;
	color: #fff;
	background: #8e8e93;
}
.nxp-advice.is-compra .nxp-advice-label, .nxp-advice-mini.is-compra { background: #248a3d; }
.nxp-advice.is-neutro .nxp-advice-label, .nxp-advice-mini.is-neutro { background: #b25f00; }
.nxp-advice.is-aspetta .nxp-advice-label, .nxp-advice-mini.is-aspetta { background: #d70015; }
.nxp-advice.is-attesa .nxp-advice-label, .nxp-advice-mini.is-attesa { background: #0060c7; }
.nxp-advice.is-no .nxp-advice-label, .nxp-advice-mini.is-no { background: #8e1b1b; }
.entry-content .nxp-advice p { margin: 0; }
.entry-content .nxp-advice .nxp-advice-text { font-weight: 600; }
.entry-content .nxp-advice .nxp-advice-detail { margin-top: 4px; font-size: 15px; color: var(--nxp-muted); }

/* Scheda */
.nxp-facts dl { margin: 0; border-top: 1px solid var(--nxp-border); }
.nxp-facts dl > div { display: grid; grid-template-columns: minmax(120px, 36%) 1fr; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--nxp-border); }
.nxp-facts dt { color: var(--nxp-muted); font-size: 15px; }
.nxp-facts dd { margin: 0; font-weight: 600; font-size: 15px; }

/* Cronologia */
.nxp-timeline ol { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--nxp-border); }
.nxp-timeline li { position: relative; margin: 0 0 16px; padding-left: 14px; }
.nxp-timeline li::before { content: ""; position: absolute; left: -25px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--nx-accent, #ff6a00); box-shadow: 0 0 0 3px var(--nx-bg, #fff); }
.nxp-timeline .when { display: block; font-size: 13px; color: var(--nxp-muted); }
.nxp-timeline strong { display: block; }
.nxp-timeline .note { display: block; font-size: 15px; color: var(--nxp-muted); }

/* Notizie */
.nxp-news ul { list-style: none; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nxp-news li { margin: 0; padding: 0; list-style: none; }
.nxp-news li::before, .nxp-news li::marker { content: none; display: none; }
.site .entry-content .nxp-news a { display: block; color: var(--nx-text, #1d1d1f); text-decoration: none; }
.site .entry-content .nxp-news img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; margin: 0 0 8px; border-radius: 12px; }
.nxp-news .t { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.nxp-news .d { display: block; margin-top: 4px; font-size: 13px; color: var(--nxp-muted); }
@media (hover: hover) { .site .entry-content .nxp-news a:hover .t { color: var(--nx-accent-text, #e65c00); } }
.entry-content .nxp-more { margin: 14px 0 0; font-weight: 600; }

/* Domande */
.nxp-faq details { border-bottom: 1px solid var(--nxp-border); }
.nxp-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.nxp-faq summary::-webkit-details-marker { display: none; }
.nxp-faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--nx-accent, #ff6a00); }
.nxp-faq details[open] summary::after { content: "−"; }
.entry-content .nxp-faq details p { margin: 0 0 14px; color: var(--nxp-muted); }

/* Rimando alla guida negli articoli */
.site .entry-content a.nxp-cta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 2px 14px;
	align-items: center;
	margin: 2em 0 0;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--nx-surface, #f5f5f7);
	color: var(--nx-text, #1d1d1f);
	text-decoration: none;
}
.nxp-cta .k { grid-row: span 2; padding: 6px 10px; border-radius: 10px; background: var(--nx-accent, #ff6a00); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.nxp-cta .t { font-weight: 800; font-size: 17px; }
.nxp-cta .s { font-size: 14px; color: var(--nx-muted, #6e6e73); }
@media (hover: hover) { .site .entry-content a.nxp-cta:hover .t { color: var(--nx-accent-text, #e65c00); } }
.nxp-catlink a { font-weight: 700; color: var(--nx-accent-text, #e65c00); }

/* Elenco guide */
.nxp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.site .entry-content a.nxp-card,
.site .nxp-list a.nxp-card { display: flex; flex-direction: column; border: 1px solid var(--nx-border, rgba(0, 0, 0, .08)); border-radius: 16px; overflow: hidden; color: var(--nx-text, #1d1d1f); text-decoration: none; }
.site .entry-content .nxp-card img, .site .nxp-list .nxp-card img, .nxp-card .ph { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; margin: 0; background: var(--nx-surface, #f5f5f7); }
.nxp-card .b { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px 16px; }
.nxp-card .n { font-size: 18px; font-weight: 800; }
.nxp-advice-mini { padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700; background: #8e8e93; }

/* Fascia "Guide ai prodotti" in home (blocco Zeen "Codice", ancora #guide-prodotti) */
.nxp-strip { position: relative; }
.nxp-list.is-home {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding: 4px 0 6px;
}
.nxp-list.is-home::-webkit-scrollbar { display: none; }
.site .nxp-list.is-home a.nxp-card { flex: 0 0 calc((100% - 54px) / 4); scroll-snap-align: start; }
.nxp-strip-btn {
	position: absolute;
	top: 80px;
	z-index: 2;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0 0 3px;
	border: 1px solid var(--nx-border, rgba(0, 0, 0, .08));
	border-radius: 50%;
	background: var(--nx-bg, #fff);
	color: var(--nx-text, #1d1d1f);
	font-size: 26px;
	line-height: 1;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
	cursor: pointer;
}
.nxp-strip-btn[hidden] { display: none; }
.nxp-strip-btn.is-prev { left: -20px; }
.nxp-strip-btn.is-next { right: -20px; }
@media (hover: hover) { .nxp-strip-btn:hover { color: var(--nx-accent-text, #d45500); border-color: var(--nx-accent, #ff6a00); } }
.site .nxp-list.is-home a.nxp-card { transition: border-color .2s ease, transform .2s ease; }
@media (hover: hover) {
	.site .nxp-list.is-home a.nxp-card:hover { border-color: var(--nx-accent, #ff6a00); transform: translateY(-2px); }
	.site .nxp-list.is-home a.nxp-card:hover .n { color: var(--nx-accent-text, #d45500); }
}
.nxp-home-all { margin: 16px 0 0; text-align: right; font-weight: 600; }
.nxp-home-all a { color: var(--nx-accent-text, #d45500); }
#guide-prodotti { margin-bottom: 56px; }
.site .nxp-list .nxp-card img { border-radius: 0; }
/* Senza guide pubblicate la fascia non compare */
#guide-prodotti:not(:has(.nxp-list)) { display: none; }

@media (max-width: 767px) {
	.nxp-list.is-home {
		gap: 12px;
		margin: 0 -20px;
		padding: 4px 20px 6px;
	}
	.nxp-strip-btn { display: none; }
	#guide-prodotti { margin: 30px 0 34px; }
	.site .nxp-list.is-home a.nxp-card { flex: 0 0 72%; scroll-snap-align: start; scroll-margin-left: 20px; }
	.nxp-list.is-home .nxp-card .n { font-size: 17px; }
	.nxp-home-all { text-align: left; }
	.nxp-nav { top: 56px; }
	.nxp-facts dl > div { grid-template-columns: 1fr; gap: 2px; }
	.nxp-news ul { grid-template-columns: 1fr; }
	.nxp-news li a { display: grid !important; grid-template-columns: 110px 1fr; gap: 0 12px; align-items: start; }
	.site .entry-content .nxp-news img { grid-row: span 2; margin: 0; }
	.nxp-advice { flex-direction: column; gap: 10px; text-align: center; } /* su mobile etichetta e testo centrati */
}

/* Fonti in fondo alla guida */
.entry-content .nxp-sources { font-size: 14px; color: var(--nx-muted, #6e6e73); }
.site .entry-content .nxp-sources a { color: var(--nx-muted, #6e6e73); }

/* ===== Guide v2 ===== */

/* Riquadri dei dati chiave */
.nxp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 1.6em; }
.nxp-tile { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border: 1px solid var(--nxp-border); border-radius: 14px; }
html.nx-dark .nxp-tile { border-color: rgba(255, 255, 255, .14); }
.nxp-tile .k { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--nxp-muted); }
.nxp-tile .v { font-size: 15px; font-weight: 700; line-height: 1.3; color: var(--nx-text, #1d1d1f); }

/* Verdetto: consiglio + punti di forza e deboli */
.nxp-verdict .nxp-advice { margin-bottom: 12px; }
.nxp-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nxp-proscons > div { padding: 16px 18px; border-radius: 16px; background: var(--nxp-surface); }
.entry-content .nxp-proscons .h { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.nxp-proscons .is-pro .h { color: #1d7a36; }
.nxp-proscons .is-con .h { color: #b3261e; }
html.nx-dark .nxp-proscons .is-pro .h { color: #30d158; }
html.nx-dark .nxp-proscons .is-con .h { color: #ff6961; }
.entry-content .nxp-proscons ul { margin: 0; padding: 0; list-style: none; }
.entry-content .nxp-proscons li { position: relative; margin: 0 0 6px; padding-left: 22px; font-size: 15px; line-height: 1.45; }
.entry-content .nxp-proscons li::marker { content: none; }
.nxp-proscons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.nxp-proscons .is-pro li::before { content: "+"; color: #1d7a36; }
.nxp-proscons .is-con li::before { content: "−"; color: #b3261e; }

/* Tabelle (confronto e prezzi) */
.nxp-table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--nxp-border); border-radius: 14px; }
html.nx-dark .nxp-table-wrap { border-color: rgba(255, 255, 255, .14); }
.entry-content .nxp-table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.entry-content .nxp-table th, .entry-content .nxp-table td { padding: 11px 14px; border: 0; border-bottom: 1px solid var(--nxp-border); text-align: left; vertical-align: top; background: none; }
.entry-content .nxp-table tbody tr:last-child > * { border-bottom: 0; }
.entry-content .nxp-table thead th { font-size: 13px; font-weight: 800; background: var(--nxp-surface); white-space: nowrap; }
.entry-content .nxp-table tbody th { font-weight: 600; color: var(--nxp-muted); min-width: 130px; }
.entry-content .nxp-table.is-compare td:last-child { font-weight: 700; }
.entry-content .nxp-table.is-prices td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-content .nxp-note { font-size: 14px; color: var(--nxp-muted); }

/* Scheda tecnica completa */
.nxp-specs details { border-bottom: 1px solid var(--nxp-border); }
.nxp-specs summary { cursor: pointer; padding: 14px 0; font-size: 17px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.nxp-specs summary::-webkit-details-marker { display: none; }
.nxp-specs summary::after { content: "+"; color: var(--nx-accent, #ff6a00); font-size: 22px; line-height: 1; }
.nxp-specs details[open] summary::after { content: "−"; }
.nxp-specs dl { margin: 0 0 14px; }
.nxp-specs dl > div { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: 16px; padding: 8px 0; border-top: 1px solid var(--nxp-border); }
.nxp-specs dt { color: var(--nxp-muted); font-size: 15px; }
.nxp-specs dd { margin: 0; font-size: 15px; }

/* Sottosezioni del testo */
.nxp-content h3 { margin: 1.4em 0 .5em; font-size: 20px; }

/* Fonti */
.nxp-sources-wrap { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--nxp-border); }
.entry-content .nxp-sources-title { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--nxp-muted); }
.entry-content .nxp-sources { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.entry-content .nxp-sources li { margin: 0 0 4px; }
.entry-content .nxp-sources li::marker { content: none; }
.site .entry-content .nxp-sources a { color: var(--nxp-muted); }

@media (max-width: 767px) {
	.nxp-tiles { grid-template-columns: 1fr 1fr; }
	.nxp-proscons { grid-template-columns: 1fr; }
	.nxp-specs dl > div { grid-template-columns: 1fr; gap: 2px; }
	.entry-content .nxp-table { font-size: 14px; }
	.entry-content .nxp-table th, .entry-content .nxp-table td { padding: 9px 10px; }
}
.entry-content .nxp-specs dt, .entry-content .nxp-specs dd { margin: 0; line-height: 1.45; }
.nxp-specs dl > div { padding: 7px 0; }
@media (max-width: 600px) {
	.entry-content .nxp-table tbody th { min-width: 88px; }
}

/* Immagini ufficiali nelle guide */
.nxp-figure { margin: 1.4em 0 1.8em; }
.site .entry-content .nxp-figure img { display: block; width: 100%; height: auto; margin: 0; border-radius: 16px; }
.nxp-figure.is-portrait { max-width: 420px; margin-left: auto; margin-right: auto; }
.nxp-figure.is-small { max-width: 320px; margin-left: auto; margin-right: auto; }
.entry-content .nxp-figure figcaption, .entry-content .nxp-gallery figcaption { margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--nx-muted, #6e6e73); text-align: left; }
.nxp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.4em 0 1.8em; }
.nxp-gallery.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nxp-gallery figure { margin: 0; }
.site .entry-content .nxp-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; margin: 0; border-radius: 12px; }
.nxp-gallery a { display: block; }
.nxp-gallery-title { margin: 1.6em 0 .2em; font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--nx-muted, #6e6e73); }
@media (max-width: 600px) {
	.nxp-gallery.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nxp-gallery { gap: 10px; }
}
