/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/
Description: Child theme for Hello Elementor
Author: Custom
Template: hello-elementor
Version: 1.0.0
*/
header ul li a.elementor-item-active { font-weight: 700 !important; }
header ul li a:hover { text-decoration: underline; }
header .search-submit { display: none; }
header input[type=search].search-field { border: 0; border-radius: 20px; }
.elementor-location-header.header-fisso {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Spazio riservato all'header */
.header-spacer {
    display: block;
    width: 100%;
    pointer-events: none;
}
main { min-height: 70vh; }
.elementor-widget-image a img[src$=".svg"] { width: auto !important; }
.contact_name {
	font-family: "n27", Sans-serif;
    font-size: 20px;
    font-weight: 700;
}
.home_anniversary {
	font-family: "n27", Sans-serif;
    font-size: 30px;
    font-weight: 700;
}
.menu_home .elementor-widget-image a {
    position: relative;
    display: inline-block;
}
.menu_home .elementor-widget-image a::before,
.menu_home .elementor-widget-image a::after {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: "N27", sans-serif;
    font-size: 46px;
    font-weight: 200;
    line-height: 1;
	color: #1d1d1d;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

/* Parentesi sinistra */
.menu_home .elementor-widget-image a::before {
    content: "[";
    right: 100%;
    margin-right: 50px;
}
/* Parentesi destra */
.menu_home .elementor-widget-image a::after {
    content: "]";
    left: 100%;
    margin-left: 50px;
}
/* Hover */
.menu_home .elementor-widget-image a:hover::before,
.menu_home .elementor-widget-image a:hover::after {
    opacity: 1;
}
.project_year span {
    font-weight: 200 !important;
}
.project_data span {
    font-weight: 700 !important;
}
.project_data_label p {
    margin: 0px !important;
}
.project-taxonomy-link {
	font-family: "n27", Sans-serif;
    font-size: 20px;
    font-weight: 700;
	color: #1d1d1d;
}
.project-taxonomy-link:focus,
.project-taxonomy-link:active,
.project-taxonomy-link:hover {
	text-decoration: underline;
	color: #1d1d1d;
}
/* Gallery progetto */
.progetto-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.progetto-gallery-item {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}
.progetto-gallery-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.elenco-clienti-progetti {
	font-family: "n27", Sans-serif;
    font-size: 20px;
    font-weight: 200;
	color: #1d1d1d;
}
.elenco-clienti-progetti a {
	font-family: "n27", Sans-serif;
    font-size: 20px;
    font-weight: 700;
	color: #1d1d1d;
}
.elenco-clienti-progetti a:hover,
.elenco-clienti-progetti a:active,
.elenco-clienti-progetti a:focus {
	text-decoration: underline;
	color: #1d1d1d;
}
.filtri-lavoro-progetti {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
    margin-bottom: 40px;
}
.filtri-lavoro-colonna {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filtri-lavoro-progetti a {
    font-family: "n27", Sans-serif;
    font-size: 20px;
    font-weight: 200;
	color: #1d1d1d;
}
.filtri-lavoro-progetti a:hover,
.filtri-lavoro-progetti a.attivo {
    font-weight: 700;
	color: #1d1d1d;
}
.filtri-lavoro-progetti {
    position: relative;
}
.azzera-filtri-progetti {
    position: absolute;
    top: -35px;
    right: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 200;
    color: #666;
    text-decoration: none;
}
.azzera-filtri-progetti span {
    font-size: 22px;
    line-height: 1;
}
.azzera-filtri-progetti:hover {
    color: #1d1d1d;
	font-weight: 700;
}
.contact a:hover,
footer a:hover,
.member a:hover { font-weight: 300; }
.titolo-lavori-cliente-wrapper .azzera-filtro-mobile { display: none; }
/* Gallery orizzontale smartphone */
.progetto-gallery-mobile {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.progetto-gallery-mobile::-webkit-scrollbar {
    display: none;
}

/* Ogni immagine occupa tutta la larghezza */
.progetto-gallery-mobile-image {
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    scroll-snap-align: start;
    margin: 0;
}
/* GALLERY */
.progetto-gallery-item {
	position: relative;
	overflow: hidden;
}

.progetto-gallery-image {
	transition: transform 0.4s ease;
}

.progetto-gallery-item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.10);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.progetto-gallery-item:hover .progetto-gallery-image {
	transform: scale(1.04);
}

.progetto-gallery-item:hover::after {
	opacity: 1;
}


/* COPERTINA */
.progetto-copertina-lightbox {
	display: block;
	position: relative;
	overflow: hidden;
	width: fit-content;
    max-width: 100%;
	line-height: 0;
}

.progetto-copertina-image {
	display: block;
	width: 100%;
    height: auto;
    max-width: 100%;
	transition: transform 0.4s ease;
}

.progetto-copertina-lightbox::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.10);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.progetto-copertina-lightbox:hover .progetto-copertina-image {
	transform: scale(1.04);
}

.progetto-copertina-lightbox:hover::after {
	opacity: 1;
}

.progetto-item .elementor-widget-theme-post-featured-image a {
	display: block;
	position: relative;
	overflow: hidden;
}

.progetto-item .elementor-widget-theme-post-featured-image img {
	display: block;
	transition: transform 0.4s ease;
}

/* Overlay tenue */
.progetto-item .elementor-widget-theme-post-featured-image a::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.10);
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

/* Zoom */
.progetto-item .elementor-widget-theme-post-featured-image a:hover img {
	transform: scale(1.04);
}

/* Comparsa overlay */
.progetto-item .elementor-widget-theme-post-featured-image a:hover::after {
	opacity: 1;
}
select.select-lavoro-progetti option,
.select-lavoro-progetti {
	padding: 8px 10px;
	border: 1px solid #1d1d1d;
	border-radius: 0;
	background-color: transparent;
	font-family: "N27", sans-serif !important;
	font-weight: 200  !important;
	font-size: 16px !important;
	margin: 0 0px 20px 0px;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	/* Freccia personalizzata */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 16px;
	
}
select.select-lavoro-progetti:active,
select.select-lavoro-progetti:focus-visible {
	box-shadow: 0 0 0 0px #fff;
    outline: 0px solid #000;
    outline-offset: 0px;
}
.progetto-video iframe { height: 500px; }
.titolo-lavori-cliente {
	font-family: "N27", sans-serif !important;
	font-weight: 700  !important;
	font-size: 22px !important;
	color: #1d1d1d;
	padding: 0 10px;
}



/* Responsive */
@media (max-width: 1366px) and (min-width: 1025px) {
	header .elementor-nav-menu .menu-item a.elementor-item { font-size: 17px !important; padding: 0 7px !important; }
	.home_anniversary {
		font-size: 26px;
	}
	.progetto-video iframe { height: 420px; }
	.menu_home .elementor-widget-image a::before,
	.menu_home .elementor-widget-image a::after {
		font-size: 40px;
	}
}
@media (max-width: 1150px) and (min-width: 1025px) {
	header .elementor-nav-menu .menu-item a.elementor-item { font-size: 16px !important; padding: 0 5px !important; }
}
@media (max-width: 1700px) and (min-width: 1301px) {
	header .elementor-nav-menu .menu-item a.elementor-item { font-size: 17px !important; padding: 0 10px !important; }
	.progetto-video iframe { height: 450px; }
}
@media (max-width: 1024px) {
    .home-page footer .social_icon,
	.contatti-page footer .social_icon { /* contact */
		display:  none; 
	}
	.filtri-lavoro-progetti .azzera-filtri-progetti {
        /*
		position: static;
        justify-content: flex-end;
        margin-bottom: 12px;
		*/
    }
    .azzera-filtri-progetti {
		font-size: 16px;
		
	}
    .progetto-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
    }
	.elenco-clienti-progetti a:hover,
	.elenco-clienti-progetti a:active,
	.elenco-clienti-progetti a:focus,
	.elenco-clienti-progetti a,
	.elenco-clienti-progetti {
		font-size: 16px;
	}
	.contact_name {
		font-size: 16px;
	}
	.home_anniversary {
		font-size: 24px;
	}
	.menu_home .elementor-widget-image a::before,
	.menu_home .elementor-widget-image a::after {
		font-size: 30px;
	}
	.filtri-lavoro-progetti {
        gap: 10px;
		margin-bottom: 20px;
    }
    .filtri-lavoro-progetti a {
        font-size: 16px;
    }
	.elementor-nav-menu--dropdown .elementor-nav-menu > li > a {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0 !important;
		line-height: 1;
		min-height: 55px;
		padding: 12px 30px;
		background-repeat: no-repeat;
		background-position: center;
		background-size: auto 35px;
	}

	/* Nasconde il testo originale mantenendo il link accessibile */
	.elementor-nav-menu--dropdown .elementor-nav-menu > li > a {
		color: transparent !important;
	}

	/* ABOUT */
	.elementor-nav-menu--dropdown li.menu-item-157 > a {
		background-image: url("/wp-content/uploads/2026/10/about.svg");
	}

	/* PROGETTI */
	.elementor-nav-menu--dropdown li.menu-item-190 > a {
		background-image: url("/wp-content/uploads/2026/10/progetti.svg");
	}

	/* SERVIZI */
	.elementor-nav-menu--dropdown li.menu-item-193 > a {
		background-image: url("/wp-content/uploads/2026/10/servizi.svg");
	}

	/* REFERENZE */
	.elementor-nav-menu--dropdown li.menu-item-191 > a {
		background-image: url("/wp-content/uploads/2026/10/referenze.svg");
	}

	/* NEWS */
	.elementor-nav-menu--dropdown li.menu-item-571 > a {
		background-image: url("/wp-content/uploads/2026/10/news-1.svg");
	}

	/* CONTATTI */
	.elementor-nav-menu--dropdown li.menu-item-192 > a {
		background-image: url("/wp-content/uploads/2026/10/contatti.svg");
	}

	/* Parentesi della voce attiva */
	.elementor-nav-menu--dropdown .elementor-nav-menu > li > a.elementor-item-active::before,
	.elementor-nav-menu--dropdown .elementor-nav-menu > li.current-menu-item > a::before {
		content: "[";
		position: absolute;
		right: calc(50% + 100px);
		font-family: "N27", sans-serif;
		font-size: 30px;
		font-weight: 200;
		line-height: 1;
		color: #1d1d1d;
	}

	/* Parentesi destra */
	.elementor-nav-menu--dropdown .elementor-nav-menu > li > a.elementor-item-active::after,
	.elementor-nav-menu--dropdown .elementor-nav-menu > li.current-menu-item > a::after {
		content: "]";
		position: absolute;
		left: calc(50% + 100px);
		font-size: 30px;
		font-weight: 200;
		line-height: 1;
		color: #1d1d1d;
	}
	
	.elementor-location-header .search-mobile {
		display: none;
		opacity: 0;
		visibility: hidden;
	}

	.elementor-location-header .search-mobile.search-mobile-aperta {
		display: flex;
		opacity: 1;
		visibility: visible;
	}
	.contact_icon { max-width: 500px !important; margin-left: auto!important; margin-right: auto!important; }
	.progetto-video iframe { height: 340px; }
	.titolo-lavori-cliente {
		font-family: "N27", sans-serif !important;
		font-weight: 700  !important;
		font-size: 18px !important;
		color: #1d1d1d;
	}
	.titolo-lavori-cliente-wrapper .azzera-filtro-mobile { display: none; }
	.menu_home .elementor-widget-image a::before,
	.menu_home .elementor-widget-image a::after {
		font-size: 50px;
	}
}

@media (max-width: 1024px) and (min-width: 768px) {
	.elenco-clienti-progetti a:hover, .elenco-clienti-progetti a:active, .elenco-clienti-progetti a:focus, .elenco-clienti-progetti a, .elenco-clienti-progetti {
        font-size: 18px;
    }
	.progetto-gallery {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 12px;
	}
	.filtri-lavoro-progetti a {
        font-size: 18px;
    }
	.titolo-lavori-cliente {
		font-family: "N27", sans-serif !important;
		font-weight: 700  !important;
		font-size: 16px !important;
		color: #1d1d1d;
	}
}


@media (max-width: 767px) {
	.menu_home .elementor-widget-image a::before,
	.menu_home .elementor-widget-image a::after {
		font-size: 40px;
	}
}
