/* RTE Scheda Prodotto — strutturali (plugin) */

.rte-scheda-prodotto {
	max-width: 1024px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	width: 100%;
}

/* Tabs (markup fuori da .rte-scheda-prodotto nel blocco riutilizzabile) */
.rte-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border: 1px solid rgb(220, 220, 220);
}

.rte-tabs__btn {
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 20px;
	border: 0;
	cursor: pointer;
	width: 100%;
	text-align: center;
	background: rgb(245, 245, 245);
	color: rgb(108, 106, 102);
	box-shadow: rgb(220, 220, 220) -1px 0 0 inset;
}

.rte-tabs__btn:last-child {
	box-shadow: none;
}

.rte-tabs__btn.is-active {
	background: rgb(12, 36, 98);
	color: rgb(255, 255, 255);
	box-shadow: none;
}

#rte-panel-description,
#rte-panel-diameters,
#rte-panel-terms,
.rte-tab-panel,
.wp-block-group.rte-tab-panel {
	padding-top: 48px;
}

#rte-panel-diameters:not(.is-active),
#rte-panel-terms:not(.is-active),
.rte-tab-panel:not(.is-active),
.wp-block-group.rte-tab-panel:not(.is-active),
#rte-panel-description[hidden],
#rte-panel-diameters[hidden],
#rte-panel-terms[hidden],
.rte-tab-panel[hidden],
.wp-block-group.rte-tab-panel[hidden] {
	display: none !important;
}

#rte-panel-description.is-active,
#rte-panel-diameters.is-active,
#rte-panel-terms.is-active,
.rte-tab-panel.is-active,
.wp-block-group.rte-tab-panel.is-active {
	display: block !important;
}

@media (max-width: 781px) {
	.rte-tabs {
		grid-template-columns: 1fr;
	}

	.rte-tabs__btn {
		box-shadow: rgb(220, 220, 220) 0 -1px 0 inset;
	}

	.rte-tabs__btn:last-child {
		box-shadow: none;
	}
}

/* Datasheet gate */
.rte-datasheet-gate {
	margin-top: 56px;
	padding-top: 32px;
	border-top: 1px solid #ededee;
}

.rte-datasheet-gate__title {
	margin: 0 0 16px;
	font-size: 20px;
	font-weight: 700;
	text-transform: uppercase;
	color: #181715;
}

.rte-datasheet-gate__intro {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.5;
	color: #3f3d3a;
}

.rte-datasheet-gate__btn {
	display: inline-block;
	padding: 14px 26px;
	border: 1px solid #0c2462;
	color: #0c2462 !important;
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
}

.rte-datasheet-gate__btn:hover {
	background: #0c2462;
	color: #fff !important;
}

.rte-datasheet-gate__form .gform_wrapper {
	margin-top: 0;
}

/* Hero intro (from short description paragraph) */
.rte-hero-intro {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.6;
	color: #3f3d3a;
}

/* Hero facts (variable rows, same pattern as specs) */
.rte-hero-facts {
	margin: 0;
}

.rte-hero-facts__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	padding: 14px 0;
	border-bottom: 1px solid #ededee;
}

.rte-hero-facts__row > :first-child {
	font-size: 14px;
	font-weight: 600;
	color: #181715;
}

.rte-hero-facts__row > :last-child {
	font-size: 14px;
	line-height: 1.6;
	color: #3f3d3a;
	text-align: right;
}

/* Variable badges */
.rte-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 16px;
}

.rte-badge {
	display: inline-block;
	padding: 6px 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	color: #181715;
	border: 1px solid #d0d0d0;
	background: #fff;
	box-sizing: border-box;
}

a.rte-badge:hover {
	border-color: #0c2462;
	color: #0c2462;
}

.rte-product-title-badges {
	margin: 0 0 12px;
}


/* Specs sections (from Descrizione h2/h3) */
.rte-specs__section {
	margin: 28px 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #181715;
	text-transform: none;
	letter-spacing: 0;
}

.rte-specs__section:first-child {
	margin-top: 0;
}

.rte-specs__text {
	margin: 12px 0 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #3f3d3a;
}

.rte-specs__text p {
	margin: 0 0 8px;
}

.rte-specs__sublist {
	margin: 8px 0 0;
	padding-left: 1.2em;
	text-align: left;
	list-style: disc;
}

.rte-specs__sublist li {
	margin: 4px 0;
}

.rte-specs__row .rte-specs__sublist {
	text-align: left;
}


/* FAQ block */
.rte-faq {
	margin: 0;
}
.rte-faq__title {
	margin: 0 0 8px;
	font-size: 16px;
	font-weight: 700;
	color: #181715;
}
.rte-faq__subtitle {
	margin: 0 0 20px;
	font-size: 14px;
	font-weight: 600;
	color: #3f3d3a;
}
.rte-faq__item {
	margin: 0 0 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #ededee;
}
.rte-faq__q {
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 700;
	color: #181715;
}
.rte-faq__a {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: #3f3d3a;
}
.rte-faq__a ol,
.rte-faq__a ul {
	margin: 8px 0 0;
	padding-left: 1.2em;
}
.rte-faq__a li {
	margin: 6px 0;
}

/* Note restringimento (OL) */
.rte-notes__list,
.field-note_restringimento_html ol {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 48px;
	margin: 0;
	padding-left: 22px;
	list-style-position: outside;
}

.rte-notes__list li,
.field-note_restringimento_html ol li {
	font-size: 15px;
	line-height: 1.8;
	color: #3f3d3a;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

@media (max-width: 781px) {
	.rte-notes__list,
	.field-note_restringimento_html ol {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rte-notes__list li,
	.field-note_restringimento_html ol li {
		width: 100%;
	}
}
