/*
 Theme Name:     Hello Elementor Child — Syncro Boost
 Theme URI:      https://syncro.agency/wordpress/
 Description:    Performance-driven Elementor child theme built for SEO, speed, and conversions. Includes clean CSS/JS optimizations, reusable Elementor components, and scalable best practices. Crafted by Syncro Agency.
 Author:         Syncro Agency
 Author URI:     https://syncro.agency/
 Template:       hello-elementor
 Version:        1.0.0
 Requires at least: 6.0
 Tested up to: 6.5
 Requires PHP:   7.4
 License:        GNU General Public License v2 or later
 License URI:    https://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:    hello-elementor-child-syncro
 Tags:           elementor, child-theme, performance, seo, conversions, agency
*/



/* ========================================
   Footer
   ======================================== */

#site-footer {
	display: none;
}

.hero-section-home {
	position: relative;
}

.hero-section-home-absolute {
	position: fixed !important;
	max-width: var(--container-max-width) !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
}

/* Fino a 1920px: forza larghezza piena con padding laterale */
@media (max-width: 1920px) {
	.hero-section-home-absolute {
		width: 100% !important;
		max-width: 2000px !important;
		padding: 0 100px !important;
	}
}

/* Mobile: riduce il padding laterale */
@media (max-width: 880px) {
	.hero-section-home-absolute {
		padding: 0 20px !important;
	}
}

/* ========================================
   HERO IMAGE FIX
======================================== */

:root {
	--hero-image-overlap: clamp(120px, 13vw, 250px);
}

/* Il container della casa deve avere altezza reale */
.house-container {
	position: relative !important;
	background: transparent !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: visible !important;
}

/* Questo wrapper riserva lo spazio reale dell'immagine visibile */
.image-hero {
	position: relative !important;
	width: 100% !important;
	aspect-ratio: 2560 / 1091 !important; /* 1341 - 250 = 1091 */
	overflow: visible !important;
}

.image-hero .elementor-widget-container {
	position: relative !important;
	width: 100% !important;
	height: 100% !important;
	padding: 0 !important;
	margin: 0 !important;
}

/* L'immagine resta assoluta e risale sopra */
.image-hero img {
	position: absolute !important;
	top: calc(-1 * var(--hero-image-overlap)) !important;
	left: 0 !important;
	width: 100% !important;
	height: calc(100% + var(--hero-image-overlap)) !important;
	object-fit: cover !important;
	display: block !important;
	max-width: none !important;
}

@media (max-width: 880px) {
	.house-container {
		margin-top: -120px !important;
		position: relative !important;
		z-index: 3 !important;
	}
}

@media (max-width: 766px) {
	.house-container {
		margin-top: -160px !important;
	}
}



/* ========================================
   Progetti che si sovrappongon in homepage
   ======================================== */
/* ===== TRANSITION ===== */
.elementor-element-8c5fbcb .e-con-inner,
.elementor-element-8c5fbcb .elementor-item,
.elementor-element-8c5fbcb .elementor-widget-theme-site-logo img,
.elementor-element-8c5fbcb .elementor-icon svg,
.elementor-element-8c5fbcb .elementor-icon svg path {
	transition: all 0.3s ease;
}

/* ===== STATO STICKY ===== */
.elementor-sticky--effects.elementor-element-8c5fbcb .e-con-inner {
    background-color: #ffffff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    padding: 14px 24px !important;
}

/* Padding ridotto della pillola su mobile */
@media (max-width: 766px){
    .elementor-sticky--effects.elementor-element-8c5fbcb .e-con-inner {
        padding: 10px 16px !important;
    }
}

/* ===== MENU BLU ===== */
.elementor-sticky--effects.elementor-element-8c5fbcb .elementor-nav-menu--main .elementor-item {
    color: #0B1A36 !important;
}

.elementor-sticky--effects.elementor-element-8c5fbcb .current-menu-item > a,
.elementor-sticky--effects.elementor-element-8c5fbcb .elementor-item.elementor-item-active {
    color: #0B1A36 !important;
}

