
/* =====================================================
   CONTENITORE HERO
===================================================== */

section[style*="background-image"] > div {
	background: none;
	color: #16311d;
	font-size: 24px;
}

.hero-content {
	position: relative;
}

/* =====================================================
   BRAND
===================================================== */

.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	/*margin: 0 0 24px;*/
	color: #990000;
	font-size: 27px;
	font-weight: 600;
	line-height: 1;
}

.brand-leaf {
	width: 38px;
	height: 38px;
	flex: none;
	color: #006400;
}

.brand-line {
	width: 110px;
	height: 2px;
	margin-left: 4px;
	flex: none;
	background: linear-gradient(to right, #006400 0%, rgba(0,100,0,.5) 65%, transparent 100%);
}

/* =====================================================
   TITOLO
===================================================== */

.hero-content h1 {
	color: #16311d;
	font-size: clamp(42px, 4.5vw, 70px);
	font-optical-sizing: auto;
	margin: 15px 0;
	line-height: 1.2;
}

/* =====================================================
   DESCRIZIONE
===================================================== */

/*.hero-description {
	font-size: 20px;
	line-height: 1.5;
	margin: 20px 0;
}

.desktop-break {
	display: initial;
}*/

/* =====================================================
   FRASE DECORATIVA
===================================================== */

/*.hero-tagline {
	position: absolute;
	right: 3%;
	top: 75px;
	margin: 0;
	color: #075B18;
	font-family: inherit;
	font-style: italic;
	font-size: clamp(25px, 2.2vw, 36px);
	line-height: 1.25;
	text-align: center;
	transform: rotate(-7deg);
}

.hero-tagline::after {
	content: "";
	display: block;
	width: 75%;
	height: 2px;
	margin: 15px auto 0;
	background: #075B18;
	transform: rotate(-5deg);
}*/

/* =====================================================
   CTA
===================================================== */

.hero-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 1200px;
	width: 100%;
	margin-top: 24px;
}

/* =====================================================
   RICERCA
===================================================== */

.search {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	max-width: 500px;
	min-width: 0;
	padding: 6px;
	background: #fff;
	border-radius: 999px;
	font-size: 18px;
	box-shadow: 0 3px 12px rgba(0,0,0,.06);
}

.search::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 2px;
	background: linear-gradient(to left,
		rgba(52,58,53,.55),
		rgba(52,58,53,.12) 50%,
		rgba(52,58,53,0)
	);
	-webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

.search input {
	flex: 1;
	min-width: 0;
	width: 100%;
	border: 0;
	outline: 0;
	background: none;
	padding: 0 18px;
	font: inherit;
	color: #343A35;
}

.search input::placeholder {
	color: #858985;
	opacity: 1;
}

.search a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	white-space: nowrap;
	flex-shrink: 0;
	border: 0;
	padding: 11px 22px;
	border-radius: 999px;
	background: #990000;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	transition: all .25s ease;
}

.search a:hover {
	text-decoration: none;
	transform: scale(1.05);
}

.search svg {
	transition: all .25s ease;
}

.search a:hover svg {
	transform: scale(1.2);
}

.search a span,
.browse-products span {
	font-size: 22px;
	line-height: 1;
	transition: transform .25s ease;
}

.search a:hover span,
.browse-products:hover span {
	transform: translateX(4px);
}

/* =====================================================
   CATALOGO
===================================================== */

.browse-products {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-shrink: 0;
	padding: 13px 26px;
	border: 2px solid #075B18;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	color: #075B18;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 3px 12px rgba(0,0,0,.05);
	transition: all .25s ease;
}

.browse-products svg {
	width: 29px;
	height: 29px;
	flex-shrink: 0;
}

.browse-products:hover {
	background: #075B18;
	color: #fff;
	border-color: #075B18;
	text-decoration: none;
	transform: scale(1.05);
}
.browse-products:hover svg {
	transform: scale(1.2);
}

/* =====================================================
   CATEGORIE
===================================================== */

.cats {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 40px;
}

.cats a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	flex: 0 1 auto;
	min-width: 0;
	padding: 11px 15px;
	border-radius: 999px;
	background: rgba(255,255,255,.90);
	border: 1px solid rgba(255,255,255,.7);
	box-shadow: 0 4px 15px rgba(0,0,0,.08);
	color: #343A35;
	font-weight: 500;
	font-size: 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: all .3s cubic-bezier(.25,.8,.25,1);
}

