/* ============================================================
   STITCH HOME — sezioni specifiche della homepage ESCO
   ============================================================ */

/* ---------- HERO ---------- */
.stitch-esco.stitch-hero {
	--stitch-ov-1: rgba(8, 36, 20, 0.8);
	--stitch-ov-2: rgba(8, 36, 20, 0.7);
	--stitch-ov-3: rgba(18, 50, 30, 0.9);
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: 88px;
	background-color: var(--stitch-secondary);
	isolation: isolate;
}
.stitch-esco .stitch-hero-media { position: absolute; inset: 0; z-index: 0; }
.stitch-esco .stitch-hero-media img { width: 100%; height: 100%; max-width: none; object-fit: cover; }
.stitch-esco .stitch-hero-overlay {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(to bottom, var(--stitch-ov-1), var(--stitch-ov-2), var(--stitch-ov-3));
}
.stitch-esco .stitch-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1152px;
	margin: 0 auto;
	padding: 80px 16px;
	text-align: center;
	color: #fff;
}
.stitch-esco .stitch-hero-title {
	font-size: 60px;
	line-height: 1;
	font-weight: 500;
	color: #fff;
	margin-bottom: 32px;
	animation: stitch-fade-in .8s ease both;
}
@media (max-width: 767px) { .stitch-esco .stitch-hero-title { font-size: 48px; } }
.stitch-esco .stitch-hero-text {
	font-size: 20px;
	line-height: 1.625;
	color: rgba(255, 255, 255, 0.95);
	max-width: 768px;
	margin: 0 auto 48px;
}

.stitch-esco .stitch-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--stitch-primary);
	color: #fff;
	padding: 20px 40px;
	border-radius: var(--stitch-radius);
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
	box-shadow: var(--stitch-shadow-xl);
	transition: all .15s ease;
}
.stitch-esco .stitch-btn:hover { background-color: var(--stitch-primary-dark); color: #fff; box-shadow: var(--stitch-shadow-2xl); }
.stitch-esco .stitch-btn i { font-size: 18px; }
.stitch-esco .stitch-btn svg { width: 20px; height: 20px; }

@keyframes stitch-fade-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .stitch-esco .stitch-hero-title { animation: none; } html { scroll-behavior: auto; } }

/* ---------- SEZIONI ---------- */
.stitch-esco.stitch-section { padding: 96px 0; }
.stitch-esco.stitch-servizi,
.stitch-esco.stitch-progetti { background-color: var(--stitch-bg-alt); }
.stitch-esco.stitch-about,
.stitch-esco.stitch-contatti { background-color: var(--stitch-bg); }

/* ---------- SERVIZI ---------- */
.stitch-esco .stitch-card {
	display: block;
	background-color: var(--stitch-card);
	padding: 32px;
	border-radius: var(--stitch-radius-xl);
	border: 1px solid var(--stitch-border);
	transition: all .15s ease;
	color: inherit;
}
.stitch-esco .stitch-card-hover:hover { border-color: var(--stitch-primary); box-shadow: var(--stitch-shadow-teal); }
.stitch-esco .stitch-icon-box {
	--stitch-icon-box: 64px;
	width: var(--stitch-icon-box);
	height: var(--stitch-icon-box);
	background-color: var(--stitch-primary);
	border-radius: var(--stitch-radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 24px;
	color: #fff;
	font-size: 30px;
}
.stitch-esco .stitch-card-title { font-size: 20px; line-height: 28px; font-weight: 500; margin-bottom: 16px; color: var(--stitch-text); }
.stitch-esco .stitch-card-text { color: var(--stitch-text-muted); line-height: 1.625; }

/* ---------- CHI SIAMO ---------- */
.stitch-esco .stitch-about-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 64px;
	align-items: center;
}
.stitch-esco .stitch-about-grid.is-image-left .stitch-about-media { order: -1; }
@media (max-width: 1024px) {
	.stitch-esco .stitch-about-grid { grid-template-columns: 1fr; }
	.stitch-esco .stitch-about-grid.is-image-left .stitch-about-media { order: 0; }
}
.stitch-esco .stitch-about-title { font-size: 36px; line-height: 40px; font-weight: 500; margin-bottom: 32px; color: var(--stitch-text); }
.stitch-esco .stitch-about-text { color: var(--stitch-text-muted); font-size: 18px; line-height: 1.625; margin-bottom: 40px; }
.stitch-esco .stitch-about-text p { margin-bottom: 24px; }
.stitch-esco .stitch-about-text p:last-child { margin-bottom: 0; }

