/**
 * ToolStack — token colore / tipo dal progetto Framer (Desktop).
 */

:root {
	color-scheme: dark;
	/* Allineamento screenshot /tools */
	--bg: #0a0a0a;
	--bg-subtle: #111113;
	--surface: #161616;
	--surface-hover: #1c1c1e;
	--text: #fafafa;
	--text-secondary: #c0c0cc;
	--text-tertiary: #9d9da8;
	--accent: #4f46e5;
	--accent-hover: #6366f1;
	--accent-muted: rgba(99, 102, 241, 0.12);
	--accent-border: rgba(99, 102, 241, 0.25);
	--border: rgba(255, 255, 255, 0.06);
	--border-hover: rgba(255, 255, 255, 0.1);
	--green: #22c55e;
	/* Prezzo "Paid" sulle card directory (/tools, categorie, trending) */
	--tool-price-paid-directory: #10b981;
	--deal-green: #4ade80;
	--deal-green-muted: rgba(74, 222, 128, 0.16);
	--deal-cta: #5865f2;
	--deal-cta-hover: #4752c4;
	--amber: rgb(245, 158, 11);
	--red: rgb(239, 68, 68);
	--font: "Instrument Sans", system-ui, sans-serif;
	--container: 1200px;
	--radius-pill: 999px;
	--radius-card: 12px;
	--radius-logo: 16px;
	/* Hero home — token Framer (radial centro → bordo) */
	--hero-radial-center: #818cf833;
	--hero-radial-edge: #09090b;
	/* Superfici scorporate (card deal, scheda tool, FAQ…) — sovrascrivibili in tema chiaro */
	--elevated: #1a1a1a;
	--elevated-hover: #1e1e1e;
	--directory-card: #1e1e1e;
	--directory-card-hover: #242424;
	--media-chrome: #111;
	--embed-bg: #000;
}

/* Tema chiaro: inverti palette (persistenza via JS su html[data-theme="light"]) */
html[data-theme="light"] {
	color-scheme: light;
	--bg: #f4f4f7;
	--bg-subtle: #ffffff;
	--surface: #eef0f4;
	--surface-hover: #e4e6ed;
	--text: #111118;
	--text-secondary: #4a4a5c;
	--text-tertiary: #71717a;
	--accent: #4f46e5;
	--accent-hover: #4338ca;
	--accent-muted: rgba(79, 70, 229, 0.1);
	--accent-border: rgba(79, 70, 229, 0.35);
	--border: rgba(0, 0, 0, 0.09);
	--border-hover: rgba(0, 0, 0, 0.16);
	--green: #16a34a;
	--tool-price-paid-directory: #059669;
	--deal-green: #16a34a;
	--deal-green-muted: rgba(22, 163, 74, 0.14);
	--deal-cta: #5865f2;
	--deal-cta-hover: #4752c4;
	--hero-radial-center: #818cf828;
	--hero-radial-edge: #f4f4f7;
	--elevated: #ffffff;
	--elevated-hover: #f3f4f6;
	--directory-card: #f0f2f6;
	--directory-card-hover: #e6e8f0;
	--media-chrome: #ececf2;
	--embed-bg: #e8e8ef;
}

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

html {
	-webkit-font-smoothing: antialiased;
}

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	font-size: 16px;
	line-height: 1.6;
}

a {
	color: inherit;
	text-decoration: none;
}

a:hover {
	text-decoration: none;
	opacity: 0.92;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* —— Header / nav —— */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	padding: 24px 40px 0;
	pointer-events: none;
}

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	pointer-events: auto;
}

.nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 24px;
	background: var(--bg-subtle);
	border: 0.5px solid var(--border);
	border-radius: var(--radius-card);
	max-width: 100%;
}

.nav-bar__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
}

.nav-bar__brand:hover {
	opacity: 1;
}

.nav-bar__logo-mark {
	display: flex;
	flex-shrink: 0;
}

.nav-bar__logo-mark .nav-bar__logo-img {
	width: auto;
	max-width: min(200px, 46vw);
	height: 50px;
	object-fit: contain;
}

/* Specificità sopra .nav-bar__logo-mark .nav-bar__logo-img { display: block } altrimenti entrambi restano visibili */
.nav-bar__logo-mark .nav-bar__logo-img--theme-dark {
	display: block;
}

.nav-bar__logo-mark .nav-bar__logo-img--theme-light {
	display: none;
}

html[data-theme="light"] .nav-bar__logo-mark .nav-bar__logo-img--theme-dark {
	display: none;
}

html[data-theme="light"] .nav-bar__logo-mark .nav-bar__logo-img--theme-light {
	display: block;
}

.nav-bar__menu {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
}

.nav-bar__links {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-bar__links a {
	font-weight: 400;
	font-size: 16px;
	line-height: 1.6;
	letter-spacing: -0.02em;
	color: var(--text);
}

.nav-bar__toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0.5px solid var(--border);
	border-radius: var(--radius-card);
	color: var(--text);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-bar__toggle:hover {
	background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .nav-bar__toggle:hover {
	background: rgba(0, 0, 0, 0.05);
}

.nav-bar__toggle-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.nav-bar__theme {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	padding: 0;
	margin: 0 0 0 4px;
	background: transparent;
	border: 0.5px solid var(--border);
	border-radius: var(--radius-card);
	color: var(--text);
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.nav-bar__theme:hover {
	background: rgba(255, 255, 255, 0.06);
}

html[data-theme="light"] .nav-bar__theme:hover {
	background: rgba(0, 0, 0, 0.05);
}

.nav-bar__theme-icon {
	display: none;
	align-items: center;
	justify-content: center;
}

.nav-bar__theme-icon--sun {
	display: inline-flex;
}

html[data-theme="light"] .nav-bar__theme-icon--sun {
	display: none;
}

html[data-theme="light"] .nav-bar__theme-icon--moon {
	display: inline-flex;
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	font-family: var(--font);
	font-weight: 500;
	font-size: 14px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	border-radius: var(--radius-pill);
	border: none;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	text-align: center;
}

.btn--primary {
	background: var(--accent);
	color: #fff;
}

.btn--primary:hover {
	background: var(--accent-hover);
	color: #fff;
	opacity: 1;
}

.btn--outline {
	background: transparent;
	color: var(--text);
	border: 1px solid var(--border);
}

.btn--outline:hover {
	border-color: var(--border-hover);
	background: rgba(255, 255, 255, 0.04);
	opacity: 1;
}

html[data-theme="light"] .btn--outline:hover {
	background: rgba(0, 0, 0, 0.04);
}

.btn--nav {
	padding: 10px 18px;
	flex-shrink: 0;
}

.btn--center {
	display: flex;
	margin: 24px auto 0;
}

.btn--block {
	width: 100%;
	margin-top: 12px;
}

.site-main {
	min-height: 50vh;
}

.site-breadcrumb-wrap {
	padding-top: 8px;
}

.site-breadcrumb {
	margin: 0;
}

.site-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--text-tertiary);
}

.site-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	max-width: 100%;
}

.site-breadcrumb__item + .site-breadcrumb__item::before {
	content: "/";
	margin: 0 10px;
	opacity: 0.45;
	font-weight: 400;
}

