/* ============================================================
   STITCH HOME — sezioni della homepage Roberto Salerno
   ============================================================ */

.stitch-rs.stitch-section { padding: 96px 0; }

/* ---------- HERO + FORM ---------- */
.stitch-rs.stitch-hero {
	position: relative;
	min-height: 100vh;
	display: flex;
	align-items: stretch;
	padding-top: 72px;
	background-color: var(--stitch-secondary);
	overflow: hidden;
	isolation: isolate;
}
.stitch-rs .stitch-hero-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	opacity: 0.2;
	pointer-events: none;
	z-index: -1;
}
.stitch-rs .stitch-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 48px;
	align-items: center;
	padding-top: 64px;
	padding-bottom: 64px;
}
@media (max-width: 1024px) { .stitch-rs .stitch-hero-grid { grid-template-columns: 1fr; } }

.stitch-rs .stitch-hero-title {
	font-family: var(--stitch-font-head);
	font-size: clamp(2.8rem, 6vw, 5rem);
	font-weight: 800;
	line-height: 1;
	color: #fff;
	margin-bottom: 24px;
}
.stitch-rs .stitch-hero-text { font-size: 16px; line-height: 1.625; color: rgba(255, 255, 255, 0.55); max-width: 448px; margin-bottom: 32px; }

.stitch-rs .stitch-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.stitch-rs .stitch-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	font-family: var(--stitch-font-head);
	font-weight: 600;
	font-size: 12px;
	line-height: 16px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.7);
}
.stitch-rs .stitch-pill .stitch-ic { color: var(--stitch-green); font-size: 12px; }

.stitch-rs .stitch-checks { display: flex; flex-direction: column; gap: 8px; }
.stitch-rs .stitch-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.6); }
.stitch-rs .stitch-checks .stitch-ic { color: var(--stitch-green); font-size: 14px; }

.stitch-rs .stitch-hero-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background-color: var(--stitch-green); }

/* Card form */
.stitch-rs .stitch-form-card { background-color: #fff; padding: 40px; box-shadow: var(--stitch-shadow-2xl); color: var(--stitch-text); }
@media (max-width: 1024px) { .stitch-rs .stitch-form-card { padding: 32px; } }
.stitch-rs .stitch-form-head { margin-bottom: 28px; }
.stitch-rs .stitch-badge {
	display: inline-block;
	padding: 4px 12px;
	margin-bottom: 12px;
	background-color: var(--stitch-primary);
	color: #fff;
	font-family: var(--stitch-font-head);
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.stitch-rs .stitch-form-title { font-family: var(--stitch-font-head); font-size: 24px; line-height: 32px; font-weight: 700; color: var(--stitch-text); }
.stitch-rs .stitch-form-text { font-size: 14px; line-height: 20px; color: var(--stitch-text-muted); margin-top: 4px; }

.stitch-rs .stitch-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.stitch-rs .stitch-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 639px) { .stitch-rs .stitch-form-row { grid-template-columns: 1fr; } }
.stitch-rs .stitch-field label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--stitch-font-head);
	font-weight: 700;
	font-size: 10px;
	line-height: 14px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--stitch-text-muted);
}
.stitch-rs .stitch-field input,
.stitch-rs .stitch-field select,
.stitch-rs .stitch-field textarea {
	display: block;
	width: 100%;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--stitch-border);
	border-radius: 0;
	background-color: var(--stitch-bg);
	color: var(--stitch-text);
	font-family: var(--stitch-font-main);
	font-size: 14px;
	line-height: 20px;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.stitch-rs .stitch-field textarea { resize: none; min-height: 106px; }
.stitch-rs .stitch-field input::placeholder,
.stitch-rs .stitch-field textarea::placeholder { color: var(--stitch-text-muted); opacity: 1; }
.stitch-rs .stitch-field input:focus,
.stitch-rs .stitch-field select:focus,
.stitch-rs .stitch-field textarea:focus { border-color: var(--stitch-text); }
.stitch-rs .stitch-select { position: relative; }
.stitch-rs .stitch-select select { padding-right: 40px; cursor: pointer; }
.stitch-rs .stitch-select-chevron { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--stitch-text-muted); }