.cats a svg {
	width: 22px;
	height: 22px;
	flex: 0 0 auto;
	stroke: currentColor;
	transition: transform .3s ease;
}

.cats a:hover {
	background: #e2f2df;
	color: #006400;
	text-decoration: none;
	/*transform: translateY(-2px);*/
	transform: scale(1.05);
}

.cats a:hover svg {
	transform: scale(1.2);
}

/* =====================================================
   ONDA HERO
===================================================== */

section[style*="background-image"] {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0H1600V750 C1350 765 1200 755 1000 760 C800 765 650 785 450 765 C250 745 120 745 0 750Z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 800' preserveAspectRatio='none'%3E%3Cpath fill='white' d='M0 0H1600V750 C1350 765 1200 755 1000 760 C800 765 650 785 450 765 C250 745 120 745 0 750Z'/%3E%3C/svg%3E");
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	padding-bottom: 50px;
	font-size: 20px;
}

/* =====================================================
   BENEFITS
===================================================== */

.features-bar {
	/*display: flex;*/
	display: grid;
	grid-template-columns: repeat(4,1fr);
	/*align-items: stretch;
	justify-content: space-between;
	width: 100%;*/
	box-sizing: border-box;
	/*padding: 25px clamp(22px, 5.3vw, 88px) 24px;*/
	gap: 0;
}
/*section > div:has(.features-bar) {
	border-top: none;
	box-shadow: none;
	position: relative;
}*/
/*section > div:has(.features-bar) {
	padding-top: 15px !important;
}*/

section > div:has(.features-bar)::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 0;
	right: 0;
	height: 5px;
	pointer-events: none;

	background: linear-gradient(
		to bottom,
		transparent,
		rgba(20, 40, 30, 0.085)
	);

	/* Dissolve l'ombra alle estremitą */
	-webkit-mask-image: linear-gradient(
		to right,
		transparent,
		#000 25%,
		#000 75%,
		transparent
	);
	mask-image: linear-gradient(
		to right,
		transparent,
		#000 25%,
		#000 75%,
		transparent
	);
}

/* Separatori pił corti e discreti 
.feature-item:not(:last-child)::after {
	height: 44px;
	background-color: rgba(15, 45, 30, 0.14);
}*/

.feature-item {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	gap: 20px;
	padding: 0 22px;
	box-sizing: border-box;
}

/* Primo elemento: parte esattamente dal margine */

.feature-item:first-child {
	justify-content: flex-start;
	padding-left: 0;
}

/* Ultimo elemento: arriva fino al margine destro */

.feature-item:last-child {
	justify-content: flex-end;
	padding-right: 0;
}

/* Divisori verticali */

.feature-item:not(:last-child)::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 65px;
	background-color: #c9c2ad;
}

.feature-icon {
	width: 55px;
	height: 55px;
	flex: 0 0 55px;
	color: #08752a;
	display: flex;
	align-items: center;
	justify-content: center;
}

.feature-icon svg {
	width: 100%;
	height: 100%;
	stroke: currentColor;
}

.feature-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.3;
}

.feature-text strong {
	display: block;
	font-size: 18px;
	font-weight: 700;
	color: #0f2d1e;
	letter-spacing: -.2px;
	line-height: 1.3;
}

.feature-text span {
	display: block;
	font-size: 16px;
	color: #4b5563;
	margin-top: 3px;
	line-height: 1.4;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

/*	.hero-tagline {
		right: 0;
		top: 45px;
		font-size: 27px;
	}*/

	section.schermo h1 {
		font-size: clamp(42px, 5.5vw, 60px);
	}

	.hero-actions {
		max-width: 100%;
		gap: 12px;
	}

	.cats {
		gap: 7px;
	}

	.cats a {
		padding: 10px 11px;
		gap: 7px;
		font-size: 14px;
	}

	.cats a svg {
		width: 20px;
		height: 20px;
	}

	.browse-products {
		padding: 12px 17px;
		font-size: 16px;
	}

	.features-bar {
		padding-inline: 28px;
	}

	.feature-item {
		gap: 12px;
		padding-inline: 12px;
	}

	.feature-icon {
		width: 45px;
		height: 45px;
		flex-basis: 45px;
	}

	.feature-text strong {
		font-size: 15px;
	}

	.feature-text span {
		font-size: 14px;
	}

}

/* =====================================================
   TABLET PICCOLI
===================================================== */

