/*
Theme Name: Indaweb Child
Template: Divi
Theme URI: https://indaweb.it
Author: Indaweb
Author URI: https://indaweb.it
Description: Flexible Multi-Purpose Responsive WordPress Theme
Version: 1.0
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-menu, featured-images, flexible-header, post-formats, sticky-post, translation-ready

/* Below you can write your style */

.overlay-bg {
  position: relative;
  overflow: hidden;
}

.overlay-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: 2;
  pointer-events: none;
}

/*--------- FORM -------*/

@media screen and (min-width: 981px) {
  .form-half-row {
    display: flex;
    flex-direction: row;
    column-gap: 20px;
  }

  .wpcf7-form {
    max-width: 100% !important;
  }

  .form-half-row > div,
  .form-half-row > p {
    width: 100% !important;
  }
}
.wpcf7-response-output{
	color:#fff!important;
}
/*--------- FOOTER -------------------*/
.bi-whatsapp, .bi-telegram{
	    margin-right: 10px;
}
.contatti-social a {
	display:flex;
}
/*--------- CAROSELLO MACCHINE -------*/
.macchine-carousel {
	--carousel-text: #ffffff;
	--carousel-accent: #70cec2;

	position: relative;
	width: 100%;
	overflow: hidden;
	color: var(--carousel-text);
	box-sizing: border-box;
}

.macchine-carousel *,
.macchine-carousel *::before,
.macchine-carousel *::after {
	box-sizing: border-box;
}

/* Slide */

.macchine-carousel__slide {
	display: none;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
}

.macchine-carousel__slide.is-active {
	display: block;
	animation: macchine-carousel-fade 350ms ease-in-out;
}

/* Titolo e descrizione sulla stessa riga */

.macchine-carousel__header {
	display: grid;
	grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.4fr);
	align-items: start;
	gap: clamp(30px, 6vw, 90px);
	margin-bottom: clamp(35px, 5vw, 70px);
}

.macchine-carousel__title {
	margin: 0;
	color: var(--carousel-text);
	font-size: clamp(34px, 4vw, 58px);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.macchine-carousel__description {
	max-width: 760px;
	color: var(--carousel-text);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.45;
}

.macchine-carousel__description p {
	margin-top: 0;
	margin-bottom: 0.75em;
}

.macchine-carousel__description p:last-child {
	margin-bottom: 0;
}

/* Immagine 16:9 */

.macchine-carousel__media {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background-color: transparent;
}

.macchine-carousel__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.macchine-carousel__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.08);
	color: var(--carousel-text);
	font-size: 18px;
}

/* Frecce */

.macchine-carousel__navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: clamp(25px, 4vw, 50px);
}

.macchine-carousel__navigation.is-hidden {
	display: none;
}

.macchine-carousel__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 64px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	transition:
		transform 180ms ease,
		opacity 180ms ease;
	appearance: none;
}

.macchine-carousel__button:hover {
	transform: scale(1.12);
}

.macchine-carousel__button:active {
	transform: scale(0.96);
}

.macchine-carousel__button:focus-visible {
	outline: 2px solid var(--carousel-accent);
	outline-offset: 6px;
}

.macchine-carousel__button img {
	display: block;
	width: 48px;
	height: 60px;
	object-fit: contain;
	pointer-events: none;
}

/* Messaggio senza risultati */

.macchine-carousel-empty {
	padding: 30px;
	text-align: center;
}

/* Testo accessibile solo agli screen reader */

.macchine-carousel .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Animazione */

@keyframes macchine-carousel-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Tablet e smartphone */

@media (max-width: 767px) {
	.macchine-carousel {
		padding: 40px 22px;
	}

	.macchine-carousel__header {
		grid-template-columns: 1fr;
		gap: 18px;
		margin-bottom: 30px;
	}

	.macchine-carousel__title {
		font-size: clamp(32px, 8vw, 44px);
	}

	.macchine-carousel__description {
		font-size: 18px;
	}

	.macchine-carousel__navigation {
		gap: 20px;
		margin-top: 24px;
	}

	.macchine-carousel__button {
		width: 46px;
		height: 54px;
	}

	.macchine-carousel__button img {
		width: 40px;
		height: 50px;
	}
}

/* Rispetta le preferenze di accessibilità */

