/*
Theme Name: Colombo Servizi
Theme URI: https://assistenzarisarcimentoamianto.it/
Author: Colombo Servizi S.r.l.
Description: Tema leggero e moderno per Assistenza Risarcimento Amianto. Nessuna dipendenza esterna, compatibile con PHP 7.4 e 8.x, WPBakery Page Builder e Contact Form 7.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
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: colombo
*/

/* ==========================================================================
   Variabili
   ========================================================================== */
:root {
	--c-primary: #14284b;
	--c-primary-2: #1d3a6b;
	--c-accent: #f39200;
	--c-accent-dark: #d97f00;
	--c-text: #253042;
	--c-muted: #5d6879;
	--c-line: #e3e6ec;
	--c-tint: #f5f6f9;
	--c-bg: #ffffff;
	--c-danger: #b42318;
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(20, 40, 75, .06), 0 8px 24px rgba(20, 40, 75, .08);
	--shadow-lg: 0 18px 50px rgba(20, 40, 75, .18);
	--container: 1200px;
	--font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 84px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--c-text);
	background: var(--c-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--c-primary-2); text-underline-offset: 3px; }
a:hover { color: var(--c-accent-dark); }
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .6em;
	color: var(--c-primary);
	line-height: 1.2;
	font-weight: 750;
	letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.15em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 1000;
	background: var(--c-primary); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--page { max-width: 1000px; padding-top: 48px; padding-bottom: 64px; }

/* ==========================================================================
   Bottoni
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
	font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.7em; font-size: 1rem; }
.btn--block { display: flex; width: 100%; margin-bottom: 10px; }
.btn--accent { background: var(--c-accent); color: #1b1300; }
.btn--accent:hover { background: var(--c-accent-dark); color: #1b1300; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-2); color: #fff; }
.btn--light { background: #fff; color: var(--c-primary); }
.btn--light:hover { background: #eef1f6; color: var(--c-primary); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline { border-color: var(--c-primary); color: var(--c-primary); background: transparent; }
.btn--outline:hover { background: var(--c-primary); color: #fff; }

/* ==========================================================================
   Avviso, topbar, header
   ========================================================================== */