.site-breadcrumb__link {
	color: var(--text-tertiary);
	text-decoration: none;
	transition: color 0.15s ease;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.site-breadcrumb__link:hover {
	color: var(--text);
	opacity: 1;
}

.site-breadcrumb__current {
	color: var(--text-secondary);
	font-weight: 500;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* —— Typography —— */
.heading-1 {
	margin: 0;
	font-weight: 600;
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.035em;
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.heading-2 {
	margin: 0;
	font-weight: 500;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-align: center;
}

.body-14 {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	letter-spacing: -0.02em;
	color: var(--text-secondary);
}

.body-18 {
	margin: 0;
	font-size: 18px;
	line-height: 1.6;
	letter-spacing: -0.02em;
	color: var(--text-secondary);
}

.badge-text {
	font-size: 12px;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--text-tertiary);
}

/* —— Layout —— */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding-left: 40px;
	padding-right: 40px;
}

.container--narrow {
	max-width: 720px;
	padding-top: 80px;
	padding-bottom: 80px;
}

.container--hero {
	max-width: var(--container);
}

.section {
	padding: 100px 0;
}

.section--hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 100px 40px 40px;
	isolation: isolate;
}

/* Alone blu centrale — stesso radial di Framer (50% 50% at 50% 50%) */
.section--hero::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background: radial-gradient(50% 50% at 50% 50%, var(--hero-radial-center) 0%, var(--hero-radial-edge) 100%);
}

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

.section--border {
	border-style: solid;
	border-color: var(--border);
	border-width: 1px 0 0;
}

.section-header {
	max-width: 628px;
	margin: 0 auto 64px;
	text-align: center;
}

.section-header__sub {
	margin-top: 16px;
}

.hero__stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	width: 100%;
}

.hero__copy {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 700px;
	width: 100%;
	text-align: center;
}

.hero__lead {
	max-width: 700px;
}

.hero-badge {
	margin: 0;
}

.hero-badge a {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: -0.02em;
	color: var(--text-secondary);
	background: var(--accent-muted);
	border: 1px solid var(--accent-border);
	border-radius: var(--radius-pill);
}

.hero-badge a:hover {
	color: var(--text);
	opacity: 1;
}

.hero__logos {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	column-gap: 20px;
	row-gap: 12px;
	width: 100%;
	max-width: 640px;
	align-items: start;
}

/* Righe sfalsate (mock Framer): prima riga pari più in basso, seconda dispari più in basso */
.hero__logos--stagger .hero-logo-cell:nth-child(-n + 5):nth-child(even) {
	transform: translateY(14px);
}

.hero__logos--stagger .hero-logo-cell:nth-child(n + 6):nth-child(odd) {
	transform: translateY(14px);
}

.hero-logo-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.hero-logo-cell__link {
	display: block;
	width: 100%;
	max-width: 88px;
	margin: 0 auto;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.hero-logo-cell__link:hover {
	opacity: 1;
	transform: translateY(-2px);
}

/* Contenitore “vetro” attorno alla favicon */
.hero-logo-cell__frame {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 1;
	max-width: 88px;
	margin: 0 auto;
	padding: 10px;
	background: #818cf81a;
	border: none;
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(10px);
}

.hero-logo-cell__frame--empty {
	background: rgba(255, 255, 255, 0.03);
	border-style: dashed;
	border-color: rgba(255, 255, 255, 0.08);
}

.hero-logo-cell .tool-card__icon {
	width: 52px;
	height: 52px;
	border-radius: 12px;
}

.hero-logo-cell .tool-card__icon--has-image {
	border-radius: 10px;
}

/* —— Filters —— */
.filter-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-bottom: 24px;
}

.filter-tab {
	font-family: var(--font);
	font-size: 14px;
	padding: 8px 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
}

.filter-tab--active {
	background: var(--surface);
	color: var(--text);
	border-color: var(--border-hover);
}

/* —— Grids —— */
.grid-tools,
.grid-categories,
.grid-deals,
.grid-blog {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.grid-deals {
	align-items: stretch;
}

.grid-recent {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	max-width: 720px;
	margin: 0 auto;
}

.grid-reviews {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.tool-card,
.category-card,
.blog-card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	padding: 20px;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tool-card:hover,
.category-card:hover,
.blog-card:hover {
	border-color: var(--border-hover);
	background: var(--surface-hover);
}

/* Deal cards (mock Framer: header + descrizione + prezzi + CTA indaco) */
.deal-card {
	display: flex;
	flex-direction: column;
	background: var(--elevated);
	border: 1px solid var(--border);
	border-radius: 16px;
	padding: 24px;
	min-height: 100%;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.deal-card:hover {
	border-color: var(--border-hover);
	background: var(--elevated-hover);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	opacity: 1;
}

html[data-theme="light"] .deal-card:hover {
	box-shadow: 0 12px 36px rgba(15, 15, 25, 0.08);
}

.deal-card__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.deal-card__header-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.deal-card .tool-card__icon {
	flex-shrink: 0;
	border-radius: 8px;
}

.deal-card__titles {
	min-width: 0;
}

/* Badge sconto: deal + card directory (stesso aspetto; lo span dentro <a> deve avere color/bg espliciti) */
.deal-card__badge,
.tool-card__deal-badge {
	flex-shrink: 0;
	align-self: flex-start;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: var(--deal-green);
	background: var(--deal-green-muted);
	border-radius: var(--radius-pill);
	border: 1px solid rgba(74, 222, 128, 0.22);
}

.tool-card--directory .tool-card__deal-badge {
	color: var(--deal-green);
	background: var(--deal-green-muted);
}

.deal-card__desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
	flex: 1 1 auto;
}

.deal-card__price-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.deal-card__price-row--sale-only {
	justify-content: flex-end;
}

.deal-card__price-row--old-only {
	justify-content: flex-start;
}

.deal-card__title {
	display: block;
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.03em;
	color: var(--text);
}

.deal-card__subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	color: var(--text-tertiary);
}

.deal-card__old {
	font-size: 14px;
	font-weight: 400;
	text-decoration: line-through;
	color: var(--text-tertiary);
}

.deal-card__new {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--deal-green);
}

.deal-card__cta {
	margin-top: auto;
	gap: 8px;
	font-weight: 600;
}

.deal-card__cta-arrow {
	font-size: 1.05em;
	line-height: 1;
	opacity: 0.95;
}

.deal-card .btn--block {
	width: 100%;
	margin-top: 0;
}

.tool-card__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

/* Icona + titoli affiancati; il badge è fratello, a destra */
.tool-card__top-main {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.tool-card__icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	border-radius: 10px;
	background: var(--accent-muted);
	border: 1px solid var(--accent-border);
}

.tool-card__icon--has-image {
	background: transparent !important;
	border: 1px solid var(--border);
	padding: 0;
	overflow: hidden;
}

.tool-card__icon--has-image .tool-card__icon-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: top;
}

.tool-card__title {
	display: block;
	margin: 0;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: -0.02em;
}

.tool-card__subtitle {
	margin: 4px 0 0;
	font-size: 14px;
	color: var(--text-secondary);
}

.tool-card__cat {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--text-tertiary);
}

.tool-card__meta {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.badge {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 500;
	border-radius: 6px;
}

.badge--new {
	background: var(--accent-muted);
	color: var(--accent);
	border: 1px solid var(--accent-border);
}

.badge--paid {
	background: rgba(255, 255, 255, 0.06);
	color: var(--text-secondary);
}

.category-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 500;
}

.category-card__desc {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.5;
}

