/* ============================================================
   STITCH GLOBAL — Roberto Salerno Soluzioni Edili Srl
   Variabili e componenti condivisi (header, footer, contenitori, form).
   Generato da: Roberto_Salerno.zip (export Figma Make) - palette v1.1 dal logo Roberto Salerno
   Le variabili sono limitate a .stitch-rs per non interferire con tema e altri plugin.
   I valori dei controlli Elementor hanno sempre la precedenza.
   ============================================================ */

.stitch-rs {
	/* Colori */
	--stitch-primary:    #0A63B8;  /* blu del logo: pulsanti, occhielli, evidenziazioni */
	--stitch-sky:        #4FB3F0;  /* azzurro dell'arco: accenti su fondo scuro */
	--stitch-green:      #8DC21F;  /* verde lime del logo: icone su fondo scuro */
	--stitch-green-dk:   #6FA51A;  /* verde su fondo chiaro: stelle, linee */
	--stitch-primary-dk: #084E91;
	--stitch-secondary:  #0A2346;  /* blu notte: hero, footer */
	--stitch-accent:     #0A63B8;
	--stitch-bg:         #F3F6FA;  /* grigio-azzurro chiaro: sezioni chiare, campi form */
	--stitch-bg-alt:     #E3ECF5;  /* azzurro chiaro: striscia settori */
	--stitch-card:       #FFFFFF;
	--stitch-text:       #14202E;
	--stitch-text-muted: #4F5D70;
	--stitch-border:     rgba(20, 32, 46, 0.12);

	/* Tipografia */
	--stitch-font-main: 'Lato', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--stitch-font-head: 'Barlow Condensed', 'Arial Narrow', ui-sans-serif, system-ui, sans-serif;

	/* Forme: il design usa angoli vivi */
	--stitch-radius:     0px;
	--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);

	/* Spaziature */
	--stitch-gap:        24px;
	--stitch-section-py: 96px;
	--stitch-container:  1280px;
	--stitch-header-h:   72px;

	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;
}

html { scroll-behavior: smooth; }

.stitch-rs *,
.stitch-rs *::before,
.stitch-rs *::after { box-sizing: border-box; }

.stitch-rs h1, .stitch-rs h2, .stitch-rs h3, .stitch-rs h4, .stitch-rs p, .stitch-rs ul {
	margin: 0;
	padding: 0;
	letter-spacing: normal;
	text-transform: none;
}
.stitch-rs h1, .stitch-rs h2, .stitch-rs h3, .stitch-rs h4 { font-family: var(--stitch-font-head); color: inherit; }
.stitch-rs ul { list-style: none; }
.stitch-rs a { text-decoration: none; color: inherit; transition: color .15s ease, background-color .15s ease, opacity .15s ease; }
.stitch-rs img { display: block; max-width: 100%; }
.stitch-rs .stitch-ic { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; line-height: 1; }
.stitch-rs .e-font-icon-svg,
.stitch-rs .stitch-ic svg { width: 1em; height: 1em; fill: currentColor; }

