/*
 * 2P Web Base: stili comuni.
 *
 * I valori (colori, font, larghezze) arrivano come variabili CSS dal Customizer
 * (inc/assets.php). Le regole che dipendono dal breakpoint del menu mobile sono generate
 * inline (p2w_breakpoint_css). Le personalizzazioni del sito vanno in site.css.
 *
 * Breakpoint dei contenuti come Elementor: mobile <= 767, tablet 768-1024, desktop >= 1025.
 */

/* ---------- Variabili non gestite dal Customizer ---------- */
:root {
	--p2w-gutter: 20px;
	--p2w-gap: 10px;              /* padding delle colonne (Elementor "default gap") */
	--p2w-widget-space: 20px;     /* spazio tra i blocchi di una colonna */
	--p2w-section-py: 60px;
	--p2w-card-radius: 20px;
	--p2w-card-padding: 30px;
	--p2w-card-shadow: 0 0 35px rgba(93, 114, 128, .15);
	--p2w-input-bg: #fafafa;
	--p2w-input-border: #dddddd;
	--p2w-input-text: #666666;
	--p2w-error: #b32d2e;
	--p2w-ok: #1e7e34;
	--p2w-h1: 54px;
	--p2w-h2: 35px;
	--p2w-h3: 25px;
	--p2w-h4: 20px;
	--p2w-h5: 18px;
	--p2w-h6: 15px;
	--p2w-adminbar: 0px;
}
.admin-bar { --p2w-adminbar: 32px; }
@media (max-width: 782px) { .admin-bar { --p2w-adminbar: 46px; } }
@media (max-width: 600px) { .admin-bar { --p2w-adminbar: 0px; } }
@media (max-width: 1024px) { :root { --p2w-h1: 49px; } }
@media (max-width: 767px) { :root { --p2w-h1: 40px; --p2w-h2: 25px; --p2w-h3: 20px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--p2w-bg);
	color: var(--p2w-text);
	font-family: var(--p2w-font-body);
	font-size: var(--p2w-fs-body);
	line-height: var(--p2w-lh-body);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-wrap: break-word;
}
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 20px;
	font-family: var(--p2w-font-heading, inherit);
	font-weight: var(--p2w-heading-weight);
	color: var(--p2w-heading);
	line-height: 1.2;
}
h1 { font-size: var(--p2w-h1); }
h2 { font-size: var(--p2w-h2); }
h3 { font-size: var(--p2w-h3); }
h4 { font-size: var(--p2w-h4); }
h5 { font-size: var(--p2w-h5); }
h6 { font-size: var(--p2w-h6); }
p { margin: 0 0 1.6em; }
ul, ol { margin: 0 0 1.6em 3em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; }
a { color: var(--p2w-link); text-decoration: none; transition: color .2s linear; }
a:hover, a:focus { color: var(--p2w-link-hover); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--p2w-accent); outline-offset: 2px; }
img, video, svg { max-width: 100%; height: auto; }
img { vertical-align: middle; border: 0; }
figure { margin: 0; }
hr { border: 0; border-top: 1px solid #e5e5e5; margin: 2em 0; }
blockquote { margin: 0 0 1.6em; padding: 1em 1.5em; border-left: 4px solid var(--p2w-accent); }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.6em; }
th, td { border: 1px solid #e5e5e5; padding: .5em .75em; text-align: left; }
iframe { max-width: 100%; border: 0; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	color: #000;
	z-index: 100000;
	box-shadow: 0 0 0 2px var(--p2w-accent);
}

/* WordPress */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .9em; color: #666; margin-top: .5em; }
.sticky, .bypostauthor { display: block; }

/* ---------- Layout ---------- */
.site { min-height: 100vh; display: flex; flex-direction: column; }
.site-content { flex: 1 0 auto; }
.p2w-wrap {
	width: 100%;
	max-width: calc(var(--p2w-container) + 2 * var(--p2w-gutter));
	margin: 0 auto;
	padding-left: var(--p2w-gutter);
	padding-right: var(--p2w-gutter);
}
.p2w-wrap--content { padding-top: 4em; padding-bottom: 4em; }
.site-main--full { width: 100%; }
.entry-content--full > :last-child { margin-bottom: 0; }
.entry-header { margin-bottom: 1.5em; }
.entry-meta { color: #666; font-size: .9em; margin: 0; }
.entry-thumbnail { margin-bottom: 1.5em; }
.page-links, .post-navigation, .comments-area { margin-top: 2em; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 1em; }
.nav-subtitle { display: block; font-size: .85em; color: #666; }

/* ---------- Header ---------- */
.site-header {
	position: relative;
	z-index: 100;
	background: var(--p2w-header-bg);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em;
	min-height: 70px;
	padding-top: 1em;
	padding-bottom: 1em;
	transition: padding .2s ease;
}
.site-header.is-stuck .site-header__inner { padding-top: .5em; padding-bottom: .5em; }
.site-branding { flex: 0 0 auto; }
.site-title { font-size: 1.5em; font-weight: 700; color: var(--p2w-heading); }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo-link img { width: var(--p2w-logo-width, auto); height: auto; max-width: 100%; transition: width .2s ease; }
.p2w-logo--transparent, .p2w-logo--sticky { display: none; }
.site-header.is-stuck .has-logo-sticky .p2w-logo--default,
.site-header.is-stuck .has-logo-sticky .p2w-logo--transparent { display: none; }
.site-header.is-stuck .has-logo-sticky .p2w-logo--sticky { display: inline-block; }
.p2w-header-spacer { display: block; }

.main-navigation { margin-left: auto; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	padding: 0 1em;
	color: var(--p2w-header-link);
	line-height: 3em;
}
.main-navigation .menu > li > a:hover,
.main-navigation .menu > li:focus-within > a,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a { color: var(--p2w-header-link-active); }
.main-navigation .sub-menu a { line-height: 1.5; }
.site-header__button { flex: 0 0 auto; }
.site-header__button--mobile { margin: 1em var(--p2w-gutter); }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--p2w-header-link);
	cursor: pointer;
	position: relative;
	z-index: 1001;
}
.menu-toggle__close, .p2w-menu-open .menu-toggle__open { display: none; }
.p2w-menu-open .menu-toggle__close { display: inline-flex; }
.p2w-menu-open .menu-toggle { color: var(--p2w-header-link); }

/* Menu mobile: le regole dipendono dal breakpoint e sono in inc/assets.php (p2w_breakpoint_css). */
.p2w-submenu-toggle {
	position: absolute;
	top: 0; right: 4px;
	width: 44px; height: 3em;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.p2w-submenu-toggle svg { transition: transform .2s; }
.is-open > .p2w-submenu-toggle svg { transform: rotate(180deg); }

@keyframes p2w-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--p2w-footer-bg);
	color: var(--p2w-footer-text);
	border-top: var(--p2w-footer-border-width) solid var(--p2w-footer-border);
}
.site-footer a { color: var(--p2w-footer-link); }
.site-footer a:hover, .site-footer a:focus { color: var(--p2w-footer-link-hover); }
.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1em 2em;
	padding-top: 1.5em;
	padding-bottom: 1.5em;
}
.site-footer__credits > :last-child { margin-bottom: 0; }
.site-footer__menu ul { display: flex; flex-wrap: wrap; gap: 0 1.5em; list-style: none; margin: 0; padding: 0; }
.site-footer__logo img { max-height: 80px; width: auto; }
.site-footer__bottom { padding-bottom: 1em; font-size: .85em; }
.site-footer__bottom:empty { display: none; }
@media (max-width: 767px) {
	.site-footer__inner { flex-direction: column; text-align: center; }
	.site-footer__menu ul { justify-content: center; }
	.site-footer__bottom { text-align: center; }
}

