/*
 * recensioni.soimm.com: stili del sito.
 *
 * Misure prese dal sito attuale (Astra 4.13 predefinito, snapshot del 17/10/2026):
 * header 105 px + bordo 1 px (98 + 1 sotto 921 px), logo 287x73 (274x69 su mobile),
 * footer centrato con padding 20 px e bordo superiore, html al 91,2% sotto 921 px,
 * pagine 404 / ricerca "boxed" su #F0F5FA. Blocco recensioni con l'aspetto del widget
 * Trustindex "Slider IV" (stile 34) configurato in origine.
 */

/* ---------- Base (Astra) ---------- */
:root {
	--ast-bg-soft: #F0F5FA;
	--ast-border: #D1D5DB;
	--ast-input-text: #475569;
	--ast-gutter-mobile: .54em;
}
@media (max-width: 921px) {
	:root { --p2w-fs-body: 14.592px; }
}
html { scroll-behavior: auto; }
h1, h2, h3, h4, h5, h6 { line-height: 1.3; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--ast-border); }
.site-header__inner {
	min-height: 0;
	padding-top: 1em;
	padding-bottom: 1em;
}
.custom-logo-link img { transition: all .2s linear; }
.menu-toggle {
	width: 42px;
	height: 42px;
	padding: .5em;
	border-radius: 2px;
	color: var(--p2w-primary);
}
.p2w-menu-open .menu-toggle { color: var(--p2w-primary); }
.menu-toggle .p2w-icon { width: 20px; height: 20px; fill: currentColor; stroke: none; }

/* Menu di ripiego (solo la home): visibile solo nel menu mobile, come in Astra. */
@media (min-width: 922px) {
	.p2w-menu-fallback { display: none !important; }
}
/* Logo: 287 px fino al tablet, 274 px sotto 545 px (come Astra). */
@media (min-width: 545px) and (max-width: 921px) {
	.custom-logo-link img { width: 287px; }
}
@media (max-width: 921px) {
	.p2w-mobile-menu--dropdown .main-navigation__panel { box-shadow: none; }
	.main-navigation__panel .menu > li { border-top: 0; }
	.main-navigation__panel .menu a { padding-left: 20px; padding-right: 20px; color: var(--p2w-text); }
	.main-navigation__panel .current-menu-item > a,
	.main-navigation__panel .current_page_item > a {
		background: var(--ast-bg-soft);
		color: var(--p2w-header-link-active);
	}
}

/* ---------- Footer (riga "below footer" di Astra) ---------- */
.site-footer__inner {
	justify-content: center;
	text-align: center;
	padding-top: 20px;
	padding-bottom: 20px;
	min-height: 60px;
}
.site-footer__credits { width: 100%; }
.site-footer__credits strong { font-weight: 700; }
.site-footer__bottom { padding-bottom: 0; text-align: center; font-size: .85em; }
.site-footer__legal { display: block; padding-bottom: 20px; }
@media (max-width: 921px) {
	.site-footer__credits { margin-bottom: 10px; }
}

/* Torna su: quadrato Astra, spostato sopra il pulsante del chatbot (in basso a destra). */
.p2w-scroll-top {
	width: 31.5px;
	height: 31.5px;
	right: 36px;
	bottom: 112px;
	border-radius: 2px;
	z-index: 9998;
}
.p2w-scroll-top .p2w-icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* ---------- Home: contenitore Elementor (1140 + padding 10) e blocco recensioni ---------- */
.p2w-home { padding: 10px; }
.p2w-home__inner { max-width: var(--p2w-content); margin: 0 auto; }