.category-card__count {
	margin: 0;
	font-size: 14px;
	color: var(--text-tertiary);
}

.btn--deal {
	background: var(--deal-cta);
	color: #fff;
}

.btn--deal:hover {
	background: var(--deal-cta-hover);
	color: #fff;
	opacity: 1;
}

.review-card {
	margin: 0;
	padding: 20px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
}

.review-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--text-secondary);
}

.review-card__name {
	display: block;
	font-style: normal;
	font-weight: 500;
	font-size: 14px;
	color: var(--text);
}

.review-card__role {
	font-size: 14px;
	color: var(--text-tertiary);
}

/* Newsletter CTA — mesh gradient (blu / indigo / cyan) */
.cta-box {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: max(var(--radius-card), 16px);
	padding: 80px 20px;
	max-width: 1120px;
	margin: 0 auto;
	border: 1px solid rgba(255, 255, 255, 0.09);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.07),
		0 28px 64px rgba(0, 0, 0, 0.4);
	background-color: #070b18;
	background-image:
		radial-gradient(ellipse 90% 75% at 5% 48%, rgba(37, 99, 235, 0.5) 0%, transparent 58%),
		radial-gradient(ellipse 80% 70% at 96% 12%, rgba(186, 230, 253, 0.28) 0%, transparent 52%),
		radial-gradient(ellipse 95% 60% at 52% 100%, rgba(79, 70, 229, 0.45) 0%, transparent 56%),
		radial-gradient(ellipse 55% 50% at 75% 32%, rgba(56, 189, 248, 0.26) 0%, transparent 48%),
		radial-gradient(ellipse 65% 55% at 22% 88%, rgba(99, 102, 241, 0.24) 0%, transparent 52%);
}

.cta-box::before {
	content: "";
	position: absolute;
	inset: -40% -25%;
	background: conic-gradient(
		from 210deg at 45% 42%,
		rgba(59, 130, 246, 0.12),
		rgba(99, 102, 241, 0.14),
		rgba(30, 64, 175, 0.1),
		rgba(125, 211, 252, 0.11),
		rgba(139, 92, 246, 0.1),
		rgba(59, 130, 246, 0.12)
	);
	filter: blur(56px);
	opacity: 0.9;
	pointer-events: none;
	z-index: 0;
}

.cta-box > * {
	position: relative;
	z-index: 1;
}

.cta-box .heading-2,
.cta-box .section-header__sub {
	text-shadow: 0 1px 28px rgba(0, 0, 0, 0.45);
}

.cta-box .badge-text {
	opacity: 0.92;
}

html[data-theme="light"] .cta-box {
	border-color: var(--border);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.75),
		0 20px 52px rgba(15, 15, 40, 0.07);
	background-color: #eef2ff;
	background-image:
		radial-gradient(ellipse 90% 75% at 5% 48%, rgba(59, 130, 246, 0.22) 0%, transparent 58%),
		radial-gradient(ellipse 80% 70% at 96% 12%, rgba(255, 255, 255, 0.9) 0%, transparent 52%),
		radial-gradient(ellipse 95% 60% at 52% 100%, rgba(99, 102, 241, 0.2) 0%, transparent 56%),
		radial-gradient(ellipse 55% 50% at 75% 32%, rgba(125, 211, 252, 0.18) 0%, transparent 48%),
		radial-gradient(ellipse 65% 55% at 22% 88%, rgba(165, 180, 252, 0.18) 0%, transparent 52%);
}

html[data-theme="light"] .cta-box::before {
	opacity: 0.65;
}

html[data-theme="light"] .cta-box .heading-2,
html[data-theme="light"] .cta-box .section-header__sub {
	text-shadow: none;
	color: var(--text);
}

.cta-form__row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
	max-width: 500px;
	margin: 0 auto 8px;
}

.cta-form__input {
	flex: 1 1 200px;
	min-height: 40px;
	padding: 0 16px;
	border-radius: var(--radius-pill);
	border: 1px solid var(--border);
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 14px;
}

.cta-form__input::placeholder {
	color: var(--text-tertiary);
}

.cta-form__input:focus {
	outline: 2px solid var(--accent-border);
	border-color: var(--accent);
}

.cta-form__feedback {
	text-align: center;
	margin: 0 0 8px;
	font-size: 14px;
	min-height: 1.4em;
}

.cta-form__feedback--success {
	color: var(--green, #22c55e);
}

.cta-form__feedback--error {
	color: #f87171;
}

html[data-theme="light"] .cta-form__feedback--error {
	color: #b91c1c;
}

.cta-form__note {
	text-align: center;
	margin: 8px 0 0;
}

/* Home: “Why use …?” — 2 colonne × 2 righe */
.home-why__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
	align-items: stretch;
	margin: 0 auto;
}

.home-why-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 24px 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-card);
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	min-height: 100%;
}

.home-why-card:hover {
	border-color: var(--border-hover);
	background: var(--surface-hover);
	box-shadow: 0 10px 36px rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .home-why-card:hover {
	box-shadow: 0 12px 32px rgba(15, 15, 40, 0.07);
}

.home-why-card__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 18px;
	border-radius: 14px;
	color: var(--accent);
	background: var(--accent-muted);
	border: 1px solid var(--accent-border);
	flex-shrink: 0;
}

.home-why-card__icon svg {
	display: block;
	max-width: 100%;
	height: auto;
}

.home-why-card__title {
	margin: 0 0 10px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--text);
}

.home-why-card__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
}

@media (max-width: 640px) {
	.home-why__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}

/* Home: immagine + testo alternato */
.home-alternate__stack {
	display: flex;
	flex-direction: column;
	gap: clamp(48px, 6vw, 80px);
	max-width: 1080px;
	margin: 0 auto;
}

.home-alternate__row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: clamp(24px, 4vw, 56px);
	min-width: 0;
}

.home-alternate__row--reverse {
	flex-direction: row-reverse;
}

