/*
Theme Name: Foodmania 2026
Theme URI: https://foodbloggermania.it/
Author: Riccardo Lorini
Author URI: https://foodbloggermania.it/
Description: Tema dell'aggregatore Food Blogger Mania. Minimal, chiaro/scuro a scelta dell'utente, palette Pomodoro. Sostituisce il tema foodmania del 2012.
Version: 2.0.0
Requires at least: 5.5
Tested up to: 7.1
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodmania-2026
Tags: food, recipes, blog, responsive, accessibility-ready, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Font (in locale) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }

/* ---------- Colori: palette Pomodoro ---------- */
:root {
	color-scheme: light;
	--bg: #FCFAF8; --surf: #FFFFFF; --ink: #1A1513; --muted: #645A55;
	--line: #E8E2DD; --line2: #CFC6BF; --ph: #EEE8E3; --accent: #B4371F; --on: #FFFFFF;
	--moon: block; --sun: none;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #171311; --surf: #211B18; --ink: #F6F1ED; --muted: #B3A8A1;
	--line: #3A322D; --line2: #55493F; --ph: #2B2420; --accent: #FF8A6B; --on: #1A1513;
	--moon: none; --sun: block;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		color-scheme: dark;
		--bg: #171311; --surf: #211B18; --ink: #F6F1ED; --muted: #B3A8A1;
		--line: #3A322D; --line2: #55493F; --ph: #2B2420; --accent: #FF8A6B; --on: #1A1513;
		--moon: none; --sun: block;
	}
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.center { display: flex; justify-content: center; margin-top: 48px; }
.screen-reader-text, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; padding: 12px 16px; background: var(--surf); border-radius: 8px; }
.icon { flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.brand--small { font-size: 18px; }
.logo { color: var(--accent); flex: 0 0 auto; }
.site-header__tools { display: flex; gap: 8px; }
.icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line2); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn .icon-moon { display: var(--moon); }
.icon-btn .icon-sun { display: var(--sun); }
.icon-btn--menu, .nav__search { display: none; }
.icon-btn--menu .icon-close, .icon-btn--menu[aria-expanded="true"] .icon-menu { display: none; }
.icon-btn--menu[aria-expanded="true"] .icon-close { display: block; }

.nav__list { display: flex; flex-wrap: wrap; gap: 0 28px; font-size: 15px; font-weight: 500; }
.nav__list > li { position: relative; }
.nav__list a { display: block; padding: 12px 0; }
.nav__list .sub-menu, .nav__list .children { display: none; position: absolute; z-index: 5; top: 100%; left: -16px; min-width: 240px; padding: 8px 16px; background: var(--surf); border: 1px solid var(--line); border-radius: 12px; }
.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu,
.nav__list li:hover > .children, .nav__list li:focus-within > .children { display: block; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--accent); }
.nav--footer .nav__list { font-size: 14px; }

