/*
Theme Name:   NSPEC
Theme URI:    https://nonsolopizzaecinema.com
Description:  Tema editoriale amatoriale "diario personale" per il blog Non solo pizza e cinema — dove il cinema incontra la cucina. Ispirato a un'estetica calda da personal blog, con box dedicato al piatto abbinato ad ogni film.
Author:       Alkemist
Author URI:   https://alkemist.it
Version:      1.0.0
Requires PHP: 8.0
Text Domain:  nspec
*/

:root{
	--nspec-bg: #FBF6EE;
	--nspec-bg-alt: #F3EADC;
	--nspec-ink: #2B2420;
	--nspec-ink-soft: #6E6355;
	--nspec-wine: #8C2F39;
	--nspec-wine-dark: #6E2028;
	--nspec-gold: #C08A2E;
	--nspec-line: #E4D8C4;
	--nspec-card: #FFFFFF;
	--nspec-maxw: 760px;
	--nspec-maxw-wide: 1040px;
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html{ background: var(--nspec-bg); overflow-x: hidden; }
body{ overflow-x: hidden; }

body{
	margin: 0;
	background: var(--nspec-bg);
	color: var(--nspec-ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
}

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

a{ color: var(--nspec-wine); text-decoration: none; }
a:hover{ color: var(--nspec-wine-dark); text-decoration: underline; }

h1, h2, h3, h4{
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nspec-ink);
	margin: 0 0 .5em;
	overflow-wrap: break-word;
}

.nspec-wrap{ max-width: var(--nspec-maxw); margin: 0 auto; padding: 0 24px; }
.nspec-wrap-wide{ max-width: var(--nspec-maxw-wide); margin: 0 auto; padding: 0 24px; }
.nspec-wrap-xwide{ max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* ── Header ─────────────────────────────────────────────────────────── */
.nspec-header{
	text-align: center;
	padding: 52px 24px 28px;
	border-bottom: 1px solid var(--nspec-line);
	background:
		radial-gradient(ellipse at top, rgba(140,47,57,.05), transparent 60%),
		var(--nspec-bg);
}
.nspec-brand{
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: inherit;
	max-width: 100%;
	padding: 0 16px;
}
.nspec-brand:hover{ text-decoration: none; }
.nspec-mark svg{ display: block; }
.nspec-wordmark{ display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 100%; }
.nspec-logo-eyebrow{
	font-family: var(--font-body);
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: var(--nspec-gold);
}
.nspec-logo{
	font-family: var(--font-display);
	font-size: clamp(1.3rem, 6.2vw, 2.5rem);
	font-style: italic;
	font-weight: 700;
	letter-spacing: .005em;
	line-height: 1.15;
	color: var(--nspec-wine);
	max-width: 100%;
	white-space: nowrap;
	text-align: center;
}
.nspec-brand:hover .nspec-logo{ opacity: .88; }
.nspec-logo-amp{
	display: inline-block;
	font-style: normal;
	font-weight: 400;
	font-size: .62em;
	color: var(--nspec-ink-soft);
	vertical-align: .16em;
	margin: 0 .02em;
}
.nspec-tagline{
	margin: 4px 0 0;
	color: var(--nspec-ink-soft);
	font-size: .92rem;
	letter-spacing: .06em;
	text-transform: uppercase;
}
.nspec-header-rule{
	width: 70px;
	height: 1px;
	background: var(--nspec-line);
	margin: 20px auto 0;
	position: relative;
}
.nspec-header-rule::before{
	content: "";
	position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%) rotate(45deg);
	width: 7px; height: 7px;
	background: var(--nspec-gold);
}
.nspec-nav{
	margin-top: 22px;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 28px;
}
.nspec-nav ul{ list-style: none; display: flex; gap: 14px 28px; margin: 0; padding: 0; flex-wrap: wrap; justify-content: center;}
.nspec-nav a{
	color: var(--nspec-ink);
	font-size: .92rem;
	letter-spacing: .04em;
	text-transform: uppercase;
	font-weight: 600;
}
.nspec-nav a:hover{ color: var(--nspec-wine); text-decoration: none; }

/* ── Badge / pill di categoria ──────────────────────────────────────── */
.nspec-badge{
	display: inline-block;
	background: var(--nspec-wine);
	color: #fff;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .07em;
	font-weight: 700;
	padding: 6px 14px;
	border-radius: 20px;
}
.nspec-badge:hover{ color: #fff; text-decoration: none; opacity: .9; }
.nspec-badge-onimg{
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(30, 22, 18, .72);
	backdrop-filter: blur(2px);
}

.nspec-btn{
	display: inline-block;
	margin-top: 6px;
	background: var(--nspec-gold);
	color: #241d15;
	text-decoration: none;
	padding: 13px 28px;
	border-radius: 30px;
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .01em;
}
.nspec-btn:hover{ background: #a97a29; color: #241d15; text-decoration: none; }

/* ── Hero (homepage) ────────────────────────────────────────────────── */
.nspec-hero{
	position: relative;
	max-width: var(--nspec-maxw-wide);
	margin: 34px auto 56px;
	padding: 0 24px;
}
.nspec-hero-media{
	display: block;
	position: relative;
	aspect-ratio: 16/8.5;
	border-radius: 18px;
	overflow: hidden;
	background: var(--nspec-bg-alt);
}
.nspec-hero-media img{ width: 100%; height: 100%; object-fit: cover; }
.nspec-hero-scrim{
	position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(20,14,10,.88) 0%, rgba(20,14,10,.35) 45%, rgba(20,14,10,0) 75%);
}
.nspec-hero-copy{
	position: absolute;
	left: 24px; right: 24px; bottom: 0;
	max-width: 640px;
	padding: 0 36px 36px;
	color: #fff;
}
.nspec-hero-copy .nspec-badge{ margin-bottom: 14px; }
.nspec-hero-copy h1{ font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin-bottom: 12px; }
.nspec-hero-copy h1 a{ color: #fff; }
.nspec-hero-copy h1 a:hover{ text-decoration: none; opacity: .9; }
.nspec-hero-excerpt{ color: #ECE3D6; margin: 0 0 14px; font-size: 1rem; display: none; }
.nspec-hero-meta{ color: #D8C9B4; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; margin: 0 0 18px; }
@media (min-width: 760px){ .nspec-hero-excerpt{ display: block; } }

/* ── Row di 3 mini card (secondari sotto l'hero) ───────────────────── */
.nspec-row-3{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	margin-bottom: 56px;
}
.nspec-mini-thumb{
	position: relative;
	display: block;
	aspect-ratio: 4/3;
	border-radius: 12px;
	overflow: hidden;
	background: var(--nspec-bg-alt);
	margin-bottom: 12px;
}
.nspec-mini-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nspec-mini-card:hover .nspec-mini-thumb img{ transform: scale(1.06); }
.nspec-mini-card h3{ font-size: 1.08rem; margin-bottom: 4px; }
.nspec-mini-card h3 a{ color: var(--nspec-ink); }
.nspec-mini-card h3 a:hover{ color: var(--nspec-wine); text-decoration: none; }
.nspec-mini-meta{ font-size: .78rem; color: var(--nspec-ink-soft); text-transform: uppercase; letter-spacing: .04em; margin: 0; }

/* ── Fascia manifesto ("di cosa parla il blog") ────────────────────── */
.nspec-manifesto-wrap{
	background: var(--nspec-wine);
	background-image: radial-gradient(ellipse at 20% 20%, rgba(255,255,255,.06), transparent 55%);
	margin: 0 0 56px;
	padding: 58px 24px;
}
.nspec-manifesto{ max-width: 620px; margin: 0 auto; text-align: center; }
.nspec-manifesto-mark{ margin-bottom: 18px; }
.nspec-manifesto-quote{
	font-family: var(--font-display);
	font-style: italic;
	font-weight: 700;
	font-size: clamp(1.3rem, 2.6vw, 1.7rem);
	line-height: 1.45;
	color: #FBF6EE;
	text-wrap: balance;
	margin: 0 0 22px;
}
.nspec-manifesto-link{
	display: inline-block;
	color: var(--nspec-gold);
	font-weight: 700;
	font-size: .92rem;
	letter-spacing: .02em;
	border-bottom: 1px solid rgba(192,138,46,.5);
	padding-bottom: 2px;
}
.nspec-manifesto-link:hover{ color: #E0B368; border-color: #E0B368; text-decoration: none; }

/* ── Striscia categorie ─────────────────────────────────────────────── */
.nspec-categorie-strip{ text-align: center; padding: 12px 0 50px; border-bottom: 1px solid var(--nspec-line); margin-bottom: 50px; }
.nspec-categorie-strip h2{ font-size: 1.3rem; margin-bottom: 20px; }
.nspec-categorie-strip .nspec-pills{ justify-content: center; margin: 0; }

.nspec-section-title{ font-size: 1.6rem; margin-bottom: 26px; }

/* ── Griglia magazine ───────────────────────────────────────────────── */
.nspec-grid-section{ padding-bottom: 60px; }
.nspec-latest-section{ padding-bottom: 56px; }
.nspec-grid{
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px 26px;
}
.nspec-grid-3{ grid-template-columns: repeat(3, 1fr); }
.nspec-gcard{
	background: var(--nspec-card);
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--nspec-line);
	transition: transform .25s ease, box-shadow .25s ease;
}
.nspec-gcard:hover{ transform: translateY(-4px); box-shadow: 0 14px 28px rgba(43,36,32,.1); }
.nspec-gcard-thumb{ position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--nspec-bg-alt); }
.nspec-gcard-thumb img{ width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nspec-gcard:hover .nspec-gcard-thumb img{ transform: scale(1.06); }
.nspec-gcard-body{ padding: 18px 20px 22px; }
.nspec-gcard-body h3{ font-size: 1.12rem; margin-bottom: 6px; }
.nspec-gcard-body h3 a{ color: var(--nspec-ink); }
.nspec-gcard-body h3 a:hover{ color: var(--nspec-wine); text-decoration: none; }
.nspec-gcard-body p{ color: var(--nspec-ink-soft); font-size: .92rem; margin: 0 0 10px; }

.nspec-see-all{ text-align: center; margin-top: 40px; font-weight: 700; }

.nspec-related{ margin: 50px 0 0; }

@media (max-width: 900px){
	.nspec-row-3, .nspec-grid, .nspec-grid-3{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
	.nspec-row-3, .nspec-grid, .nspec-grid-3{ grid-template-columns: 1fr; }
	.nspec-hero-copy{ padding: 0 20px 24px; left: 0; right: 0; }
	.nspec-hero-media{ aspect-ratio: 4/5; border-radius: 0; }
	.nspec-hero{ padding: 0; margin-top: 0; }
}

/* ── Post list (home / archive) ────────────────────────────────────── */
.nspec-feed{ padding: 48px 0 60px; }
.nspec-card{
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 26px;
	padding: 26px 0;
	border-bottom: 1px solid var(--nspec-line);
}
.nspec-card:first-child{ padding-top: 0; }
.nspec-card-thumb{
	border-radius: 10px;
	overflow: hidden;
	background: var(--nspec-bg-alt);
	aspect-ratio: 4/3;
}
.nspec-card-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.nspec-card-meta{
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--nspec-ink-soft);
	margin-bottom: 6px;
}
.nspec-card-meta .cat{ color: var(--nspec-wine); font-weight: 700; }
.nspec-card h2{ font-size: 1.5rem; margin-bottom: 8px; }
.nspec-card h2 a{ color: var(--nspec-ink); }
.nspec-card h2 a:hover{ color: var(--nspec-wine); text-decoration: none; }
.nspec-card p.excerpt{ color: var(--nspec-ink-soft); margin: 0; }
.nspec-card .nspec-dish-hint{
	display: inline-block;
	margin-top: 10px;
	font-size: .82rem;
	color: var(--nspec-gold);
	font-weight: 700;
}

@media (max-width: 620px){
	.nspec-card{ grid-template-columns: 1fr; }
}

/* ── Single post ────────────────────────────────────────────────────── */
.nspec-single{ padding: 48px 0 70px; }
.nspec-single-meta{
	text-align: center;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--nspec-ink-soft);
	margin-bottom: 12px;
}
.nspec-single-meta a{ color: var(--nspec-wine); }
.nspec-single-title{
	text-align: center;
	font-size: clamp(1.7rem, 6vw, 2.4rem);
	margin-bottom: 10px;
}
.nspec-byline{
	text-align: center;
	font-family: var(--font-display);
	font-style: italic;
	color: var(--nspec-ink-soft);
	font-size: 1rem;
	margin: 0 0 28px;
}
.nspec-byline span{ color: var(--nspec-gold); font-weight: 700; }
.nspec-single-thumb{ margin: 0 0 34px; border-radius: 12px; overflow: hidden; }
.nspec-content{ font-size: 1.05rem; overflow-wrap: anywhere; }
.nspec-content p,
.nspec-content > div{ margin: 0 0 1.3em; }
.nspec-content img{ border-radius: 10px; margin: 8px auto; }
.nspec-content h2, .nspec-content h3{ margin-top: 1.6em; }
.nspec-content blockquote{
	margin: 1.6em 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--nspec-wine);
	font-style: italic;
	color: var(--nspec-ink-soft);
}
.nspec-content iframe{ max-width: 100%; width: 100%; aspect-ratio: 16/9; height: auto; border-radius: 10px; }
.nspec-content table{ max-width: 100%; }
.nspec-content .tr-caption-container{ text-align:center; margin: 1.6em auto; max-width: 100%; }
.nspec-content .tr-caption{ font-size: .8rem; color: var(--nspec-ink-soft); margin-top:6px; }

/* ── Piatto abbinato box ────────────────────────────────────────────── */
.nspec-piatto-box{
	margin: 44px 0;
	background: var(--nspec-card);
	border: 1px solid var(--nspec-line);
	border-radius: 14px;
	padding: 28px;
	position: relative;
}
.nspec-piatto-eyebrow{
	position: absolute;
	top: -12px;
	left: 24px;
	background: var(--nspec-wine);
	color: #fff;
	font-size: .72rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 20px;
	margin: 0;
}
.nspec-piatto-inner{ display: flex; gap: 22px; align-items: flex-start; margin-top: 6px; }
.nspec-piatto-foto{ flex: 0 0 140px; border-radius: 10px; overflow: hidden; }
.nspec-piatto-nome{ font-size: 1.3rem; margin-bottom: 8px; color: var(--nspec-wine-dark); }
.nspec-piatto-ricetta{ color: var(--nspec-ink-soft); font-size: .95rem; }
@media (max-width: 560px){
	.nspec-piatto-inner{ flex-direction: column; }
	.nspec-piatto-foto{ flex-basis: auto; width: 100%; max-width: 220px; }
}

/* ── Category pills / ricette archive ──────────────────────────────── */
.nspec-pills{ display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.nspec-pill{
	background: var(--nspec-card);
	border: 1px solid var(--nspec-line);
	border-radius: 30px;
	padding: 10px 20px;
	font-size: .92rem;
	font-weight: 700;
	color: var(--nspec-wine-dark);
}
.nspec-pill:hover{ background: var(--nspec-wine); color: #fff; text-decoration: none; border-color: var(--nspec-wine); }
.nspec-pill .count{ color: var(--nspec-ink-soft); font-weight: 400; margin-left: 4px; }
.nspec-pill:hover .count{ color: #f3d9db; }

/* ── Barra di ricerca catalogo ──────────────────────────────────────── */
.nspec-catalog-search{ max-width: 460px; margin: 0 auto 34px; }
.nspec-catalog-search input{
	width: 100%;
	padding: 13px 20px;
	border: 1px solid var(--nspec-line);
	border-radius: 30px;
	background: var(--nspec-card);
	font-family: var(--font-body);
	font-size: 1rem;
	color: var(--nspec-ink);
}
.nspec-catalog-search input:focus{ outline: 2px solid var(--nspec-gold); outline-offset: 1px; }
.nspec-catalog-search input::-webkit-search-cancel-button{ cursor: pointer; }

/* ── Catalogo "Le Ricette" / "Tutti i Film" ─────────────────────────── */
.nspec-catalog-section{ margin: 20px 0 56px; }
.nspec-catalog-total{ text-align: center; color: var(--nspec-ink-soft); margin: -10px 0 30px; }
.nspec-catalog-empty{ text-align: center; color: var(--nspec-ink-soft); padding: 30px 0; }

/* Griglia fissa a 5 colonne (una per portata), tutta la larghezza desktop */
.nspec-catalog-grid-fixed{
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 0 32px;
	align-items: start;
}
@media (max-width: 1080px){ .nspec-catalog-grid-fixed{ grid-template-columns: repeat(3, 1fr); gap: 30px 32px; } }
@media (max-width: 680px){ .nspec-catalog-grid-fixed{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px){ .nspec-catalog-grid-fixed{ grid-template-columns: 1fr; } }

/* Elenco A-Z: colonne fluide, va bene che si bilancino tra loro */
.nspec-catalog-columns{
	column-width: 220px;
	column-gap: 40px;
}
.nspec-catalog-col{
	break-inside: avoid;
	margin-bottom: 30px;
}
.nspec-catalog-col h3{
	font-size: 1.1rem;
	color: var(--nspec-wine-dark);
	border-bottom: 2px solid var(--nspec-gold);
	padding-bottom: 6px;
	margin-bottom: 10px;
}
.nspec-catalog-col h3 .count{ color: var(--nspec-ink-soft); font-weight: 400; font-size: .85rem; }
.nspec-catalog-letter{
	font-family: var(--font-display);
	font-style: italic;
	color: var(--nspec-gold) !important;
	border-bottom: none !important;
}
.nspec-catalog-list{ list-style: none; margin: 0; padding: 0; }
.nspec-catalog-list li{ margin-bottom: 7px; line-height: 1.4; font-size: .95rem; }
.nspec-catalog-list a{ color: var(--nspec-ink); }
.nspec-catalog-list a:hover{ color: var(--nspec-wine); }
.nspec-catalog-meta{ display: block; color: var(--nspec-ink-soft); font-size: .8rem; }
.nspec-film-badge{
	display: block;
	color: var(--nspec-gold);
	font-size: .74rem;
	font-style: italic;
	margin-top: 1px;
}
.nspec-film-badge::before{ content: "🎬 "; }

/* ── Page content ───────────────────────────────────────────────────── */
.nspec-page{ padding: 48px 0 70px; }
.nspec-page-title{ text-align: center; font-size: 2.2rem; margin-bottom: 30px; }

/* ── Pagination ─────────────────────────────────────────────────────── */
.nspec-pagination{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 20px;
	padding-top: 24px;
	border-top: 1px solid var(--nspec-line);
	font-weight: 700;
}
.nspec-pagination > div{ flex: 1 1 260px; min-width: 0; overflow-wrap: break-word; }
.nspec-pagination > div:last-child{ text-align: right; }
@media (max-width: 480px){
	.nspec-pagination > div:last-child{ text-align: left; }
}

/* ── Comments ───────────────────────────────────────────────────────── */
.nspec-comments{ margin-top: 60px; padding-top: 34px; border-top: 1px solid var(--nspec-line); }
.nspec-comments-title{ font-size: 1.5rem; margin-bottom: 24px; }
ol.comment-list{ list-style: none; margin: 0; padding: 0; }
ol.comment-list ol.children{ list-style: none; padding-left: 34px; margin: 0; }
.comment-body{ padding: 18px 0; border-bottom: 1px solid var(--nspec-line); }
.comment-author{ font-weight: 700; font-family: var(--font-display); color: var(--nspec-wine-dark); }
.comment-meta{ font-size: .78rem; color: var(--nspec-ink-soft); margin-bottom: 8px; }
.comment-content p{ margin: 0 0 .8em; }
.comment-reply-link{ font-size: .78rem; font-weight: 700; text-transform: uppercase; }
#respond{ margin-top: 26px; }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea{
	width: 100%;
	max-width: 480px;
	padding: 10px 12px;
	border: 1px solid var(--nspec-line);
	border-radius: 8px;
	font-family: var(--font-body);
	background: #fff;
}
.comment-form p{ margin: 0 0 14px; }
.comment-form .form-submit input{
	width: auto;
	background: var(--nspec-wine);
	color: #fff;
	border: none;
	padding: 11px 24px;
	border-radius: 30px;
	font-weight: 700;
	cursor: pointer;
}
.comment-form .form-submit input:hover{ background: var(--nspec-wine-dark); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.nspec-footer{
	border-top: 1px solid var(--nspec-line);
	padding: 34px 24px;
	text-align: center;
	color: var(--nspec-ink-soft);
	font-size: .85rem;
}
.nspec-footer a{ color: var(--nspec-ink-soft); text-decoration: underline; }
