/* ============================================================
   STITCH GLOBAL — ESCO Alpha Energy Srl
   Variabili e componenti condivisi (header, footer, contenitori).
   Generato da: ESCO_Srl.zip (export Figma Make) - palette v1.1 dal logo E.S.CO. Alpha Energy
   I valori di default dei controlli Elementor ricalcano queste variabili:
   qualunque modifica fatta in Elementor ha la precedenza.
   ============================================================ */

:root {
	/* Colori */
	--stitch-primary:      #15803d;  /* teal principale (pulsanti, icone) */
	--stitch-primary-dark: #0f6b2c;  /* hover pulsanti */
	--stitch-primary-light:#7cc63e;
	--stitch-secondary:    #0b2416;  /* blu notte: header, footer */
	--stitch-secondary-2:  #12321e;
	--stitch-accent:       #15803d;
	--stitch-bg:           #f3f9f0;  /* sfondo pagina (Chi siamo, Contatti) */
	--stitch-bg-alt:       #e4f1dc;  /* sezioni Servizi, Progetti */
	--stitch-card:         #ffffff;
	--stitch-input-bg:     #eef5ea;
	--stitch-text:         #13261a;
	--stitch-text-muted:   #43604b;
	--stitch-text-light:   #f1f7ee;
	--stitch-border:       rgba(19, 38, 26, 0.12);
	--stitch-frame:        #e3ecdf;  /* cornice immagini */

	/* Tipografia: il design usa lo stack di sistema (Tailwind font-sans) */
	--stitch-font-main: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
	--stitch-font-head: var(--stitch-font-main);

	/* Raggi (Tailwind: lg = 10px, xl = 14px, 2xl = 16px) */
	--stitch-radius:    10px;
	--stitch-radius-xl: 14px;
	--stitch-radius-2xl:16px;

	/* Ombre */
	--stitch-shadow:     0 4px 20px rgba(0, 0, 0, 0.08);
	--stitch-shadow-lg:  0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
	--stitch-shadow-xl:  0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
	--stitch-shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.25);
	--stitch-shadow-teal:0 25px 50px -12px rgba(21, 128, 61, 0.2);

	/* Spaziature */
	--stitch-gap:        32px;
	--stitch-section-py: 96px;
	--stitch-container:  1280px;
	--stitch-header-h:   88px;
	--stitch-brand-red:  #d7141a;  /* rosso del logo: solo accenti puntuali */
}

html { scroll-behavior: smooth; }

/* ---------- Base comune a tutti i widget ---------- */
.stitch-esco {
	font-family: var(--stitch-font-main);
	font-size: 16px;
	line-height: 1.5;
	color: var(--stitch-text);
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}
.stitch-esco *,
.stitch-esco *::before,
.stitch-esco *::after { box-sizing: border-box; }

.stitch-esco h1, .stitch-esco h2, .stitch-esco h3, .stitch-esco h4, .stitch-esco p, .stitch-esco ul {
	margin: 0;
	padding: 0;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
}
.stitch-esco h1, .stitch-esco h2, .stitch-esco h3, .stitch-esco h4 { font-weight: 500; color: inherit; }
.stitch-esco ul { list-style: none; }
.stitch-esco a { text-decoration: none; color: inherit; transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.stitch-esco img { display: block; max-width: 100%; }
.stitch-esco i, .stitch-esco svg { flex-shrink: 0; }
.stitch-esco .e-font-icon-svg { width: 1em; height: 1em; fill: currentColor; }

.stitch-esco .stitch-container {
	width: 100%;
	max-width: var(--stitch-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 32px;
	padding-right: 32px;
}
@media (max-width: 1023px) { .stitch-esco .stitch-container { padding-left: 24px; padding-right: 24px; } }
@media (max-width: 639px)  { .stitch-esco .stitch-container { padding-left: 16px; padding-right: 16px; } }

/* Ancore: compensano l'header fisso quando si clicca una voce di menu */
.stitch-esco[id] { scroll-margin-top: var(--stitch-header-h); }

/* ============================================================
   HEADER (globale)
   ============================================================ */
.stitch-esco.stitch-header {
	position: relative;
	z-index: 999;
	width: 100%;
	background-color: #ffffff;
	border-bottom: 1px solid rgba(19, 38, 26, 0.08);
	box-shadow: 0 2px 16px rgba(11, 36, 22, 0.06);
	color: var(--stitch-text);
}
.stitch-esco.stitch-header.is-fixed { position: fixed; top: 0; left: 0; right: 0; }
.stitch-esco.stitch-header.has-blur { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.admin-bar .stitch-esco.stitch-header.is-fixed { top: 32px; }
@media (max-width: 782px) { .admin-bar .stitch-esco.stitch-header.is-fixed { top: 46px; } }
/* Nell'editor l'header resta nel flusso per poterlo selezionare comodamente */
.elementor-editor-active .stitch-esco.stitch-header.is-fixed { position: relative; top: 0; }

.stitch-esco .stitch-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 88px;
}
.stitch-esco .stitch-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--stitch-text); }
.stitch-esco .stitch-brand:hover { color: var(--stitch-text); }
.stitch-esco .stitch-logo { width: auto; height: 68px; display: block; }
.stitch-esco .stitch-brand-text { font-size: 20px; line-height: 28px; font-weight: 600; color: var(--stitch-text); }

