/* Samex Estintori – stili del child theme */

:root {
	--samex-accent: #e30613;
	--samex-text: #3c4858;
	--samex-muted: #6b7380;
	--samex-surface: #ffffff;
	--samex-band: #ececec;
	--samex-radius: 6px;
	--samex-shadow: 0 2px 2px 0 rgba(0, 0, 0, .12), 0 3px 1px -2px rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .1);
}

/* Spazio tra navbar fissa e ancore delle sezioni */
.samex-section,
#contact { scroll-margin-top: 80px; }

.samex-section { padding: 70px 0; }
.samex-section .hestia-title { margin-bottom: 12px; }
.samex-section .description { color: var(--samex-muted); margin-bottom: 40px; }

/* ---------- Azienda ---------- */
.samex-azienda { background: var(--samex-surface); }
.samex-azienda__content > p:first-child {
	max-width: 820px;
	margin: 0 auto 40px;
	text-align: center;
	font-size: 1.15em;
	line-height: 1.7;
	color: var(--samex-muted);
}
.samex-azienda .wp-block-columns { gap: 30px; margin-bottom: 30px; }
.samex-azienda .wp-block-column.samex-box {
	background: var(--samex-surface);
	border-top: 4px solid var(--samex-accent);
	border-radius: var(--samex-radius);
	box-shadow: var(--samex-shadow);
	padding: 28px 26px;
}
.samex-box h3 {
	font-size: 1.05em;
	font-weight: 700;
	letter-spacing: .04em;
	margin: 0 0 16px;
	color: var(--samex-text);
}
.samex-box ul { padding-left: 18px; margin: 0 0 12px; }
.samex-box li { margin-bottom: 6px; line-height: 1.5; }
.samex-azienda .samex-rivenditori { text-align: center; color: var(--samex-muted); }

/* ---------- Vendita (griglia schede) ---------- */
.samex-vendita { background: var(--samex-band); }
.samex-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 30px;
}
.samex-scheda--card {
	background: var(--samex-surface);
	border-radius: var(--samex-radius);
	box-shadow: var(--samex-shadow);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.samex-scheda--card .samex-scheda__media { background: #fff; border-bottom: 1px solid #eee; }
.samex-scheda--card .samex-scheda__media img { display: block; width: 100%; height: 220px; object-fit: contain; padding: 12px; }
.samex-scheda--card .samex-scheda__body { padding: 22px 22px 18px; }
.samex-scheda__title { font-size: 1.15em; font-weight: 700; margin: 0 0 12px; color: var(--samex-text); }
.samex-scheda__text { font-size: .95em; color: var(--samex-muted); }
.samex-scheda__text ul { padding-left: 18px; margin: 0; }
.samex-scheda__text li { margin-bottom: 5px; }
.samex-vendita__more { margin-top: 40px; }

/* ---------- Pagina Prodotti ---------- */
.samex-catalogo__intro { margin-bottom: 40px; }
.samex-scheda--row {
	display: grid;
	grid-template-columns: minmax(200px, 320px) 1fr;
	gap: 32px;
	align-items: start;
	padding: 32px 0;
	border-bottom: 1px solid #e5e5e5;
}
.samex-scheda--row .samex-scheda__media img { width: 100%; height: auto; border-radius: var(--samex-radius); box-shadow: var(--samex-shadow); }
.samex-scheda--row .samex-scheda__title { font-size: 1.5em; }
.samex-catalogo__cta { margin: 48px 0 16px; }

/* ---------- Mappa ---------- */
.samex-mappa { background: var(--samex-surface); padding-top: 50px; }
.samex-mappa__frame { border-radius: var(--samex-radius); overflow: hidden; box-shadow: var(--samex-shadow); min-height: 380px; }
.samex-mappa__frame iframe,
.samex-mappa__frame .cmplz-placeholder-element { display: block; min-height: 380px; }

/* Modulo contatti (WPForms) nei colori del sito */
.hestia-contact div.wpforms-container-full button[type="submit"],
.hestia-contact div.wpforms-container-full button[type="submit"]:hover {
	background-color: var(--samex-accent) !important;
	border-color: var(--samex-accent) !important;
}
.hestia-contact .wpforms-field-checkbox label a { text-decoration: underline; }

/* Link nel blocco contatti di Hestia */
.hestia-contact .description a { color: inherit; text-decoration: underline; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
	.samex-section { padding: 48px 0; }
	.samex-scheda--row { grid-template-columns: 1fr; gap: 16px; }
	.samex-scheda--card .samex-scheda__media img { height: 200px; }
}