.home-alternate__figure {
	margin: 0;
	flex: 1 1 48%;
	min-width: 0;
	border-radius: var(--radius-card);
	overflow: hidden;
	border: 1px solid var(--border);
	box-shadow: 0 20px 48px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .home-alternate__figure {
	box-shadow: 0 16px 40px rgba(15, 15, 40, 0.08);
}

.home-alternate__figure-inner {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	min-height: 200px;
	background-size: cover;
	background-position: 50% 50%;
}

.home-alternate__figure--grad-1 .home-alternate__figure-inner {
	background-image: linear-gradient(135deg, #f97316, #ec4899 50%, #a855f7);
}

.home-alternate__figure--grad-2 .home-alternate__figure-inner {
	background-image: linear-gradient(135deg, #6366f1, #22c55e);
}

.home-alternate__figure--grad-3 .home-alternate__figure-inner {
	background-image: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

.home-alternate__figure--photo {
	background: var(--surface);
}

.home-alternate__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	min-height: 200px;
	vertical-align: middle;
}

.home-alternate__copy {
	flex: 1 1 48%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.home-alternate__title.heading-2 {
	text-align: left;
	font-size: clamp(1.5rem, 2.5vw, 2.1rem);
	margin: 0;
}

/* Paragrafi solo della sezione img/testo alternate (stile ex .body-18, isolato) */
.home-alternate__body {
	margin: 0;
	text-align: left;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-secondary);
}

@media (max-width: 768px) {
	.home-alternate__row,
	.home-alternate__row--reverse {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
	}

	.home-alternate__figure {
		flex: none;
		width: 100%;
	}

	.home-alternate__copy {
		flex: none;
		width: 100%;
	}

	.home-alternate__figure-inner {
		min-height: 180px;
		aspect-ratio: 16 / 9;
	}

	.home-alternate__img {
		min-height: 180px;
		aspect-ratio: 16 / 9;
	}
}

.blog-card__tag {
	display: inline-block;
	font-size: 12px;
	color: var(--accent);
	margin-bottom: 8px;
}

.blog-card__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 500;
}

.blog-card__excerpt {
	margin: 0 0 12px;
	font-size: 14px;
	color: var(--text-secondary);
}

.blog-card__date {
	font-size: 14px;
	color: var(--text-tertiary);
}

/* —— Homepage (content-front) —— */
.home-trending__grid {
	align-items: stretch;
}

.grid-categories--home {
	grid-template-columns: repeat(3, 1fr);
}

.category-card {
	display: flex;
	flex-direction: column;
}

.category-card__link {
	display: inline-block;
	margin-top: auto;
	padding-top: 12px;
	font-size: 14px;
	font-weight: 500;
	color: var(--accent);
}

.category-card__icon-wrap {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	margin-bottom: 12px;
	border-radius: 10px;
	background: rgba(99, 102, 241, 0.12);
	border: 1px solid var(--accent-border);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.category-card__icon-img {
	width: 100%;
	height: 60%;
	display: block;
}

.category-card__icon-wrap--placeholder {
	min-height: 44px;
	background: var(--accent-muted);
}

.home-new-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 1200px;
	margin: 0 auto;
}

.home-new-list__item {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 16px 20px;
	padding: 18px 22px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 16px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.home-new-list__item:hover {
	border-color: var(--border-hover);
	background: var(--surface-hover);
	opacity: 1;
}

.home-new-list__top {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-shrink: 0;
}

.home-new-list__icon-slot {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.home-new-list__icon-slot .tool-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.home-new-list__lead {
	min-width: 0;
	max-width: 220px;
}

.home-new-list__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.home-new-list__title {
	display: inline-block;
	margin: 0;
	min-width: 0;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
	line-height: 1.25;
}

.home-new-list__badge {
	flex-shrink: 0;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: rgba(99, 102, 241, 0.2);
	color: #c4b5fd;
	border: 1px solid rgba(99, 102, 241, 0.35);
	border-radius: 999px;
}

.home-new-list__sub {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: var(--text-tertiary);
}

.home-new-list__desc {
	flex: 1 1 200px;
	margin: 0;
	min-width: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
}

.home-new-list__end {
	display: contents;
}

.home-new-list__item .home-new-list__cat {
	max-width: 200px;
	flex-shrink: 0;
}

.home-new-list__item .home-new-list__price {
	flex-shrink: 0;
	font-weight: 600;
	font-size: 13px;
}

.home-new-list__item .tool-card__price--paid {
	color: var(--tool-price-paid-directory);
}

@media (max-width: 900px) {
	.home-new-list__item {
		align-items: flex-start;
	}

	.home-new-list__lead {
		max-width: none;
		flex: 1 1 160px;
	}

	.home-new-list__desc {
		flex: 1 1 100%;
	}

	.home-new-list__end {
		display: flex;
		flex: 1 1 100%;
		justify-content: space-between;
		align-items: center;
		gap: 12px;
		padding-top: 2px;
	}
}

@media (max-width: 520px) {
	.home-new-list__top {
		align-items: flex-start;
		width: 100%;
	}

	.home-new-list__lead {
		flex: 1;
	}
}

.review-card__footer {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--border);
}

.review-card__avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), var(--surface-hover));
	border: 1px solid var(--border);
	flex-shrink: 0;
}