.p2w-rev { padding: 30px 0 40px; color: #000; }
.p2w-rev__title {
	margin: 0 0 24px;
	text-align: center;
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--p2w-heading);
}
.p2w-rev__summary {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin-bottom: 26px;
	text-align: center;
}
.p2w-rev__label { font-size: 24px; font-weight: 700; line-height: 1.2; text-transform: uppercase; color: #000; }
.p2w-rev__count { font-size: 15px; line-height: 1.4; color: #000; }
.p2w-rev__count strong { font-weight: 700; }
.p2w-rev__google { line-height: 0; margin-top: 6px; }
.p2w-rev__google svg { width: 110px; height: auto; }
.p2w-rev__write {
	display: inline-block;
	margin-top: 12px;
	padding: 10px 20px;
	border-radius: var(--p2w-btn-radius);
	background: var(--p2w-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
}
.p2w-rev__write:hover, .p2w-rev__write:focus { background: var(--p2w-primary-hover); color: #fff; }

/* Stelle: grigie sotto, oro sopra tagliate in proporzione al voto. */
.p2w-stars { position: relative; display: inline-block; line-height: 0; white-space: nowrap; vertical-align: middle; }
.p2w-stars svg { width: 17px; height: 17px; margin-right: 1px; fill: #fbbc04; }
.p2w-stars__bg svg { fill: #dcdcdc; }
.p2w-stars__fg { position: absolute; top: 0; left: 0; height: 100%; overflow: hidden; white-space: nowrap; }
.p2w-stars--lg svg { width: 24px; height: 24px; margin-right: 2px; }

/* Carosello */
.p2w-rev__slider { position: relative; }
.p2w-rev__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 6px 0 4px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	outline-offset: 4px;
}
.p2w-rev__track::-webkit-scrollbar { display: none; }
.p2w-rev__item { display: flex; flex: 0 0 calc((100% - 3 * 16px) / 4); min-width: 0; scroll-snap-align: start; }
@media (max-width: 1024px) { .p2w-rev__item { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 767px) { .p2w-rev__item { flex-basis: calc((100% - 16px) / 2); } }
@media (max-width: 479px) { .p2w-rev__item { flex-basis: 100%; } }
.p2w-rev__card {
	width: 100%;
	padding: 20px;
	border-radius: 12px;
	background: #f4f4f4;
	transition: transform .2s ease-out;
}
@media (min-width: 480px) {
	.p2w-rev__item:hover .p2w-rev__card { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) {
	.p2w-rev__card { transition: none; }
	.p2w-rev__item:hover .p2w-rev__card { transform: none; }
	.p2w-rev__track { scroll-behavior: auto; }
}
.p2w-rev__head { position: relative; display: flex; align-items: center; margin-bottom: 11px; }
.p2w-rev__avatar {
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	margin-right: 15px;
	border-radius: 50%;
	object-fit: cover;
	object-position: top;
}
.p2w-rev__avatar--ini {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
}
.p2w-rev__who { flex: 1 1 auto; min-width: 0; padding-right: 25px; }
.p2w-rev__name {
	display: block;
	overflow: hidden;
	color: #000;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
	text-overflow: ellipsis;
}
a.p2w-rev__name:hover, a.p2w-rev__name:focus { color: #000; text-decoration: underline; }
.p2w-rev__date { display: block; color: #6b6b6b; font-size: 13px; line-height: 1.4; }
.p2w-rev__platform { position: absolute; top: 0; right: 0; line-height: 0; }
.p2w-rev__platform svg { width: 18px; height: 18px; }
.p2w-rev__card > .p2w-stars { display: block; margin-bottom: 11px; }
.p2w-rev__text {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	color: #000;
	font-size: 15px;
	line-height: 21.75px;
	text-align: left;
	overflow-wrap: anywhere;
}
.p2w-rev__text.is-open { display: block; -webkit-line-clamp: unset; }
.p2w-rev__more {
	margin-top: 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #6b6b6b;
	font: inherit;
	font-size: 13px;
	text-decoration: underline;
	cursor: pointer;
}
.p2w-rev__more:hover, .p2w-rev__more:focus { color: #000; }

/* Frecce (come Trustindex: cerchio bianco 30 px con bordo grigio chiaro) */
.p2w-rev__nav {
	position: absolute;
	top: calc(50% - 19px);
	z-index: 2;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 0;
	border-radius: 15px;
	background: #fff;
	outline: 2px solid #f4f4f4;
	transform: translateY(-50%);
	cursor: pointer;
	transition: all .2s ease-out;
}
.p2w-rev__nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 10px;
	border: solid #575757;
	border-width: 0 0 2px 2px;
	transition: border-color .2s ease-out;
}
.p2w-rev__nav--prev { left: -15px; }
.p2w-rev__nav--prev::before { transform: translate(-30%, -50%) rotate(45deg); }
.p2w-rev__nav--next { right: -15px; }
.p2w-rev__nav--next::before { transform: translate(-70%, -50%) rotate(-135deg); }
.p2w-rev__nav:hover, .p2w-rev__nav:focus-visible { background: #4d4d4d; outline-color: #424242; box-shadow: 0 5px 25px 0 rgba(0, 0, 0, .05); }
.p2w-rev__nav:hover::before, .p2w-rev__nav:focus-visible::before { border-color: #fff; }
.p2w-rev__nav[disabled] { opacity: .35; cursor: default; background: #fff; outline-color: #f4f4f4; }
.p2w-rev__nav[disabled]::before { border-color: #575757; }
@media (max-width: 1200px) {
	.p2w-rev__slider { padding: 0 20px; }
	.p2w-rev__nav--prev { left: 0; }
	.p2w-rev__nav--next { right: 0; }
}
/* Touch: si scorre col dito, niente frecce sopra le schede (resta la barra di avanzamento). */
@media (hover: none) and (pointer: coarse) {
	.p2w-rev__slider { padding: 0; }
	.p2w-rev__nav { display: none !important; }
}
.p2w-rev__progress {
	position: relative;
	width: 150px;
	height: 3px;
	margin: 20px auto 0;
	overflow: hidden;
	border-radius: 3px;
	background: rgba(87, 87, 87, .35);
}
.p2w-rev__progress span {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	border-radius: 3px;
	background: #575757;
	transition: width .2s, left .2s;
}
.p2w-rev__note {
	max-width: 760px;
	margin: 22px auto 0;
	color: #64748b;
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}
.p2w-rev__fallback { text-align: center; }
@media (max-width: 767px) {
	.p2w-rev { padding: 20px 0 30px; }
	.p2w-rev__title { font-size: 22px; margin-bottom: 18px; }
	.p2w-rev__label { font-size: 21px; }
}

/* ---------- Pagine "boxed" (404, ricerca, pagine interne) ---------- */
.p2w-boxed-page .site-content { background: var(--ast-bg-soft); }
.p2w-ast {
	max-width: calc(var(--p2w-container) + 40px);
	margin: 0 auto;
	padding: 0 20px;
}
.p2w-ast__primary { margin: 4em 0; }
.p2w-ast-box { background: #fff; padding: 3em; }
.p2w-ast-box > :last-child, .p2w-ast-box .page-content > :last-child { margin-bottom: 0; }
.p2w-ast-box--404 { text-align: center; }
.p2w-ast-box--404 .page-header { margin: 0 0 1.5em; }
.p2w-ast-box--404 .page-title { margin: 0; font-size: 2.25em; font-weight: 400; line-height: 1.4; }
.p2w-ast-box--404 .page-sub-title { margin: 0 0 20px; color: var(--p2w-heading); font-size: 1.5em; line-height: 1.3; }
.p2w-ast-box--404 .search-form { margin-top: 2em; }
.p2w-ast-box--archive { margin-bottom: 2em; text-align: center; }
.p2w-ast-box--archive .page-title { margin: 0 0 10px; font-size: 2em; font-weight: 600; line-height: 1.4; }
.p2w-ast-box--noresults { text-align: center; }
.p2w-ast-box--noresults p { margin: 0 0 1.75em; }
/* Archivi (categorie, date): titolo e riquadro "nessun risultato" allineati a sinistra, come Astra */
.p2w-ast-box--left { text-align: left; }
.p2w-ast-box--archive.p2w-ast-box--left .page-title { margin-bottom: 4px; }
.p2w-breadcrumbs ul { margin: 0; padding: 0; list-style: none; }
.p2w-breadcrumbs li { display: inline-block; }
.p2w-breadcrumbs li:not(:last-child)::after { content: "\00bb"; padding: 0 .3em; }
.p2w-ast-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2em; }
.p2w-ast-post { padding: 1.5em; box-shadow: 0 6px 15px -2px rgba(16, 24, 40, .05); }
.p2w-ast-post .entry-title { margin: 0 0 12px; font-size: 1.25em; font-weight: 600; line-height: 1.3; }
.p2w-ast-post .entry-title a { color: var(--p2w-heading); }
.p2w-ast-post .entry-title a:hover, .p2w-ast-post .entry-title a:focus { color: var(--p2w-link); }
.p2w-ast-post .entry-meta { margin: 0 0 1em; font-size: .8125em; line-height: 1.45; color: var(--p2w-link); }
.p2w-ast-post .entry-meta a { color: inherit; }
.p2w-ast-post .entry-summary { margin-top: 1em; }
/* Padding dei riquadri di Astra: 3em oltre 1200 px, 3.34em 2.4em fino a 769, 1.5em 2.14em fino a 545, 1.5em 1em sotto. */
@media (max-width: 1200px) {
	.p2w-ast-box--404, .p2w-ast-box--noresults { padding: 3.34em 2.4em; }
}
@media (max-width: 921px) {
	.p2w-ast__primary { margin: 0; padding: 4em 0; }
	.p2w-ast-box--404 .page-title { font-size: 1.875em; }
	.p2w-ast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
	.p2w-ast-box--404, .p2w-ast-box--noresults { padding: 1.5em 2.14em; }
}
@media (max-width: 544px) {
	.p2w-ast { padding: 0 var(--ast-gutter-mobile); }
	.p2w-ast-box--404, .p2w-ast-box--noresults { padding: 1.5em 1em; }
	.p2w-ast-grid { grid-template-columns: 1fr; padding: 0 1em; }
}

/* Pagine interne con il template predefinito (pagine legali): riquadro bianco */
.p2w-boxed-page .p2w-wrap--content { padding-top: 4em; padding-bottom: 4em; }
.p2w-boxed-page .p2w-wrap--content > .entry { background: #fff; padding: 3em; }
.p2w-boxed-page .p2w-wrap--content .entry-title { font-size: 2em; line-height: 1.4; }
.p2w-boxed-page .entry-content h2 { font-size: 1.5em; margin-top: 1.5em; }
@media (max-width: 544px) {
	.p2w-boxed-page .p2w-wrap--content { padding-left: var(--ast-gutter-mobile); padding-right: var(--ast-gutter-mobile); }
	.p2w-boxed-page .p2w-wrap--content > .entry { padding: 1.5em 1em; }
}

/* Modulo di ricerca di Astra */
.p2w-searchform { position: relative; display: block; max-width: 370px; margin: 0 auto; }
.p2w-searchform .search-field {
	width: 100%;
	height: 40px;
	padding: 0 45px 0 15px;
	border: 1px solid var(--ast-border);
	border-radius: 2px;
	background: #fafafa;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
	color: var(--ast-input-text);
	font-size: 16px;
	line-height: 24px;
}
.p2w-searchform .search-field::placeholder { color: #94a3b8; opacity: 1; }
.p2w-searchform .search-submit {
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: 45px;
	height: calc(26px + 1em); /* come il bottone trasparente di Astra: 42 px, 40,6 sotto 921 */
	padding: 0;
	border: 0;
	border-radius: 2px;
	background: transparent;
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
	color: #3a3a3a;
	font-size: inherit;
	cursor: pointer;
}
.p2w-searchform .search-submit:hover, .p2w-searchform .search-submit:focus { background: transparent; color: var(--p2w-link); }
/* Lente nella stessa posizione di Astra: 17 px dal bordo destro, .8125em + 3 px dall'alto, .875em x 1em */
.p2w-searchform .search-submit svg { position: absolute; top: calc(.8125em + 3px); right: 17px; width: .875em; height: 1em; fill: currentColor; }
/* Variante degli archivi (Astra fuori dalle aree widget): campo a tutta larghezza, bottone "Cerca" sotto */
.p2w-searchform--full { max-width: none; margin: 0; }
.p2w-searchform--full .search-field {
	display: block;
	padding: 12px 16px;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
}
.p2w-searchform--full .search-field::placeholder { color: #9ca3af; }
.p2w-searchform--full .search-submit {
	position: static;
	display: inline-block;
	width: auto;
	height: auto;
	padding: 15px 30px;
	border: 0;
	border-radius: 4px;
	background: var(--p2w-primary);
	box-shadow: 0 1px 2px 0 rgba(0, 0, 0, .05);
	color: #fff;
	font-family: inherit;
	font-size: 1em; /* 1rem in Astra, dove html scende al 91,2% sotto 921 px */
	font-weight: 500;
	line-height: 1em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.p2w-searchform--full .search-submit:hover, .p2w-searchform--full .search-submit:focus { background: var(--p2w-primary-hover); color: #fff; }
@media (max-width: 921px) {
	.p2w-searchform--full .search-submit { padding: 14px 28px; }
}
@media (max-width: 544px) {
	.p2w-searchform--full .search-submit { padding: 12px 24px; }
}

/* Avviso nelle bozze delle pagine legali */
.p2w-legal-note { padding: .75em 1em; border-left: 4px solid #f0b429; background: #fff7e6; }

/* 1.0.7 (19/10/2026): su mobile la riga legale resta sopra etichetta e pulsante fissi della chat SOIMM (arrivano a ~92 px dal fondo), cosi' Privacy, Cookie policy, Note legali e Preferenze cookie restano cliccabili. */
@media (max-width: 767px) { .site-footer__legal { padding-bottom: 104px; } }