/* ---------- Bottoni ---------- */
.p2w-btn,
.wp-block-button__link {
	display: inline-block;
	padding: 10px 20px;
	border: 0;
	border-radius: var(--p2w-btn-radius);
	background: var(--p2w-primary);
	color: var(--p2w-button-text);
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, color .2s, box-shadow .2s;
}
.p2w-btn:hover, .p2w-btn:focus,
.wp-block-button__link:hover, .wp-block-button__link:focus { background: var(--p2w-primary-hover); color: var(--p2w-button-text); }
.p2w-btn--outline { background: transparent; color: var(--p2w-primary); box-shadow: inset 0 0 0 2px var(--p2w-primary); }
.p2w-btn--outline:hover, .p2w-btn--outline:focus { background: var(--p2w-primary); color: var(--p2w-button-text); }
.p2w-btn--lg { padding: 15px 30px; }
.p2w-btn .p2w-icon { vertical-align: -3px; margin-right: .4em; }

/* ---------- Moduli ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"],
input[type="search"], input[type="url"], input[type="password"], select, textarea {
	width: 100%;
	padding: .75em;
	border: 1px solid var(--p2w-input-border);
	border-radius: 2px;
	background: var(--p2w-input-bg);
	color: var(--p2w-input-text);
	font: inherit;
	line-height: 1.4;
}
textarea { resize: vertical; min-height: 120px; }
.p2w-form-wrap { position: relative; margin-bottom: 1.6em; scroll-margin-top: calc(100px + var(--p2w-adminbar)); }
.p2w-form-wrap:last-child { margin-bottom: 0; }
.p2w-form__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 15px 20px; }
.p2w-field { grid-column: span 6; margin: 0; }
.p2w-field--half { grid-column: span 3; }
.p2w-field--third { grid-column: span 2; }
.p2w-field[hidden] { display: none; }
@media (max-width: 767px) { .p2w-field--half, .p2w-field--third { grid-column: span 6; } }
.p2w-field__label { display: block; margin-bottom: .35em; font-weight: 600; }
.p2w-field__group { border: 0; margin: 0; padding: 0; }
.p2w-field__group legend { padding: 0; }
.p2w-check { display: flex; align-items: flex-start; gap: .5em; margin: .25em 0; font-weight: 400; cursor: pointer; }
.p2w-check input { margin-top: .35em; flex: 0 0 auto; }
.p2w-req { color: var(--p2w-error); }
.p2w-field__help { margin: .35em 0 0; font-size: .85em; color: #666; }
.p2w-field__error { margin: .35em 0 0; font-size: .9em; color: var(--p2w-error); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--p2w-error); }
.p2w-form__notice { margin: 0 0 1.5em; padding: 1em 1.25em; border-radius: 4px; border-left: 4px solid; }
.p2w-form__notice--ok { border-color: var(--p2w-ok); background: #edf7ef; color: #14532d; }
.p2w-form__notice--error { border-color: var(--p2w-error); background: #fcf0f1; color: #5c1214; }
.p2w-form__recaptcha { margin: 1em 0 0; font-size: .8em; color: #666; }
.p2w-form__actions { margin-top: 20px; }
.p2w-form__submit[disabled] { opacity: .6; cursor: wait; }
.p2w-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.grecaptcha-badge { visibility: hidden; }

.search-form { display: flex; gap: .5em; max-width: 480px; margin-bottom: 1.5em; }
.search-form .search-submit { flex: 0 0 auto; padding: 0 14px; }

/* ---------- Componenti per ricostruire le sezioni (ex Elementor) ---------- */