.review-card__who {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.blog-card--cover {
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.blog-card--cover:hover {
	background: var(--surface-hover);
}

.blog-card__media {
	width: 100%;
	height: 160px;
	flex-shrink: 0;
}

.blog-card__media--grad-1 {
	background: linear-gradient(135deg, #f97316, #ec4899 50%, #a855f7);
}

.blog-card__media--grad-2 {
	background: linear-gradient(135deg, #6366f1, #22c55e);
}

.blog-card__media--grad-3 {
	background: linear-gradient(135deg, #06b6d4, #8b5cf6);
}

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

.blog-card--cover .blog-card__tag {
	margin-bottom: 8px;
}

.blog-card--cover .blog-card__excerpt {
	flex: 1;
}

.blog-card__media--thumb {
	padding: 0;
	height: 160px;
	overflow: hidden;
}

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

.home-empty {
	text-align: center;
	color: var(--text-tertiary);
	margin: 0 0 24px;
}

.tool-card__footer-prices {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.tool-card__price-strike {
	font-size: 12px;
	text-decoration: line-through;
	color: var(--text-tertiary);
}

.tool-card--has-deal {
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* —— Pagina /tools —— */
.page-tools-header {
	padding: 80px 40px 0;
	text-align: center;
}

.page-tools-header__inner {
	max-width: 628px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.heading-1--page {
	max-width: none;
}

.page-tools-header__lead {
	margin: 0;
}

.page-tools-header--taxonomy {
	text-align: left;
	padding-top: 40px;
	padding-bottom: 8px;
}

.page-tools-header--taxonomy .container {
	max-width: 1400px;
}

/* Una sola card: icona | testo | colonnina stat (come reference Framer) */
.taxonomy-hero {
	width: 100%;
}

.taxonomy-hero__card {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 22px 28px;
	padding: 22px 26px;
	min-width: 0;
	width: 100%;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 18px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.taxonomy-hero__stats {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	flex: 0 0 auto;
	width: min(260px, 34%);
	min-width: 200px;
}

.taxonomy-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 10px;
	background: var(--bg-subtle);
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: none;
}

.taxonomy-stat__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 35px;
	height: 35px;
	border-radius: 10px;
	background: rgba(99, 102, 241, 0.1);
	border: 1px solid var(--accent-border);
	color: var(--accent-hover);
}

.taxonomy-stat__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.taxonomy-stat__value {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--text);
}

.taxonomy-stat__value--sm {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.taxonomy-stat__label {
	font-size: 10px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--text-tertiary);
}

.taxonomy-hero__icon {
	flex-shrink: 0;
	align-self: center;
}

.taxonomy-hero__icon .category-card__icon-wrap {
	width: 80px;
	height: 80px;
	margin-bottom: 0;
	border-radius: 16px;
}

.taxonomy-hero__icon .category-card__icon-wrap--placeholder {
	min-height: 80px;
}

.taxonomy-hero__icon .category-card__icon-img {
	width: 100%;
	height: 70%;
}

.taxonomy-hero__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
	flex: 1 1 auto;
	align-self: center;
}

/* H1 categoria: due span (prefisso + nome) — reset .heading-1 sul wrapper */
.page-tools-header--taxonomy .taxonomy-hero__h1.heading-1 {
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
	letter-spacing: normal;
	text-align: left;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.taxonomy-hero__h1-prefix {
	display: block;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #8b8b9a;
}

.taxonomy-hero__h1-name {
	display: block;
	font-weight: 700;
	font-size: clamp(1.65rem, 3vw, 2.35rem);
	line-height: 1.15;
	letter-spacing: -0.035em;
	color: var(--text);
}

.page-tools-header--taxonomy .page-tools-header__lead {
	text-align: left;
	max-width: none;
	margin: 0;
	color: var(--text-secondary);
}

@media (max-width: 900px) {
	.taxonomy-hero__card {
		flex-direction: column;
		align-items: stretch;
	}

	.taxonomy-hero__stats {
		width: 100%;
		min-width: 0;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.taxonomy-stat {
		flex: 1 1 160px;
	}
}

@media (max-width: 520px) {
	.taxonomy-hero__stats {
		flex-direction: column;
	}

	.taxonomy-stat {
		flex: 1 1 auto;
	}
}

/* —— Pagine Framer aggiuntive: Deals, Blog, 404, articolo, legal —— */
.page-deals-body {
	padding: 64px 40px 100px;
}

.page-blog-body {
	padding: 64px 40px 100px;
}

.page-blog-grid {
	padding-bottom: 80px;
}

.page-blog-empty {
	text-align: center;
	color: var(--text-tertiary);
	margin: 0;
	padding: 48px 0;
}

.page-404 {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px 40px 80px;
	box-sizing: border-box;
}

.page-404__inner {
	max-width: 700px;
	margin: 0 auto;
	text-align: center;
}

.page-404__title {
	margin: 0 0 24px;
}

.page-404__lead {
	margin: 0 0 32px;
}

.page-404__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	justify-content: center;
	align-items: center;
}

.heading-3 {
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: -0.04em;
	color: var(--text);
	text-align: left;
}

.single-post__header {
	padding: 150px 40px 0;
	text-align: center;
}

.single-post__header-inner {
	max-width: 600px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
	align-items: center;
}

.single-post__title {
	margin: 0;
	text-align: center;
}

.single-post__byline {
	margin: 0;
	font-size: 14px;
	color: var(--text-secondary);
}

.single-post__sep {
	margin: 0 0.35em;
	color: var(--text-tertiary);
}

.single-post__banner {
	padding: 0 40px 40px;
}

.single-post__banner .container {
	max-width: 1200px;
}

.single-post__banner-img {
	width: 100%;
	height: auto;
	border-radius: 24px;
	display: block;
	vertical-align: top;
}

.single-post__body {
	padding: 0 40px 100px;
}

.container--article {
	max-width: 720px;
}

.single-post__related {
	padding-top: 64px;
	margin-top: 0;
}

.single-post__related-title {
	margin-bottom: 24px;
}

.legal-article {
	padding: 150px 40px 100px;
}

.legal-article__inner {
	max-width: 600px;
	margin: 0 auto;
}

.legal-article__header {
	margin-bottom: 40px;
}

.legal-article__title {
	margin: 0 0 16px;
	text-align: left;
}

.legal-article__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	color: var(--text-secondary);
}

.legal-article__meta time {
	color: var(--text-secondary);
}

.page-static {
	padding: 20px 0 100px;
}

.page-entry .entry__title {
	margin-bottom: 24px;
	text-align: left;
}

.page-tools-body {
	padding: 64px 40px 100px;
}

.page-ai-categories-body {
	padding: 64px 40px 100px;
}

.page-ai-categories-body .container {
	max-width: 1400px;
}

.container--tools {
	max-width: var(--container);
}

/* Directory /tools e archivi categoria: contenitore più largo per schede ~312×215 (riferimento Framer) */
.page-tools-header .container,
.page-tools-body .container--tools {
	max-width: 1400px;
}

/* DOM: main prima, sidebar dopo (SEO); il layout visivo è definito da grid-template-areas. */
.tools-layout {
	display: grid;
	grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
	align-items: start;
	gap: 48px;
	grid-template-areas: "sidebar main";
}

/* Archivio categoria con FAQ: DOM = main → FAQ → sidebar; visivamente sidebar | main, poi FAQ a tutta larghezza. */
.tools-layout--has-faq {
	grid-template-areas:
		"sidebar main"
		"faq faq";
}

.tools-layout--has-faq .tool-category-faq {
	grid-area: faq;
	width: 100%;
	min-width: 0;
}

.tools-sidebar {
	grid-area: sidebar;
	min-width: 0;
	max-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.tools-sidebar__block {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tools-sidebar__block--categories {
	gap: 0;
}

.tools-sidebar-category {
	margin: 0;
	padding: 0;
	border: none;
}

.tools-sidebar-category__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	list-style: none;
	cursor: pointer;
	user-select: none;
	padding: 0 0 10px;
	margin: 0;
	font: inherit;
	color: inherit;
}

.tools-sidebar-category__summary::-webkit-details-marker {
	display: none;
}

.tools-sidebar-category__summary::marker {
	content: "";
}

.tools-sidebar-category__summary:focus {
	outline: none;
}

.tools-sidebar-category__summary:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.tools-sidebar-category__chevron {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--text-tertiary);
	flex-shrink: 0;
	transition: transform 0.2s ease, color 0.15s ease;
}

.tools-sidebar-category[open] .tools-sidebar-category__chevron {
	transform: rotate(180deg);
	color: var(--text-secondary);
}

.tools-sidebar-category__scroll {
	max-height: calc(6 * (15px * 1.45 + 4px) + 5 * 10px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
	padding-right: 4px;
	margin-right: -4px;
}

.tools-sidebar-category__scroll:focus-within {
	outline: none;
}

.tools-sidebar-category__scroll::-webkit-scrollbar {
	width: 6px;
}

.tools-sidebar-category__scroll::-webkit-scrollbar-track {
	background: transparent;
}

.tools-sidebar-category__scroll::-webkit-scrollbar-thumb {
	background: var(--border-hover);
	border-radius: 3px;
}

.tools-sidebar-category__scroll .tools-categories {
	display: flex;
	flex-direction: column;
}

.tools-sidebar__label {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.02em;
	color: var(--text-tertiary);
}

.tools-search {
	position: relative;
	display: flex;
	align-items: center;
}

.tools-search__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-tertiary);
	pointer-events: none;
	display: flex;
}

.tools-search__input {
	width: 100%;
	min-height: 40px;
	padding: 10px 14px 10px 40px;
	font-family: var(--font);
	font-size: 14px;
	line-height: 1.4;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tools-search__input::placeholder {
	color: var(--text-tertiary);
}

.tools-search__input:focus {
	border-color: var(--accent-border);
	box-shadow: 0 0 0 3px var(--accent-muted);
}

.tools-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tools-category-link {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.45;
	letter-spacing: -0.02em;
	color: var(--text-secondary);
	text-decoration: none;
	user-select: none;
}

.tools-category-link:hover {
	color: var(--text);
	opacity: 1;
}

.tools-category-link:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
	border-radius: 4px;
}

.tools-checkbox__box {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	border: 1px solid var(--border-hover);
	border-radius: 4px;
	background: transparent;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tools-category-link.is-active {
	color: var(--text);
}

.tools-category-link.is-active .tools-checkbox__box {
	background: var(--accent);
	border-color: var(--accent);
}

.tools-category-link.is-active .tools-checkbox__box::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.tools-checkbox__text {
	flex: 1;
}

.tools-empty {
	grid-column: 1 / -1;
	margin: 0;
	padding: 24px 0;
	text-align: center;
	color: var(--text-tertiary);
	font-size: 15px;
}

/* Barra filtri archivio categoria (pricing + sort) */
.tools-category-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px 20px;
	margin-bottom: 28px;
}

.tools-category-toolbar__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.tools-category-filter-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	text-decoration: none;
	transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tools-category-filter-pill:hover {
	color: var(--text);
	border-color: var(--border-hover);
	background: rgba(255, 255, 255, 0.06);
	opacity: 1;
}

.tools-category-filter-pill.is-active {
	color: var(--text);
	background: var(--accent-muted);
	border-color: var(--accent-border);
	box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.25);
}

.tools-category-toolbar__sort {
	margin: 0;
	flex-shrink: 0;
}

.tools-category-sort-select {
	min-width: 200px;
	max-width: 100%;
	padding: 10px 40px 10px 14px;
	font-family: var(--font);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--text);
	background-color: var(--surface);
	border: 1px solid var(--accent-border);
	border-radius: 10px;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239d9da8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
}

.tools-category-sort-select:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-muted);
}