/* ===== LOGO BLU ===== */
.elementor-sticky--effects.elementor-element-8c5fbcb .elementor-widget-theme-site-logo img {
    filter: brightness(0) saturate(100%) invert(8%) sepia(27%) saturate(1893%) hue-rotate(200deg) brightness(90%) contrast(95%) !important;
}

/* ===== HAMBURGER BLU ===== */
.elementor-sticky--effects.elementor-element-8c5fbcb .elementor-icon svg,
.elementor-sticky--effects.elementor-element-8c5fbcb .elementor-icon svg path {
    fill: #0B1A36 !important;
}

.numero {
  display: flex;
  align-items: center;
  gap: 20px; /* spazio tra numero e linea */
}

.numero::after {
  content: "";
  width: 100px; /* lunghezza fissa */
  height: 1px;
  background-color: rgba(11, 26, 54, 0.3);
}






/* =========================================
   FORM CONTATTI - BASE
========================================= */

.form-contatti .elementor-field-group {
	margin-bottom: 16px !important;
}

.form-contatti .elementor-field-label {
	margin-bottom: 8px !important;
	color: #0B1A36 !important;
	font-weight: 600 !important;
	font-size: 16px !important;
}


/* =========================================
   INPUT + SELECT (STESSO STILE)
========================================= */

.form-contatti .elementor-field-textual,
.form-contatti select.elementor-field-textual {

	width: 100% !important;
	height: 44px !important;
	min-height: 44px !important;

	padding: 0 16px !important;
	margin: 0 !important;

	border: 1px solid #0B1A36 !important;
	border-radius: 2 !important;
	background: #FFFFFF !important;

	color: #0B1A36 !important;
	font-size: 16px !important;
	font-weight: 400 !important;

	box-shadow: none !important;
	outline: none !important;
}


/* =========================================
   SELECT SPECIFICO
========================================= */

.form-contatti .elementor-field-type-select .elementor-select-wrapper {
	position: relative !important;
}

.form-contatti .elementor-field-type-select select {
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;

	padding: 0 40px 0 16px !important; /* spazio per freccia */
	cursor: pointer !important;
}

/* caret (freccia) */
.form-contatti .elementor-field-type-select .select-caret-down-wrapper {
	position: absolute !important;
	top: 50% !important;
	right: 16px !important;
	transform: translateY(-50%) !important;
	pointer-events: none !important;
	z-index: 2 !important;
}

.form-contatti .elementor-field-type-select .select-caret-down-wrapper svg {
	width: 12px !important;
	height: 12px !important;
	fill: #0B1A36 !important;
}


/* =========================================
   TEXTAREA
========================================= */

.form-contatti textarea.elementor-field {
	min-height: 120px !important;
	padding: 12px 16px !important;
	resize: vertical !important;
}


/* =========================================
   PLACEHOLDER
========================================= */

.form-contatti input::placeholder,
.form-contatti textarea::placeholder {
	color: #6B778C !important;
	opacity: 1 !important;
}


/* =========================================
   FOCUS
========================================= */

.form-contatti input:focus,
.form-contatti select:focus,
.form-contatti textarea:focus {
	border-color: #0B1A36 !important;
	box-shadow: none !important;
	outline: none !important;
}


/* =========================================
   HOVER (leggero)
========================================= */

.form-contatti input:hover,
.form-contatti select:hover,
.form-contatti textarea:hover {
	border-color: #0B1A36 !important;
}



/*
/* altezza header — fallback; sovrascritto dinamicamente da syncro.js */



/* ITEM */
.faqs-loman .e-n-accordion-item {
    border: 1px solid #0B1A36 !important;
    margin-bottom: 16px;
    overflow: hidden;
}

/* TITOLO */
.faqs-loman .e-n-accordion-item-title {
    padding: 18px 18px 18px 24px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    list-style: none;
    border: none !important;
}

