/* Pizza Più – stile principale (mobile-first) */
:root {
	--rosso: #b3261e;
	--rosso-scuro: #8c1c16;
	--pomodoro: #e0452f;
	--farina: #fbf6ee;
	--crema: #f3e8d6;
	--crosta: #6b3e1f;
	--brace: #f2a541;
	--basilico: #2f6b3a;
	--carbone: #1d1a17;
	--testo: #2b2622;
	--muted: #6f655c;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(60, 30, 10, .12);
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-title: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--farina); color: var(--testo); font: 17px/1.65 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rosso); text-underline-offset: 3px; }
a:hover { color: var(--rosso-scuro); }
h1, h2, h3 { font-family: var(--font-title); color: var(--carbone); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 7vw, 4rem); }
h2 { font-size: clamp(1.7rem, 5vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.pp-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.pp-wrap--narrow { max-width: 760px; }
.pp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pp-skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.pp-skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brace); outline-offset: 2px; }

/* Pulsanti */
.pp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--rosso); background: var(--rosso); color: #fff !important; font-weight: 700; text-decoration: none; line-height: 1.1; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; cursor: pointer; font-size: 1rem; text-align: center; }
.pp-btn:hover { background: var(--rosso-scuro); border-color: var(--rosso-scuro); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(179, 38, 30, .3); }
.pp-btn--order::before { content: ""; width: 1.1em; height: 1.1em; background: url("../img/pizza-icon.svg") center/contain no-repeat; flex: none; }
.pp-btn--xl { font-size: 1.15rem; padding: 1em 1.8em; }
.pp-btn--sm { font-size: .92rem; padding: .6em 1.1em; }
.pp-btn--ghost { background: transparent; color: var(--rosso) !important; }
.pp-btn--ghost:hover { background: var(--rosso); color: #fff !important; }
.pp-btn--wa { background: #1f8f4e; border-color: #1f8f4e; }
.pp-btn--wa:hover { background: #17703c; border-color: #17703c; }
.pp-link { font-weight: 700; text-decoration: none; }
.pp-link:hover { text-decoration: underline; }
.pp-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--rosso); margin-bottom: .6em; }
.pp-kicker a { text-decoration: none; }
.pp-meta { color: var(--muted); font-size: .88rem; margin-bottom: .4em; }

/* Header */
.pp-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 246, 238, .92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid rgba(107, 62, 31, .1); }
.admin-bar .pp-header { top: 46px; }
@media (min-width: 783px) { .admin-bar .pp-header { top: 32px; } }
.pp-header__in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.pp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--carbone); }
.pp-brand__img { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; }
.pp-brand__txt { font-family: var(--font-title); font-weight: 700; }
.pp-brand__name { font-family: var(--font-title); font-weight: 700; font-size: 1.25rem; line-height: 1; display: flex; flex-direction: column; }
.pp-brand__name small { font-family: var(--font); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--rosso); margin-top: 3px; }
.pp-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; border: 0; background: var(--crema); border-radius: 12px; padding: 0 12px; cursor: pointer; }
.pp-burger span:not(.pp-sr) { height: 2px; background: var(--carbone); border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.pp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pp-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--farina); border-bottom: 1px solid rgba(107, 62, 31, .12); box-shadow: var(--shadow); display: none; }
.pp-nav.is-open { display: block; }
.pp-nav__list { list-style: none; margin: 0; padding: 8px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.pp-nav__list a { display: block; padding: 12px 6px; color: var(--carbone); text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.pp-nav__list a.pp-btn { color: #fff; margin-top: 8px; padding: .85em 1.4em; }
.pp-nav__list .current-menu-item > a:not(.pp-btn) { color: var(--rosso); }
@media (min-width: 900px) {
	.pp-burger { display: none; }
	.pp-nav { position: static; display: block; background: none; border: 0; box-shadow: none; }
	.pp-nav__list { flex-direction: row; align-items: center; padding: 0; gap: 6px; }
	.pp-nav__list a { padding: 8px 14px; font-size: .98rem; border-radius: 999px; }
	.pp-nav__list a:not(.pp-btn):hover { background: var(--crema); }
	.pp-nav__list a.pp-btn { margin: 0 0 0 8px; padding: .6em 1.1em; }
}

/* Hero */
.pp-hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--carbone); }
.pp-hero__media { position: absolute; inset: 0; }
.pp-hero__media img, .pp-hero__media .pp-ph { width: 100%; height: 100%; object-fit: cover; animation: pp-zoom 18s ease-out both; }
.pp-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 26, 23, .15) 0%, rgba(29, 26, 23, .45) 45%, rgba(29, 26, 23, .9) 100%); }
.pp-hero__txt { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 56px; }
.pp-hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .35); }
.pp-hero h1 em { color: var(--brace); font-style: italic; }
.pp-hero .pp-kicker { color: var(--brace); }
.pp-hero__lead { font-size: 1.12rem; max-width: 46ch; color: #f5ede2; }
.pp-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pp-hero .pp-btn--ghost { border-color: #fff; color: #fff !important; }
.pp-hero .pp-btn--ghost:hover { background: #fff; color: var(--rosso) !important; }
@keyframes pp-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }

/* Sezioni */
.pp-sec { padding: 64px 0; }
.pp-sec--tight { padding: 32px 0 64px; }
.pp-sec__head { max-width: 720px; margin-bottom: 32px; }
.pp-sec__head p:last-child { color: var(--muted); }
@media (min-width: 900px) { .pp-sec { padding: 96px 0; } }

/* Card blog */
.pp-blogfeat { background: #fff; }
.pp-blogfeat__grid, .pp-related__grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pp-blogfeat__grid, .pp-related__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
	.pp-blogfeat__grid { grid-template-columns: repeat(4, 1fr); }
	.pp-card--big { grid-column: span 2; grid-row: span 2; }
	.pp-related__grid { grid-template-columns: repeat(3, 1fr); }
	.pp-bloglist { grid-template-columns: repeat(3, 1fr); }
	.pp-bloglist .pp-card--big { grid-column: span 3; grid-row: auto; display: grid; grid-template-columns: 1.3fr 1fr; }
	.pp-bloglist .pp-card--big .pp-card__img { aspect-ratio: auto; min-height: 100%; }
}
.pp-card { background: var(--farina); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(107, 62, 31, .08); transition: transform .25s ease, box-shadow .25s ease; }
.pp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pp-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--crema); }
.pp-card__img img, .pp-card__img .pp-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pp-card:hover .pp-card__img img { transform: scale(1.05); }
.pp-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.pp-card__title { font-size: 1.2rem; margin-bottom: .4em; }
.pp-card__title a { color: var(--carbone); text-decoration: none; }
.pp-card__title a:hover { color: var(--rosso); }
.pp-card__excerpt { color: var(--muted); font-size: .95rem; flex: 1; }
.pp-card--big .pp-card__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.pp-card--big .pp-card__img { aspect-ratio: 16 / 10; }

