/*
 * NeaNOG Events — componenti frontend.
 *
 * Funzionano con qualsiasi tema: font e titoli vengono dal tema, i colori dalle impostazioni del plugin
 * (variabili qui sotto, sovrascritte inline). Le misure non usano rem perché alcuni temi (es. Centaurus)
 * cambiano la dimensione del font di <html>: si parte da --nn-fs.
 */

:root {
	--nn-fs: 16px;
	--nn-blue: #0395BF;
	--nn-blue-rgb: 3 149 191;
	--nn-blue-dark: #027a9c;
	--nn-navy: #1B3356;
	--nn-green: #02c39a;
	--nn-ink: #1B3356;
	--nn-text: #475569;
	--nn-muted: #6b7a8c;
	--nn-soft: #f3f7fa;
	--nn-border: #e1e8ee;
	--nn-error: #c62f3c;
	--nn-radius: 14px;
	--nn-shadow: 0 1px 2px rgba(27, 51, 86, .06), 0 8px 28px rgba(27, 51, 86, .08);
}

.nn-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.nn-container--narrow, .container.nn-container--narrow { max-width: 720px; }
.nn-section { padding: 56px 0 80px; }
.nn-section__title { font-size: calc(var(--nn-fs) * 1.6); line-height: 1.25; margin: 0 0 24px; }
.nn-section__title--past { margin-top: 64px; }
.nn-past { opacity: .85; }
.nn-empty { color: var(--nn-muted); font-size: calc(var(--nn-fs) * 1.05); }
.nn-small { font-size: calc(var(--nn-fs) * .875); color: var(--nn-muted); }
.nn-center { text-align: center; }
.nn-muted { color: var(--nn-muted); }