/* Rimuove marker nativo */
.faqs-loman .e-n-accordion-item-title::-webkit-details-marker {
    display: none;
}
.faqs-loman .e-n-accordion-item-title::marker {
    display: none;
}

/* Quando aperto NON voglio linea */
.faqs-loman .e-n-accordion-item[open] .e-n-accordion-item-title {
    border-bottom: none !important;
}

/* CONTENUTO */
.faqs-loman .e-n-accordion-item > [role="region"] {
    padding: 20px 24px 24px 24px !important;
}

/* Reset container Elementor interno */
.faqs-loman .e-n-accordion-item > [role="region"] > .e-con {
    padding: 0 !important;
    border: none !important;
    min-height: auto !important;
}

/* TESTO */
.faqs-loman .e-n-accordion-item-title-text {
    font-weight: 700;
    color: #0B1A36;
}

/* ICONA WRAPPER */
.faqs-loman .e-n-accordion-item-title-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: 10px;
}

/* SVG NORMALIZZATI */
.faqs-loman .e-n-accordion-item-title-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block;
}

/* CENTRATURA */
.faqs-loman .e-opened,
.faqs-loman .e-closed {
    display: flex;
    align-items: center;
    justify-content: center;
}

.elementor-element-df0d8a9 .elementor-field-subgroup a {
    color: #EA4E24 !important;
    text-decoration: underline !important;
}

.form-contatti .elementor-field-subgroup a {
    color: #EA4E24 !important;
    text-decoration: underline !important;
}


@media (max-width: 880px) {
    .form-loman {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
    }
}


.crediti-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;

    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 30px !important;

    padding: 0 100px !important;
    box-sizing: border-box !important;
}

/* Fix Elementor wrapper */
.crediti-footer .e-con-inner,
.crediti-footer .elementor-widget-wrap {
    display: flex !important;
    width: 100% !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* Mobile */
@media (max-width: 766px) {
    .crediti-footer {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .crediti-footer .e-con-inner,
    .crediti-footer .elementor-widget-wrap {
        flex-direction: column !important;
        gap: 10px !important;
    }
}


/* Sotto 880px */
@media (max-width: 880px) {
    .crediti-footer {
        padding: 0 20px !important;
    }
}

/* Mobile stretto */
@media (max-width: 766px) {
    .crediti-footer {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .crediti-footer .e-con-inner,
    .crediti-footer .elementor-widget-wrap {
        flex-direction: column !important;
        gap: 10px !important;
    }
}


/* ========================================
   Hero Text Reveal
   ======================================== */

.hero-text-reveal {
	position: relative;
	z-index: 3;
}

.hero-text-reveal .word {
	display: inline-block;
	white-space: pre;
	color: rgba(255, 255, 255, 0.22);
	transition: color 0.18s linear;
	will-change: color;
}

/* Prima parola già bianca all'inizio */
.hero-text-reveal .word:first-child {
	color: rgba(255, 255, 255, 1);
}


/* ========================================
   Immagini Valori — Slide In on Scroll
   ======================================== */

.immagini-valori,
.immagini-valori > .e-con-inner {
	overflow: hidden;
}

.immagini-valori .valori-animation {
	opacity: 0;
	transform: translateX(120px);
	transition: opacity 0.9s ease-out, transform 0.9s ease-out;
	will-change: opacity, transform;
}

.immagini-valori .valori-animation[data-direction="left"] {
	transform: translateX(-120px);
}

.immagini-valori .valori-animation.is-visible {
	opacity: 1;
	transform: translateX(0);
}

@media (max-width: 880px) {
	.immagini-valori,
	.immagini-valori > .e-con-inner {
		overflow: visible;
	}

	.immagini-valori .valori-animation,
	.immagini-valori .valori-animation[data-direction="left"] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.immagini-valori .valori-animation {
		opacity: 1;
		transform: none;
		transition: none;
	}
}