/* Placeholder con logo */
.pp-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 200px; height: 100%; background: radial-gradient(circle at 30% 20%, #fff7ea, var(--crema)); color: var(--crosta); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.pp-ph__img { width: 90px !important; height: 90px !important; object-fit: contain !important; border-radius: 50%; opacity: .9; }
.pp-ph__txt { font-family: var(--font-title); font-size: 1.6rem; text-transform: none; letter-spacing: 0; }

/* Prodotti */
.pp-prod { background: linear-gradient(180deg, var(--farina), var(--crema)); }
.pp-prod__grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .pp-prod__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .pp-prod__grid { grid-template-columns: repeat(3, 1fr); } }
.pp-prod__card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 rgba(107, 62, 31, .06); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.pp-prod__card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pp-prod__img { aspect-ratio: 4 / 3; overflow: hidden; }
.pp-prod__img img, .pp-prod__img .pp-ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.pp-prod__card:hover .pp-prod__img img { transform: scale(1.06); }
.pp-prod__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.pp-prod__body p { color: var(--muted); flex: 1; }

/* Chi siamo */
.pp-about { background: var(--carbone); color: #efe6d8; position: relative; overflow: hidden; }
.pp-about::before { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 165, 65, .35), transparent 70%); }
.pp-about h2 { color: #fff; }
.pp-about .pp-kicker { color: var(--brace); }
.pp-about__in { display: grid; gap: 32px; position: relative; }
.pp-about__badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pp-badge { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius); padding: 18px 10px; text-align: center; }
.pp-badge strong { display: block; font-family: var(--font-title); font-size: 1.3rem; color: var(--brace); }
.pp-badge span { font-size: .85rem; }
@media (min-width: 900px) { .pp-about__in { grid-template-columns: 1.4fr 1fr; align-items: center; } .pp-about__badges { grid-template-columns: 1fr; } }