.tool-card__cat-pill--empty {
	opacity: 0.4;
}

.tools-main {
	grid-area: main;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.tools-grid--page {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* Card directory /tools: template Framer */
.tool-card--directory {
	text-align: left;
	align-items: stretch;
	display: flex;
	flex-direction: column;
	min-height: 215px;
	padding: 24px;
	background: var(--directory-card);
	border-radius: 14px;
}

.tool-card--directory:hover {
	background: var(--directory-card-hover);
	border-color: var(--border-hover);
}

.tool-card--directory .tool-card__top {
	align-items: flex-start;
	margin-bottom: 4px;
	flex-wrap: nowrap;
}

.tool-card--directory .tool-card__headline {
	min-width: 0;
}

.tool-card--directory .tool-card__title {
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}

.tool-card--directory .tool-card__subtitle {
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	font-weight: 400;
	color: var(--text-tertiary);
}

.tool-card--directory .tool-card__desc {
	margin: 5px 0 0 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
	flex: 1;
	min-height: 0;
}

.tool-card--directory .tool-card__icon {
	width: 48px;
	height: 48px;
	border-radius: 12px;
}

.tool-card--directory .tool-card__rule {
	border: none;
	height: 1px;
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.08);
	margin: 16px 0 12px;
}

.tool-card--directory:not(:has(.tool-card__desc)) .tool-card__rule {
	margin-top: auto;
}

.tool-card--directory .tool-card__footer {
	margin-top: 0;
	padding-top: 0;
}

.tool-card--directory .tool-card__cat-pill {
	background: rgba(255, 255, 255, 0.08);
	color: var(--text-secondary);
}

.tool-card--directory .tool-card__price {
	font-weight: 600;
}

.tool-card__desc {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
	flex: 1;
}

.tool-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 4px;
}

.tool-card__cat-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--text);
	background: rgba(255, 255, 255, 0.06);
	border-radius: var(--radius-pill);
	max-width: 60%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tool-card__price {
	font-size: 13px;
	font-weight: 500;
	white-space: nowrap;
}

/* Tier a pagamento: grigio di default (es. home “New tools” senza directory) */
.tool-card__price--paid {
	color: var(--text-tertiary);
}

.tool-card__price--free {
	color: var(--green);
}

/* Card directory: Paid in emerald (vince sulla regola sopra grazie alla specificità) */
.tool-card--directory .tool-card__price--paid {
	color: var(--tool-price-paid-directory);
}

/* Icone card variate (placeholder come nel mock) */
.tool-card__icon--1 {
	background: linear-gradient(135deg, #6366f1, #4f46e5);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--2 {
	background: linear-gradient(135deg, #8b5cf6, #6d28d9);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--3 {
	background: linear-gradient(135deg, #22c55e, #15803d);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--4 {
	background: linear-gradient(135deg, #f97316, #ea580c);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--5 {
	background: linear-gradient(135deg, #ec4899, #db2777);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--6 {
	background: linear-gradient(135deg, #06b6d4, #0891b2);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--7 {
	background: linear-gradient(135deg, #eab308, #ca8a04);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--8 {
	background: linear-gradient(135deg, #64748b, #475569);
	border-color: rgba(255, 255, 255, 0.12);
}
.tool-card__icon--9 {
	background: linear-gradient(135deg, #a855f7, #7c3aed);
	border-color: rgba(255, 255, 255, 0.12);
}

.tools-load-more-wrap {
	display: flex;
	justify-content: center;
	padding-top: 40px;
}

.btn--load-more {
	min-width: 160px;
}


.tool-detail__wrap {
	max-width: var(--container);
	margin: 0 auto;
	padding: 24px 40px 80px;
}

.tool-detail__back {
	margin: 0 0 20px;
}

.tool-detail__back a {
	font-size: 14px;
	color: var(--text-secondary);
	text-decoration: none;
}

.tool-detail__back a:hover {
	color: var(--text);
}

.tool-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
	gap: 32px 40px;
	align-items: start;
}

.tool-detail__main {
	min-width: 0;
}

.tool-detail-card {
	background: var(--elevated);
	border: 1px solid var(--border);
	border-radius: 18px;
	margin-bottom: 20px;
	overflow: hidden;
}

.tool-detail-card--media {
	padding: 0;
}

.tool-detail-card__inner {
	padding: 26px 28px;
}

/* Solo box avviso affiliazione: padding più stretto (non toccare le altre .tool-detail-card) */
.tool-detail-card--affiliate-disclosure .tool-detail-card__inner {
	padding: 14px 18px;
}

.tool-detail-affiliate-disclosure__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--text-secondary);
}

.tool-detail-affiliate-disclosure__link {
	color: var(--text-secondary);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.25);
	text-underline-offset: 3px;
	transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.tool-detail-affiliate-disclosure__link:hover {
	color: var(--text);
	text-decoration-color: rgba(255, 255, 255, 0.35);
}

.tool-detail-card__h {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--text);
}

.tool-detail-card__h--side {
	margin-bottom: 20px;
	font-size: 16px;
}

.tool-detail-hero {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.tool-detail-hero__icon.tool-card__icon {
	width: 64px;
	height: 64px;
	border-radius: 16px;
}

.tool-detail-hero__title {
	margin: 0 0 8px;
	font-size: clamp(1.75rem, 3vw, 2.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.03em;
}

.tool-rating {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	line-height: 1;
	user-select: none;
}

.tool-rating__star {
	font-size: 1em;
	line-height: 1;
}

.tool-rating__star.is-filled {
	color: #fbbf24;
	text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.tool-rating__star.is-empty {
	color: rgba(255, 255, 255, 0.22);
}

.tool-rating--specs {
	justify-content: flex-end;
	font-size: 15px;
}

.tool-detail-specs__row--rating {
	align-items: center;
}

.tool-rating--card {
	margin: 6px 0 2px;
	font-size: 14px;
}

.tool-detail-hero__tagline {
	margin: 0;
	font-size: 18px;
	color: var(--text-secondary);
}

.tool-detail-hero__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: var(--text-tertiary);
}

.tool-detail-shot {
	padding: 0;
	line-height: 0;
	background: var(--media-chrome);
}

.tool-detail-shot__img {
	display: block;
	width: 100%;
	height: 524px;
	border-radius: 30px;
	object-fit:cover;
	object-position:top;
	padding:15px;
}

/* Gallery (tab scheda tool): solo URL esterni — griglia anche in .tool-detail-tabs__panel */
.tool-detail-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 16px;
	align-items: start;
}

.tool-detail-gallery__item--embed {
	grid-column: 1 / -1;
	width: 100%;
	max-width: 100%;
}

.tool-detail-gallery__item--embed iframe {
	width: 100% !important;
	max-width: 100%;
	aspect-ratio: 16 / 9;
	height: auto !important;
	min-height: 220px;
	border: 0;
	border-radius: 14px;
	background: var(--embed-bg);
}

.tool-detail-gallery__item--video {
	grid-column: 2 / 2;
}

.tool-detail-gallery__video {
	width: 100%;
	height: 400px;
	border-radius: 14px;
	object-fit:cover;
	background: var(--embed-bg);
	vertical-align: middle;
}

.tool-detail-gallery__figure {
	margin: 0;
	line-height: 0;
}

.tool-detail-gallery__img {
	display: block;
	width: 100%;
	height: 400px;
	border-radius: 14px;
	object-fit: cover;
}

.tool-detail-prose {
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-secondary);
}

.tool-detail-prose p {
	margin: 0 0 1em;
}

.tool-detail-prose p:last-child {
	margin-bottom: 0;
}



.tool-detail-list {
	margin: 0;
	padding-left: 1.15em;
	color: var(--text-secondary);
	font-size: 15px;
	line-height: 1.55;
}

.tool-detail-list li {
	margin-bottom: 0.5em;
}

/* Scheda tool: tab dentro la card (Overview / Key Features / Pros & Cons) */
.tool-detail-tabs {
	margin-bottom: 20px;
}

.tool-detail-tabs__card {
	margin-bottom: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.tool-detail-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 14px 14px 12px;
	border-bottom: 1px solid var(--border);
	background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 520px) {
	.tool-detail-tabs__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-gutter: stable;
		padding-bottom: 14px;
	}
}

.tool-detail-tabs__tab {
	flex: 0 0 auto;
	margin: 0;
	padding: 9px 16px;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--text-secondary);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
	transition:
		color 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease,
		box-shadow 0.18s ease;
}

.tool-detail-tabs__tab:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.07);
	border-color: rgba(255, 255, 255, 0.12);
}

.tool-detail-tabs__tab[aria-selected="true"] {
	color: var(--text);
	background: rgba(99, 102, 241, 0.18);
	border-color: rgba(129, 140, 248, 0.45);
	box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.12);
}

