/*
Theme Name: Napoli Vicina
Description: Tema su misura per la guida delle attività di Napoli. Richiede il plugin Napoli Directory.
Version: 0.3.3
Requires at least: 6.4
Requires PHP: 8.1
Author: ACE Media
Text Domain: napoli-vicina
*/

/* ---------------------------------------------------------------------------
   Token
--------------------------------------------------------------------------- */
:root {
	--bg: #faf7f2;
	--surface: #ffffff;
	--ink: #1c2230;
	--muted: #5a6273;
	--line: #e6dfd3;
	--brand: #0d4f7c;      /* blu del golfo */
	--brand-2: #0a3f63;
	--brand-soft: #e6f0f7;
	--accent: #e9a23b;     /* giallo tufo */
	--accent-ink: #3a2500;
	--accent-soft: #fdf1dd;
	--ok: #1d7a4c;
	--ok-soft: #e3f4ea;
	--danger: #b42318;
	--danger-soft: #fdecea;
	--radius: 14px;
	--radius-s: 9px;
	--shadow: 0 1px 2px rgba(28, 34, 48, .05), 0 6px 20px rgba(28, 34, 48, .06);
	--wrap: 1160px;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 16px/1.6 var(--sans);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.nv-skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.nv-skip:focus { left: 8px; }

.nv-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.nv-narrow { max-width: 760px; }
.nv-icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }

/* ---------------------------------------------------------------------------
   Pulsanti
--------------------------------------------------------------------------- */
.nv-btn, .nd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .45em;
	padding: .7em 1.15em; border-radius: 999px; border: 1.5px solid var(--brand);
	background: var(--surface); color: var(--brand); font: 600 .95rem/1.2 var(--sans);
	text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
	white-space: nowrap;
}
.nv-btn:hover, .nd-btn:hover { background: var(--brand-soft); color: var(--brand-2); }
.nv-btn--primary, .nd-btn--primary { background: var(--brand); color: #fff; }
.nv-btn--primary:hover, .nd-btn--primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.nv-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.nv-btn--accent:hover { background: #dc9126; border-color: #dc9126; color: var(--accent-ink); }
.nv-btn--ghost { border-color: var(--line); color: var(--ink); }
.nv-btn--ghost:hover { border-color: var(--brand); background: var(--surface); color: var(--brand); }
.nv-btn--small { padding: .5em .9em; font-size: .88rem; }

/* ---------------------------------------------------------------------------
   Header / footer
--------------------------------------------------------------------------- */
.nv-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.admin-bar .nv-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nv-header { top: 0; position: relative; } }
.nv-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.nv-logo { display: inline-flex; align-items: center; gap: .45em; text-decoration: none; color: var(--ink); margin: 0; }
.nv-logo__mark { display: block; width: 40px; height: 40px; flex: none; }
.nv-logo__name { font: 700 1.35rem/1 var(--serif); letter-spacing: -.01em; color: var(--brand-2); }
.nv-logo__name em { font-style: italic; font-weight: 600; color: #c47f16; }
.nv-footer .nv-logo__name { color: #fff; }
.nv-footer .nv-logo__name em { color: var(--accent); }
.nv-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nv-nav > a:not(.nv-btn) { color: var(--ink); text-decoration: none; font-weight: 500; }
.nv-nav > a:not(.nv-btn):hover { color: var(--brand); }
@media (max-width: 640px) {
	.nv-nav { gap: 12px; width: 100%; justify-content: space-between; flex-wrap: nowrap; font-size: .9rem; }
	.nv-nav > a:not(.nv-btn) { white-space: nowrap; }
	.nv-nav .nv-btn { padding: .45em .8em; font-size: .82rem; }
	.nv-hide-sm { display: none; }
}

.nv-footer { background: var(--ink); color: #cfd5df; margin-top: 64px; padding: 40px 0 24px; }
.nv-footer a { color: #fff; }
.nv-footer__inner { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.nv-footer .nv-logo { color: #fff; margin-bottom: 12px; }
.nv-footer__disclosure { font-size: .92rem; color: #aab3c2; }
.nv-footer__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nv-footer__links a { text-decoration: none; }
.nv-footer__links a:hover { text-decoration: underline; }
.nv-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 28px; padding-top: 16px; color: #8f99a9; }
@media (max-width: 720px) { .nv-footer__inner { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Home
--------------------------------------------------------------------------- */
.nv-hero {
	/* Golfo di Napoli col Vesuvio: velatura più scura a sinistra, dove sta il testo. */
	background:
		linear-gradient(90deg, rgba(8, 36, 60, .88) 0%, rgba(8, 36, 60, .66) 45%, rgba(8, 36, 60, .18) 100%),
		url("assets/img/hero-napoli-1800.jpg") center 62% / cover no-repeat,
		var(--brand-2);
	color: #fff; padding: 72px 0 84px;
}
@media (max-width: 820px) {
	.nv-hero {
		background:
			linear-gradient(180deg, rgba(8, 36, 60, .78) 0%, rgba(8, 36, 60, .52) 55%, rgba(8, 36, 60, .3) 100%),
			url("assets/img/hero-napoli-1000.jpg") 66% center / cover no-repeat,
			var(--brand-2);
		padding: 48px 0 56px;
	}
}.nv-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2rem, 5vw, 3.2rem); }
.nv-hero h1 em { font-style: normal; color: var(--accent); }
.nv-hero__kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .8em; }
.nv-hero__lead { font-size: 1.12rem; color: #d9e6f0; max-width: 60ch; }
.nv-hero__stat { margin: 14px 0 0; color: #b9cfe0; font-size: .92rem; }
.nv-hero .nv-search { margin-top: 24px; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }

.nv-block { margin-top: 56px; }
.nv-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.nv-block__head h2 { font-family: var(--serif); font-size: 1.7rem; margin: 0; }
.nv-block__head a { text-decoration: none; font-weight: 600; display: inline-flex; gap: .3em; align-items: center; }

.nv-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.nv-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.nv-cat h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nv-cat h3 a { color: var(--ink); text-decoration: none; }
.nv-cat h3 a:hover { color: var(--brand); }
.nv-cat p { margin: 0; color: var(--muted); font-size: .92rem; }
.nv-cat p a { color: var(--muted); }
.nv-count { display: inline-block; min-width: 1.6em; padding: 0 .5em; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font: 600 .78rem/1.7 var(--sans); text-align: center; }

.nv-areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.nv-area { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.nv-area h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.nv-area h3 a { color: var(--muted); text-decoration: none; }
.nv-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nv-area li a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nv-area li a:hover { color: var(--brand); text-decoration: underline; }

.nv-owners {
	display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center;
	background: var(--accent-soft); border: 1px solid #f3d9ad; border-radius: var(--radius); padding: 28px;
}
.nv-owners h2 { font-family: var(--serif); font-size: 1.6rem; }
.nv-owners__cta p { margin: 10px 0 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 720px) { .nv-owners { grid-template-columns: 1fr; } }

.nv-ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.nv-ticks li { display: flex; gap: .5em; align-items: flex-start; }
.nv-ticks .nv-icon { color: var(--ok); margin-top: .2em; }

/* ---------------------------------------------------------------------------
   Ricerca
--------------------------------------------------------------------------- */
.nv-search {
	display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px;
	background: var(--surface); padding: 8px; border-radius: var(--radius); border: 1px solid var(--line);
}
.nv-search__field { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: var(--radius-s); padding: 0 12px; color: var(--muted); }
.nv-search input, .nv-search select {
	width: 100%; border: 0; background: transparent; padding: 12px 0; font: 1rem var(--sans); color: var(--ink); min-width: 0;
}
.nv-search input:focus, .nv-search select:focus { outline: none; }
.nv-search__field:focus-within { outline: 3px solid var(--accent); outline-offset: 0; }
@media (max-width: 820px) {
	.nv-search { grid-template-columns: 1fr 1fr; }
	.nv-search__field--text { grid-column: 1 / -1; }
	.nv-search .nv-btn { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .nv-search { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   Percorso
--------------------------------------------------------------------------- */
.nv-crumbs { margin: 20px 0 12px; font-size: .88rem; color: var(--muted); }
.nv-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.nv-crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: #a8a29a; }
.nv-crumbs a { color: var(--muted); text-decoration: none; }
.nv-crumbs a:hover { color: var(--brand); text-decoration: underline; }

/* ---------------------------------------------------------------------------
   Elenco
--------------------------------------------------------------------------- */
.nv-directory__head { margin-bottom: 14px; }
.nv-directory__count { color: var(--muted); margin: 0; }
.nv-directory__desc { color: var(--muted); max-width: 70ch; margin-top: 8px; }
.nv-refine { margin: 12px 0 16px; }
.nv-refine summary { cursor: pointer; font-weight: 600; color: var(--brand); margin-bottom: 10px; }

.nv-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.nv-chips__label { font-size: .82rem; color: var(--muted); font-weight: 600; margin-right: 4px; }
.nv-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
	background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .9rem;
}
.nv-chip span { color: var(--muted); font-size: .8rem; }
.nv-chip:hover { border-color: var(--brand); color: var(--brand); }

.nv-directory__body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) {
	.nv-directory__body { grid-template-columns: 1fr; }
	.nv-directory__map { order: -1; }
}

.nv-list { display: grid; gap: 12px; }
.nv-list--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.nv-list--compact .nv-card__text { display: none; }

.nv-card {
	display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
	transition: box-shadow .15s, border-color .15s;
}
.nv-card:hover { box-shadow: var(--shadow); border-color: #d8cfbf; }
.nv-card--premium { border-color: #efcf96; box-shadow: inset 4px 0 0 var(--accent); }
.nv-card__meta { margin: 0 0 4px; font-size: .82rem; color: var(--muted); }
.nv-card__meta a { color: var(--muted); text-decoration: none; }
.nv-card__meta a:hover { color: var(--brand); text-decoration: underline; }
.nv-card__title { font-size: 1.15rem; margin: 0 0 6px; }
.nv-card__title a { color: var(--ink); text-decoration: none; }
.nv-card__title a:hover { color: var(--brand); }
.nv-card__line { display: flex; gap: 6px; align-items: flex-start; margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.nv-card__line .nv-icon { margin-top: .2em; }
.nv-card__text { margin: 8px 0 0; font-size: .94rem; color: #3c4454; }
.nv-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Copertina: foto del titolare oppure copertina generata (colore + icona della categoria). */
.nv-card { position: relative; overflow: hidden; }
.nv-card__cover {
	--tone: var(--brand); --tone-soft: var(--brand-soft);
	position: relative; display: grid; place-items: center; height: 136px; margin: -18px -18px 0;
	background: linear-gradient(135deg, var(--tone-soft) 0%, #fff 140%); border-bottom: 1px solid var(--line);
	overflow: hidden; text-decoration: none;
}
.nv-card__cover--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nv-card__pattern { position: absolute; right: -14px; bottom: -22px; color: var(--tone); opacity: .13; }
.nv-card__pattern .nv-icon { width: 128px; height: 128px; stroke-width: 1.3; }
.nv-card__logo {
	position: relative; display: grid; place-items: center; width: 132px; height: 84px; padding: 10px 14px;
	background: #fff; border-radius: 14px; box-shadow: 0 4px 14px rgba(28, 34, 48, .10);
}
.nv-card__logo img { max-width: 104px; max-height: 64px; width: auto; height: auto; object-fit: contain; }
.nv-card__initials {
	position: relative; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 18px;
	background: var(--tone); color: #fff; font: 700 1.55rem/1 var(--serif); letter-spacing: .02em;
	box-shadow: 0 6px 18px rgba(28, 34, 48, .14);
}
.nv-card__brand { position: absolute; left: 10px; bottom: 9px; width: 22px; height: 22px; opacity: .85; }
.nv-card:hover .nv-card__cover--photo img { transform: scale(1.03); }
.nv-card__cover--photo img { transition: transform .3s; }

/* Elenco accanto alla mappa: copertina quadrata a sinistra. */
.nv-list:not(.nv-list--grid) .nv-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); column-gap: 18px; align-items: start; }
.nv-list:not(.nv-list--grid) .nv-card__cover { grid-row: 1 / span 2; height: auto; min-height: 116px; align-self: stretch; margin: -18px 0 -18px -18px; border-bottom: 0; border-right: 1px solid var(--line); }
.nv-list:not(.nv-list--grid) .nv-card__logo { width: 92px; height: 64px; padding: 8px; }
.nv-list:not(.nv-list--grid) .nv-card__logo img { max-width: 76px; max-height: 48px; }
.nv-list:not(.nv-list--grid) .nv-card__initials { width: 54px; height: 54px; font-size: 1.25rem; border-radius: 14px; }
.nv-list:not(.nv-list--grid) .nv-card__pattern .nv-icon { width: 96px; height: 96px; }
.nv-list:not(.nv-list--grid) .nv-card__actions { grid-column: 2; }
@media (max-width: 520px) {
	.nv-list:not(.nv-list--grid) .nv-card { grid-template-columns: 88px minmax(0, 1fr); column-gap: 14px; }
	.nv-list:not(.nv-list--grid) .nv-card__logo { width: 72px; height: 52px; }
	.nv-list:not(.nv-list--grid) .nv-card__logo img { max-width: 56px; max-height: 36px; }
}
/* Schede correlate (griglia compatta): copertina più bassa. */
.nv-list--compact .nv-card__cover { height: 104px; }

.nv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.nv-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font: 600 .74rem/1.6 var(--sans); }
.nv-badge--premium { background: var(--accent-soft); color: #8a5300; border: 1px solid #f0d199; }
.nv-badge--pick { background: var(--brand-soft); color: var(--brand); }
.nv-badge--ok { background: var(--ok-soft); color: var(--ok); }

.nv-map { width: 100%; height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: #e9eef2; z-index: 0; }
.nv-map--sticky { height: calc(100vh - 140px); max-height: 640px; position: sticky; top: 84px; }
@media (max-width: 960px) { .nv-map--sticky { position: relative; top: auto; height: 260px; } } /* Leaflet forza position: relative: senza top: auto la mappa scende sopra le card */
.nv-map--single { height: 240px; margin-bottom: 16px; }

.nav-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.nav-links .page-numbers { padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.nav-links .page-numbers.current { background: var(--brand); color: #fff; border-color: var(--brand); }

.nv-empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }

.nv-cta-band {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 40px; padding: 22px 24px; border-radius: var(--radius); background: var(--brand-soft);
}
.nv-cta-band h2 { margin: 0 0 4px; }
.nv-cta-band p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------------------
   Scheda
--------------------------------------------------------------------------- */
.nv-single__head { margin-bottom: 24px; }
.nv-single__kicker { display: flex; gap: 10px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 6px; }
.nv-single__kicker a { text-decoration: none; font-weight: 600; }
.nv-single__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.nv-single__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .nv-single__grid { grid-template-columns: 1fr; } .nv-single__side { order: -1; } }
.nv-single__photo { margin: 0 0 24px; border-radius: var(--radius); overflow: hidden; }

.nv-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.nv-prose > :last-child { margin-bottom: 0; }

.nv-faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.nv-faq details:first-child { border-top: 0; padding-top: 0; }
.nv-faq summary { cursor: pointer; font-weight: 600; }
.nv-faq p { margin: 8px 0 0; color: #3c4454; }

.nv-claim {
	display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	background: var(--accent-soft); border: 1px solid #f3d9ad; border-radius: var(--radius); padding: 20px 22px; margin-bottom: 18px;
}
.nv-claim h2 { margin: 0 0 4px; font-size: 1.15rem; }
.nv-claim p { margin: 0; color: #5a4a2c; }

.nv-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.nv-box__title { font-size: 1rem; display: flex; gap: 6px; align-items: center; }
.nv-box__note { margin: 10px 0 0; font-size: .82rem; color: var(--muted); }
.nv-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.nv-contacts li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.nv-contacts .nv-icon { color: var(--brand); margin-top: .25em; }
.nv-social { display: flex; gap: 12px; margin: 12px 0 0; font-size: .92rem; }

.nv-hours { width: 100%; border-collapse: collapse; font-size: .94rem; }
.nv-hours th { text-align: left; font-weight: 500; color: var(--muted); padding: 4px 8px 4px 0; }
.nv-hours td { text-align: right; padding: 4px 0; }
.nv-hours tr.is-today th, .nv-hours tr.is-today td { color: var(--ink); font-weight: 700; }

.nv-report { font-size: .92rem; }
.nv-report summary { cursor: pointer; color: var(--muted); }
.nv-report[open] summary { margin-bottom: 10px; }

.nv-fine { margin-top: 24px; font-size: .85rem; color: var(--muted); }
.nv-page h1, .nv-claim-page h1 { margin-top: 28px; }

/* ---------------------------------------------------------------------------
   Moduli (plugin)
--------------------------------------------------------------------------- */
.nd-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 14px; }
.nd-form--compact { padding: 16px; }
.nd-form h3 { margin: 6px 0 0; font-size: 1rem; }
.nd-form label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; color: #333b4a; }
.nd-form input[type="text"], .nd-form input[type="email"], .nd-form input[type="tel"], .nd-form input[type="url"],
.nd-form select, .nd-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #d6cfc3; border-radius: var(--radius-s);
	font: 400 1rem var(--sans); color: var(--ink); background: #fff;
}
.nd-form input:focus, .nd-form select:focus, .nd-form textarea:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--brand); }
.nd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nd-span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) { .nd-grid { grid-template-columns: 1fr; } }
.nd-consents { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.nd-consents legend { font-weight: 700; margin-bottom: 6px; }
.nd-form .nd-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.nd-check input { margin-top: .3em; width: 18px; height: 18px; flex: none; }
.nd-check abbr { color: var(--danger); text-decoration: none; }
.nd-radio { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.nd-form .nd-radio label { display: flex; gap: 8px; font-weight: 400; }
.nd-form__note { margin: 0; font-size: .85rem; color: var(--muted); }
.nd-form .nd-btn { justify-self: start; }
.nd-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.nd-notice { padding: 12px 16px; border-radius: var(--radius-s); background: var(--brand-soft); margin: 0 0 16px; }
.nd-notice--ok { background: var(--ok-soft); color: #134d31; }
.nd-notice--error { background: var(--danger-soft); color: var(--danger); }

/* Leaflet: popup coerente col tema */
.leaflet-popup-content a { font-weight: 600; }

/* Classi dell'editor a blocchi usate nelle pagine */
.nv-prose .has-large-font-size { font-size: 1.2rem; line-height: 1.55; color: var(--ink); }
.nv-prose h2 { margin-top: 1.6em; }
.nv-prose ul { padding-left: 1.2em; }
.nv-prose li { margin-bottom: .4em; }

/* ---------------------------------------------------------------------------
   Scheda: testata, stato aperto/chiuso, servizi, barra azioni da telefono
--------------------------------------------------------------------------- */
.nv-single__hero { --tone: var(--brand); --tone-soft: var(--brand-soft); background: linear-gradient(180deg, var(--tone-soft) 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); padding: 28px 0 32px; margin-bottom: 28px; }
.nv-tone--tufo { --tone: #b86e12; --tone-soft: #fbeedb; }
.nv-tone--mare { --tone: var(--brand); --tone-soft: #e3eef7; }
.nv-tone--ardesia { --tone: #3c4a5c; --tone-soft: #e8ecf1; }
.nv-tone--verde { --tone: #2f7a55; --tone-soft: #e2f1e8; }
.nv-tone--vino { --tone: #8a3346; --tone-soft: #f6e6ea; }
.nv-single__mark.nv-single__mark--logo { background: #fff; padding: 10px; }
.nv-single__mark.nv-single__mark--logo img { object-fit: contain; }
.nv-single__hero-inner { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 24px; align-items: start; }
.nv-single__mark { width: 104px; height: 104px; border-radius: 22px; background: var(--tone); color: #fff; display: grid; place-items: center; font: 700 2.2rem/1 var(--serif); letter-spacing: .02em; box-shadow: 0 8px 24px rgba(28, 34, 48, .14); overflow: hidden; }
.nv-single__mark img { width: 100%; height: 100%; object-fit: cover; }
.nv-single__hero h1 { margin: 2px 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.nv-single__kicker { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: .92rem; margin: 0; color: var(--muted); }
.nv-single__kicker a { color: var(--tone); text-decoration: none; font-weight: 600; }
.nv-single__kicker a:hover { text-decoration: underline; }
.nv-single__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nv-single__meta .nv-badges { margin: 0; }
.nv-single__lead { margin: 14px 0 0; font-size: 1.08rem; color: #3c4454; max-width: 62ch; }
.nv-single__quick { margin-top: 18px; }
@media (max-width: 640px) {
	.nv-single__hero-inner { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
	.nv-single__mark { width: 64px; height: 64px; border-radius: 16px; font-size: 1.4rem; }
	.nv-single__quick { display: none; } /* su telefono ci pensa la barra in basso */
}

.nv-status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; font: 600 .82rem/1.6 var(--sans); background: var(--surface); border: 1px solid var(--line); }
.nv-status__dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa3b2; }
.nv-status--open { color: var(--ok); border-color: #bfe3cd; }
.nv-status--open .nv-status__dot { background: #22a35a; box-shadow: 0 0 0 3px rgba(34, 163, 90, .18); }
.nv-status--closed { color: #6b4b16; }
.nv-status--closed .nv-status__dot { background: #d38b1c; }

.nv-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 18px; }
.nv-services li { display: flex; gap: 8px; align-items: flex-start; }
.nv-services .nv-icon { color: var(--ok); margin-top: .25em; }

.nv-related { margin-top: 28px; }
.nv-related > h2 { font-family: var(--serif); font-size: 1.4rem; }

.nv-updated { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin: 0 0 14px; }
.nv-updated .nv-icon { color: var(--ok); }

.nv-actionbar { display: none; }
@media (max-width: 640px) {
	.nv-actionbar {
		display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
		box-shadow: 0 -6px 18px rgba(28, 34, 48, .08);
	}
	.nv-actionbar .nv-btn { width: 100%; }
	.single-attivita .nv-footer { padding-bottom: 90px; }
}

/* Passi dopo la richiesta di rivendicazione */
.nd-steps { counter-reset: passo; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.nd-steps li { counter-increment: passo; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.nd-steps li::before { content: counter(passo); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }

/* ---------------------------------------------------------------------------
   Pagina piani
--------------------------------------------------------------------------- */
.nv-plans__head { background: linear-gradient(180deg, #e3eef7 0%, var(--bg) 100%); padding: 48px 0 36px; text-align: center; }
.nv-plans__head h1 { max-width: 22ch; margin: 0 auto 14px; }
.nv-plans__head .nv-hero__kicker { color: #c47f16; }
.nv-plans__lead { max-width: 60ch; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }

.nv-plans__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 8px; }
@media (max-width: 960px) { .nv-plans__grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

.nv-plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px 20px; }
.nv-plan h2 { font-family: var(--serif); font-size: 1.6rem; margin: 0 0 6px; }
.nv-plan__motto { color: var(--muted); min-height: 3em; margin-bottom: 14px; }
.nv-plan__price { margin: 0 0 14px; }
.nv-plan__price strong { font: 700 2.4rem/1 var(--serif); color: var(--ink); }
.nv-plan__price span { color: var(--muted); }
.nv-plan__cta { width: 100%; }
.nv-plan__note { font-size: .82rem; color: var(--muted); text-align: center; margin: 8px 0 6px; min-height: 1.4em; }
.nv-plan__group { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.nv-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .94rem; }
.nv-plan__list li { display: flex; gap: 9px; align-items: flex-start; }
.nv-plan__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; margin-top: 1px; }
.nv-plan__list .is-in .nv-plan__mark { background: var(--ok-soft); color: var(--ok); }
.nv-plan__list .is-out { color: #a29b90; }
.nv-plan__list .is-out .nv-plan__mark { background: #f1ede6; color: #b5ada1; }

.nv-plan--premium { border: 2px solid var(--accent); box-shadow: 0 14px 40px rgba(233, 162, 59, .18); }
.nv-plan__top { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font: 700 .78rem/1 var(--sans); padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.nv-plan--vetrina { border-color: #b9cfe0; }

.nv-plans__faq { max-width: 760px; margin: 48px auto 0; }
.nv-plans__faq h2 { font-family: var(--serif); font-size: 1.6rem; }
.nv-plans__faq .nv-faq { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