/* Sezione a tutta larghezza, con sfondo e overlay facoltativi */
.p2w-section {
	position: relative;
	padding-top: var(--p2w-section-py);
	padding-bottom: var(--p2w-section-py);
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}
.p2w-section--soft { background-color: var(--p2w-bg-soft); }
.p2w-section--flush { padding-top: 0; padding-bottom: 0; }
.p2w-section--fixed { background-attachment: fixed; }
@media (max-width: 1024px) { .p2w-section--fixed { background-attachment: scroll; } }
.p2w-overlay::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--p2w-overlay-color, #000f23);
	opacity: var(--p2w-overlay-opacity, .45);
	mix-blend-mode: var(--p2w-overlay-blend, normal);
	pointer-events: none;
	z-index: 1;
}
/* Livelli: slideshow di sfondo (0) < velo (1) < contenuto (2) < divisore sagomato (3) */
.p2w-overlay > * { position: relative; z-index: 2; }
.p2w-overlay > .p2w-slideshow { position: absolute; z-index: 0; }
.p2w-overlay > .p2w-shape { position: absolute; z-index: 3; }
.p2w-hero { display: flex; align-items: center; min-height: var(--p2w-hero-h, 0); }
.p2w-hero > .p2w-container { width: 100%; }

/* Contenitore a 1140 (sezione boxed) con colonne */
.p2w-container {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	max-width: var(--p2w-content);
	margin-left: auto;
	margin-right: auto;
}
.p2w-container--narrow { max-width: 800px; }
.p2w-container--stack { display: block; }
.p2w-col { position: relative; width: 100%; padding: var(--p2w-gap); min-width: 0; }
.p2w-col--nogap { padding: 0; }
.p2w-col-100 { width: 100%; }
.p2w-col-75 { width: 75%; }
.p2w-col-66 { width: 66.666%; }
.p2w-col-60 { width: 60%; }
.p2w-col-50 { width: 50%; }
.p2w-col-40 { width: 40%; }
.p2w-col-33 { width: 33.333%; }
.p2w-col-25 { width: 25%; }
.p2w-col--center { align-self: center; }
@media (max-width: 1024px) {
	.p2w-col-t-100 { width: 100%; }
	.p2w-col-t-50 { width: 50%; }
}
@media (max-width: 767px) {
	.p2w-col { width: 100%; }
	.p2w-col-m-50 { width: 50%; }
	.p2w-container--reverse-mobile { flex-direction: column-reverse; }
}
@media (min-width: 768px) {
	.p2w-container--middle { align-items: center; }
}
/* Spazio tra i blocchi di una colonna (Elementor: 20px, senza collasso dei margini) */
.p2w-stack > *:not(:last-child) { margin-bottom: var(--p2w-widget-space); }
.p2w-stack > * { margin-top: 0; }
.p2w-stack > :last-child, .p2w-text > :last-child { margin-bottom: 0; }