/* ---------- Titoli e testi di pagina ---------- */
.page-head { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.page-title { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.05; letter-spacing: -0.03em; }
.page-title--small { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.lead p + p { margin-top: 12px; }
.crumbs { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs [aria-current] { color: var(--ink); }

.hero { padding-top: 72px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 24px; }
.hero__title { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.05; letter-spacing: -0.03em; max-width: 860px; }

.section { padding-bottom: 72px; }
.section--top { padding-top: 72px; padding-bottom: 0; }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section__title { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
.more { display: inline-flex; align-items: center; gap: 6px; padding: 10px 0; font-size: 15px; font-weight: 500; }

/* ---------- Controlli ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on); font: 600 15px/1 var(--font); cursor: pointer; }
.btn:hover { color: var(--on); filter: brightness(0.94); }
.btn--ghost { background: var(--surf); color: var(--ink); border: 1px solid var(--line2); }
.btn--ghost:hover { color: var(--accent); filter: none; }
.field, .prose input[type="text"], .prose input[type="email"], .prose input[type="url"], .prose input[type="password"], .prose textarea, .prose select,
.comments input[type="text"], .comments input[type="email"], .comments input[type="url"], .comments textarea {
	width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surf); color: var(--ink); font: 400 16px/1.4 var(--font);
}
.prose textarea, .comments textarea { padding: 12px 16px; min-height: 140px; }
.field--pill { border-radius: 999px; padding: 0 20px; }
.label, .prose label, .comments label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
form.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
form.search .field { flex: 1 1 260px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line2); border-radius: 999px; background: var(--surf); font-size: 14px; font-weight: 500; }

/* ---------- Schede e righe ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 48px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card__title { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.card__title--lead { font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -0.02em; }
.card__excerpt { font-size: 14px; color: var(--muted); }
.card--lead .card__excerpt { font-size: 16px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); }
.meta__term { color: var(--accent); font-weight: 600; }
.byline { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.byline__avatar, .person__avatar, .blogger__avatar, .profile__avatar { border-radius: 999px; background: var(--ph); }
.byline--large { gap: 12px; font-size: 16px; }
.byline--large span { display: flex; flex-direction: column; line-height: 1.3; }
.byline__date { font-size: 13px; font-weight: 400; color: var(--muted); }

.thumb { display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 10px; background: var(--ph); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
/* Immagine che non si carica (theme.js): tovaglia a quadretti al posto dell'icona rotta. */
.thumb.is-broken img { display: none; }
.thumb.is-broken { background: repeating-linear-gradient(0deg, var(--line) 0 22px, transparent 22px 44px), repeating-linear-gradient(90deg, var(--line) 0 22px, var(--ph) 22px 44px); }
/* Copertina generativa (inc/cover.php): --h tinta principale, --h2 tinta di contrasto. */
.cover { display: block; width: 100%; height: 100%; --h: #D2452B; --h2: #5E8C3A; }
.cover--basilico { --h: #5E8C3A; --h2: #D2452B; }
.cover--zafferano { --h: #E0A21A; --h2: #C2542D; }
.cover--mare { --h: #3B82A8; --h2: #E0A21A; }
.cover--cacao { --h: #8A5A3C; --h2: #D98B9B; }
.cover--melanzana { --h: #7A4E8C; --h2: #5E8C3A; }
.cover__bg { fill: var(--ph); fill: color-mix(in srgb, var(--h) 16%, var(--ph)); }
.cover__a { fill: var(--h); stroke: var(--h); }
.cover__b { fill: var(--h2); stroke: var(--h2); }
.cover__c { fill: var(--muted); fill: color-mix(in srgb, var(--h) 55%, var(--ink)); stroke: var(--muted); stroke: color-mix(in srgb, var(--h) 55%, var(--ink)); }
.cover [class] { stroke-width: 0; }
.cover .cover__line { fill: none; stroke-width: 6; stroke-linecap: round; }
.cover__shadow { fill: var(--ink); opacity: 0.1; }
.cover__plate { fill: var(--surf); }
.cover .cover__rim { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.r43 { aspect-ratio: 4 / 3; }
.r1610 { aspect-ratio: 16 / 10; }
.r169 { aspect-ratio: 16 / 9; }
.thumb--single { border-radius: 14px; }

.featured { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 32px 48px; }
.rows { border-bottom: 1px solid var(--line); }
.rows--narrow { max-width: 860px; }
.row { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.row .thumb { flex: 0 0 clamp(96px, 24%, 200px); align-self: flex-start; }
.row__body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }

/* ---------- Persone ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 24px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 14px; font-weight: 500; }
.profile { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 32px; }
.profile__body { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.letters { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.letters a { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 999px; }
.letters [aria-current] { background: var(--ink); color: var(--bg); }
.bloggers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.blogger { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); }
.blogger__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.blogger__name { font-family: var(--display); font-weight: 600; font-size: 17px; }
.blogger__last { font-size: 13px; color: var(--muted); }

/* ---------- Paginazione ---------- */
.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 500; }
.pagination .page-numbers { display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 999px; }
.pagination .current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pagination .dots { border: 0; color: var(--muted); }

/* ---------- Ricetta e pagine ---------- */
article.single { padding-top: 48px; }
.single__col { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 24px; }
.single__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.prose { font-size: 18px; line-height: 1.65; overflow-wrap: break-word; }
/* I post arrivano dai feed con markup annidato (div, section): le regole valgono a ogni profondità. */
.prose :where(p, ul, ol, dl, figure, blockquote, table, pre) { margin: 0 0 16px; }
.prose :where(h2, h3, h4) { margin: 36px 0 12px; line-height: 1.2; letter-spacing: -0.01em; }
.prose :where(h2) { font-size: 26px; }
.prose :where(h3) { font-size: 21px; margin-top: 28px; }
.prose :where(h4) { font-size: 18px; margin: 0 0 4px; font-family: var(--font); letter-spacing: 0; }
.prose > :first-child, .prose > div > :first-child, .prose section[class*="recipe"] > :first-child, .prose header > :first-child { margin-top: 0; }
.prose :where(p, ul, ol, dl, section):last-child { margin-bottom: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose ol > li + li { margin-top: 16px; }
.prose ol > li::marker { font-weight: 600; }
.prose dl:has(> div) { display: flex; flex-wrap: wrap; gap: 8px; }
.prose dl > div { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.prose dt { font-size: 13px; color: var(--muted); }
.prose dd { margin: 0; font-weight: 600; }
/* Scheda ricetta nei feed che la marcano (class "recipe…"). */
.prose section[class*="recipe"] { margin: 28px 0; padding: 28px; border: 1px solid var(--line2); border-radius: 16px; background: var(--surf); }
.prose img, .prose figure { border-radius: 10px; }
.prose blockquote { margin: 0; padding-left: 16px; border-left: 2px solid var(--line2); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.alignleft { float: left; margin: 0 16px 8px 0; } .alignright { float: right; margin: 0 0 8px 16px; } .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; } .wp-caption-text { font-size: 14px; color: var(--muted); }
.source, .cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 28px; border: 1px solid var(--line2); border-radius: 16px; background: var(--surf); }
.source > div { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); }
.source__title { font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink); }
.cta { padding: 40px; }
.cta > div { display: flex; flex-direction: column; gap: 8px; max-width: 560px; color: var(--muted); }
.cta .section__title { color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.share a { padding: 10px 0; font-weight: 500; color: var(--ink); }
.share a:hover { color: var(--accent); }

/* ---------- Ricerca ---------- */
.results { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.filters { flex: 1 1 220px; max-width: 320px; display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surf); }
.results__list { flex: 999 1 560px; min-width: 0; }

/* ---------- 404 ---------- */
.notfound { padding-top: 96px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 20px; }
.notfound__code { font-family: var(--display); font-weight: 600; font-size: clamp(72px, 12vw, 160px); line-height: 0.9; letter-spacing: -0.05em; color: var(--accent); }

/* ---------- Commenti ---------- */
.comments { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.comments__list { display: flex; flex-direction: column; gap: 20px; }
.comments__list .children { margin: 20px 0 0 24px; display: flex; flex-direction: column; gap: 20px; }
.comment-body { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surf); }
.comment-meta { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.comment-author .avatar { border-radius: 999px; }
.comment-form { display: flex; flex-direction: column; gap: 16px; }
.comment-form .submit { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on); font: 600 15px/1 var(--font); cursor: pointer; }

/* ---------- Widget ---------- */
.widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; margin-top: 72px; font-size: 14px; }
.widget__title { margin-bottom: 12px; font-size: 17px; }
.widget ul { display: flex; flex-direction: column; gap: 4px; }
.widget a { display: inline-block; padding: 4px 0; }
.widget .tagcloud { display: flex; flex-wrap: wrap; gap: 4px 12px; }

/* ---------- Contenuti e widget esistenti ---------- */
body { overflow-wrap: break-word; }
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.prose iframe, .prose video, .prose embed, .prose object { max-width: 100%; }
.prose input[type="submit"], .prose button[type="submit"], .wp-block-search__button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on); font: 600 15px/1 var(--font); cursor: pointer;
}
.prose input[type="checkbox"], .prose input[type="radio"] { width: auto; min-height: 0; }
.prose::after { content: ""; display: table; clear: both; }
.cloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; line-height: 1.3; }
.cloud a { padding: 6px 0; }
.comment-reply-title { font-size: 22px; }
.comment-form p { margin: 0; }
.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 8px; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-content > * + * { margin-top: 12px; }
.reply { margin-top: 8px; font-size: 14px; font-weight: 500; }
.widget { min-width: 0; }
.widget > * + * { margin-top: 12px; }
.widget h2, .widget h3 { font-size: 17px; }
.widget select, .widget input[type="search"], .widget input[type="text"], .wp-block-search__input {
	width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surf); color: var(--ink); font: 400 15px/1.4 var(--font);
}
.wp-block-search__inside-wrapper { display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-search__input { flex: 1 1 160px; width: auto; }
.wp-block-search__label { display: block; margin-bottom: 6px; font-weight: 500; }
.widget .wp-block-tag-cloud, .widget .tagcloud { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.widget img { border-radius: 10px; }
.widgets--footer { padding-top: 40px; border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-top: 40px; padding-bottom: 40px; }
.site-footer__about { display: flex; flex-direction: column; gap: 10px; max-width: 420px; font-size: 14px; color: var(--muted); }
.site-footer__about .brand { color: var(--ink); }

/* Illustrazioni delle raccolte (inc/illustrations.php): --h tinta principale, --h2 tinta di contrasto, come .cover. */
.ill { display: block; width: 100%; height: 100%; --h: #D2452B; --h2: #5E8C3A; }
.ill--basilico { --h: #5E8C3A; --h2: #D2452B; }
.ill--zafferano { --h: #E0A21A; --h2: #C2542D; }
.ill--mare { --h: #3B82A8; --h2: #E0A21A; }
.ill--cacao { --h: #8A5A3C; --h2: #D98B9B; }
.ill--melanzana { --h: #7A4E8C; --h2: #5E8C3A; }
/* Superfici legate al tema e alla palette */
.ill__bg { fill: var(--ph); fill: color-mix(in srgb, var(--h) 16%, var(--ph)); stroke: var(--ph); stroke: color-mix(in srgb, var(--h) 16%, var(--ph)); }
.ill__table { fill: var(--line); fill: color-mix(in srgb, var(--h) 30%, var(--ph)); }
.ill__plate { fill: var(--surf); stroke: var(--surf); }
.ill__shadow { fill: var(--ink); opacity: 0.1; }
.ill__hi { fill: #FFFFFF; stroke: #FFFFFF; opacity: 0.32; }
.ill__v { fill: var(--surf); fill: color-mix(in srgb, var(--surf) 62%, transparent); }
.ill__a { fill: var(--h); stroke: var(--h); }
.ill__b { fill: var(--h2); stroke: var(--h2); }
.ill__c { fill: var(--muted); fill: color-mix(in srgb, var(--h) 62%, #1A1513); stroke: var(--muted); stroke: color-mix(in srgb, var(--h) 62%, #1A1513); }
.ill__d { fill: var(--ph); fill: color-mix(in srgb, var(--h) 30%, var(--surf)); stroke: var(--ph); stroke: color-mix(in srgb, var(--h) 30%, var(--surf)); }
/* Tinte fisse: le stesse delle palette, più i neutri di pane, panna e metallo */
.ill__r { fill: #D2452B; stroke: #D2452B; }
.ill__g { fill: #5E8C3A; stroke: #5E8C3A; }
.ill__u { fill: #B9D48A; stroke: #B9D48A; }
.ill__y { fill: #E0A21A; stroke: #E0A21A; }
.ill__j { fill: #E57C2C; stroke: #E57C2C; }
.ill__w { fill: #8A5A3C; stroke: #8A5A3C; }
.ill__q { fill: #CE9355; stroke: #CE9355; }
.ill__o { fill: #F2DEB4; stroke: #F2DEB4; }
.ill__x { fill: #FBF6EC; stroke: #FBF6EC; }
.ill__s { fill: #3B82A8; stroke: #3B82A8; }
.ill__p { fill: #7A4E8C; stroke: #7A4E8C; }
.ill__k { fill: #D98B9B; stroke: #D98B9B; }
.ill__n { fill: #C2B9B1; stroke: #C2B9B1; }
.ill__m { fill: #7A706A; stroke: #7A706A; }
.ill__i { fill: #2E2622; stroke: #2E2622; }
/* Tratti */
.ill [class] { stroke-width: 0; }
.ill .ill__rim { fill: none; stroke: var(--line2); stroke-width: 1.5; }
.ill .ill__line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.ill .ill__line.ill__t { stroke-width: 3; }
.ill .ill__line.ill__l { stroke-width: 11; }
.ill .ill__line.ill__xl { stroke-width: 16; }

/* ---------- Raccolte ---------- */
.coll-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 32px 56px; align-items: center; padding-top: 48px; padding-bottom: 40px; }
.coll-head--plain { grid-template-columns: minmax(0, 1fr); }
.coll-head__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.coll-head__art, .tile__art, .family__art { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ph); }
.coll-head__art { border-radius: 24px; }
.coll-count { font-size: 14px; font-weight: 500; color: var(--muted); }
.facets { display: flex; flex-direction: column; gap: 20px; padding-bottom: 48px; }
.facets__row { display: flex; flex-direction: column; gap: 10px; }
.facets__label, .family__title { font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chips--sm .chip { min-height: 40px; padding: 0 14px; }
.chip__n { margin-left: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(168px, 44%), 1fr)); gap: 28px 20px; }
.tile { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile__art { margin-bottom: 8px; border-radius: 16px; }
.tile__name { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.tile__n { font-size: 13px; color: var(--muted); }
.family { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 24px; align-items: start; padding: 24px 0; border-top: 1px solid var(--line); }
.family--text { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.family__art { border-radius: 14px; }
.family__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.family__title a { color: inherit; }
.family__title a:hover { color: var(--accent); }
.nav__list .menu-item--more { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav__list .menu-item--more ~ .menu-item--more { margin-top: 0; padding-top: 0; border-top: 0; }
/* ---------- Telefono ---------- */
@media (max-width: 720px) {
	.brand { font-size: 18px; }
	.site-header__in { column-gap: 12px; }
	.icon-btn--menu { display: flex; }
	.icon-btn--search { display: none; }
	.nav__search { display: block; padding: 13px 0; font-size: 17px; font-weight: 500; }
	.nav { order: 3; flex: 1 0 100%; margin-top: 6px; border-top: 1px solid var(--line); }
	/* Senza JavaScript il menu resta aperto; con JavaScript si apre dal pulsante. */
	.js .nav:not(.is-open) { display: none; }
	.nav__list { flex-direction: column; gap: 0; font-size: 17px; }
	.nav__list a { padding: 13px 0; border-bottom: 1px solid var(--line); }
	.nav__list .sub-menu, .nav__list .children,
	.nav__list li:hover > .sub-menu, .nav__list li:focus-within > .sub-menu,
	.nav__list li:hover > .children, .nav__list li:focus-within > .children { display: block; position: static; min-width: 0; padding: 0 0 0 16px; border: 0; border-radius: 0; background: transparent; font-size: 15px; }
	.cta { padding: 28px; }
	.coll-head { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
	.coll-head__art { order: -1; max-width: 260px; border-radius: 18px; }
	.family { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
	.family--text { grid-template-columns: minmax(0, 1fr); }
	.nav__list .menu-item--more { margin-top: 0; padding-top: 0; border-top: 0; }
	.prose section[class*="recipe"] { padding: 20px; }
	.prose { font-size: 17px; }
}

@media (prefers-reduced-motion: no-preference) {
	a, .btn, .icon-btn { transition: color 0.15s, filter 0.15s; }
	.tile__art .ill { transition: transform 0.25s; }
	.tile:hover .tile__art .ill { transform: scale(1.04); }
}