.site-alert { background: var(--c-danger); color: #fff; font-size: .9rem; line-height: 1.45; }
.site-alert__inner { display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.site-alert p { margin: 0; flex: 1; }
.site-alert__close {
	background: transparent; border: 0; color: #fff; cursor: pointer; padding: 6px; border-radius: 6px; display: flex;
}
.site-alert__close:hover { background: rgba(255,255,255,.15); }

.topbar { background: var(--c-primary); color: #c9d3e6; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar__links { display: flex; gap: 22px; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #c9d3e6; text-decoration: none; white-space: nowrap; }
a.topbar__item:hover { color: #fff; }
.topbar .icon { color: var(--c-accent); }
.topbar__green { background: var(--c-accent); color: #1b1300; padding: 4px 12px; border-radius: 999px; font-weight: 600; }
a.topbar__green:hover { color: #1b1300; background: #ffa82e; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: #fff;
	border-bottom: 1px solid var(--c-line);
	transition: box-shadow .2s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(20,40,75,.08); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.site-branding picture, .split__media picture { display: block; }
.site-branding img { display: block; width: auto; max-height: 56px; transition: max-height .2s; }
.is-scrolled .site-branding img { max-height: 46px; }

/* Navigazione desktop */
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav .menu { display: flex; align-items: center; gap: 2px; }
.site-nav .menu > li { position: relative; }
.site-nav .menu > li > a {
	display: flex; align-items: center; gap: 4px;
	padding: 10px 11px; border-radius: 8px;
	color: var(--c-primary); text-decoration: none; font-weight: 620; font-size: .93rem; white-space: nowrap;
}
.site-nav .menu > li > a:hover,
.site-nav .menu > li:focus-within > a,
.site-nav .menu > .current-menu-item > a,
.site-nav .menu > .current-menu-ancestor > a,
.site-nav .menu > .current_page_item > a { color: var(--c-accent-dark); background: #fff6e8; }
.submenu-caret {
	display: inline-block; width: 7px; height: 7px; margin-left: 4px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .6;
}
.site-nav .sub-menu, .site-nav .children {
	position: absolute; top: 100%; left: 0; min-width: 260px; padding: 8px;
	background: #fff; border: 1px solid var(--c-line); border-radius: 12px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.site-nav .sub-menu .sub-menu, .site-nav .children .children { top: -9px; left: 100%; }
.site-nav li:hover > .sub-menu, .site-nav li:focus-within > .sub-menu,
.site-nav li:hover > .children, .site-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu li, .site-nav .children li { position: relative; }
.site-nav .sub-menu a, .site-nav .children a {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 9px 12px; border-radius: 8px; color: var(--c-text); text-decoration: none; font-size: .9rem; line-height: 1.35;
}
.site-nav .sub-menu a:hover, .site-nav .children a:hover { background: var(--c-tint); color: var(--c-accent-dark); }
.site-nav .sub-menu .submenu-caret { transform: rotate(-45deg); }
.site-nav .menu > li:last-child > .sub-menu, .site-nav .menu > li:nth-last-child(2) > .sub-menu { left: auto; right: 0; }
.site-nav .menu > li:last-child .sub-menu .sub-menu, .site-nav .menu > li:nth-last-child(2) .sub-menu .sub-menu { left: auto; right: 100%; }
.site-nav__cta { display: none; }

.nav-toggle {
	display: none; width: 46px; height: 46px; border: 1px solid var(--c-line); border-radius: 10px;
	background: #fff; cursor: pointer; position: relative;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	position: absolute; left: 12px; width: 20px; height: 2px; background: var(--c-primary); border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.nav-open .nav-toggle__bars { background: transparent; }
.nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1100px) {
	.nav-toggle { display: block; }
	.site-nav {
		position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); z-index: 99;
		flex-direction: column; align-items: stretch; gap: 16px;
		padding: 80px 20px 32px; overflow-y: auto;
		background: #fff; box-shadow: var(--shadow-lg);
		transform: translateX(100%); transition: transform .25s ease;
	}
	.nav-open .site-nav { transform: none; }
	.nav-open { overflow: hidden; }
	.nav-toggle { z-index: 101; }
	.nav-open .nav-toggle { position: fixed; top: 16px; right: 20px; }
	.admin-bar.nav-open .nav-toggle { top: 62px; }
	.site-nav .menu { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav .menu > li > a, .site-nav .sub-menu a, .site-nav .children a {
		justify-content: space-between; padding: 12px 10px; font-size: 1rem; border-bottom: 1px solid var(--c-line); border-radius: 0; white-space: normal;
	}
	.site-nav .sub-menu, .site-nav .children {
		position: static; display: none; min-width: 0; padding: 0 0 0 14px;
		border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; border-radius: 0;
	}
	.site-nav li.is-open > .sub-menu, .site-nav li.is-open > .children { display: block; }
	.site-nav .submenu-caret { padding: 4px; width: 10px; height: 10px; }
	.site-nav li.is-open > a > .submenu-caret { transform: rotate(225deg); }
	.site-nav .sub-menu .submenu-caret { transform: rotate(45deg) translateY(-2px); }
	.site-nav__cta { display: flex; }
	.admin-bar .site-nav { padding-top: 126px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 760px) {
	:root { --header-h: 70px; }
	.topbar__address, .topbar__links a:not(.topbar__green) { display: none; }
	.topbar__inner { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
	.site-alert { font-size: .82rem; }
	.topbar__inner { justify-content: center; }
	.site-branding img { max-height: 44px; }
}

/* ==========================================================================
   Sezioni comuni
   ========================================================================== */
.section { padding: 88px 0; }
.section--tight { padding: 48px 0 72px; }
.section--tint { background: var(--c-tint); }
.section--dark { background: var(--c-primary); color: #d5ddeb; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a:not(.btn) { color: #ffc266; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head p:last-child { color: var(--c-muted); font-size: 1.08rem; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; max-width: none; text-align: left; gap: 16px; flex-wrap: wrap; }
.eyebrow {
	display: inline-block; margin-bottom: 12px;
	font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--c-accent-dark);
}
.section--dark .eyebrow { color: var(--c-accent); }

/* Hero */
.hero {
	position: relative; color: #fff; overflow: hidden;
	background: var(--c-primary) var(--hero-image) center right / cover no-repeat;
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	/* velo solo dietro al testo: la foto a destra resta naturale */
	background: linear-gradient(90deg, rgba(10,22,45,.88) 0%, rgba(10,22,45,.72) 34%, rgba(10,22,45,.18) 58%, rgba(10,22,45,0) 72%);
}
.hero__title, .hero__text { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
.hero__inner { position: relative; min-height: min(640px, 82vh); display: flex; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero__content { max-width: 620px; }
.hero .eyebrow { color: var(--c-accent); }
.hero__title { color: #fff; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05; margin-bottom: 20px; }
.hero__text { font-size: 1.15rem; color: #dbe3f0; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: #c9d3e6; }
.hero__badges li { display: flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: var(--c-accent); }
@media (max-width: 760px) {
	/* su telefono la foto sta in alto, il testo sotto su fondo scuro */
	.hero { background-image: var(--hero-image-mobile, var(--hero-image)); background-position: center top; background-size: 100% auto; }
	.hero::before { background: linear-gradient(180deg, rgba(10,22,45,0) 0, rgba(10,22,45,0) 210px, rgba(10,22,45,.9) 330px, var(--c-primary) 400px); }
	.hero__inner { padding-top: 250px; padding-bottom: 56px; min-height: 0; }
}

/* Card */
.cards { display: grid; gap: 24px; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
	display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line);
	border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card--link { padding: 30px; text-decoration: none; color: var(--c-text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #f7c983; color: var(--c-text); }
.card--link p { color: var(--c-muted); flex: 1; }
.card__icon {
	display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
	border-radius: 14px; background: #fff3e0; color: var(--c-accent-dark);
}
.card__icon .icon { width: 28px; height: 28px; }
.card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--c-primary-2); text-decoration: none; font-size: .95rem; }
.card__more .icon { transition: transform .2s; }
.card:hover .card__more .icon { transform: translateX(4px); }
.services-strip { padding-top: 0; margin-top: -56px; position: relative; z-index: 2; }

.card--post .card__thumb { display: block; aspect-ratio: 16 / 10; background: var(--c-tint); overflow: hidden; }
.card--post .card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card--post:hover .card__thumb img { transform: scale(1.04); }
.card__thumb-placeholder { display: grid; place-items: center; height: 100%; color: #b7c0cf; }
.card__thumb-placeholder .icon { width: 44px; height: 44px; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--c-muted); font-size: .95rem; flex: 1; }
.card__meta { font-size: .8rem !important; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; flex: 0 !important; }
.card__title { font-size: 1.15rem; }
.card__title a { color: var(--c-primary); text-decoration: none; }
.card__title a:hover { color: var(--c-accent-dark); }

/* Split testo/immagine */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__media { margin: 0; }
.split__media img { display: block; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split__media figcaption { margin-top: 12px; font-size: .88rem; color: var(--c-muted); }
.split__media--portrait { position: relative; isolation: isolate; justify-self: center; width: 100%; max-width: 430px; }
.split__media--portrait::before {
	content: ""; position: absolute; inset: 22px -22px 46px 22px; z-index: -1;
	border-radius: var(--radius); background: var(--c-accent); opacity: .9;
}
.split__media--portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.split__media--portrait figcaption { font-weight: 600; color: var(--c-primary); margin-top: 18px; }
@media (max-width: 600px) { .split__media--portrait { max-width: 340px; } .split__media--portrait::before { inset: 16px -12px 46px 16px; } }
@media (max-width: 900px) {
	.split { grid-template-columns: 1fr; gap: 36px; }
	.split--reverse .split__media { order: 0; }
	.section { padding: 64px 0; }
}

/* Step */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step {
	position: relative; counter-increment: step; padding: 30px 26px; background: #fff;
	border-radius: var(--radius); border: 1px solid var(--c-line);
}
.step::after {
	content: "0" counter(step); position: absolute; top: 20px; right: 24px;
	font-size: 2.4rem; font-weight: 800; color: #eef0f5; line-height: 1;
}
.step__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--c-primary); color: #fff; margin-bottom: 18px; }
.step p { color: var(--c-muted); font-size: .95rem; margin: 0; }

/* Argomenti */
.topics { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.topic { padding: 28px; border-radius: var(--radius); background: var(--c-tint); }
.topic h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.topic h3 .icon { color: var(--c-accent-dark); }
.topic ul { list-style: none; margin: 0; padding: 0; }
.topic li a {
	display: flex; justify-content: space-between; align-items: center; padding: 10px 0;
	border-bottom: 1px solid var(--c-line); color: var(--c-text); text-decoration: none; font-weight: 520;
}
.topic li:last-child a { border-bottom: 0; }
.topic li a::after { content: "→"; color: var(--c-accent-dark); transition: transform .2s; }
.topic li a:hover { color: var(--c-accent-dark); }
.topic li a:hover::after { transform: translateX(4px); }

.green-number { max-width: 320px; border-radius: var(--radius-sm); margin-top: 8px; }
.form-card { background: #fff; padding: 34px; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Banda CTA */
.cta-band { background: linear-gradient(120deg, var(--c-primary) 0%, var(--c-primary-2) 100%); color: #d5ddeb; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 52px; padding-bottom: 52px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ==========================================================================
   Pagine interne
   ========================================================================== */
.page-hero { background: var(--c-tint); border-bottom: 1px solid var(--c-line); padding: 34px 0 40px; }
.page-hero--compact { padding: 14px 0; }
.page-hero--compact .breadcrumb { margin: 0; }
.page-hero__title { margin: 0; max-width: 900px; }
.page-hero__meta, .page-hero__desc { margin: 10px 0 0; color: var(--c-muted); }
.breadcrumb { font-size: .87rem; color: var(--c-muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent-dark); }
.breadcrumb .sep { margin: 0 6px; opacity: .5; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
@media (max-width: 1024px) { .layout { grid-template-columns: 1fr; gap: 32px; } .toc { display: none; } }
.entry-thumb { margin: 0 0 28px; }
.entry-thumb img { border-radius: var(--radius); width: 100%; }

/* Contenuti (anche quelli creati con WPBakery) */
.prose { overflow-wrap: break-word; }
.prose > *:first-child { margin-top: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { margin-top: 1.6em; }
.prose h1 span, .prose h2 span, .prose h3 span { font-size: inherit !important; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
/* Citazioni su fondo scuro (molti testi hanno colore bianco impostato a mano) */
.prose blockquote {
	position: relative; margin: 2em 0; padding: 34px 34px 28px 74px;
	background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-2) 100%);
	color: #e8edf6; border-radius: var(--radius); font-size: 1.02rem; line-height: 1.75;
	box-shadow: var(--shadow);
}
.prose blockquote::before {
	content: "\201C"; position: absolute; left: 22px; top: 6px;
	font: 800 4.6rem/1 Georgia, serif; color: var(--c-accent);
}
.prose blockquote p:last-child, .prose blockquote div:last-child { margin-bottom: 0; }
.prose blockquote a, .prose blockquote a[style] { color: #ffc266 !important; }
.prose blockquote strong { color: #fff; }

/* Titoli e liste nei contenuti */
.prose h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: .45em; background: var(--c-accent); border-radius: 3px; }
.prose h2[style*="center"]::after { margin-left: auto; margin-right: auto; }
.prose ul li::marker { color: var(--c-accent-dark); }
.prose ol li::marker { color: var(--c-accent-dark); font-weight: 700; }
.prose a { text-decoration-color: rgba(29,58,107,.35); text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose [style*="text-align: justify"] { text-align: left !important; }
.prose h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.prose h1:first-child, .prose .wpb-content-wrapper > h1:first-of-type { margin-top: 0; }

/* Tabelle con colori impostati a mano (es. "Indice"): stile pulito */
.prose table[style] { background: #fff !important; border: 1px solid var(--c-line) !important; height: auto !important; }
.prose td[style], .prose th[style] { width: auto !important; height: auto !important; border-color: var(--c-line) !important; }
.prose .toc-box, .prose table:has(#salto-pagina) { background: #fff8ec !important; border: 1px solid #f7d9a6 !important; border-radius: var(--radius); border-collapse: separate; overflow: hidden; }
.prose table:has(#salto-pagina) td { border: 0 !important; padding: 22px 26px; }
.prose table:has(#salto-pagina) h3 { margin-top: 0 !important; font-size: 1.1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-dark); }
.prose table:has(#salto-pagina) ul { margin: 0; }
.prose table:has(#salto-pagina) a { font-weight: 600; }
@media (max-width: 600px) { .prose table { display: block; overflow-x: auto; } }

/* Vecchi pulsanti gialli inseriti nei testi */
.prose input[type="submit"][style], .prose input[type="button"][style] {
	background: var(--c-accent) !important; color: #1b1300 !important; border: 0 !important;
	border-radius: 999px !important; padding: 16px 30px !important; font: 700 1rem/1.2 var(--font) !important;
	box-shadow: 0 8px 22px rgba(243,146,0,.3); cursor: pointer; white-space: normal; max-width: 100%;
	transition: background .2s, transform .2s;
}
.prose input[type="submit"][style]:hover { background: var(--c-accent-dark) !important; transform: translateY(-1px); }
.prose a:has(> input) { text-decoration: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--c-tint); }
.prose img { border-radius: var(--radius-sm); }
.prose iframe { border: 0; }
.prose hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, figcaption { font-size: .88rem; color: var(--c-muted); }
@media (max-width: 600px) { .alignleft, .alignright { float: none; margin: 0 0 1em; } }

/* WPBakery: griglia di base se il plugin non carica il suo CSS */
.vc_row { margin-left: -15px; margin-right: -15px; }
.vc_row::after { content: ""; display: table; clear: both; }
.vc_column_container > .vc_column-inner { padding-left: 15px; padding-right: 15px; }

.page-links, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border: 1px solid var(--c-line); border-radius: 10px; text-decoration: none; color: var(--c-primary); font-weight: 600;
}
.page-numbers.current, .page-numbers:hover { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 16px 18px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); text-decoration: none; font-weight: 600; }
.post-navigation span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); font-weight: 500; }
.post-navigation .nav-next { text-align: right; }
.tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; background: var(--c-tint); border-radius: 999px; font-size: .85rem; text-decoration: none; }

/* Sidebar & widget */
.sidebar .widget { padding: 26px; border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 24px; }
.sidebar .widget--cta { background: var(--c-primary); color: #d5ddeb; border: 0; }
.sidebar .widget--cta .widget-title { color: #fff; }
.sidebar .widget--cta .btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.widget-title { font-size: 1.1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 6px 0; }
.sidebar { align-self: stretch; }
@media (min-width: 1025px) { .sidebar__sticky { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; scrollbar-width: thin; } }
.toc { padding: 22px 22px 18px; border: 1px solid var(--c-line); border-radius: var(--radius); margin-bottom: 24px; background: #fff; }
.toc .widget-title { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--c-muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
	display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; font-size: .9rem; line-height: 1.35;
	color: var(--c-text); text-decoration: none; border-left: 2px solid transparent;
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: #b7c0cf; font-size: .8rem; padding-top: 1px; }
.toc a:hover { background: var(--c-tint); color: var(--c-accent-dark); }
.toc a.is-active { background: #fff6e8; color: var(--c-accent-dark); font-weight: 600; }
.toc a.is-active::before { color: var(--c-accent); }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Moduli (Contact Form 7, ricerca, commenti) */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"],
input[type="search"], input[type="date"], input[type="password"], select, textarea {
	width: 100%; padding: 13px 15px; font: inherit; font-size: 1rem; color: var(--c-text);
	background: #fff; border: 1px solid #cdd3dd; border-radius: 10px; transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c-primary-2); box-shadow: 0 0 0 3px rgba(29,58,107,.15); }
textarea { min-height: 130px; resize: vertical; }
input[type="submit"], button[type="submit"], .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border: 0;
	border-radius: 999px; background: var(--c-accent); color: #1b1300; font: inherit; font-weight: 700; cursor: pointer; transition: background .2s;
}
input[type="submit"]:hover, button[type="submit"]:hover, .wpcf7-submit:hover { background: var(--c-accent-dark); }
.wpcf7 p { margin-bottom: 14px; }
.wpcf7 label { display: block; font-weight: 600; font-size: .92rem; color: var(--c-primary); }
.wpcf7-form-control-wrap { display: block; margin-top: 6px; }
.wpcf7-not-valid-tip { font-size: .85rem; color: var(--c-danger); }
.wpcf7 form .wpcf7-response-output { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-size: .92rem; }
.wpcf7-acceptance label, .wpcf7-list-item label { font-weight: 400; display: inline; }
.form-row { margin-bottom: 14px; }
.form-row::after { content: ""; display: table; clear: both; }

.search-form { display: flex; gap: 8px; }
.search-form button { padding: 0 16px; border: 0; border-radius: 10px; background: var(--c-primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.search-again { max-width: 520px; margin-bottom: 32px; }
.empty { max-width: 640px; }

.comments { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--c-line); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { padding: 18px 0; border-bottom: 1px solid var(--c-line); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: #0d1c37; color: #aab6cb; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer .widget-title { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer a { color: #dfe6f2; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 10px; padding: 6px 0; }
.contact-list .icon { color: var(--c-accent); margin-top: .35em; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 1; }
.footer-links li { padding: 5px 0; }
.footer-links a::before { content: "›"; margin-right: 8px; color: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }

.video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play { all: unset; position: absolute; inset: 0; cursor: pointer; }
.video-embed__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video-embed__play:hover img { opacity: 1; }
.video-embed__play:focus-visible { outline: 3px solid var(--c-accent); }
.video-embed__icon {
	position: absolute; top: 50%; left: 50%; width: 64px; height: 44px; transform: translate(-50%, -50%);
	background: #e62117; border-radius: 12px;
}
.video-embed__icon::after {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}

/* Barra chiamata mobile */
.mobile-call { display: none; }
@media (max-width: 760px) {
	.mobile-call {
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
		display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px;
		border-radius: 999px; background: var(--c-accent); color: #1b1300; font-weight: 750; text-decoration: none;
		box-shadow: 0 10px 30px rgba(0,0,0,.25);
	}
	.mobile-call:hover { color: #1b1300; }
	.site-footer { padding-bottom: 76px; }
	.nav-open .mobile-call { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.topbar, .site-header, .site-alert, .cta-band, .site-footer, .mobile-call, .sidebar { display: none !important; }
}