.stitch-esco .stitch-nav { display: flex; align-items: center; gap: 32px; }
.stitch-esco .stitch-nav a,
.stitch-esco .stitch-mobile-nav a {
	font-size: 16px;
	line-height: 1.5;
	font-weight: 500;
	color: var(--stitch-text);
}
.stitch-esco .stitch-nav a:hover,
.stitch-esco .stitch-mobile-nav a:hover { color: var(--stitch-primary); }

.stitch-esco .stitch-burger,
.stitch-esco .stitch-burger:hover,
.stitch-esco .stitch-burger:focus {
	display: none;
	padding: 8px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--stitch-text);
	box-shadow: none;
	cursor: pointer;
	line-height: 0;
}
.stitch-esco .stitch-burger .stitch-i-close { display: none; }
.stitch-esco.stitch-header.is-open .stitch-burger .stitch-i-open { display: none; }
.stitch-esco.stitch-header.is-open .stitch-burger .stitch-i-close { display: block; }

.stitch-esco .stitch-mobile-nav {
	display: none;
	background-color: #ffffff;
	border-top: 1px solid rgba(19, 38, 26, 0.08);
	padding: 16px;
}
.stitch-esco .stitch-mobile-nav a { display: block; padding: 8px 0; }

@media (max-width: 767px) {
	.stitch-esco .stitch-nav { display: none; }
	.stitch-esco .stitch-burger,
	.stitch-esco .stitch-burger:hover,
	.stitch-esco .stitch-burger:focus { display: inline-flex; }
	.stitch-esco.stitch-header.is-open .stitch-mobile-nav { display: block; }
	.stitch-esco .stitch-mobile-nav[hidden] { display: none; }
	.stitch-esco.stitch-header.is-open .stitch-mobile-nav[hidden] { display: block; }
}

/* ============================================================
   FOOTER (globale)
   ============================================================ */
.stitch-esco.stitch-footer {
	background-color: var(--stitch-secondary);
	color: var(--stitch-text-light);
	padding: 64px 0;
}
.stitch-esco .stitch-footer-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 40px;
	margin-bottom: 48px;
}
@media (max-width: 1024px) { .stitch-esco .stitch-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .stitch-esco .stitch-footer-grid { grid-template-columns: 1fr; } }

.stitch-esco .stitch-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.stitch-esco.stitch-footer .stitch-logo { width: 112px; height: auto; background: #fff; border-radius: 16px; padding: 6px; }
.stitch-esco .stitch-footer-brand-text { font-size: 20px; line-height: 28px; color: var(--stitch-text-light); }
.stitch-esco .stitch-footer-text { color: rgba(241, 247, 238, 0.7); line-height: 1.625; }
.stitch-esco .stitch-footer-title { font-size: 18px; line-height: 28px; font-weight: 500; margin-bottom: 24px; color: var(--stitch-text-light); }
.stitch-esco .stitch-footer-list { display: flex; flex-direction: column; gap: 12px; color: rgba(241, 247, 238, 0.7); }
.stitch-esco .stitch-footer-list a { color: rgba(241, 247, 238, 0.7); }
.stitch-esco .stitch-footer-list a:hover { color: var(--stitch-primary); }
.stitch-esco .stitch-footer-contacts li { display: flex; align-items: center; gap: 12px; }
.stitch-esco .stitch-footer-ci { display: inline-flex; color: #fff; font-size: 18px; width: 20px; justify-content: center; }
.stitch-esco .stitch-social { display: flex; gap: 16px; margin-top: 24px; }
.stitch-esco .stitch-social a {
	--stitch-social: 48px;
	width: var(--stitch-social);
	height: var(--stitch-social);
	border-radius: 9999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: var(--stitch-primary);
	color: #fff;
	font-size: 18px;
}
.stitch-esco .stitch-social a:hover { background-color: rgba(21, 128, 61, 0.3); }
.stitch-esco .stitch-footer-bottom {
	border-top: 1px solid rgba(241, 247, 238, 0.2);
	padding-top: 32px;
	text-align: center;
	color: rgba(241, 247, 238, 0.6);
}

/* ============================================================
   Utility condivise
   ============================================================ */
.stitch-esco .stitch-section-head { text-align: center; margin-bottom: 64px; }
.stitch-esco .stitch-section-title { font-size: 36px; line-height: 40px; font-weight: 500; margin-bottom: 24px; color: var(--stitch-text); }
.stitch-esco .stitch-section-subtitle { max-width: 672px; margin-left: auto; margin-right: auto; font-size: 18px; line-height: 28px; color: var(--stitch-text-muted); }

.stitch-esco .stitch-grid { display: grid; gap: 32px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1024px) { .stitch-esco .stitch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .stitch-esco .stitch-grid { grid-template-columns: 1fr; } }

/* Campo nascosto anti-spam */
.stitch-esco .stitch-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