.tool-detail-tabs__tab:focus {
	outline: none;
}

.tool-detail-tabs__tab:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.tool-detail-tabs__panel-inner {
	padding-top: 22px;
	padding-bottom: 26px;
}

.tool-detail-tabs--single .tool-detail-tabs__panel-inner {
	padding-top: 26px;
}

.tool-detail-card__inner--proscons-tab {
	padding-top: 20px;
	padding-bottom: 22px;
}

.tool-detail-proscons {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.tool-detail-card--half {
	margin-bottom: 0;
}

.tool-detail-card__h--pro {
	color: var(--green);
}

.tool-detail-card__h--con {
	color: #f87171;
}

.tool-detail-alternatives {
	grid-column: 1 / -1;
	width: 100%;
	min-width: 0;
	margin-top: 40px;
}

.tool-detail-card--alternatives {
	margin-bottom: 0;
}

.tool-detail-card--alternatives .tools-grid--alternatives {
	min-width: 0;
}

.tool-detail-alternatives__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 20px;
	flex-wrap: wrap;
	margin-bottom: 30px;
}

.tool-detail-alternatives__title-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1 1 220px;
}

.tool-detail-alternatives__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tool-detail-alternatives__icon .category-card__icon-wrap {
	width: 40px;
	height: 40px;
	margin-bottom: 0;
	border-radius: 8px;
}

.tool-detail-alternatives__icon .category-card__icon-wrap--placeholder {
	min-height: 32px;
}

.tool-detail-alternatives__icon .category-card__icon-img {
	height: 62%;
}

.tool-detail-alternatives__title {
	margin: 0;
	font-size: 24px;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--text-secondary);
}

.tool-detail-alternatives__arrow {
	display: inline;
	margin-left: 0.15em;
	opacity: 0.85;
}

.tool-detail-alternatives__cta {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--text-secondary);
	text-decoration: none;
	background: transparent;
	border: 1px solid var(--border);
	border-radius: 999px;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tool-detail-alternatives__cta:hover {
	color: var(--text);
	border-color: var(--border-hover);
	background: rgba(255, 255, 255, 0.04);
}

.tool-detail-card--sticky {
	top: 88px;
}

.tool-detail-specs {
	margin: 0;
}

.tool-detail-specs__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border);
	font-size: 14px;
}

.tool-detail-specs__row:last-of-type {
	border-bottom: none;
}

.tool-detail-specs dt {
	margin: 0;
	color: var(--text-tertiary);
	font-weight: 400;
}

.tool-detail-specs dd {
	margin: 0;
	color: var(--text);
	font-weight: 500;
	text-align: right;
}

.btn--visit {
	width: 100%;
	margin-top: 20px;
	gap: 10px;
}

.tool-detail-visit__arrow {
	font-size: 1.1em;
	opacity: 0.9;
}

.tool-detail-similar-aside {
	margin-top: 8px;
}

.tool-similar {
	margin: 0;
	padding: 0;
}

.tool-similar .container {
	max-width: none;
	padding: 0;
}

.tool-similar__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.tool-similar__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tool-similar__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.tool-similar__item:hover {
	border-color: var(--border-hover);
	background: var(--surface-hover);
	opacity: 1;
}

.tool-similar__icon {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	flex-shrink: 0;
}

.tool-similar__text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.tool-similar__name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text);
}

.tool-similar__tag {
	font-size: 12px;
	color: var(--text-tertiary);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tool-similar__price {
	font-size: 13px;
	font-weight: 500;
	color: var(--text-secondary);
	flex-shrink: 0;
}

.tool-detail__cta {
	margin-top: 0;
}

/* —— FAQ in fondo archivio categoria —— */
.tool-category-faq {
	padding: 48px 0 100px;
}

.tool-category-faq .container {
	max-width: var(--container);
}

.tool-category-faq__title {
	margin: 0 0 24px;
	text-align: center;
}

.tool-category-faq__box {
	background: var(--elevated);
	border: 1px solid var(--border);
	border-radius: 18px;
	margin: 0 auto;
}

.tool-category-faq__list {
	padding: 8px 0;
}

.tool-category-faq__item {
	border-bottom: 1px solid var(--border);
}

.tool-category-faq__item:last-child {
	border-bottom: none;
}

.tool-category-faq__summary {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 32px;
	font-size: 16px;
	font-weight: 600;
	color: var(--text);
	cursor: pointer;
	list-style: none;
}

/* Domanda in H3 (gerarchia heading); stile compatto come prima il summary */
.tool-category-faq__summary .tool-category-faq__question {
	margin: 0;
	padding: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1.45;
	color: inherit;
	flex: 1 1 auto;
	min-width: 0;
	text-align: left;
}

.tool-category-faq__summary::-webkit-details-marker {
	display: none;
}

.tool-category-faq__summary::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-top: 6px;
	border-right: 2px solid var(--text-secondary);
	border-bottom: 2px solid var(--text-secondary);
	transform: rotate(45deg);
	transition: transform 0.2s ease;
}

.tool-category-faq__item[open] .tool-category-faq__summary::after {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.tool-category-faq__answer {
	padding: 0 32px 22px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--text-secondary);
}