.stitch-rs .stitch-container {
	width: 100%;
	max-width: var(--stitch-container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.stitch-rs[id] { scroll-margin-top: var(--stitch-header-h); }
.stitch-rs [id] { scroll-margin-top: calc(var(--stitch-header-h) + 16px); }

/* ---------- Tipografia ricorrente ---------- */
.stitch-rs .stitch-eyebrow {
	font-family: var(--stitch-font-head);
	font-size: 12px;
	line-height: 16px;
	font-weight: 700;
	letter-spacing: 0.28em;
	text-transform: uppercase;
	color: var(--stitch-primary);
	margin-bottom: 12px;
}
.stitch-rs .stitch-eyebrow.is-lg { font-size: 14px; line-height: 20px; margin-bottom: 16px; }
.stitch-rs .stitch-eyebrow.is-tight { margin-bottom: 8px; }
.stitch-rs .stitch-eyebrow.is-center { text-align: center; margin-bottom: 40px; }

.stitch-rs .stitch-title {
	font-family: var(--stitch-font-head);
	font-weight: 800;
	font-size: clamp(2.2rem, 4vw, 3rem);
	line-height: 1;
	color: var(--stitch-text);
	margin-bottom: 24px;
}
.stitch-rs .stitch-title-lg { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -0.01em; margin-bottom: 0; }
.stitch-rs .stitch-hl { color: var(--stitch-primary); }

/* ---------- Pulsante ---------- */
.stitch-rs .stitch-btn,
.stitch-rs .stitch-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 0;
	background-color: var(--stitch-primary);
	color: #fff;
	font-family: var(--stitch-font-head);
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none;
	transition: background-color .15s ease, opacity .15s ease;
}
.stitch-rs .stitch-btn { padding: 14px 28px; }
.stitch-rs .stitch-btn:hover,
.stitch-rs .stitch-submit:hover,
.stitch-rs .stitch-submit:focus { background-color: var(--stitch-primary-dk); color: #fff; }

/* ============================================================
   HEADER (globale)
   ============================================================ */
.stitch-rs.stitch-header {
	position: relative;
	z-index: 999;
	width: 100%;
	background-color: #fff;
	border-bottom: 3px solid var(--stitch-primary);
	box-shadow: 0 2px 14px rgba(10, 35, 70, 0.08);
}
.stitch-rs.stitch-header.is-fixed { position: fixed; top: 0; left: 0; right: 0; }
.admin-bar .stitch-rs.stitch-header.is-fixed { top: 32px; }
@media (max-width: 782px) { .admin-bar .stitch-rs.stitch-header.is-fixed { top: 46px; } }
.elementor-editor-active .stitch-rs.stitch-header.is-fixed { position: relative; top: 0; }

.stitch-rs .stitch-header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.stitch-rs .stitch-brand { display: inline-flex; flex-direction: column; line-height: 1; }
.stitch-rs .stitch-brand:hover { color: inherit; }
.stitch-rs.stitch-header .stitch-logo { height: 44px; width: auto; }
@media (max-width: 1024px) { .stitch-rs.stitch-header .stitch-logo { height: 40px; } }
@media (max-width: 767px) { .stitch-rs.stitch-header .stitch-logo { height: 32px; } }
.stitch-rs .stitch-brand-name {
	font-family: var(--stitch-font-head);
	font-size: 16px;
	line-height: 1;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--stitch-primary);
}
.stitch-rs .stitch-brand-sub {
	font-family: var(--stitch-font-head);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--stitch-text-muted);
	margin-top: 2px;
}
.stitch-rs .stitch-header-phone { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--stitch-text-muted); }
.stitch-rs .stitch-header-phone:hover { color: var(--stitch-secondary); }
.stitch-rs .stitch-header-phone .stitch-ic { color: var(--stitch-primary); font-size: 13px; }
@media (max-width: 639px) { .stitch-rs .stitch-header-phone:not(.show-mobile) { display: none; } }

/* ---------- Menu sezioni ---------- */
.stitch-rs .stitch-header-inner { gap: 24px; }
.stitch-rs .stitch-brand { flex-shrink: 0; }
.stitch-rs .stitch-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.stitch-rs .stitch-nav a,
.stitch-rs .stitch-mobile-nav a {
	position: relative;
	font-family: var(--stitch-font-head);
	font-size: 15px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--stitch-text);
	white-space: nowrap;
}
.stitch-rs .stitch-nav a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background-color: var(--stitch-primary);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .2s ease;
}
.stitch-rs .stitch-nav a:hover,
.stitch-rs .stitch-nav a.is-active { color: var(--stitch-primary); }
.stitch-rs .stitch-nav a:hover::after,
.stitch-rs .stitch-nav a.is-active::after { transform: scaleX(1); }

.stitch-rs .stitch-header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.stitch-rs .stitch-nav + .stitch-header-actions { padding-left: 24px; border-left: 1px solid var(--stitch-border); }
.stitch-rs .stitch-header-cta { padding: 10px 18px; }

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