/* Card */
.p2w-card {
	background: #fff;
	border-radius: var(--p2w-card-radius);
	padding: var(--p2w-card-padding);
	box-shadow: var(--p2w-card-shadow);
}
.p2w-card > :last-child { margin-bottom: 0; }

/* Titoli e testi ricorrenti */
.p2w-kicker { color: var(--p2w-accent); text-transform: uppercase; line-height: 1; }
.p2w-box-white { display: inline-block; background: rgba(255, 255, 255, .77); padding: 10px 20px; border-radius: 10px; }
.p2w-divider { display: block; width: var(--p2w-divider-w, 100%); max-width: 100%; height: 0; border: 0; border-top: var(--p2w-divider-h, 3px) solid var(--p2w-accent); margin: 15px 0; }
.p2w-divider--center { margin-left: auto; margin-right: auto; }
.p2w-center { text-align: center; }
.p2w-right { text-align: right; }
.p2w-white, .p2w-white h1, .p2w-white h2, .p2w-white h3, .p2w-white h4, .p2w-white h5, .p2w-white h6 { color: #fff; }
.p2w-uppercase { text-transform: uppercase; }
.p2w-list-plain { list-style: none; margin-left: 0; }
.p2w-contact-line { display: flex; gap: .6em; align-items: flex-start; }
.p2w-contact-line .p2w-icon { flex: 0 0 auto; margin-top: .35em; color: var(--p2w-accent); }

/* Visibilita' per dispositivo (come "Nascondi su" di Elementor) */
@media (min-width: 1025px) { .p2w-hide-desktop { display: none !important; } }
@media (min-width: 768px) and (max-width: 1024px) { .p2w-hide-tablet { display: none !important; } }
@media (max-width: 767px) { .p2w-hide-mobile { display: none !important; } }

/* Divisore sagomato (shape divider "arrow" di Elementor, data-negative=false) */
.p2w-shape { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; z-index: 2; pointer-events: none; }
.p2w-shape--bottom { bottom: -1px; transform: rotate(180deg); }
.p2w-shape--top { top: -1px; }
.p2w-shape svg { display: block; position: relative; left: 50%; width: calc(100% + 1.3px); height: var(--p2w-shape-h, 10px); transform: translateX(-50%); }

/* Galleria a griglia */
.p2w-gallery { display: grid; grid-template-columns: repeat(var(--p2w-cols, 4), minmax(0, 1fr)); gap: var(--p2w-gallery-gap, 10px); margin: 0; padding: 0; list-style: none; }
.p2w-gallery a, .p2w-gallery img { display: block; width: 100%; }
.p2w-gallery img { aspect-ratio: var(--p2w-ratio, 1); object-fit: cover; }
@media (max-width: 1024px) { .p2w-gallery { grid-template-columns: repeat(var(--p2w-cols-t, 3), minmax(0, 1fr)); } }
@media (max-width: 767px) { .p2w-gallery { grid-template-columns: repeat(var(--p2w-cols-m, 2), minmax(0, 1fr)); } }

/* Carosello (assets/js/ui.js) */
.p2w-carousel { position: relative; --p2w-pv: 3; --p2w-pv-t: var(--p2w-pv); --p2w-pv-m: 1; --p2w-carousel-gap: 10px; }
.p2w-carousel__track {
	display: flex;
	gap: var(--p2w-carousel-gap);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	margin: 0; padding: 0; list-style: none;
}
.p2w-carousel__track::-webkit-scrollbar { display: none; }
.p2w-carousel__slide { flex: 0 0 calc((100% - (var(--p2w-pv) - 1) * var(--p2w-carousel-gap)) / var(--p2w-pv)); scroll-snap-align: start; }
.p2w-carousel__slide img { display: block; width: 100%; height: auto; }
@media (max-width: 1024px) { .p2w-carousel__slide { flex-basis: calc((100% - (var(--p2w-pv-t) - 1) * var(--p2w-carousel-gap)) / var(--p2w-pv-t)); } }
@media (max-width: 767px) { .p2w-carousel__slide { flex-basis: calc((100% - (var(--p2w-pv-m) - 1) * var(--p2w-carousel-gap)) / var(--p2w-pv-m)); } }
.p2w-carousel__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	cursor: pointer;
}
.p2w-carousel__nav--prev { left: 10px; }
.p2w-carousel__nav--next { right: 10px; }
.p2w-carousel:not(.has-nav) .p2w-carousel__nav { display: none; }