@media (prefers-reduced-motion: reduce) {
	.macchine-carousel__slide.is-active {
		animation: none;
	}

	.macchine-carousel__button {
		transition: none;
	}
}
.iw-articles-carousel {
	--iw-articles-blue: #082161;
	--iw-articles-grey: #767676;
	--iw-articles-text: #3f4141;
	--iw-articles-green: #5df9c7;
	--iw-articles-gap: clamp(18px, 2.5vw, 36px);

	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 40px 0;
	box-sizing: border-box;
}

.iw-articles-carousel *,
.iw-articles-carousel *::before,
.iw-articles-carousel *::after {
	box-sizing: border-box;
}

/* Area visibile del carosello */

.iw-articles-carousel__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 25px 0;
}

.iw-articles-carousel__track {
	display: flex;
	align-items: stretch;
	width: 100%;
	gap: var(--iw-articles-gap);
	transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

.iw-articles-carousel__track.is-resizing {
	transition: none;
}

/* Singola slide */

.iw-articles-carousel__slide {
	flex: 0 0 min(1120px, 78%);
	opacity: 0.55;
	transform: scale(0.96);
	transition:
		opacity 500ms ease,
		transform 500ms ease;
}

.iw-articles-carousel__slide.is-active {
	opacity: 1;
	transform: scale(1);
}

/* Card */

.iw-articles-carousel__card {
	display: grid;
	grid-template-columns: minmax(0, 44%) minmax(0, 56%);
	width: 100%;
	min-height: 440px;
	overflow: hidden;
	background-color: #ffffff;
}

/* Immagine */

.iw-articles-carousel__image-wrapper {
	position: relative;
	width: 100%;
	min-height: 440px;
	overflow: hidden;
	background-color: #e9e9e9;
	height:600px;
	object-fit:cover;
}

.iw-articles-carousel__image {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 440px;
	object-fit: cover;
	object-position: center;
}

.iw-articles-carousel__image-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 440px;
	padding: 25px;
	color: var(--iw-articles-grey);
	font-family: "Sora", sans-serif;
	font-size: 15px;
	text-align: center;
}

/* Parte testuale */

.iw-articles-carousel__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	min-width: 0;
	padding: clamp(30px, 4vw, 58px);
	background-color: #ffffff;
}

.iw-articles-carousel__date {
	align-self: flex-end;
	margin: 0 0 25px;
	color: #767676;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	text-align: right;
}

.iw-articles-carousel__title {
	margin: 0 0 16px;
	color: #082161;
	font-family: "Sora", sans-serif;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

/* Categorie */

.iw-articles-carousel__categories {
	display: none;
}

.iw-articles-carousel__category {
	color: #767676;
	font-family: "Sora", sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.iw-articles-carousel__category:not(:last-child)::after {
	content: "•";
	margin-left: 12px;
	color: #5df9c7;
}

.iw-articles-carousel__category:hover,
.iw-articles-carousel__category:focus-visible {
	color: #082161;
	text-decoration: underline;
}

/* Riassunto */

.iw-articles-carousel__excerpt {
	margin: 0 0 28px;
	color: #3f4141;
	font-family: "Sora", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.7;
}

/* Pulsante Leggi tutto */

.iw-articles-carousel__read-more {
	margin: auto 0 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #5df9c7;
	font-family: "Sora", sans-serif;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	appearance: none;
	transition:
		color 180ms ease,
		transform 180ms ease;
}

.iw-articles-carousel__read-more:hover {
	color: #082161;
	transform: translateX(4px);
}

.iw-articles-carousel__read-more:focus-visible {
	outline: 2px solid #082161;
	outline-offset: 6px;
}

/* Frecce */

.iw-articles-carousel__navigation {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	margin-top: 20px;
}

.iw-articles-carousel__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 62px;
	height: 62px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.iw-articles-carousel__arrow:hover:not(:disabled) {
	transform: scale(1.1);
}

.iw-articles-carousel__arrow:active:not(:disabled) {
	transform: scale(0.95);
}

.iw-articles-carousel__arrow:focus-visible {
	outline: 2px solid #5df9c7;
	outline-offset: 5px;
}

.iw-articles-carousel__arrow:disabled {
	opacity: 0.3;
	cursor: default;
}

.iw-articles-carousel__arrow img {
	display: block;
	width: 58px;
	height: 58px;
	object-fit: contain;
	pointer-events: none;
}

/* Popup */

body.iw-article-modal-open {
	overflow: hidden;
}

.iw-article-modal[hidden] {
	display: none;
}

.iw-article-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 25px;
	background-color: rgba(8, 33, 97, 0.82);
	backdrop-filter: blur(5px);
}

.iw-article-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: 88vh;
	overflow-y: auto;
	padding: clamp(35px, 5vw, 70px);
	background-color: #ffffff;
}