.stitch-rs .stitch-mobile-nav { display: none; background-color: #fff; border-top: 1px solid var(--stitch-border); padding: 8px 24px 20px; max-height: calc(100vh - var(--stitch-header-h)); overflow-y: auto; }
.stitch-rs .stitch-mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--stitch-border); font-size: 16px; }
.stitch-rs .stitch-mobile-nav a:hover,
.stitch-rs .stitch-mobile-nav a.is-active { color: var(--stitch-primary); }
.stitch-rs .stitch-mobile-nav .stitch-mobile-phone { display: flex; align-items: center; gap: 10px; color: var(--stitch-text-muted); letter-spacing: 0.04em; }
.stitch-rs .stitch-mobile-nav .stitch-mobile-phone .stitch-ic { color: var(--stitch-primary); font-size: 14px; }
.stitch-rs .stitch-mobile-nav .stitch-header-cta { display: flex; margin-top: 16px; padding: 14px; border: 0; color: #fff; }
.stitch-rs .stitch-mobile-nav .stitch-header-cta:hover { color: #fff; }

/* Menu compatto: da tablet (default) o solo da mobile */
@media (max-width: 1024px) {
	.stitch-rs.stitch-header.bp-tablet .stitch-nav,
	.stitch-rs.stitch-header.bp-tablet .stitch-header-actions .stitch-header-cta { display: none; }
	.stitch-rs.stitch-header.bp-tablet .stitch-burger { display: inline-flex; }
	.stitch-rs.stitch-header.bp-tablet .stitch-header-actions { margin-left: auto; padding-left: 0; border-left: 0; }
	.stitch-rs.stitch-header.bp-tablet.is-open .stitch-mobile-nav { display: block; }
}
@media (max-width: 767px) {
	.stitch-rs.stitch-header.bp-mobile .stitch-nav,
	.stitch-rs.stitch-header.bp-mobile .stitch-header-actions .stitch-header-cta { display: none; }
	.stitch-rs.stitch-header.bp-mobile .stitch-burger { display: inline-flex; }
	.stitch-rs.stitch-header.bp-mobile .stitch-header-actions { margin-left: auto; padding-left: 0; border-left: 0; }
	.stitch-rs.stitch-header.bp-mobile.is-open .stitch-mobile-nav { display: block; }
}
/* Tra 1025 e 1200px le voci si stringono un po' */
@media (min-width: 1025px) and (max-width: 1200px) {
	.stitch-rs .stitch-nav { gap: 18px; }
	.stitch-rs .stitch-nav a { font-size: 14px; letter-spacing: 0.05em; }
}

/* ============================================================
   FOOTER (globale)
   ============================================================ */
.stitch-rs.stitch-footer { background-color: var(--stitch-secondary); padding: 48px 0; }
.stitch-rs .stitch-footer-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 767px) { .stitch-rs .stitch-footer-grid { grid-template-columns: 1fr; } }
.stitch-rs.stitch-footer .stitch-logo { height: 96px; width: auto; margin-bottom: 16px; background: #fff; padding: 6px 10px; }
.stitch-rs .stitch-footer-name {
	font-family: var(--stitch-font-head);
	font-size: 18px;
	line-height: 28px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 4px;
}
.stitch-rs .stitch-footer-sub {
	font-family: var(--stitch-font-head);
	font-size: 14px;
	line-height: 20px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--stitch-sky);
	margin-bottom: 16px;
}
.stitch-rs .stitch-footer-desc { font-size: 12px; line-height: 1.625; color: rgba(255, 255, 255, 0.4); }
.stitch-rs .stitch-footer-contacts { display: flex; flex-direction: column; gap: 16px; }
.stitch-rs .stitch-footer-contact { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.8); }
.stitch-rs .stitch-footer-contact a { color: rgba(255, 255, 255, 0.8); }
.stitch-rs .stitch-footer-contact a:hover { color: #fff; }
.stitch-rs .stitch-footer-contact .stitch-ic { color: var(--stitch-green); font-size: 14px; width: 15px; margin-top: 3px; }
.stitch-rs .stitch-hours-title {
	font-family: var(--stitch-font-head);
	font-size: 14px;
	line-height: 20px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	margin-bottom: 12px;
}
.stitch-rs .stitch-hours { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.stitch-rs .stitch-hours-row { display: flex; justify-content: space-between; gap: 24px; }
.stitch-rs .stitch-hours-day { color: rgba(255, 255, 255, 0.4); }
.stitch-rs .stitch-hours-time { color: rgba(255, 255, 255, 0.7); text-align: right; }
.stitch-rs .stitch-footer-bottom {
	padding-top: 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 12px;
	line-height: 16px;
	color: rgba(255, 255, 255, 0.25);
}
.stitch-rs .stitch-footer-legal { display: inline-flex; flex-wrap: wrap; gap: 16px; }
.stitch-rs .stitch-footer-bottom a { color: rgba(255, 255, 255, 0.25); }
.stitch-rs .stitch-footer-bottom a:hover { color: rgba(255, 255, 255, 0.6); }
@media (max-width: 639px) { .stitch-rs .stitch-footer-bottom { flex-direction: column; text-align: center; } }

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