.tool-category-faq__answer > *:first-child {
	margin-top: 0;
}

.tool-category-faq__answer h2,
.tool-category-faq__answer h3 {
	color: var(--text);
	margin-top: 1.25em;
}

@media (max-width: 1024px) {
	.tool-detail__grid {
		grid-template-columns: 1fr;
	}

	.tool-detail__main {
		order: 1;
	}

	/* Sidebar (Tool Information + Similar) prima di Alternatives su mobile */
	.tool-detail__aside {
		order: 2;
	}

	.tool-detail-alternatives {
		order: 3;
	}

	.tool-detail-card--sticky {
		position: static;
	}

	.tool-detail-proscons {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.tool-detail__wrap {
		padding: 16px 16px 48px;
	}
}

/* —— Footer —— */
.site-footer {
	border-top: 1px solid var(--border);
	padding: 40px 0 24px;
	margin-top: 0;
}

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 40px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.2fr repeat(3, 1fr);
	gap: 48px 32px;
	margin-bottom: 48px;
}

.footer-col--brand {
	max-width: 280px;
}

.footer-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--text);
	margin-bottom: 4px;
}

.footer-logo:hover {
	opacity: 0.95;
}

.footer-logo__mark {
	display: flex;
	flex-shrink: 0;
}

.footer-logo__mark .footer-logo__img {
	width: auto;
	max-width: min(180px, 50vw);
	height: 32px;
	object-fit: contain;
}

.footer-logo__mark .footer-logo__img--theme-dark {
	display: block;
}

.footer-logo__mark .footer-logo__img--theme-light {
	display: none;
}

html[data-theme="light"] .footer-logo__mark .footer-logo__img--theme-dark {
	display: none;
}

html[data-theme="light"] .footer-logo__mark .footer-logo__img--theme-light {
	display: block;
}

.footer-tagline {
	margin: 16px 0;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-secondary);
}

.footer-socials {
	display: flex;
	gap: 16px;
}

.footer-socials a {
	color: var(--text-secondary);
	display: flex;
}

.footer-socials a:hover {
	color: var(--text);
}

.footer-col__title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 400;
}

.footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.footer-links a {
	font-size: 16px;
	color: var(--text-secondary);
}

.footer-links a:hover {
	color: var(--text);
}

.footer-legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--border);
	font-size: 16px;
}

.footer-copy,
.footer-built {
	color: var(--text-secondary);
}

.entry__title {
	font-size: 2rem;
	margin-bottom: 1rem;
}

.entry__content {
	color: var(--text-secondary);
}

/* —— Responsive —— */
@media (max-width: 1024px) {
	.grid-tools,
	.grid-categories,
	.grid-deals,
	.grid-blog,
	.grid-reviews {
		grid-template-columns: repeat(2, 1fr);
	}

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

	.tools-layout {
		grid-template-columns: 1fr;
		grid-template-areas:
			"sidebar"
			"main";
		gap: 32px;
	}

	.tools-layout--has-faq {
		grid-template-areas:
			"sidebar"
			"main"
			"faq";
	}

	.tools-sidebar {
		width: 100%;
		max-width: none;
	}

	.tools-categories {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 16px;
	}

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

@media (max-width: 768px) {
	body.nav-menu-open {
		overflow: hidden;
	}

	.nav-bar {
		flex-wrap: wrap;
		align-items: center;
		position: relative;
		z-index: 20;
	}

	.nav-bar__brand {
		order: 1;
	}

	.nav-bar__theme {
		order: 2;
		margin-left: auto;
	}

	.nav-bar__toggle {
		display: inline-flex;
		order: 3;
		margin-left: 0;
	}

	.nav-bar__menu {
		order: 4;
		flex: 1 1 100%;
		width: 100%;
		display: none;
		padding-top: 8px;
		border-top: 0.5px solid var(--border);
		margin-top: 12px;
		padding-bottom: 4px;
	}

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

	.nav-bar__links {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav-bar__links li {
		border-bottom: 0.5px solid var(--border);
	}

	.nav-bar__links li:last-child {
		border-bottom: none;
	}

	.nav-bar__links a {
		display: block;
		padding: 14px 4px;
	}

	.tools-category-toolbar {
		flex-direction: column;
		align-items: stretch;
	}

	.tools-category-toolbar__filters {
		justify-content: flex-start;
	}

	.tools-category-sort-select {
		width: 100%;
		min-width: 0;
	}

	.tool-detail-shot__img {
		height: 293px;
	}
}

@media (max-width: 640px) {
	/* Pill “Discounted” a tutta larghezza (solo mobile) */
	.tools-category-toolbar__filters .tools-category-filter-pill:last-of-type {
		flex: 1 1 100%;
		width: 100%;
		max-width: none;
		justify-content: center;
		box-sizing: border-box;
	}

	.section--hero {
		min-height: auto;
		padding-top: 80px;
	}

	.hero__stack {
		gap: 40px;
	}

	/* Stessa griglia della reference: 5 colonne × 2 righe (non 2 colonne × 5 righe) */
	.hero__logos {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		column-gap: clamp(4px, 1.5vw, 8px);
		row-gap: 8px;
		max-width: none;
		width: 100%;
	}

	/* Stesso sfalsamento desktop, scala proporzionata alle celle piccole */
	.hero__logos--stagger .hero-logo-cell:nth-child(-n + 5):nth-child(even) {
		transform: translateY(11px);
	}

	.hero__logos--stagger .hero-logo-cell:nth-child(n + 6):nth-child(odd) {
		transform: translateY(11px);
	}

	.hero__logos .hero-logo-cell__link {
		max-width: 100%;
	}

	.hero-logo-cell__frame {
		max-width: 100%;
		padding: 6px 4px;
		border-radius: 16px;
		background: #818cf81a;
		box-shadow: 0 10px 36px rgba(0, 0, 0, 0.42);
		border:none;
	}

	.hero-logo-cell .tool-card__icon {
		width: 50px;
		height: 50px;
		border-radius: 10px;
	}

	.grid-tools,
	.grid-categories,
	.grid-deals,
	.grid-blog,
	.grid-reviews {
		grid-template-columns: 1fr;
	}

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

	.site-header {
		padding-left: 16px;
		padding-right: 16px;
	}

	.site-breadcrumb__current,
	.site-breadcrumb__link {
		white-space: normal;
	}

	.container {
		padding-left: 16px;
		padding-right: 16px;
	}

	.section {
		padding: 64px 0;
	}

	.page-tools-header {
		padding: 120px 16px 0;
	}

	/* Archivio categoria: niente hero “alto” da /tools — il 120px crea troppo vuoto sotto breadcrumb */
	.page-tools-header--taxonomy {
		padding: 8px 16px 0;
	}

	.site-breadcrumb-wrap {
		padding-top: 4px;
	}

	.page-tools-body,
	.page-ai-categories-body,
	.page-deals-body,
	.page-blog-body {
		padding: 48px 16px 64px;
	}

	.single-post__header {
		padding: 120px 16px 0;
	}

	.single-post__banner,
	.single-post__body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.legal-article {
		padding: 120px 16px 64px;
	}

	.page-404 {
		padding: 100px 16px 64px;
	}

	.tools-categories {
		grid-template-columns: 1fr;
	}

	.tools-grid--page {
		grid-template-columns: 1fr;
	}
}