.stitch-esco .stitch-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.stitch-esco .stitch-stat {
	text-align: center;
	padding: 24px;
	background-color: var(--stitch-primary);
	border-radius: var(--stitch-radius-xl);
}
.stitch-esco .stitch-stat-icon { color: #fff; font-size: 38px; line-height: 1; margin-bottom: 12px; display: flex; justify-content: center; }
.stitch-esco .stitch-stat-value { font-size: 24px; line-height: 32px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.stitch-esco .stitch-stat-label { font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.8); }

.stitch-esco .stitch-about-media { position: relative; }
.stitch-esco .stitch-about-media.has-deco { isolation: isolate; }
.stitch-esco .stitch-about-img {
	width: 100%;
	height: 600px;
	object-fit: cover;
	border: 6px solid var(--stitch-frame);
	border-radius: var(--stitch-radius-2xl);
	box-shadow: var(--stitch-shadow-2xl);
	transition: border-color .3s ease;
	position: relative;
	z-index: 1;
	background-color: var(--stitch-card);
}
.stitch-esco .stitch-about-img:hover { border-color: var(--stitch-primary); }
.stitch-esco .stitch-about-deco {
	position: absolute;
	right: -32px;
	bottom: -32px;
	width: 256px;
	height: 256px;
	background-color: var(--stitch-primary);
	border-radius: var(--stitch-radius-2xl);
	z-index: 0;
}
@media (max-width: 767px) { .stitch-esco .stitch-about-deco { right: -12px; bottom: -12px; width: 160px; height: 160px; } }

/* ---------- PROGETTI ---------- */
.stitch-esco .stitch-project {
	display: block;
	background-color: var(--stitch-card);
	border-radius: var(--stitch-radius-xl);
	overflow: hidden;
	transition: box-shadow .15s ease;
	color: inherit;
}
.stitch-esco .stitch-project:hover { box-shadow: var(--stitch-shadow-teal); }
.stitch-esco .stitch-project-media { height: 288px; overflow: hidden; }
.stitch-esco .stitch-project-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 6px solid var(--stitch-frame);
	border-radius: var(--stitch-radius-xl) var(--stitch-radius-xl) 0 0;
	transition: border-color .3s ease;
}
.stitch-esco .stitch-project-media img:hover { border-color: var(--stitch-primary); }
.stitch-esco .stitch-project-body { padding: 24px; }
.stitch-esco .stitch-project .stitch-card-title { margin-bottom: 12px; }
.stitch-esco .stitch-project-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; color: var(--stitch-text-muted); }
.stitch-esco .stitch-project-capacity { color: var(--stitch-primary); font-weight: 600; }

/* ---------- CONTATTI ---------- */
.stitch-esco .stitch-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1024px) { .stitch-esco .stitch-contact-grid { grid-template-columns: 1fr; } }
.stitch-esco .stitch-contact-info { display: flex; flex-direction: column; gap: 32px; }
.stitch-esco .stitch-contact-item { display: flex; align-items: flex-start; gap: 20px; }
.stitch-esco .stitch-contact-icon {
	--stitch-icon-box: 56px;
	width: var(--stitch-icon-box);
	height: var(--stitch-icon-box);
	flex-shrink: 0;
	background-color: var(--stitch-primary);
	border-radius: var(--stitch-radius-xl);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 26px;
}
.stitch-esco .stitch-contact-title { font-size: 20px; line-height: 28px; font-weight: 500; margin-bottom: 12px; color: var(--stitch-text); }
.stitch-esco .stitch-contact-text { font-size: 18px; line-height: 1.625; color: var(--stitch-text-muted); }
.stitch-esco .stitch-contact-text a:hover { color: var(--stitch-primary); }

