/*
Theme Name: Salvatore Vella Studio Legale
Theme URI: https://avvocatovella.com
Author: Francesco Infantino
Description: Tema WordPress realizzato su misura per lo Studio Legale dell'Avv. Salvatore Vella di Palermo. Design editoriale blu notte e bronzo, con logo, favicon e caratteri integrati. Comprende homepage con ritratto e aree di attività, pagine delle aree con colonna di contatto, articoli per News e Pubblicazioni, mappa con avvio della navigazione, pulsante WhatsApp, privacy e cookie policy iubenda, modelli di pagina a tutta larghezza e landing. Form contatti integrato e protetto (nonce, campo trappola, controllo dei tempi, limite di invii), senza plugin. Leggero e veloce: nessun page builder, nessuna chiamata a Google Fonts, compatibile con All in One SEO. Tutte le impostazioni sono in Aspetto > Personalizza > Studio legale.
Version: 1.7.4
Requires at least: 6.2
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vella
Tags: custom-logo, custom-menu, featured-images, full-width-template, block-styles, wide-blocks, threaded-comments, translation-ready
*/

/* ---------- Font (self-hosted, nessuna chiamata a Google) ---------- */
@font-face {
	font-family: "Newsreader";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin-opsz-normal.woff2?v=2") format("woff2");
}
@font-face {
	font-family: "Newsreader";
	font-style: italic;
	font-weight: 200 800;
	font-display: swap;
	src: url("assets/fonts/newsreader-latin-opsz-italic.woff2?v=2") format("woff2");
}
@font-face {
	font-family: "Instrument Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

/* ---------- Variabili ---------- */
:root {
	--ink: #0b1626;
	--ink-2: #16253b;
	--text: #2b3850;
	--muted: #46546a;
	--line: #d5dae2;
	--line-strong: #8a95a6;
	--mist: #eef1f5;
	--white: #ffffff;
	--on-dark: #d8dde5;
	--on-dark-muted: #c9cfd9;
	--line-dark: rgba(255, 255, 255, 0.14);
	--accent: #c8a06a;
	--serif: "Newsreader", Georgia, "Times New Roman", serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--pad: clamp(20px, 6vw, 96px);
	--wrap: 1240px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip: auto;
	padding: 12px 18px; background: var(--white); color: var(--ink);
}
.wrap { max-width: var(--wrap); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 128px) var(--pad); }
.section--tight { padding: clamp(56px, 7vw, 96px) var(--pad); }
.section--mist { background: var(--mist); }
.section--dark { background: var(--ink); color: var(--white); }
.eyebrow {
	font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.section--dark .eyebrow, .site-top .eyebrow { color: var(--on-dark-muted); }
.arrow { width: 20px; height: 12px; flex: 0 0 auto; }

/* ---------- Pulsanti e link ---------- */
.btn {
	display: inline-flex; align-items: center; gap: 14px;
	min-height: 56px; padding: 0 30px;
	font: 600 16px/1.2 var(--sans);
	border: 1px solid transparent; border-radius: 0; cursor: pointer;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--outline { border-color: var(--accent); color: var(--white); }
.btn--outline:hover { background: var(--accent); color: var(--ink); }
.link-arrow {
	display: inline-flex; align-items: center; gap: 12px; min-height: 48px;
	font-weight: 600; border-bottom: 2px solid var(--accent); align-self: flex-start;
}
.link-arrow:hover { text-decoration: none; border-bottom-color: currentColor; }
.link-plain {
	display: inline-flex; align-items: center; min-height: 56px;
	font-weight: 500; font-size: 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.link-plain:hover { text-decoration: none; border-bottom-color: var(--accent); }

/* ---------- Testata ---------- */
.site-top { background: var(--ink); color: var(--white); padding: 0 var(--pad); }
.site-header {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
	gap: 16px 32px; padding: 24px 0; border-bottom: 1px solid var(--line-dark);
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand__mark { display: block; width: 56px; height: auto; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; color: var(--accent); line-height: 1.2; }
.brand__name { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: 0.005em; line-height: 1; }
.brand--footer .brand__mark { width: 46px; }
.brand--footer .brand__name { font-size: 24px; }
.brand--footer .brand__kicker { font-size: 10px; }
@media (max-width: 600px) {
	.brand { gap: 11px; }
	.brand__mark { width: 46px; }
	.brand__name { font-size: 23px; }
	.brand__kicker { font-size: 10px; letter-spacing: 0.3em; }
}
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { max-height: 56px; width: auto; }

.nav-toggle {
	display: none; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-right: -12px; padding: 0;
	background: none; color: var(--white); border: 0; cursor: pointer;
}
.nav-toggle__bars { position: relative; display: block; width: 26px; height: 18px; }
.nav-toggle__bars span {
	position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
	transition: transform .25s, opacity .2s, top .25s;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 8px; }
.nav-toggle__bars span:nth-child(3) { top: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; font-size: 15px; font-weight: 500; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 0 32px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 12px 0; }
.menu .current-menu-item > a, .menu .current-menu-ancestor > a { box-shadow: inset 0 -2px 0 var(--accent); }
.menu .sub-menu {
	position: absolute; top: 100%; left: -20px; z-index: 20; min-width: 290px;
	padding: 10px 0; background: var(--white); color: var(--ink);
	box-shadow: 0 18px 40px rgba(11, 22, 38, 0.18);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { padding: 11px 20px; }
.menu .sub-menu a:hover { background: var(--mist); text-decoration: none; }
.menu .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 9px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: translateY(-3px) rotate(45deg);
}
.header-phone {
	display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
	border: 1px solid rgba(255, 255, 255, 0.4); font-variant-numeric: tabular-nums;
}
.header-phone:hover { text-decoration: none; border-color: var(--accent); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
	.site-nav.is-open { display: flex; }
	.menu { flex-direction: column; align-items: stretch; gap: 0; }
	.menu > li { border-top: 1px solid var(--line-dark); }
	.menu a { padding: 14px 0; }
	.menu .sub-menu {
		position: static; min-width: 0; padding: 0 0 8px 16px; background: none; color: inherit;
		box-shadow: none; opacity: 1; visibility: visible; transform: none;
	}
	.menu .sub-menu a { padding: 10px 0; color: var(--on-dark); }
	.menu .sub-menu a:hover { background: none; }
	.header-phone { margin-top: 12px; justify-content: center; }
}

/* ---------- Hero home ---------- */
.hero {
	display: flex; flex-wrap: wrap; gap: 56px 72px; align-items: flex-end;
	padding: clamp(56px, 8vw, 112px) 0 clamp(56px, 7vw, 96px);
}
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.hero__eyebrow { display: flex; align-items: center; gap: 16px; }
.hero__eyebrow::before { content: ""; width: 48px; height: 1px; background: var(--accent); flex: 0 0 auto; }
.hero h1 { font-size: clamp(44px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -0.015em; }
.hero h1 em { color: var(--accent); }
.hero__lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__media { flex: 1 1 360px; max-width: 420px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.hero__frame { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2); }
.hero__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Ritratto scontornato: figura grande, senza riquadro, appoggiata alla linea in fondo all'hero.
   Un alone chiaro dietro la figura stacca l'abito scuro dallo sfondo. */
.hero--portrait { padding-top: clamp(28px, 3.4vw, 48px); padding-bottom: 0; align-items: stretch; }
.hero--portrait .hero__text { align-self: center; padding-bottom: clamp(40px, 5vw, 72px); }
.hero__media--cutout { flex: 0 1 var(--portrait-w, 540px); max-width: var(--portrait-w, 540px); justify-content: flex-end; margin: 0 auto; }
.hero__media--cutout .hero__frame {
	aspect-ratio: 1 / 1.12; overflow: hidden; padding: 0;
	background: radial-gradient(ellipse 50% 56% at 50% 60%, rgba(124, 154, 200, 0.72), rgba(124, 154, 200, 0.34) 45%, rgba(124, 154, 200, 0.08) 82%, rgba(124, 154, 200, 0) 100%);
}
.hero__media--cutout .hero__frame img { width: 100%; height: auto; object-fit: initial; }
@media (max-width: 1000px) {
	.hero--portrait .hero__text { padding-bottom: 0; }
	.hero__media--cutout { flex: 1 1 100%; margin: 0 auto; max-width: min(var(--portrait-w, 540px), 440px); }
}
/* Da computer l'hero si adatta all'altezza della finestra: titolo e ritratto si riducono
   sugli schermi bassi, così la figura resta visibile intera senza scorrere. */
@media (min-width: 1001px) {
	.hero--portrait { gap: 40px 48px; padding-top: clamp(20px, 3.4vh, 48px); }
	.hero--portrait h1 { font-size: clamp(44px, min(5.7vw, 12vh), 96px); }
	.hero--portrait .hero__text { flex-basis: 400px; gap: clamp(18px, 3vh, 32px); padding-bottom: clamp(24px, 4.5vh, 64px); }
	.hero--portrait .hero__lead { font-size: clamp(17px, min(1.5vw, 2.4vh), 20px); }
	.hero__media--cutout { flex: 0 0 auto; max-width: none; }
	.hero__media--cutout .hero__frame {
		height: clamp(400px, min(calc(100vh - 160px), 47vw), calc(var(--portrait-w, 540px) * 1.12));
		aspect-ratio: 1 / 1.12; width: auto;
	}
}
.hero__caption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; font-size: 14px; color: var(--on-dark-muted); }

.facts {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
	border-top: 1px solid var(--line-dark);
}
.fact { padding: 32px 24px 40px 0; display: flex; flex-direction: column; gap: 6px; }
.fact__big { font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.fact__label { font-size: 15px; color: var(--on-dark-muted); }

/* ---------- Aree ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 56px; }
.section-head h2 { flex: 1 1 420px; font-size: clamp(34px, 4.4vw, 60px); letter-spacing: -0.01em; }
.section-head p { flex: 1 1 360px; max-width: 480px; color: var(--muted); }
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.area {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 40px;
	padding: 30px 0; border-bottom: 1px solid var(--line);
	transition: padding .2s, background-color .2s;
}
.area:hover { text-decoration: none; background: var(--mist); padding-left: 20px; padding-right: 20px; }
.area__num { flex: 0 0 48px; font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.area__title { flex: 1 1 320px; font-family: var(--serif); font-size: clamp(26px, 2.8vw, 38px); line-height: 1.15; }
.area__desc { flex: 2 1 360px; color: var(--muted); }

/* ---------- Urgenze ---------- */
.urgent h2 { max-width: 760px; font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 24px; }
.card { background: var(--white); padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.card h3 { font-size: 30px; line-height: 1.15; }
.card p { color: var(--muted); }
.card .link-arrow { margin-top: 8px; font-variant-numeric: tabular-nums; }

/* ---------- Studio ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 88px; align-items: start; }
.split__media { grid-row: span 2; align-self: center; }
.split__media img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.split__head { display: flex; flex-direction: column; gap: 24px; align-self: end; }
.split__head h2 { font-size: clamp(32px, 3.8vw, 52px); letter-spacing: -0.01em; }
.split__text { display: flex; flex-direction: column; gap: 24px; }
.split__text p { color: var(--text); max-width: 640px; }
.split--solo .split__head { align-self: start; }
.split--solo .split__text { padding-top: 37px; }
@media (max-width: 860px) {
	.split { grid-template-columns: minmax(0, 1fr); }
	.split__media { grid-row: auto; }
	.split--solo .split__text { padding-top: 0; }
}

/* ---------- Fascia (patrocinio, CTA) ---------- */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 72px; }
.band__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.band__text h2 { font-size: clamp(30px, 3.8vw, 52px); }
.band__text p { max-width: 620px; color: var(--on-dark); }

/* ---------- Stampa, recensioni, news ---------- */
.press { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px 48px; padding-bottom: 40px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.press__list { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; margin: 0; padding: 0; font-family: var(--serif); font-size: 22px; color: var(--text); }
.block-title { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; margin-bottom: 36px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border: 1px solid var(--line); }
.post-card:hover { text-decoration: none; border-color: var(--ink); }
.post-card time { font-size: 14px; color: var(--muted); }
.post-card h3 { font-size: 26px; line-height: 1.2; }
.post-card p { color: var(--muted); font-size: 16px; }

/* ---------- Recensioni (plugin Rich Showcase for Google Reviews) ---------- */
.reviews-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.reviews-write { font-size: 15px; font-weight: 500; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.reviews .wp-gr { font-family: var(--sans) !important; color: var(--ink); }
.reviews .wp-gr .grw-review-inner.grw-backgnd { background: var(--mist) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 28px !important; }
.section--mist .reviews .wp-gr .grw-review-inner.grw-backgnd { background: var(--white) !important; }
.reviews .wp-gr .wp-google-name { font-family: var(--sans) !important; font-weight: 600 !important; font-size: 16px !important; color: var(--ink) !important; text-decoration: none !important; }
.reviews .wp-gr .wp-google-time { font-size: 13px !important; color: var(--muted) !important; }
.reviews .wp-gr .wp-google-text { font-family: var(--serif) !important; font-size: 18px !important; line-height: 1.5 !important; color: var(--text) !important; }
.reviews .wp-gr .wp-google-feedback a { color: var(--ink) !important; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.reviews .wp-gr .rpi-dot.active { background: var(--ink) !important; }

/* ---------- Contatti e form ---------- */
.contact { display: flex; flex-wrap: wrap; gap: 48px 88px; }
.contact__info { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__info h2 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.01em; }
.contact__info > p { color: var(--text); }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid #c5ccd7; }
.contact-list span:first-child { color: var(--muted); }
.contact-list a, .contact-list span:last-child { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.vella-form { flex: 1 1 420px; min-width: 0; background: var(--white); padding: clamp(24px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 20px; }
.section:not(.section--mist) .vella-form { border: 1px solid var(--line); }
.vella-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 20px; }
.vella-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.vella-form input[type="text"], .vella-form input[type="tel"], .vella-form input[type="email"],
.vella-form select, .vella-form textarea {
	width: 100%; min-height: 52px; padding: 12px 14px;
	font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--white);
	border: 1px solid var(--line-strong); border-radius: 0;
}
.vella-form textarea { resize: vertical; }
.vella-form input:focus, .vella-form select:focus, .vella-form textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.vella-form .vella-form__check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; color: var(--muted); min-height: 44px; }
.vella-form__check input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.vella-form__check a { text-decoration: underline; }
.vella-form .btn { justify-content: center; }
/* Campo trappola: fuori schermo, invisibile a persone e screen reader. */
.vella-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.vella-notice { padding: 16px 18px; font-size: 15px; font-weight: 500; border-left: 0; }
.vella-notice--ok { background: #e3f1e8; color: #14432a; }
.vella-notice--err { background: #fbe6e4; color: #6e1b14; }

/* ---------- Mappa (pagina Contatti) ---------- */
.map-block { display: flex; flex-wrap: wrap; gap: 40px 88px; align-items: stretch; }
.map-block__info { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.map-block__info h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; }
.map-block__info > p { color: var(--text); }
.map-block__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.map-block__list { margin-top: 12px; }
.map-block__map { flex: 2 1 480px; min-width: 0; min-height: 420px; position: relative; background: var(--ink); overflow: hidden; }
.map-block__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-block__placeholder {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
	padding: 32px; text-align: center; color: var(--on-dark);
	background-color: var(--ink);
	background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 40px 40px;
}
.map-block__pin { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 50%; }
.map-block__placeholder small { font-size: 13px; color: var(--on-dark-muted); max-width: 320px; }

/* ---------- Pagine interne ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 20px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 76px); line-height: 1.04; letter-spacing: -0.015em; max-width: 980px; }
.page-hero p { max-width: 640px; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-dark); }
.breadcrumb { font-size: 14px; color: var(--on-dark-muted); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; }

.entry { max-width: 760px; margin: 0 auto; color: var(--text); font-size: 18px; line-height: 1.7; }
.entry--wide { max-width: var(--wrap); }
.entry > * + * { margin-top: 1.3em; }
.entry h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--ink); margin-top: 1.8em; }
.entry h3 { font-size: clamp(23px, 2.4vw, 30px); color: var(--ink); margin-top: 1.6em; }
.entry h4 { font-family: var(--sans); font-weight: 600; font-size: 18px; color: var(--ink); margin-top: 1.5em; }
.entry a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: 0.5em; }
.entry blockquote { margin-left: 0; margin-right: 0; padding: 4px 0 4px 28px; border-left: 1px solid var(--ink); font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4; color: var(--ink); }
.entry img { display: block; }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.entry .alignwide { max-width: none; width: min(1080px, calc(100vw - 2 * var(--pad))); margin-left: 50%; transform: translateX(-50%); }
.entry .wp-block-button__link { background: var(--ink); color: var(--white); border-radius: 0; padding: 16px 30px; font-weight: 600; text-decoration: none; }
.entry-meta { font-size: 14px; color: var(--on-dark-muted); }
.pagination { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); }
.pagination .current { background: var(--ink); color: var(--white); border-color: var(--ink); }
.empty-state { max-width: 640px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

/* ---------- Pagine delle aree: testo + colonna laterale ---------- */
.page-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px 88px; align-items: start; }
.page-cols .entry { margin: 0; max-width: 760px; }
.aside { position: sticky; top: 32px; display: flex; flex-direction: column; gap: 24px; }
.aside__box { padding: 28px; background: var(--mist); display: flex; flex-direction: column; gap: 14px; }
.aside__box--dark { background: var(--ink); color: var(--white); }
.aside__box--dark p { color: var(--on-dark); font-size: 16px; }
.aside__title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }
.aside__nav { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.aside__nav a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #c5ccd7; font-size: 16px; font-weight: 500; }
.aside__nav a:hover { text-decoration: none; padding-left: 6px; }
.aside__nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); padding-left: 14px; }
.aside__box .btn { justify-content: center; min-height: 52px; padding: 0 20px; }
.aside__phone { font-family: var(--serif); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.aside__link { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 1000px) {
	.page-cols { grid-template-columns: minmax(0, 1fr); }
	.aside { position: static; }
}

/* ---------- Stili dei blocchi nei contenuti ---------- */
.entry .is-style-lead { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); line-height: 1.4; color: var(--ink); }
.entry ul.is-style-checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 0 40px; border-top: 1px solid var(--ink); }
.single-post .entry ul.is-style-checks { grid-template-columns: minmax(0, 1fr); }
.entry ul.is-style-checks li { margin: 0; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; font-size: 17px; color: var(--ink); }
.entry ul.is-style-checks li::before { content: ""; position: absolute; left: 2px; top: 22px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.entry .wp-block-quote { margin: 2em 0; }
.entry .wp-block-quote p { margin: 0; }
.entry .wp-block-quote cite { display: block; margin-top: 12px; font-family: var(--sans); font-style: normal; font-size: 14px; color: var(--muted); }
.entry .wp-block-group.is-style-note { padding: 28px 32px; background: var(--mist); }
.entry .wp-block-group.is-style-note > * + * { margin-top: 0.8em; }
.entry .wp-block-group.is-style-note h2, .entry .wp-block-group.is-style-note h3 { margin-top: 0; font-size: 26px; }
.entry .wp-block-group.is-style-step { padding: 0 0 0 28px; border-left: 1px solid var(--ink); position: relative; }
.entry .wp-block-group.is-style-step + .wp-block-group.is-style-step { margin-top: 0; padding-top: 32px; }
.entry .wp-block-group.is-style-step > h3 { margin-top: 0; font-size: 26px; }
.entry .wp-block-group.is-style-step > .step-year { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.entry .wp-block-group.is-style-step > * + * { margin-top: 0.6em; }

/* ---------- Modelli a tutta larghezza e landing ---------- */
.site-top--bare .site-header { border-bottom: 0; }
.full-width-content > .alignfull { width: 100%; }

/* ---------- Pulsante WhatsApp fisso ---------- */
.wa-float {
	position: fixed; z-index: 90;
	right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 0;
	height: 64px; min-width: 64px; padding: 0 16px; border-radius: 32px;
	background: #25d366; color: #fff;
	box-shadow: 0 10px 28px rgba(11, 22, 38, 0.32), 0 2px 6px rgba(11, 22, 38, 0.2);
	transition: transform .2s, box-shadow .2s, gap .2s;
}
.wa-float:hover, .wa-float:focus-visible { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(11, 22, 38, 0.38), 0 2px 6px rgba(11, 22, 38, 0.2); gap: 10px; }
.wa-float__icon { display: inline-flex; width: 32px; height: 32px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 16px; transition: max-width .25s; }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 120px; }
.wa-float:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
@media (max-width: 600px) {
	.wa-float { height: 58px; min-width: 58px; padding: 0 13px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media print { .wa-float { display: none; } }
/* Spazio in fondo perché il pulsante WhatsApp non copra i link del piè di pagina. */
.has-wa-float .site-footer { padding-bottom: 104px; }

/* ---------- Funnel: landing infortunistica e grazie ---------- */
.site-header--funnel { flex-wrap: nowrap; }
.header-phone--funnel { gap: 8px; white-space: nowrap; }
.header-phone__label { color: var(--accent); font-weight: 600; }
@media (max-width: 600px) { .header-phone--funnel .header-phone__label { display: none; } .header-phone--funnel { padding: 0 14px; } }

.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-areas: 'intro form' 'trust form'; grid-template-rows: auto 1fr; gap: 28px 72px; align-items: start; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); scroll-margin-top: 16px; }
.lp-hero__text { display: flex; flex-direction: column; gap: 24px; }
.lp-hero__intro { grid-area: intro; padding-top: 8px; }
.lp-hero__trust { grid-area: trust; }
.lp-hero__form { grid-area: form; }
.lp-hero h1 { font-size: clamp(34px, 4.2vw, 58px); line-height: 1.06; letter-spacing: -0.012em; }
.lp-hero h1 em { color: var(--accent); }
.lp-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; color: var(--on-dark); }
.lp-ticks li { position: relative; padding-left: 30px; }
.lp-ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 13px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.lp-lawyer { display: flex; align-items: center; gap: 14px; padding-top: 8px; }
.lp-lawyer__img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center top; background: #dfe3ea; }
.lp-lawyer span { display: flex; flex-direction: column; font-size: 14px; color: var(--on-dark-muted); }
.lp-lawyer strong { font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--white); }
@media (max-width: 960px) { .lp-hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'intro' 'form' 'trust'; grid-template-rows: auto; } }

.lead-form { background: var(--white); color: var(--ink); padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); position: relative; }
.lead-form__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lead-form__title { font-family: var(--serif); font-weight: 500; font-size: 24px; }
.lead-form__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lead-form__count b { font-weight: 600; color: var(--ink); }
.lead-form__bar { height: 4px; background: var(--mist); }
.lead-form__bar span { display: block; height: 100%; width: 20%; background: var(--accent); transition: width .3s; }
.lead-form:not(.is-stepped) .lead-form__bar, .lead-form:not(.is-stepped) .lead-form__count { display: none; }
.lead-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.lead-form:not(.is-stepped) .lead-step + .lead-step { padding-top: 18px; border-top: 1px solid var(--line); }
.lead-step legend { font-weight: 600; font-size: 19px; line-height: 1.3; padding: 0; margin-bottom: 14px; }
.lead-choices { display: grid; gap: 10px; }
.lead-choice { position: relative; display: flex; align-items: center; min-height: 54px; padding: 12px 16px 12px 48px; border: 1px solid var(--line-strong); cursor: pointer; font-size: 16px; transition: border-color .15s, background-color .15s; }
.lead-choice:hover { border-color: var(--ink); }
.lead-choice input { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin: -10px 0 0; accent-color: var(--ink); }
.lead-choice:has(input:checked) { border-color: var(--ink); background: var(--mist); font-weight: 600; }
.lead-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.lead-fields { display: grid; gap: 14px; }
.lead-fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.lead-fields small { font-weight: 400; color: var(--muted); }
.lead-fields input[type="text"], .lead-fields input[type="tel"], .lead-fields input[type="email"], .lead-fields textarea {
	width: 100%; min-height: 50px; padding: 11px 14px; font: 400 16px/1.4 var(--sans); color: var(--ink);
	border: 1px solid var(--line-strong); border-radius: 0; background: var(--white);
}
.lead-fields input:focus, .lead-fields textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.lead-check { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; color: var(--muted); }
.lead-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: var(--ink); }
.lead-check a { text-decoration: underline; }
.lead-submit { justify-content: center; width: 100%; }
.lead-submit:disabled { opacity: .6; cursor: wait; }
.lead-reassure { font-size: 14px; color: var(--muted); text-align: center; }
.lead-nav { display: flex; }
.lead-back { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 500 15px var(--sans); color: var(--muted); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.lead-form [hidden] { display: none !important; }

.lp-reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.lp-reason { border-top: 1px solid var(--ink); padding-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.lp-reason__num { font-size: 14px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-reason h3 { font-size: 26px; font-weight: 500; }
.lp-reason p { color: var(--muted); }

.lp-video { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: center; }
.lp-video__text { display: flex; flex-direction: column; gap: 18px; }
.lp-video__text h2 { font-size: clamp(30px, 3.6vw, 48px); }
.lp-video__text p { color: var(--text); }
.yt-lite, .lp-video iframe { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: var(--ink); cursor: pointer; overflow: hidden; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.yt-lite:hover img { transform: scale(1.02); }
.yt-lite__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 18px rgba(0,0,0,.4)); }
@media (max-width: 860px) { .lp-video { grid-template-columns: minmax(0, 1fr); } }

.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.lp-steps li { padding: 28px; background: var(--mist); display: flex; flex-direction: column; gap: 10px; }
.lp-steps span { font-family: var(--serif); font-size: 36px; color: #8a6a34; line-height: 1; }
.lp-steps h3 { font-size: 23px; font-weight: 500; }
.lp-steps p { color: var(--muted); font-size: 16px; }

.lp-faq-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 32px; }
.lp-faq-wrap h2 { font-size: clamp(30px, 3.6vw, 48px); }
.lp-faq { border-top: 1px solid var(--ink); }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0; font-weight: 600; font-size: 18px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1; color: #8a6a34; transition: transform .2s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { padding: 0 0 22px; color: var(--text); max-width: 720px; }

.area-form__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px 88px; align-items: start; }
.area-form__text { display: flex; flex-direction: column; gap: 20px; padding-top: 12px; }
.area-form__text h2 { font-size: clamp(32px, 3.8vw, 52px); }
.area-form__text p { color: var(--on-dark); max-width: 460px; }
.area-form__text .link-plain { align-self: flex-start; }
@media (max-width: 960px) { .area-form__grid { grid-template-columns: minmax(0, 1fr); } }
.lead-hint { display: block; margin-top: 2px; font-weight: 400; color: var(--muted); font-size: 13px; }
.landing-bar { display: none; }
@media (max-width: 960px) {
	.is-funnel .landing-bar {
		position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
		background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
		transition: transform .25s;
	}
	.landing-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px; color: var(--white); font-weight: 600; font-size: 15px; border-right: 1px solid var(--line-dark); }
	.landing-bar a:hover { text-decoration: none; }
	.landing-bar .landing-bar__main { background: var(--accent); color: var(--ink); border-right: 0; }
	.landing-bar.is-hidden { transform: translateY(110%); }
	.is-funnel .site-footer { padding-bottom: 96px; }
}

.lp-thanks { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.lp-thanks__icon { width: 60px; height: 60px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--ink); }
.lp-thanks h1 { font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; }
.lp-next { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px 88px; align-items: start; }
.lp-next__docs { display: flex; flex-direction: column; gap: 18px; }
.lp-next__docs h2 { font-size: clamp(28px, 3.2vw, 42px); }
.lp-next__docs > p { color: var(--muted); }
.lp-docs { list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.lp-docs li { position: relative; padding: 14px 0 14px 32px; border-bottom: 1px solid var(--line); }
.lp-docs li::before { content: ""; position: absolute; left: 3px; top: 22px; width: 12px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.lp-next__aside { display: flex; flex-direction: column; gap: 24px; }
.lp-next__aside .btn { justify-content: center; }
@media (max-width: 900px) { .lp-next { grid-template-columns: minmax(0, 1fr); } }
.site-footer--funnel { padding-top: 32px; }
.site-footer--funnel .footer-bottom { border-top: 0; padding-top: 0; }
.funnel-disclaimer { margin-top: 20px; font-size: 12px; color: #9aa4b3; max-width: 760px; }

/* ---------- Piè di pagina ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 56px var(--pad) 40px; font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 64px; margin-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 6px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-col strong { color: var(--white); font-weight: 600; }
.footer-col--brand { gap: 14px; max-width: 420px; }
.footer-legal-lines { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-legal-lines span { display: block; }
.footer-col .social { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: row; flex-wrap: wrap; gap: 10px; }
.social a {
	display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 50%; color: var(--white);
	transition: background-color .15s, border-color .15s, color .15s;
}
.social a:hover, .social a:focus-visible { text-decoration: none; background: var(--accent); border-color: var(--accent); color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.3); text-underline-offset: 4px; }
.footer-links a:hover { text-decoration-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

.press:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }

@media (max-width: 600px) {
	.facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fact { padding: 24px 16px 28px 0; }
	.fact__big { font-size: 30px; }
	.area { padding: 24px 0; }
	.area .arrow { display: none; }
	.area:hover { padding-left: 0; padding-right: 0; background: none; }
	.hero__actions .btn { width: 100%; justify-content: space-between; }
}
.entry .wp-block-group.is-style-step + .wp-block-group.is-style-note { margin-top: 2.2em; }

/* 1.7.1 — secondo numero di telefono */
.contact-list__nums { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.aside__phones { display: flex; flex-direction: column; gap: 6px; }
.call-line { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.6; }
.call-line a { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: none; border-bottom: 1px solid currentColor; }
.call-line a:hover { border-bottom-color: var(--accent); }
.area-form__text .call-line--light { color: #fff; max-width: none; }
.area-form__text .call-line--light a { border-bottom-color: rgba(255, 255, 255, 0.4); }
.call-line--aside { font-size: 15px; }

/* H1 della home sull'occhiello (parole chiave), slogan come titolo visivo */
.hero h1.hero__eyebrow { font-family: var(--sans); font-size: 13px; font-weight: 400; line-height: 1.5; letter-spacing: 0.2em; text-wrap: wrap; }
.hero .hero__title { font-family: var(--serif); font-weight: 500; margin: 0; text-wrap: balance; font-size: clamp(44px, 6.6vw, 96px); line-height: 1.02; letter-spacing: -0.015em; }
.hero--portrait .hero__title { font-size: clamp(44px, min(5.7vw, 12vh), 96px); }
.hero .hero__title em { color: var(--accent); }

/* Orari nella sezione Dove siamo */
.map-block__hours { margin: 24px 0 8px; }
.map-block__hours dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 12px 0 0; font-size: 15px; }
.map-block__hours dt { font-weight: 600; }
.map-block__hours dd { margin: 0; color: var(--muted); }