/* Slideshow di sfondo */
.p2w-slideshow { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.p2w-slideshow__slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity var(--p2w-slideshow-fade, .5s) ease-in-out; }
.p2w-slideshow__slide.is-active { opacity: 1; }
.p2w-slideshow--fixed .p2w-slideshow__slide { background-attachment: fixed; }
@media (max-width: 1024px) { .p2w-slideshow--fixed .p2w-slideshow__slide { background-attachment: scroll; } }

/* Lightbox (assets/js/ui.js) */
.p2w-lightbox { position: fixed; inset: 0; z-index: 100001; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .8); }
.p2w-lightbox[hidden] { display: none; }
.p2w-lightbox__figure { max-width: 92vw; max-height: 86vh; margin: 0; text-align: center; color: #fff; }
.p2w-lightbox__img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; }
.p2w-lightbox__caption { margin-top: .5em; font-size: .9em; }
.p2w-lightbox__counter { position: absolute; top: 15px; left: 20px; color: #fff; font-size: .9em; }
.p2w-lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; background: transparent; color: #fff; cursor: pointer; }
.p2w-lightbox__close { top: 5px; right: 5px; }
.p2w-lightbox__prev { left: 5px; top: 50%; transform: translateY(-50%); }
.p2w-lightbox__next { right: 5px; top: 50%; transform: translateY(-50%); }
.p2w-lightbox-open { overflow: hidden; }

/* Contenuti esterni bloccati fino al consenso (mappe, video) */
.p2w-embed { position: relative; width: 100%; background: #eef1f3; overflow: hidden; }
.p2w-embed iframe { display: block; width: 100%; border: 0; }
.p2w-embed:not(.p2w-embed--inline) iframe { height: 100%; }
.p2w-embed--inline { height: auto; min-height: 220px; }
.p2w-embed__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	overflow-y: auto;
	padding: 20px;
	text-align: center;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	background: #eef1f3;
}
.p2w-embed__placeholder > :first-child { margin-top: auto; }
.p2w-embed__placeholder > :last-child { margin-bottom: auto; }
.p2w-embed__placeholder p { margin: 0 0 .75em; max-width: 520px; }
.p2w-embed__hint { font-size: 12px; color: #666; }
.p2w-embed__link { margin-left: .75em; }
.p2w-embed.is-loaded .p2w-embed__placeholder { display: none; }
.p2w-embed.is-loaded { background: transparent; }

/* ---------- Banner cookie ---------- */
.p2w-consent {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 100000;
	padding: 12px;
	pointer-events: none;
	font-size: 14px;
	line-height: 1.5;
	color: #1d2327;
}
.p2w-consent[hidden] { display: none; }
.p2w-consent__box {
	position: relative;
	max-width: 980px;
	margin: 0 auto;
	padding: 20px 48px 20px 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, .25);
	pointer-events: auto;
	max-height: calc(100vh - 24px);
	overflow-y: auto;
}
.p2w-consent__title { margin: 0 0 .4em; font-weight: 700; font-size: 16px; }
.p2w-consent__text { margin: 0 0 1em; }
.p2w-consent__text a { text-decoration: underline; }
.p2w-consent__close { position: absolute; top: 8px; right: 8px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; background: transparent; color: #1d2327; cursor: pointer; }
.p2w-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.p2w-consent__btn { min-width: 140px; font-size: 15px; }
.p2w-consent__panel { margin: 0 0 1em; padding: 1em 0 0; border-top: 1px solid #e5e5e5; }
.p2w-consent__cat { margin-bottom: .8em; }
.p2w-consent__cat p { margin: .1em 0 0 1.7em; color: #555; font-size: 13px; }
@media (max-width: 600px) {
	.p2w-consent__actions { flex-direction: column-reverse; }
	.p2w-consent__btn { width: 100%; }
}

/* ---------- Pulsanti flottanti ---------- */
.p2w-scroll-top {
	position: fixed;
	right: 30px;
	bottom: 30px;
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	border-radius: 2px;
	background: var(--p2w-primary);
	color: #fff;
}
.p2w-scroll-top[hidden] { display: none; }
.p2w-scroll-top:hover, .p2w-scroll-top:focus { background: var(--p2w-primary-hover); color: #fff; }
.p2w-whatsapp {
	position: fixed;
	bottom: 20px;
	z-index: 99;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px; height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.p2w-whatsapp:hover, .p2w-whatsapp:focus { color: #fff; background: #1eb956; }
.p2w-whatsapp--left { left: 20px; }
.p2w-whatsapp--right { right: 20px; }
.p2w-whatsapp--right ~ .p2w-scroll-top, .p2w-scroll-top + .p2w-whatsapp--right { bottom: 90px; }

/* ---------- Elenchi di articoli ---------- */
.p2w-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
@media (max-width: 1024px) { .p2w-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .p2w-posts { grid-template-columns: 1fr; } }
.p2w-post__thumb { display: block; margin: calc(-1 * var(--p2w-card-padding)) calc(-1 * var(--p2w-card-padding)) 1em; border-radius: var(--p2w-card-radius) var(--p2w-card-radius) 0 0; overflow: hidden; }
.p2w-post__thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.p2w-post__title { font-size: 1.3em; margin-bottom: .4em; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5em; margin-top: 2em; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .5em; border: 1px solid #ddd; }
.pagination .page-numbers.current { background: var(--p2w-primary); color: var(--p2w-button-text); border-color: var(--p2w-primary); }

/* ---------- Stampa ---------- */
@media print {
	.site-header, .site-footer, .p2w-consent, .p2w-scroll-top, .p2w-whatsapp { display: none !important; }
}