.iw-article-modal__close {
	position: absolute;
	top: 18px;
	right: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: #082161;
	color: #ffffff;
	font-family: Arial, sans-serif;
	font-size: 34px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	appearance: none;
	transition:
		background-color 180ms ease,
		transform 180ms ease;
}

.iw-article-modal__close:hover {
	background-color: #5df9c7;
	color: #082161;
	transform: rotate(90deg);
}

.iw-article-modal__close:focus-visible {
	outline: 3px solid #5df9c7;
	outline-offset: 4px;
}

.iw-article-modal__title {
	margin: 0 55px 30px 0;
	color: #082161;
	font-family: "Sora", sans-serif;
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 800;
	line-height: 1.15;
}

.iw-article-modal__content {
	color: #3f4141;
	font-family: "Sora", sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.75;
}

.iw-article-modal__content > *:first-child {
	margin-top: 0;
}

.iw-article-modal__content > *:last-child {
	margin-bottom: 0;
}

.iw-article-modal__content img {
	max-width: 100%;
	height: auto;
}

.iw-article-modal__content iframe,
.iw-article-modal__content video {
	max-width: 100%;
}

/* Testo accessibile */

.iw-articles-carousel .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.iw-articles-carousel-empty {
	padding: 30px;
	text-align: center;
}

/* Tablet */

@media (max-width: 900px) {
	.iw-articles-carousel__slide {
		flex-basis: 84%;
	}

	.iw-articles-carousel__card {
		grid-template-columns: 42% 58%;
		min-height: 400px;
	}

	.iw-articles-carousel__image-wrapper,
	.iw-articles-carousel__image,
	.iw-articles-carousel__image-placeholder {
		min-height: 400px;
	}

	.iw-articles-carousel__content {
		padding: 30px;
	}

	.iw-articles-carousel__title {
		font-size: 26px;
	}
}

/* Smartphone */

@media (max-width: 650px) {
	.iw-articles-carousel {
		padding: 20px 0;
	}

	.iw-articles-carousel__viewport {
		padding: 15px 0;
	}

	.iw-articles-carousel__slide {
		flex-basis: 88%;
	}

	.iw-articles-carousel__card {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.iw-articles-carousel__image-wrapper {
		width: 100%;
		min-height: 0;
		aspect-ratio: 2 / 3;
		height:300px;
	}

	.iw-articles-carousel__image,
	.iw-articles-carousel__image-placeholder {
		min-height: 0;
		height: 100%;
	}

	.iw-articles-carousel__content {
		min-height: 360px;
		padding: 25px 22px 30px;
	}

	.iw-articles-carousel__date {
		margin-bottom: 18px;
		font-size: 14px;
	}

	.iw-articles-carousel__title {
		font-size: 24px;
	}

	.iw-articles-carousel__excerpt {
		font-size: 15px;
		line-height: 1.6;
	}

	.iw-articles-carousel__read-more {
		font-size: 18px;
	}

	.iw-articles-carousel__navigation {
		gap: 15px;
	}

	.iw-articles-carousel__arrow {
		width: 52px;
		height: 52px;
	}

	.iw-articles-carousel__arrow img {
		width: 48px;
		height: 48px;
	}

	.iw-article-modal {
		align-items: flex-end;
		padding: 12px;
	}

	.iw-article-modal__dialog {
		width: 100%;
		max-height: 92vh;
		padding: 60px 24px 35px;
	}

	.iw-article-modal__close {
		top: 14px;
		right: 16px;
		width: 40px;
		height: 40px;
		font-size: 30px;
	}

	.iw-article-modal__title {
		margin-right: 20px;
		font-size: 29px;
	}
}

/* Riduzione delle animazioni */

@media (prefers-reduced-motion: reduce) {
	.iw-articles-carousel__track,
	.iw-articles-carousel__slide,
	.iw-articles-carousel__arrow,
	.iw-articles-carousel__read-more,
	.iw-article-modal__close {
		transition: none;
	}
}