/* Isello Vernici — rifiniture grafiche (caricato dopo il tema Divi) */

:root {
	--brand: #004273;
	--brand-light: #2e7db3;
	--ink: #3a3a3a;
	--bg-soft: #f4f8fb;
}

/* ---- colori di base (sostituiscono il blu standard Divi #2ea3f2) ---- */
a { color: var(--brand-light); }
a:hover { color: var(--brand); }
::selection { background: var(--brand-light); color: #fff; }

/* ---- topbar ---- */
#main-header { box-shadow: 0 1px 10px rgba(0, 40, 70, 0.12); }
#top-menu a { color: #444; transition: color 0.2s ease; }
#top-menu a:hover { color: var(--brand-light); opacity: 1; }
#top-menu li.current-menu-item > a { color: var(--brand); font-weight: 700; position: relative; }
#top-menu li.current-menu-item > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -9px;
	height: 3px;
	background: var(--brand);
	border-radius: 2px;
}
.et_mobile_menu li.current-menu-item > a { color: var(--brand); font-weight: 700; }
.mobile_menu_bar::before { color: var(--brand); }
.et_mobile_menu { border-top: 3px solid var(--brand); }

/* ---- tipografia dei contenuti ---- */
#main-content .et_pb_text_inner {
	max-width: 760px;
	margin: 0 auto;
	font-size: 16px;
	line-height: 1.8;
	color: var(--ink);
}
#main-content h2 {
	color: var(--brand);
	font-weight: 700;
	letter-spacing: 3px;
	padding-bottom: 16px;
	margin-bottom: 22px;
	position: relative;
}
#main-content h2::after {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	bottom: 0;
	width: 52px;
	height: 3px;
	background: var(--brand-light);
	border-radius: 2px;
}
#main-content .et_pb_text_inner strong { color: var(--brand); }

/* sezioni di testo: respiro e sfondo alternato leggero */
.et_pb_section.et_section_regular { background-color: #fff; }

/* ---- pagina prodotti: griglia di card ---- */
body.page-id-19 #main-content .et_pb_text_inner { max-width: 1100px; }
#main-content .prodotti-intro {
	max-width: 760px;
	margin: 0 auto;
}
#main-content .prodotti-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	margin-top: 36px;
	text-align: left;
}
#main-content .prodotto-card {
	background: #fff;
	border: 1px solid #e3ecf3;
	border-top: 3px solid var(--brand);
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 40, 70, 0.07);
	padding: 24px 28px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
#main-content .prodotto-card:hover {
	box-shadow: 0 6px 20px rgba(0, 40, 70, 0.13);
	transform: translateY(-2px);
}
#main-content .prodotto-card h3 {
	color: var(--brand);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: 0.5px;
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e8eef4;
}
#main-content .prodotto-card ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
#main-content .prodotto-card li {
	position: relative;
	padding: 4px 0 4px 20px;
	font-size: 15px;
}
#main-content .prodotto-card li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.95em;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--brand-light);
}
/* prima card a tutta larghezza, voci su due colonne */
#main-content .prodotto-card-full { grid-column: 1 / -1; }
#main-content .prodotto-card-full ul {
	column-count: 2;
	column-gap: 40px;
}
#main-content .prodotto-card-full li { break-inside: avoid; }

/* ---- pagina contatti ---- */
#main-content .et_pb_text_inner a[href^="tel:"],
#main-content .et_pb_text_inner a[href^="mailto:"] {
	color: var(--brand);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(0, 66, 115, 0.3);
}
#main-content .et_pb_text_inner a[href^="tel:"]:hover,
#main-content .et_pb_text_inner a[href^="mailto:"]:hover {
	border-bottom-color: var(--brand);
}

/* ---- footer ---- */
#main-footer,
#footer-bottom { background-color: var(--brand); }
#footer-info {
	float: none;
	width: 100%;
	text-align: center;
	color: #c8dcec;
	font-weight: 400;
	line-height: 1.7;
	padding: 6px 0;
}
#footer-info strong { color: #fff; letter-spacing: 1px; }

/* ---- mobile ---- */
@media (max-width: 980px) {
	#main-content .et_pb_text_inner {
		padding-left: 6px;
		padding-right: 6px;
	}
	#main-content h2 {
		font-size: 24px;
		letter-spacing: 2px;
	}
	#top-menu li.current-menu-item > a::after { display: none; }
	#main-content .prodotti-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}
	#main-content .prodotto-card { padding: 20px 22px; }
	#main-content .prodotto-card-full ul { column-count: 1; }
}