/* Dove siamo */
.pp-where__grid { display: grid; gap: 28px; }
.pp-where__addr { font-size: 1.2rem; font-weight: 700; }
.pp-where h3 { margin-top: 1.2em; font-size: 1.1rem; }
.pp-where__contacts { display: flex; flex-wrap: wrap; gap: 10px; }
.pp-map { border-radius: var(--radius); overflow: hidden; min-height: 320px; background: var(--crema); position: relative; }
.pp-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp-map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; gap: 4px; background: repeating-linear-gradient(45deg, var(--crema), var(--crema) 14px, #efe0c8 14px, #efe0c8 28px); }
.pp-map__consent p { max-width: 34ch; background: rgba(251, 246, 238, .92); padding: 4px 10px; border-radius: 8px; }
.pp-map__consent .pp-btn { margin: 10px 0 6px; }
@media (min-width: 900px) { .pp-where__grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } .pp-map { min-height: 440px; } }

/* CTA finale */
.pp-final { background: var(--rosso) url("../img/pattern.svg") center/220px repeat; color: #fff; text-align: center; }
.pp-final h2 { color: #fff; }
.pp-final .pp-btn { background: #fff; border-color: #fff; color: var(--rosso) !important; }
.pp-final .pp-btn:hover { background: var(--carbone); border-color: var(--carbone); color: #fff !important; }
.pp-final .pp-btn--order::before { filter: brightness(0); opacity: .75; }
.pp-final .pp-btn--order:hover::before { filter: none; opacity: 1; }

/* Pagine interne e blog */
.pp-pagehead { padding: 56px 0 28px; background: linear-gradient(180deg, var(--crema), var(--farina)); }
.pp-pagehead__desc { color: var(--muted); }
.pp-blogtools { display: flex; flex-direction: column; gap: 16px; margin-top: 20px; }
.pp-search { display: flex; gap: 8px; max-width: 520px; }
.pp-search input[type=search] { flex: 1; min-width: 0; padding: .8em 1.1em; border-radius: 999px; border: 2px solid rgba(107, 62, 31, .2); background: #fff; font: inherit; }
.pp-search input[type=search]:focus { border-color: var(--rosso); outline: none; }
.pp-search button { padding: .8em 1.3em; border-radius: 999px; border: 0; background: var(--carbone); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.pp-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.pp-chip { flex: none; padding: .45em 1em; border-radius: 999px; background: #fff; border: 1px solid rgba(107, 62, 31, .18); color: var(--testo); text-decoration: none; font-size: .9rem; font-weight: 600; }
.pp-chip:hover, .pp-chip.is-active { background: var(--rosso); border-color: var(--rosso); color: #fff; }
.pp-pagination { margin-top: 40px; }
.pp-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pp-pagination .page-numbers { padding: .5em .95em; border-radius: 999px; background: #fff; text-decoration: none; font-weight: 700; }
.pp-pagination .current { background: var(--rosso); color: #fff; }
.pp-empty { font-size: 1.1rem; color: var(--muted); }

.pp-article__head { padding: 48px 0 20px; }
.pp-article__cover { margin: 0 auto 32px; }
.pp-article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.pp-prose { font-size: 1.08rem; }
.pp-prose img { border-radius: 12px; margin: 1.2em auto; }
.pp-prose h2, .pp-prose h3 { margin-top: 1.6em; }
.pp-prose .wp-caption { max-width: 100%; margin: 1.4em auto; }
.pp-prose .wp-caption-text { font-size: .88rem; color: var(--muted); text-align: center; }
.pp-prose iframe, .pp-prose video { max-width: 100%; }
.pp-prose blockquote { margin: 1.5em 0; padding: .5em 1.2em; border-left: 4px solid var(--rosso); background: #fff; border-radius: 0 12px 12px 0; }
.pp-prose ul, .pp-prose ol { padding-left: 1.3em; }
.pp-prose .aligncenter { margin-left: auto; margin-right: auto; }
@media (min-width: 640px) { .pp-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; } .pp-prose .alignright { float: right; margin: .3em 0 1em 1.4em; } }
.pp-prose::after { content: ""; display: table; clear: both; }
.pp-article__foot { margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(107, 62, 31, .15); display: grid; gap: 24px; }
.pp-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pp-share span { font-weight: 700; margin-right: 4px; }
.pp-share a { padding: .4em .95em; border-radius: 999px; background: #fff; border: 1px solid rgba(107, 62, 31, .18); text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--testo); }
.pp-share a:hover { background: var(--carbone); color: #fff; }
.pp-article__cta { background: var(--crema); border-radius: var(--radius); padding: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pp-article__cta p { margin: 0; font-family: var(--font-title); font-size: 1.4rem; color: var(--carbone); }
.pp-related { background: #fff; }

/* Footer */
.pp-footer { background: var(--carbone); color: #d9cfc1; padding: 56px 0 110px; }
.pp-footer a { color: #fff; }
.pp-footer h3 { color: #fff; font-size: 1.05rem; font-family: var(--font); text-transform: uppercase; letter-spacing: .12em; }
.pp-footer__grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .pp-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .pp-footer { padding-bottom: 40px; } }
.pp-brand--footer { color: #fff; margin-bottom: 14px; }
.pp-footer__claim { max-width: 32ch; }
.pp-social { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pp-footer__legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; display: flex; flex-direction: column; gap: 4px; }
.pp-footer__legal p { margin: 0; }
@media (min-width: 800px) { .pp-footer__legal { flex-direction: row; justify-content: space-between; } }

/* Pulsante "Ordina" fisso su cellulare */
.pp-sticky-order { position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 15px; border-radius: 999px; background: var(--rosso); color: #fff; font-weight: 800; font-size: 1.05rem; text-decoration: none; box-shadow: 0 10px 30px rgba(140, 28, 22, .45); transform: translateY(0); transition: transform .3s ease; padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px)); }
.pp-sticky-order:hover { color: #fff; background: var(--rosso-scuro); }
.pp-sticky-order.is-hidden { transform: translateY(160%); }
@media (min-width: 900px) { .pp-sticky-order { display: none; } }

/* Animazioni leggere allo scroll */
.pp-js .pp-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.pp-js .pp-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.pp-js .pp-reveal { opacity: 1; transform: none; }
}

/* Cursore a tema: solo computer con mouse e senza "riduci animazioni".
   Se l'immagine non carica, il browser usa il cursore normale (auto / pointer). */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	html.pp-cursor, html.pp-cursor body { cursor: url("../img/cursor-pizza.svg") 4 4, auto; }
	html.pp-cursor a, html.pp-cursor button, html.pp-cursor [role="button"], html.pp-cursor label[for], html.pp-cursor select, html.pp-cursor summary, html.pp-cursor input[type=submit], html.pp-cursor input[type=checkbox], html.pp-cursor input[type=radio], html.pp-cursor .pp-btn { cursor: url("../img/cursor-pala.svg") 3 3, pointer; }
	html.pp-cursor input[type=search], html.pp-cursor input[type=text], html.pp-cursor input[type=email], html.pp-cursor textarea { cursor: text; }
}