.stitch-rs .stitch-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; line-height: 1.5; color: var(--stitch-text-muted); cursor: pointer; }
.stitch-rs .stitch-consent input { margin-top: 2px; accent-color: var(--stitch-primary); }

.stitch-rs .stitch-submit { width: 100%; padding: 16px; margin: 0; }
.stitch-rs .stitch-submit[disabled] { opacity: .6; cursor: wait; }
.stitch-rs .stitch-form-note { font-size: 10px; line-height: 14px; text-align: center; color: var(--stitch-text-muted); }
.stitch-rs .stitch-form-note a { text-decoration: underline; }

.stitch-rs .stitch-form-error { padding: 12px 16px; margin-bottom: 16px; background: rgba(212, 24, 61, 0.08); border-left: 3px solid #d4183d; color: #8f1029; font-size: 14px; }
.stitch-rs .stitch-form-ok { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 0; }
.stitch-rs .stitch-ok-icon { color: var(--stitch-primary); font-size: 52px; margin-bottom: 20px; }
.stitch-rs .stitch-form-ok .stitch-form-title { margin-bottom: 8px; }
.stitch-rs .stitch-form-ok .stitch-form-text { max-width: 320px; margin-top: 0; }
.stitch-rs .stitch-ok-phone { font-weight: 700; text-decoration: underline; color: var(--stitch-primary); }
.stitch-rs .stitch-ok-again { margin-top: 32px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: underline; color: var(--stitch-text-muted); }
.stitch-rs .stitch-ok-again:hover { color: var(--stitch-text); }

/* ---------- CHI SIAMO ---------- */
.stitch-rs.stitch-about { background-color: var(--stitch-bg); }
.stitch-rs .stitch-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.stitch-rs .stitch-about-grid.is-image-right .stitch-about-media { order: 2; }
@media (max-width: 1024px) {
	.stitch-rs .stitch-about-grid { grid-template-columns: 1fr; }
	/* Su tablet/mobile il testo viene prima dell'immagine, come nel design */
	.stitch-rs .stitch-about-media,
	.stitch-rs .stitch-about-grid.is-image-right .stitch-about-media { order: 2; }
	.stitch-rs .stitch-about-body { order: 1; }
}
.stitch-rs .stitch-about-media { position: relative; }
.stitch-rs .stitch-about-block { position: absolute; right: -20px; bottom: -20px; width: 66.666%; height: 66.666%; background-color: var(--stitch-primary); opacity: 0.12; z-index: 0; }
.stitch-rs .stitch-about-bar { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background-color: var(--stitch-primary); z-index: 2; }
.stitch-rs .stitch-about-img { position: relative; z-index: 1; width: 100%; height: 420px; object-fit: cover; background-color: var(--stitch-bg-alt); }
@media (max-width: 1024px) { .stitch-rs .stitch-about-img { height: 320px; } }
.stitch-rs .stitch-about-badge {
	position: absolute;
	right: -32px;
	bottom: 32px;
	z-index: 10;
	padding: 20px;
	background-color: var(--stitch-secondary);
	color: #fff;
	box-shadow: var(--stitch-shadow-xl);
}
@media (max-width: 1024px) { .stitch-rs .stitch-about-badge { right: -20px; bottom: -20px; } }
@media (max-width: 767px) { .stitch-rs .stitch-about-badge { right: -8px; } }
.stitch-rs .stitch-badge-value { font-family: var(--stitch-font-head); font-size: 36px; line-height: 1; font-weight: 800; color: var(--stitch-sky); margin-bottom: 4px; }
.stitch-rs .stitch-badge-label { font-family: var(--stitch-font-head); font-size: 12px; line-height: 16px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }

.stitch-rs .stitch-about-text { color: var(--stitch-text-muted); font-size: 16px; line-height: 1.625; margin-bottom: 32px; }
.stitch-rs .stitch-about-text p { margin-bottom: 20px; }
.stitch-rs .stitch-about-text p:last-child { margin-bottom: 0; }
.stitch-rs .stitch-about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 32px; }
.stitch-rs .stitch-about-stat { border-left: 2px solid var(--stitch-green-dk); padding-left: 12px; }
.stitch-rs .stitch-about-stat-value { font-family: var(--stitch-font-head); font-size: 20px; line-height: 1; font-weight: 700; color: var(--stitch-text); margin-bottom: 2px; }
.stitch-rs .stitch-about-stat-label { font-size: 11px; line-height: 1.25; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stitch-text-muted); }

