.brandd-block {
	--brandd-section-space: clamp(2rem, 5vw, 4rem);
	--brandd-section-gutter: max(1.25rem, 4vw);
	--brandd-content-width: var(--container-narrow, 1120px);
	--brandd-card-bg: rgba(255, 255, 255, 0.74);
	--brandd-title-color: var(--color-ink, #233642);
	--brandd-text-color: var(--color-text, #5d6870);
	--brandd-muted-color: var(--color-muted, #8a9297);
	--brandd-dark-bg: var(--color-primary, #142d45);
	--brandd-light-bg: var(--color-cream, #f4f3ef);
	--brandd-accent: var(--color-accent, #b89862);
	--brandd-accent-soft: var(--color-accent-soft, #eadcc5);
	--brandd-border: var(--color-border, #dedbd4);
	color: var(--brandd-text-color);
	font-family: var(--font-body, "Public Sans", system-ui, sans-serif);
	margin-inline: 0;
	padding: var(--brandd-section-space) var(--brandd-section-gutter);
	width: 100%;
}

.brandd-block__inner {
	margin-inline: auto;
	max-width: var(--brandd-content-width);
	width: 100%;
}

.brandd-block + .brandd-block {
	margin-top: 0;
}

.font-heading {
	font-family: var(--font-heading, Georgia, "Times New Roman", serif);
}

.font-body {
	font-family: var(--font-body, "Public Sans", system-ui, sans-serif);
}

.brandd-theme-light {
	background: var(--brandd-block-bg, var(--brandd-light-bg));
}

.brandd-theme-dark {
	background: var(--brandd-block-bg, var(--brandd-dark-bg));
	color: rgba(255, 255, 255, 0.78);
}

.brandd-theme-dark.brandd-shortcode-list,
.brandd-theme-dark.brandd-heading,
.brandd-theme-dark.brandd-faq,
.brandd-theme-dark.brandd-steps {
	background: var(--brandd-block-bg, var(--brandd-dark-bg));
}

.brandd-theme-dark h1,
.brandd-theme-dark h2,
.brandd-theme-dark h3,
.brandd-theme-dark h4,
.brandd-theme-dark h5,
.brandd-theme-dark h6,
.brandd-theme-dark .brandd-heading__title,
.brandd-theme-dark .brandd-hero__title,
.brandd-theme-dark .brandd-cta__title, 
.brandd-theme-dark .brandd-steps__section-eyebrow, 
.brandd-theme-dark .brandd-heading__eyebrow {
	color: var(--brandd-light-bg);
}

.brandd-theme-dark .brandd-heading__subtitle,
.brandd-theme-dark .brandd-hero__description,
.brandd-theme-dark .brandd-cta__text,
.brandd-theme-dark .brandd-media-text__text,
.brandd-theme-dark .brandd-about-page__excerpt,
.brandd-theme-dark .brandd-steps__section-subtitle,
.brandd-theme-dark .brandd-steps__description {
	color: rgba(255, 255, 255, 0.76);
}
.brandd-theme-dark .brandd-steps__item {
    background: rgb(255 255 255 / 10%);
	    border: 1px solid rgba(222, 219, 212, 0.15);
}

.brandd-align-left {
	text-align: left;
}

.brandd-align-center {
	text-align: center;
}

.brandd-align-right {
	text-align: right;
}

.brandd-text-align-left {
	text-align: left;
}

.brandd-text-align-center {
	text-align: center;
}

.brandd-text-align-right {
	text-align: right;
}

.brandd-button {
	align-items: center;
	background: var(--brandd-accent-soft);
	border: 1px solid var(--brandd-accent-soft);
	border-radius: var(--radius-sm, 4px);
	color: var(--brandd-dark-bg);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 800;
	justify-content: center;
	letter-spacing: 0.14em;
	line-height: 1.2;
	min-height: 3rem;
	padding: 0.88rem 1.7rem;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.brandd-button:hover {
	background: var(--brandd-accent);
	border-color: var(--brandd-accent);
	color: #ffffff;
	transform: translateY(-1px);
}

.brandd-theme-dark .brandd-button {
	background: var(--brandd-accent-soft);
	border-color: var(--brandd-accent-soft);
	color: var(--brandd-dark-bg);
}

.brandd-media-text__inner,
.brandd-about-page__inner {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 6vw, 5.5rem);
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.brandd-media-right .brandd-media-text__inner,
.brandd-media-right .brandd-about-page__inner {
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.brandd-media-right .brandd-media-text__media,
.brandd-media-right .brandd-about-page__media {
	order: 2;
}

.brandd-text-only .brandd-media-text__inner {
	display: block;
}

.brandd-media-text__media,
.brandd-about-page__media {
	/*background: var(--color-stone, #d8d0c4);*/
	border-radius: var(--radius-sm, 4px);
	overflow: hidden;
}

.brandd-media-text__image,
.brandd-about-page__image {
	aspect-ratio: 1;
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.brandd-about-page__image {
	aspect-ratio: 1;
}

.brandd-media-text__content,
.brandd-about-page__content {
	max-width: 690px;
	margin: 0 auto;
}

.brandd-media-text__title,
.brandd-about-page__title,
.brandd-shortcode-list__title,
.brandd-steps__title,
.brandd-cta__title {
	color: var(--brandd-title-color);
	line-height: 1.2;
	margin: 0 0 1rem;
}

.brandd-media-text__title,
.brandd-about-page__title {
	font-size: clamp(1.75rem, 3vw, 2.55rem);
}

.brandd-media-text__text,
.brandd-about-page__excerpt,
.brandd-shortcode-list__content,
.brandd-heading__subtitle,
.brandd-steps__description,
.brandd-cta__text {
	color: var(--brandd-text-color);
	line-height: 1.48;
}

.brandd-media-text__text > :last-child,
.brandd-about-page__excerpt > :last-child,
.brandd-shortcode-list__content > :last-child,
.brandd-heading__subtitle > :last-child,
.brandd-steps__description > :last-child,
.brandd-cta__text > :last-child {
	margin-bottom: 0;
}

.brandd-media-text__button {
	margin-top: 1.4rem;
}

.brandd-about-page__page-title,
.brandd-heading__eyebrow,
.brandd-steps__eyebrow {
	align-items: center;
	color: var(--brandd-title-color);
	display: inline-flex;
	font-size: 0.74rem;
	font-weight: 800;
	gap: 0.9rem;
	letter-spacing: 0.22em;
	line-height: 1.4;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.brandd-about-page__page-title::after, .brandd-heading__eyebrow::after, .brandd-about-page__page-title::before, .brandd-heading__eyebrow::before{
	background: var(--brandd-accent);
	content: "";
	display: inline-block;
	height: 1px;
	width: 30px;
}

.brandd-about-page__button {
	margin-top: 1.4rem;
}

.brandd-shortcode-list {
	background: var(--brandd-block-bg, var(--brandd-light-bg));
	border-top: 1px solid var(--brandd-border);
}

.brandd-shortcode-list__title {
	font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.brandd-hero {
	background-color: var(--brandd-block-bg, var(--brandd-dark-bg));
	background-image:var(--brandd-block-bg-image, none);
	background-position: center;
	background-size: cover;
	color: rgba(255, 255, 255, 0.82);
	min-height: clamp(360px, 50vh, 760px);
	overflow: hidden;
	padding-top: clamp(5rem, 7vw, 10rem);
	position: relative;
}

.brandd-hero__inner {
	align-items: center;
	display: grid;
	gap: clamp(2.5rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}


.brandd-hero__content,
.brandd-hero__media {
	position: relative;
	z-index: 1;
}

.brandd-hero__content {
	max-width: 720px;
}

.brandd-hero--no-media .brandd-hero__inner {
	grid-template-columns: 1fr;
}

.brandd-hero--no-media .brandd-hero__content {
	max-width: 100%;
	width: 100%;
}

.brandd-hero--no-media.brandd-align-center .brandd-hero__description {
	margin-inline: auto;
}

.brandd-hero--no-media.brandd-align-center .brandd-hero__actions {
	justify-content: center;
}

.brandd-hero--no-media.brandd-align-right .brandd-hero__description {
	margin-left: auto;
}

.brandd-hero--no-media.brandd-align-right .brandd-hero__actions {
	justify-content: flex-end;
}

.brandd-hero__title {
	color: #ffffff;
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	line-height: 1.28;
	margin: 0 0 1rem;
}

.brandd-hero__description {
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(1rem, 1.35vw, 1.13rem);
	line-height: 1.7;
	max-width: 620px;
}

.brandd-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 2rem;
}

.brandd-theme-dark  .brandd-hero__button--secondary {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.48);
	color: #ffffff;
}

.brandd-theme-dark  .brandd-hero__button--secondary:hover {
	background: #ffffff;
	border-color: #ffffff;
	color: var(--brandd-dark-bg);
}

.brandd-hero__image {
	display: block;
	margin-inline: auto;
	max-height: 560px;
	object-fit: contain;
	width: 100%;
}

.brandd-heading {
	background: var(--brandd-block-bg, var(--brandd-light-bg));
	padding-block: clamp(3rem, 6vw, 5.5rem);
}

.brandd-heading__eyebrow {
	justify-content: inherit;
}

.brandd-heading__title {
	color: var(--brandd-title-color);
	line-height: 1.1;
	margin: 0;
}

.brandd-heading__subtitle {
	margin-top: 1rem;
	max-width: 760px;
}

.brandd-align-center .brandd-heading__subtitle,
.brandd-align-center.brandd-heading .brandd-heading__subtitle {
	margin-inline: auto;
}

.brandd-align-right .brandd-heading__subtitle,
.brandd-align-right.brandd-heading .brandd-heading__subtitle {
	margin-left: auto;
}

.brandd-title-size-sm {
	font-size: clamp(1.5rem, 2vw, 2rem);
}

.brandd-title-size-md {
	font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.brandd-title-size-lg {
	font-size: clamp(2.25rem, 4vw, 3.4rem);
}

.brandd-title-size-xl {
	font-size: clamp(2.6rem, 5vw, 4.25rem);
}

.brandd-title-size-2xl {
	font-size: clamp(3rem, 6vw, 5.2rem);
}

.brandd-subtitle-size-sm {
	font-size: 0.95rem;
}

.brandd-subtitle-size-md {
	font-size: 1.05rem;
}

.brandd-subtitle-size-lg {
	font-size: clamp(1.08rem, 1.6vw, 1.28rem);
}

.brandd-subtitle-size-xl {
	font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.brandd-subtitle-size-2xl {
	font-size: clamp(1.35rem, 2.5vw, 1.85rem);
}

.brandd-faq {
	background: var(--brandd-block-bg, var(--brandd-light-bg));
}

.brandd-faq__inner {
	align-items: start;
	display: grid;
	gap: clamp(2.5rem, 7vw, 6rem);
	grid-template-columns: minmax(230px, 0.78fr) minmax(0, 1.62fr);
}

.brandd-faq-title-right .brandd-faq__inner {
	grid-template-columns: minmax(0, 1.62fr) minmax(230px, 0.78fr);
}

.brandd-faq-title-right .brandd-faq__heading {
	order: 2;
}

.brandd-faq-title-top .brandd-faq__inner {
	display: block;
}

.brandd-faq-title-top .brandd-faq__heading {
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	max-width: 760px;
}

.brandd-faq-title-top.brandd-align-center .brandd-faq__heading {
	margin-inline: auto;
	text-align: center;
}

.brandd-faq-title-top.brandd-align-center .brandd-faq__eyebrow {
	justify-content: center;
}

.brandd-faq__heading {
	max-width: 360px;
}

.brandd-faq__eyebrow {
	margin-bottom: 1.2rem;
}

.brandd-faq__title {
	color: var(--brandd-title-color);
	font-size: clamp(2rem, 4vw, 3rem);
	line-height: 1.25;
	margin: 0;
}

.brandd-faq__list {
	border-bottom: 1px solid var(--brandd-border);
}

.brandd-faq__item {
	border-top: 1px solid var(--brandd-border);
	display: grid;
	gap: 1.45rem;
	grid-template-columns: 22px minmax(0, 1fr);
	padding: clamp(1.35rem, 2.4vw, 2rem) 0;
}

.brandd-faq__icon {
	height: 22px;
	margin-top: 0.08rem;
	position: relative;
	width: 22px;
}

.brandd-faq__icon::before,
.brandd-faq__icon::after {
	background: var(--brandd-accent);
	content: "";
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
}

.brandd-faq__icon::before {
	height: 1px;
	width: 18px;
}

.brandd-faq__icon::after {
	height: 18px;
	width: 1px;
}

.brandd-faq__question {
	color: var(--brandd-title-color);
	font-size: clamp(1.05rem, 1.45vw, 1.25rem);
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 0.35rem;
}

.brandd-faq__answer {
	color: var(--brandd-text-color);
	font-size: 0.98rem;
	line-height: 1.7;
}

.brandd-faq__answer > :last-child {
	margin-bottom: 0;
}
.brandd-steps {
	background: var(--brandd-block-bg, var(--brandd-light-bg));
}

.brandd-steps__heading {
	margin-inline: auto;
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
	max-width: 760px;
	text-align: center;
}

.brandd-steps__section-eyebrow {
	justify-content: center;
	margin-bottom: 1rem;
}

.brandd-steps__section-title {
	color: var(--brandd-title-color);
	font-size: clamp(2rem, 3.5vw, 3.15rem);
	line-height: 1.1;
	margin: 0;
}

.brandd-steps__section-subtitle {
	color: var(--brandd-text-color);
	line-height: 1.78;
	margin-top: 1rem;
}

.brandd-steps__section-subtitle > :last-child {
	margin-bottom: 0;
}

/* --- TRASFORMAZIONE IN FLEXBOX --- */
.brandd-steps__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* Centra gli elementi residui nell'ultima riga */
	gap: 1.25rem;
}

/* Gli item prendono di base una larghezza calcolata dal parent */
.brandd-steps__list > .brandd-steps__item {
	flex: 0 0 auto;
	width: 100%;
}

/* Modificatori per le colonne (Desktop) */
.brandd-steps-columns-1 .brandd-steps__list > .brandd-steps__item {
	width: 100%;
}

.brandd-steps-columns-2 .brandd-steps__list > .brandd-steps__item {
	width: calc((100% - 1.25rem) / 2);
}

.brandd-steps-columns-3 .brandd-steps__list > .brandd-steps__item {
	width: calc((100% - 2 * 1.25rem) / 3);
}

.brandd-steps-columns-4 .brandd-steps__list > .brandd-steps__item {
	width: calc((100% - 3 * 1.25rem) / 4);
}

.brandd-steps-columns-5 .brandd-steps__list > .brandd-steps__item {
	width: calc((100% - 4 * 1.25rem) / 5);
}

.brandd-steps-columns-6 .brandd-steps__list > .brandd-steps__item {
	width: calc((100% - 5 * 1.25rem) / 6);
}

.brandd-steps__item {
	background: var(--brandd-card-bg);
	border: 1px solid rgba(222, 219, 212, 0.55);
	border-radius: var(--radius-sm, 4px);
	min-height: 270px;
	padding: clamp(1.7rem, 3vw, 2.5rem);
	text-align: center;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	box-sizing: border-box;
}

.brandd-steps__item:hover {
	box-shadow: var(--shadow-soft, 0 18px 45px rgba(20, 45, 69, 0.08));
	transform: translateY(-4px);
}

.brandd-steps__icon {
	align-items: center;
	background: #ffffff;
	border-radius: 999px;
	color: var(--brandd-dark-bg);
	display: inline-flex;
	height: 76px;
	justify-content: center;
	margin-bottom: 1.5rem;
	width: 76px;
}

.brandd-steps__icon-image {
	display: block;
	filter: grayscale(1);
	height: 42px;
	object-fit: contain;
	opacity: 0.76;
	width: 42px;
}

.brandd-steps__eyebrow {
	color: var(--brandd-accent);
	display: block;
	margin-bottom: 0.65rem;
}

.brandd-steps__title {
	font-size: clamp(1.28rem, 2vw, 1.65rem);
}

.brandd-cta {
	background: var(--brandd-block-bg, var(--brandd-dark-bg));
	color: rgba(255, 255, 255, 0.72);
	padding-block: clamp(2.6rem, 5vw, 4rem);
}

.brandd-cta__content {
	align-items: center;
	display: flex;
	gap: 2rem;
	justify-content: space-between;
}

.brandd-cta__title {
	color: #ffffff;
	font-family: var(--font-body, "Public Sans", system-ui, sans-serif);
	font-size: 1.6rem;
	margin: 0;
}

.brandd-cta__text {
	color: rgba(255, 255, 255, 0.72);
	max-width: 560px;
}

.brandd-cta__button {
	flex: 0 0 auto;
}

/* --- MEDIA QUERIES --- */

@media (max-width: 991.98px) {
	.brandd-media-text,
	.brandd-about-page,
	.brandd-media-text__inner,
	.brandd-about-page__inner,
	.brandd-media-right,
	.brandd-media-right .brandd-media-text__inner,
	.brandd-media-right .brandd-about-page__inner,
	.brandd-hero__inner,
	.brandd-faq,
	.brandd-faq__inner,
	.brandd-faq-title-right .brandd-faq__inner {
		grid-template-columns: 1fr;
	}

	.brandd-media-right .brandd-media-text__media,
	.brandd-media-right .brandd-about-page__media {
		order: 0;
	}

	.brandd-faq-title-right .brandd-faq__heading {
		order: 0;
	}

	.brandd-faq__heading {
		max-width: 720px;
	}

	.brandd-hero {
		min-height: auto;
		padding-top: clamp(3.5rem, 12vw, 7rem);
	}
	.brandd-hero__content {
		padding-bottom: 0px;
	}

	.brandd-hero::before,
	.brandd-hero::after {
		opacity: 0.65;
		right: -240px;
	}

	.brandd-cta__content {
		align-items: flex-start;
		flex-direction: column;
	}

	/* Tablet: forza layout intermedio a 2 colonne se la griglia originale ne prevede 3+ */
	.brandd-steps-columns-3 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-4 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-5 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-6 .brandd-steps__list > .brandd-steps__item {
		width: calc((100% - 1.25rem) / 2);
	}
}

@media (max-width: 575.98px) {
	.brandd-block {
		padding-inline: 1rem;
	}

	.brandd-button,
	.brandd-hero__button,
	.brandd-cta__button,
	.brandd-about-page__button {
		width: 100%;
	}

	.brandd-hero__actions {
		width: 100%;
	}

	.brandd-hero__image {
		max-height: 420px;
		width: 100%;
	}

	.brandd-faq__item {
		gap: 1rem;
		grid-template-columns: 18px minmax(0, 1fr);
	}

	.brandd-faq__icon {
		height: 18px;
		width: 18px;
	}

	/* Mobile: tutti gli elementi vanno a larghezza piena su 1 colonna */
	.brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-1 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-2 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-3 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-4 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-5 .brandd-steps__list > .brandd-steps__item,
	.brandd-steps-columns-6 .brandd-steps__list > .brandd-steps__item {
		width: 100% !important;
	}

	.brandd-steps__item {
		min-height: auto;
	}
}