/* Pulsanti (neutralizzano gli stili globali dei temi su <button>) */
.nn-btn, .nn-btn:hover, .nn-btn:focus {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--nn-blue); color: #fff !important; border: 0; border-radius: 999px;
	padding: 12px 26px; margin: 0; height: auto; width: auto;
	font-family: inherit; font-weight: 600; font-size: var(--nn-fs); line-height: 1.2; text-transform: none; letter-spacing: normal;
	text-decoration: none !important; cursor: pointer; box-shadow: none;
	transition: background .2s, transform .2s;
}
.nn-btn:hover { background: var(--nn-blue-dark); transform: translateY(-1px); }
.nn-btn:focus-visible { outline: 3px solid rgb(var(--nn-blue-rgb) / .35); outline-offset: 2px; }
.nn-btn:disabled { opacity: .65; cursor: wait; transform: none; }
.nn-btn--light, .nn-btn--light:hover, .nn-btn--light:focus { background: #fff; color: var(--nn-navy) !important; }
.nn-btn--light:hover { background: #eef5f9; }
.nn-btn--ghost, .nn-btn--ghost:hover, .nn-btn--ghost:focus { background: transparent; color: var(--nn-blue) !important; box-shadow: inset 0 0 0 2px var(--nn-blue); }
.nn-btn--ghost:hover { background: rgb(var(--nn-blue-rgb) / .08); }
.nn-btn--block { display: flex; width: 100%; }
.nn-btn--lg { padding: 15px 26px; font-size: calc(var(--nn-fs) * 1.05); }

/* Badge */
.nn-badge {
	display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: calc(var(--nn-fs) * .75); font-weight: 600;
	letter-spacing: .02em; line-height: 1.3; background: #e9eef3; color: var(--nn-navy); vertical-align: middle;
}
.nn-badge--open, .nn-badge--confirmed { background: #dcf7ef; color: #04745c; }
.nn-badge--sold_out, .nn-badge--cancelled { background: #fde7e9; color: #a3202c; }
.nn-badge--closed, .nn-badge--past, .nn-badge--draft { background: #eceff3; color: #54627a; }
.nn-badge--few { background: #ffedd5; color: #9a3412; }

/* ------------------------------------------------------------------ Testata con onde (temi senza testata NeaNOG) */
.nn-hero {
	position: relative; overflow: hidden; color: #fff; text-align: center; background: #3aa9d3;
	display: flex; align-items: center; min-height: 380px; padding: 72px 0 150px; box-sizing: border-box;
}
.nn-hero--small { min-height: 300px; padding-bottom: 130px; }
.nn-hero__bg { position: absolute; inset: 0; background: url("../img/waves.png") center top / cover no-repeat; }
.nn-hero__bg::after { content: ""; position: absolute; inset: 0; background: var(--nn-green); opacity: .2; }
.nn-hero__inner { position: relative; z-index: 1; width: 100%; }
.nn-hero__kicker {
	display: inline-block; margin: 0 0 14px; padding: 5px 14px; border-radius: 999px; background: rgba(27, 51, 86, .28);
	color: #fff; font-weight: 600; font-size: calc(var(--nn-fs) * .85); letter-spacing: .04em; line-height: 1.4;
}
.nn-hero .nn-hero__title {
	color: #fff; margin: 0 auto 18px; max-width: 900px; padding: 0;
	font-size: clamp(calc(var(--nn-fs) * 1.9), 4.4vw, calc(var(--nn-fs) * 3.1)); line-height: 1.12;
	text-shadow: 0 2px 18px rgba(10, 40, 70, .18);
}
.nn-hero__content { max-width: 900px; margin: 0 auto; font-size: var(--nn-fs); }
.nn-hero__content p { margin: 0 0 16px; color: #fff; }
.nn-hero__shape { position: absolute; left: 0; right: 0; bottom: -1px; height: 150px; overflow: hidden; line-height: 0; z-index: 1; }
.nn-hero__shape svg { position: relative; left: 50%; display: block; width: calc(122% + 1.3px); height: 100%; transform: translateX(-50%) rotate(180deg) rotateY(180deg); }
.nn-hero__shape path { fill: #fff; }
@media (max-width: 1024px) {
	.nn-hero__shape svg { width: calc(220% + 1.3px); }
	.nn-hero__shape { height: 110px; }
}
@media (max-width: 767px) {
	.nn-hero { min-height: 0; padding: 56px 0 110px; }
	.nn-hero__shape svg { width: calc(285% + 1.3px); }
	.nn-hero__shape { height: 80px; }
}

/* Testata standard del tema Centaurus (opzione "Testata del tema") */
.nn-theme-hero.o-hero { min-height: 300px; height: auto !important; padding: 48px 0; box-sizing: border-box; }
.nn-theme-hero .o-hero__content { position: relative; width: 100%; }
.nn-theme-hero .nn-hero-meta { color: #54627a; }
.nn-theme-hero .nn-hero__kicker { background: var(--nn-blue); }
.nn-theme-hero .nn-btn--light { background: var(--nn-blue); color: #fff !important; }
.nn-theme-hero .nn-btn--light:hover { background: var(--nn-blue-dark); }

/* Testata generica (altri temi) */
.nn-plain-hero { background: var(--nn-navy); color: #fff; padding: 48px 0; text-align: center; }
.nn-plain-hero .nn-hero__title { color: #fff; margin: 0 0 16px; font-size: calc(var(--nn-fs) * 2.2); line-height: 1.2; }

/* Meta nella testata */
.nn-hero-meta { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; }
.nn-hero-meta li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; font-size: calc(var(--nn-fs) * 1.05); line-height: 1.5; }
.nn-hero-meta li::before { content: none; }
.nn-hero-meta svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nn-hero-lead { font-size: calc(var(--nn-fs) * 1.15); margin: 0; }

/* ------------------------------------------------------------------ Pagina evento */
.nn-event { padding: 48px 0 96px; }
.nn-event__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: start; }
.nn-event__side { position: sticky; top: 104px; scroll-margin-top: 104px; }
.nn-event__image { margin: 0 0 32px; border-radius: var(--nn-radius); overflow: hidden; box-shadow: var(--nn-shadow); }
.nn-event__image img { display: block; width: 100%; height: auto; }
.nn-event__section { margin-top: 40px; }
.nn-event__section > h2 { font-size: calc(var(--nn-fs) * 1.45); line-height: 1.25; margin: 0 0 16px; }
.nn-content { font-size: calc(var(--nn-fs) * 1.05); line-height: 1.75; }
.nn-content > *:first-child { margin-top: 0; }
.nn-content img { max-width: 100%; height: auto; border-radius: 10px; }

.nn-info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.nn-info-card { display: flex; gap: 16px; padding: 20px; background: var(--nn-soft); border-radius: var(--nn-radius); font-size: var(--nn-fs); }
.nn-info-card .nn-info-card__label {
	margin: 0 0 4px; font-family: inherit; font-size: calc(var(--nn-fs) * .78); line-height: 1.4; font-weight: 600;
	text-transform: uppercase; letter-spacing: .08em; color: var(--nn-muted);
}
.nn-info-card p { margin: 0 0 6px; color: var(--nn-ink); line-height: 1.5; }
.nn-info-card__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--nn-blue); box-shadow: 0 2px 8px rgba(27, 51, 86, .08); }
.nn-info-card__icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nn-links { font-size: calc(var(--nn-fs) * .9); }
.nn-links a, .nn-map-caption a { color: var(--nn-blue); font-weight: 500; }

.nn-map { height: 380px; border-radius: var(--nn-radius); overflow: hidden; z-index: 0; box-shadow: var(--nn-shadow); }
.nn-map-caption { margin: 12px 0 0; color: var(--nn-muted); font-size: calc(var(--nn-fs) * .95); }

/* ------------------------------------------------------------------ Card iscrizione */
.nn-reg {
	background: #fff; border-radius: 18px; box-shadow: var(--nn-shadow); border: 1px solid var(--nn-border);
	padding: 28px; color: var(--nn-text); font-size: var(--nn-fs); line-height: 1.5; text-align: left;
}
.nn-reg p { margin: 0 0 12px; }
.nn-reg__head { display: flex; flex-direction: column; gap: 4px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--nn-border); }
.nn-reg .nn-reg__price { font-size: calc(var(--nn-fs) * 1.7); font-weight: 700; color: var(--nn-ink); line-height: 1.2; margin: 0; }
.nn-reg__price small { font-size: calc(var(--nn-fs) * .9); font-weight: 500; color: var(--nn-muted); }
.nn-reg .nn-reg__avail { color: var(--nn-muted); margin: 0; }
.nn-reg__avail strong { color: #c2410c; }
.nn-reg .nn-reg__deadline { font-size: calc(var(--nn-fs) * .875); color: var(--nn-muted); margin: 0; }
.nn-reg__closed p { margin: 12px 0 0; }

.nn-form { margin: 0; }
.nn-fieldset { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.nn-fieldset > legend { font-family: inherit; font-weight: 700; color: var(--nn-ink); font-size: calc(var(--nn-fs) * 1.05); line-height: 1.3; margin: 0 0 12px; padding: 0; border: 0; width: auto; }
.nn-fieldset--consents { margin-top: 6px; }
.nn-field { margin: 0 0 14px; }
.nn-field[hidden] { display: none; }
.nn-field > label, .nn-label { display: block; font-weight: 600; font-size: calc(var(--nn-fs) * .9); line-height: 1.35; color: var(--nn-ink); margin: 0 0 6px; padding: 0; }
.nn-field abbr, .nn-check abbr { color: var(--nn-error); text-decoration: none; border: 0; }
.nn-form input[type="text"], .nn-form input[type="email"], .nn-form input[type="tel"], .nn-form input[type="number"],
.nn-form input[type="date"], .nn-form select, .nn-form textarea {
	display: block; width: 100%; max-width: none; box-sizing: border-box; margin: 0;
	font-family: inherit; font-size: var(--nn-fs); font-weight: 400; color: var(--nn-ink); line-height: 1.35;
	background-color: #fff; border: 1.5px solid #cfd9e2; border-radius: 10px; padding: 11px 13px;
	height: auto; min-height: 46px; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.nn-form select {
	-webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236b7a8c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px;
}
.nn-form textarea { height: auto !important; min-height: 90px; resize: vertical; }
.nn-form input:focus, .nn-form select:focus, .nn-form textarea:focus { outline: none; border-color: var(--nn-blue); box-shadow: 0 0 0 4px rgb(var(--nn-blue-rgb) / .15); }
.nn-field.has-error input, .nn-field.has-error select, .nn-field.has-error textarea { border-color: var(--nn-error); }
.nn-field__error { display: block; color: var(--nn-error); font-size: calc(var(--nn-fs) * .85); margin-top: 5px; font-weight: 500; }
.nn-help { display: block; color: var(--nn-muted); font-size: calc(var(--nn-fs) * .85); line-height: 1.4; margin-top: 5px; }
.nn-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.nn-qty__row { display: flex; align-items: center; gap: 16px; }
.nn-form .nn-qty select { width: 96px; }
.nn-qty__total { color: var(--nn-muted); }
.nn-qty__total strong { color: var(--nn-ink); font-size: calc(var(--nn-fs) * 1.1); }

.nn-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.nn-pill { position: relative; display: inline-block; margin: 0 !important; padding: 0; font-weight: 500 !important; font-size: calc(var(--nn-fs) * .95); line-height: 1.3; }
.nn-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.nn-pill span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid #cfd9e2; color: var(--nn-ink); transition: all .15s; }
.nn-pill input:checked + span { background: var(--nn-navy); border-color: var(--nn-navy); color: #fff; }
.nn-pill input:focus-visible + span { box-shadow: 0 0 0 4px rgb(var(--nn-blue-rgb) / .25); }

.nn-choices { display: flex; flex-direction: column; gap: 6px; }
.nn-choice, .nn-check {
	display: flex !important; gap: 10px; align-items: flex-start; margin: 0; padding: 0;
	font-weight: 400 !important; font-size: calc(var(--nn-fs) * .95); line-height: 1.45; color: var(--nn-text) !important; cursor: pointer;
}
.nn-form .nn-choice input, .nn-form .nn-check input {
	display: inline-block; margin: 3px 0 0; padding: 0; border: 0; width: 18px; height: 18px; min-height: 0; flex: none;
	accent-color: var(--nn-blue); -webkit-appearance: auto; appearance: auto;
}
.nn-check { margin-bottom: 12px; }
.nn-check a { color: var(--nn-blue); }
.nn-check em { color: var(--nn-muted); font-style: normal; }

.nn-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.nn-alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; font-size: calc(var(--nn-fs) * .95); }
.nn-alert--error { background: #fde7e9; color: #8c1b25; }
.nn-alert--info { background: #fff8e6; color: #6b4a00; text-align: left; }

/* Conferma */
.nn-reg__done { text-align: center; outline: none; }
.nn-reg__done h2 { margin: 8px 0; font-size: calc(var(--nn-fs) * 1.5); line-height: 1.25; }
.nn-reg__check { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: linear-gradient(135deg, var(--nn-green), var(--nn-blue)); display: grid; place-items: center; }
.nn-reg__check svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.nn-reg__summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 20px 0; padding: 0; }
.nn-reg__summary div { background: var(--nn-soft); border-radius: 10px; padding: 10px; }
.nn-reg__summary dt { font-size: calc(var(--nn-fs) * .75); text-transform: uppercase; letter-spacing: .06em; color: var(--nn-muted); }
.nn-reg__summary dd { margin: 2px 0 0; font-weight: 700; color: var(--nn-ink); font-size: calc(var(--nn-fs) * 1.1); }
.nn-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.nn-reg__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.nn-message-card h2 { margin: 0 0 12px; font-size: calc(var(--nn-fs) * 1.5); line-height: 1.25; }
.nn-message-card form { margin: 20px 0; }

/* ------------------------------------------------------------------ Griglia eventi */
.nn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.nn-ev-card, .nn-ev-card:hover, .nn-ev-card:focus {
	display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden;
	box-shadow: var(--nn-shadow); text-decoration: none !important; color: var(--nn-text); transition: transform .25s, box-shadow .25s;
	border: 1px solid var(--nn-border); font-size: var(--nn-fs); line-height: 1.5; text-align: left;
}
.nn-ev-card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(27, 51, 86, .06), 0 18px 40px rgba(27, 51, 86, .14); }
.nn-ev-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--nn-navy); overflow: hidden; }
.nn-ev-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nn-ev-card__media--waves { background: #3aa9d3 url("../img/waves.png") center top / cover no-repeat; }
.nn-ev-card__media--waves::before { content: ""; position: absolute; inset: 0; background: var(--nn-green); opacity: .2; }
.nn-ev-card__media--waves::after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 55%;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' opacity='.25' d='M0 40c150-40 300 40 500 10s350-40 500 0v50H0z'/%3E%3Cpath fill='%23ffffff' opacity='.35' d='M0 70c200-30 350 30 550 0s300-20 450 5v25H0z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.nn-date-badge {
	position: absolute; top: 14px; left: 14px; z-index: 1; background: #fff; border-radius: 12px; padding: 6px 12px;
	text-align: center; color: var(--nn-blue); font-size: calc(var(--nn-fs) * .75); font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	line-height: 1.1; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.nn-date-badge b { display: block; font-size: calc(var(--nn-fs) * 1.5); color: var(--nn-navy); letter-spacing: 0; font-weight: 700; }
.nn-ev-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nn-ev-card__body .nn-badge { align-self: flex-start; }
.nn-ev-card .nn-ev-card__title { margin: 6px 0 2px; padding: 0; font-size: calc(var(--nn-fs) * 1.25); line-height: 1.3; }
.nn-ev-card .nn-ev-card__meta { margin: 0; color: var(--nn-text); font-size: calc(var(--nn-fs) * .95); }
.nn-ev-card__place { color: var(--nn-muted); }
.nn-ev-card .nn-ev-card__excerpt { margin: 6px 0 0; color: var(--nn-muted); font-size: calc(var(--nn-fs) * .95); }
.nn-ev-card__cta { margin-top: auto; padding-top: 12px; color: var(--nn-blue); font-weight: 600; }

/* ------------------------------------------------------------------ Prossimo appuntamento [neanog_prossimo_evento] */
.nn-next { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: stretch; font-size: var(--nn-fs); line-height: 1.5; text-align: left; }
.nn-next--nomap, .nn-next--empty { grid-template-columns: minmax(0, 640px); justify-content: center; }
.nn-next .nn-next__map { height: auto; min-height: 340px; }
.nn-next__card {
	background: #fff; border-radius: 18px; box-shadow: var(--nn-shadow); border: 1px solid var(--nn-border);
	padding: 32px; display: flex; flex-direction: column; gap: 14px; color: var(--nn-text);
}
.nn-next__kicker {
	align-self: flex-start; padding: 5px 14px; border-radius: 999px; background: var(--nn-blue); color: #fff;
	font-weight: 600; font-size: calc(var(--nn-fs) * .8); letter-spacing: .04em; line-height: 1.4;
}
.nn-next .nn-next__title { margin: 0; padding: 0; font-size: calc(var(--nn-fs) * 2); line-height: 1.15; color: var(--nn-ink); }
/* La scheda ha sfondo proprio: i colori di testo e link impostati dalla sezione che la contiene (es. Elementor) non devono passare. */
.nn-next .nn-next__title a, .nn-next .nn-next__title a:hover { color: var(--nn-ink) !important; text-decoration: none; box-shadow: none; }
.nn-next__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nn-next__meta li { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 0; color: var(--nn-ink); }
.nn-next__meta li::before { content: none; }
.nn-next__meta svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--nn-blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nn-next__meta strong { color: var(--nn-ink); }
.nn-next .nn-next__text { margin: 0; color: var(--nn-muted); }
.nn-next__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 6px; }
.nn-next .nn-next__note { margin: 0; }
@media (max-width: 860px) {
	.nn-next { grid-template-columns: 1fr; }
	.nn-next .nn-next__map { min-height: 260px; }
	.nn-next__card { padding: 24px; }
}

/* ------------------------------------------------------------------ Countdown [neanog_countdown] */
.nn-countdown { text-align: center; color: #fff; line-height: 1.2; }
.nn-countdown__label { font-weight: 700; font-size: calc(var(--nn-fs) * 1.1); opacity: .9; }
.nn-countdown__clock { font-weight: 700; font-size: clamp(40px, 7vw, 70px); line-height: 1.15; letter-spacing: -.01em; font-variant-numeric: tabular-nums; min-height: 1.15em; }
.nn-countdown .nn-countdown__event, .nn-countdown .nn-countdown__event:hover {
	display: inline-block; margin-top: 8px; color: inherit; opacity: .8; font-size: calc(var(--nn-fs) * .95);
	text-decoration: underline; text-underline-offset: 3px; box-shadow: none;
}
.nn-countdown .nn-countdown__event:hover { opacity: 1; }
.nn-countdown--dark { color: var(--nn-ink); }

/* CTA fissa su mobile */
.nn-sticky-cta { display: none; }

@media (max-width: 960px) {
	.nn-event__grid { grid-template-columns: 1fr; gap: 40px; }
	.nn-event__side { position: static; }
	.nn-sticky-cta {
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
		background: #fff; box-shadow: 0 -6px 24px rgba(27, 51, 86, .12); font-size: var(--nn-fs);
	}
	.nn-sticky-cta div { display: flex; flex-direction: column; line-height: 1.25; color: var(--nn-ink); }
	.nn-sticky-cta strong { color: var(--nn-ink); }
	.nn-sticky-cta span { font-size: calc(var(--nn-fs) * .85); color: var(--nn-muted); }
	.nn-event { padding-bottom: 120px; }
}

@media (max-width: 560px) {
	.nn-reg { padding: 20px; border-radius: 14px; }
	.nn-row-2 { grid-template-columns: 1fr; gap: 0; }
	.nn-map { height: 280px; }
	.nn-cards { grid-template-columns: 1fr; }
	.nn-hero-meta li { font-size: calc(var(--nn-fs) * .95); }
}

/* ------------------------------------------------------------------ Disiscrizione dal sito e informativa */
.nn-unsub-request { margin: 24px 0; }
.nn-unsub-request h3 { margin: 0 0 10px; font-size: calc(var(--nn-fs) * 1.25); line-height: 1.3; color: var(--nn-ink); }
.nn-unsub-request .nn-unsub-request__form { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.nn-unsub-request .nn-unsub-request__form input[type="email"] { flex: 1 1 260px; width: auto; }
.nn-muted-text { color: var(--nn-muted); }
.nn-privacy { max-width: 820px; font-size: var(--nn-fs); line-height: 1.65; color: var(--nn-text); text-align: left; }
.nn-privacy h2 { margin: 2em 0 .5em; font-size: calc(var(--nn-fs) * 1.35); line-height: 1.3; color: var(--nn-ink); }
.nn-privacy h2:first-child { margin-top: 0; }
.nn-privacy p, .nn-privacy ul { margin: 0 0 1em; }
.nn-privacy ul { padding-left: 1.3em; }
.nn-privacy li { margin: 0 0 .4em; }
.nn-privacy .nn-privacy__updated { color: var(--nn-muted); font-size: calc(var(--nn-fs) * .9); }
.nn-privacy .nn-alert { margin: 0 0 1.5em; }
.nn-unsub-request .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Centaurus (neanog.it): il footer del tema contiene i widget demo (Archives, Quick Menu, Tag Cloud…).
   Come sulla home, nelle pagine del plugin non si mostra. Con altri temi la regola non ha effetto. */
body footer.l-primary-footer { display: none !important; }