/* ---------- SETTORI ---------- */
.stitch-rs.stitch-settori { background-color: var(--stitch-bg-alt); padding: 64px 0; }
.stitch-rs .stitch-settori-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .stitch-rs .stitch-settori-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stitch-rs .stitch-settore { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: inherit; }
.stitch-rs .stitch-settore-icon {
	--stitch-icon-box: 40px;
	width: var(--stitch-icon-box);
	height: var(--stitch-icon-box);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	background-color: var(--stitch-secondary);
	color: var(--stitch-green);
	font-size: 17px;
}
.stitch-rs .stitch-settore-title { font-family: var(--stitch-font-head); font-size: 1.05rem; line-height: 1.5; font-weight: 700; color: var(--stitch-text); margin-bottom: 4px; }
.stitch-rs .stitch-settore-text { font-size: 14px; line-height: 1.625; color: var(--stitch-text-muted); }

/* ---------- STRISCIA FOTO ---------- */
.stitch-rs.stitch-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; overflow: hidden; }
.stitch-rs .stitch-gallery-item { position: relative; display: block; height: 208px; overflow: hidden; background-color: var(--stitch-bg-alt); }
.stitch-rs .stitch-gallery-item img { width: 100%; height: 100%; max-width: none; object-fit: cover; transition: transform .7s ease; }
.stitch-rs.stitch-gallery.has-zoom .stitch-gallery-item:hover img { transform: scale(1.05); }
.stitch-rs .stitch-gallery-item::after { content: ""; position: absolute; inset: 0; background-color: rgba(10, 35, 70, 0.35); pointer-events: none; }

/* ---------- RECENSIONI ---------- */
.stitch-rs.stitch-recensioni { background-color: var(--stitch-bg); padding: 80px 0; overflow: hidden; }
.stitch-rs .stitch-reviews-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 56px; }
@media (max-width: 767px) { .stitch-rs .stitch-reviews-head { flex-direction: column; align-items: flex-start; } }
.stitch-rs .stitch-aggregate { display: flex; align-items: center; gap: 12px; padding-bottom: 4px; color: inherit; }
.stitch-rs .stitch-stars { display: inline-flex; gap: 2px; line-height: 0; }
.stitch-rs .stitch-stars svg { fill: var(--stitch-green-dk); }
.stitch-rs .stitch-agg-score { font-family: var(--stitch-font-head); font-size: 30px; line-height: 36px; font-weight: 700; color: var(--stitch-text); }
.stitch-rs .stitch-agg-label { font-size: 14px; line-height: 20px; color: var(--stitch-text-muted); }

.stitch-rs .stitch-reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1024px) { .stitch-rs .stitch-reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .stitch-rs .stitch-reviews-grid { grid-template-columns: 1fr; } }
.stitch-rs .stitch-review {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 28px;
	background-color: var(--stitch-card);
	border-top: 2px solid var(--stitch-primary);
	transition: box-shadow .3s ease;
}
.stitch-rs .stitch-review:hover { box-shadow: var(--stitch-shadow-lg); }
.stitch-rs .stitch-review-text { flex: 1; font-size: 14px; line-height: 1.625; color: var(--stitch-text-muted); }
.stitch-rs .stitch-review-author { display: flex; align-items: center; gap: 12px; padding-top: 8px; border-top: 1px solid var(--stitch-border); }
.stitch-rs .stitch-avatar {
	width: 36px;
	height: 36px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--stitch-secondary);
	color: #fff;
	font-family: var(--stitch-font-head);
	font-size: 14px;
	font-weight: 700;
	object-fit: cover;
}
.stitch-rs .stitch-review-name { font-family: var(--stitch-font-head); font-size: 14px; line-height: 1; font-weight: 700; color: var(--stitch-text); margin-bottom: 2px; }
.stitch-rs .stitch-review-role { font-size: 12px; line-height: 16px; color: var(--stitch-text-muted); }

/* v1.1 - accenti del logo sul fondo scuro dell'hero */
.stitch-rs.stitch-hero .stitch-eyebrow,
.stitch-rs.stitch-hero .stitch-hl { color: var(--stitch-sky); }