@media (max-width: 900px) {

	.cats {
		flex-wrap: wrap;
		justify-content: flex-start;
	}

	.cats a {
		flex: 0 0 auto;
	}

	.features-bar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 20px 25px;
		row-gap: 12px;
	}

	.feature-item {
		justify-content: flex-start;
		padding: 12px 18px;
	}

	.feature-item:first-child {
		padding-left: 0;
	}

	.feature-item:last-child {
		justify-content: flex-start;
		padding-right: 0;
	}

	.feature-item:nth-child(2)::after {
		display: none;
	}

	.feature-item:nth-child(3)::before,
	.feature-item:nth-child(4)::before {
		content: "";
		position: absolute;
		top: -6px;
		left: 0;
		right: 0;
		height: 1px;
		background: #d1cbbd;
	}

}

/* =====================================================
   SMARTPHONE
===================================================== */

@media (max-width: 700px) {

	.brand {
		font-size: 19px;
		margin-bottom: 20px;
	}

	.brand-line {
		width: 65px;
	}

	section.schermo h1 {
		font-size: clamp(36px, 8vw, 48px);
		line-height: 1.12;
		letter-spacing: -.8px;
	}

	/*.hero-description {
		font-size: 16px;
		line-height: 1.5;
		margin: 18px 0;
	}*/

	/*.desktop-break {
		display: none;
	}*/

	/* Frase decorativa nel normale flusso */

	/*.hero-tagline {
		position: relative;
		top: auto;
		right: auto;
		display: table;
		margin: 18px 0 25px auto;
		font-size: 25px;
		transform: rotate(-5deg);
	}

	.hero-tagline::after {
		margin-top: 8px;
	}*/

	/* Ricerca e catalogo */

	.hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		margin-top: 20px;
	}

	.search {
		width: 100%;
		max-width: none;
		box-sizing: border-box;
		font-size: 15px;
	}

	.search input {
		padding: 0 12px;
	}

	.search a {
		padding: 10px 17px;
	}

	.browse-products {
		width: 100%;
		box-sizing: border-box;
		padding: 12px 20px;
		font-size: 16px;
	}

	/* Categorie: due colonne */

	.cats {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 9px;
		margin-top: 30px;
		width: 100%;
	}

	.cats a {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
		padding: 11px 12px;
		gap: 8px;
		font-size: 15px;
		justify-content: flex-start;
	}

	.cats a svg {
		width: 20px;
		height: 20px;
	}

	/* Ultima categoria a tutta larghezza */

	.cats a:last-child {
		grid-column: 1 / -1;
		justify-content: center;
	}

	/* Benefits: griglia 2 x 2 */

	.features-bar {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 15px 18px 22px;
		gap: 0;
	}

	.feature-item {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		min-width: 0;
		min-height: 88px;
		padding: 12px 10px;
		gap: 10px;
	}

	.feature-item:first-child {
		padding-left: 0;
	}

	.feature-item:last-child {
		justify-content: flex-start;
		padding-right: 0;
	}

	/* Divisori centrali */

	.feature-item:nth-child(1)::after,
	.feature-item:nth-child(3)::after {
		display: block;
		height: 55px;
	}

	.feature-item:nth-child(2)::after,
	.feature-item:nth-child(4)::after {
		display: none;
	}

	.feature-item:nth-child(3)::before,
	.feature-item:nth-child(4)::before {
		content: "";
		position: absolute;
		top: 0;
		left: 0;
		right: 0;
		height: 1px;
		background: #d1cbbd;
	}

	.feature-icon {
		width: 39px;
		height: 39px;
		flex: 0 0 39px;
	}

	.feature-text strong {
		font-size: 14px;
		line-height: 1.3;
	}

	.feature-text span {
		font-size: 13px;
		line-height: 1.35;
	}

}

/* =====================================================
   SMARTPHONE STRETTI
===================================================== */

@media (max-width: 400px) {

	section.schermo h1 {
		font-size: 35px;
	}

	/*.hero-tagline {
		font-size: 22px;
	}*/

	.cats {
		gap: 8px;
	}

	.cats a {
		padding: 9px 10px;
		font-size: 13px;
		gap: 6px;
	}

	.cats a svg {
		width: 19px;
		height: 19px;
	}

	.features-bar {
		padding-inline: 12px;
	}

	.feature-item {
		gap: 7px;
		padding-inline: 7px;
	}

	.feature-icon {
		width: 33px;
		height: 33px;
		flex-basis: 33px;
	}

	.feature-text strong {
		font-size: 13px;
	}

	.feature-text span {
		font-size: 12px;
	}

}