.stitch-esco .stitch-form-card {
	background-color: var(--stitch-card);
	padding: 40px;
	border-radius: var(--stitch-radius-2xl);
	border: 1px solid var(--stitch-border);
	box-shadow: var(--stitch-shadow-xl);
}
.stitch-esco .stitch-form-title { font-size: 24px; line-height: 32px; font-weight: 500; margin-bottom: 32px; color: var(--stitch-text); }
.stitch-esco .stitch-form { --stitch-focus: var(--stitch-primary); display: flex; flex-direction: column; gap: 24px; margin: 0; position: relative; }
.stitch-esco .stitch-field label { display: block; margin-bottom: 12px; font-size: 18px; line-height: 28px; font-weight: 500; color: var(--stitch-text); }
.stitch-esco .stitch-field input,
.stitch-esco .stitch-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 20px;
	border: 1px solid var(--stitch-border);
	border-radius: var(--stitch-radius-xl);
	background-color: var(--stitch-input-bg);
	color: var(--stitch-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
	outline: none;
	transition: box-shadow .15s ease;
}
.stitch-esco .stitch-field textarea { resize: none; min-height: 152px; }
.stitch-esco .stitch-field input::placeholder,
.stitch-esco .stitch-field textarea::placeholder { color: var(--stitch-text-muted); opacity: .75; }
.stitch-esco .stitch-field input:focus,
.stitch-esco .stitch-field textarea:focus { box-shadow: 0 0 0 2px var(--stitch-focus); border-color: transparent; }

.stitch-esco .stitch-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--stitch-text-muted); cursor: pointer; }
.stitch-esco .stitch-privacy input { margin-top: 3px; accent-color: var(--stitch-primary); }
.stitch-esco .stitch-privacy a { text-decoration: underline; }

.stitch-esco .stitch-submit,
.stitch-esco .stitch-submit:focus {
	width: 100%;
	margin: 0;
	padding: 16px;
	border: 0;
	border-radius: var(--stitch-radius-xl);
	background-color: var(--stitch-primary);
	color: #fff;
	font-family: inherit;
	font-size: 18px;
	line-height: 28px;
	font-weight: 500;
	text-transform: none;
	box-shadow: var(--stitch-shadow-lg);
	cursor: pointer;
	transition: all .15s ease;
}
.stitch-esco .stitch-submit:hover { background-color: var(--stitch-primary-dark); color: #fff; box-shadow: var(--stitch-shadow-xl); }

.stitch-esco .stitch-form-notice { padding: 14px 18px; border-radius: var(--stitch-radius); margin-bottom: 24px; font-size: 16px; }
.stitch-esco .stitch-form-notice.is-ok { background: rgba(21, 128, 61, 0.12); color: #0f6b2c; border: 1px solid rgba(21, 128, 61, 0.4); }
.stitch-esco .stitch-form-notice.is-err { background: rgba(238, 90, 111, 0.1); color: #a3263a; border: 1px solid rgba(238, 90, 111, 0.4); }

/* Form di terze parti (shortcode) dentro la card: allinea l'aspetto ai campi del design */
.stitch-esco .stitch-form-card .wpcf7 input:not([type=submit]):not([type=checkbox]),
.stitch-esco .stitch-form-card .wpcf7 textarea { width: 100%; padding: 16px 20px; border: 1px solid var(--stitch-border); border-radius: var(--stitch-radius-xl); background: var(--stitch-input-bg); }
.stitch-esco .stitch-form-card .wpcf7 input[type=submit] { width: 100%; padding: 16px; border: 0; border-radius: var(--stitch-radius-xl); background: var(--stitch-primary); color: #fff; font-size: 18px; cursor: pointer; }

/* v1.1 - accento sotto i titoli di sezione con i verdi del logo */
.stitch-esco .stitch-section-title::after,
.stitch-esco .stitch-about-title::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin: 16px auto 0;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--stitch-primary), var(--stitch-primary-light));
}
.stitch-esco .stitch-about-title::after { margin-left: 0; }
