/*!
Theme Name: Ohio-Child
Theme URI: http://ohio.colabr.io/
Author: Colabrio
Author URI: http://colabr.io/
Description: Ohio is a WordPress theme bundled with premium plugins to build a modern and functional website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: ohio
Text Domain: ohio-child
Tags: ajax, customizer, ecommerce, portfolio, minimal, page builder, responsive, multipurpose, shop, store, woocommerce, wpml

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normalize.css/
*/

.ehf-footer .elementor.elementor-edit-mode,
.footer-width-fixer .elementor{
	margin-left: 0;
    margin-right: 0;
}
.z-1{
	z-index: 1;
}

.p-relative{
	position: relative;
}

.p-absolute{
	position: absolute;
}

.bot-0{
	bottom: 0;
}

.w-100{
	width: 100%;
}

.subheader ul a{
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
}

.header .menu li span{
	line-height: inherit;
}

.header:not(.-mobile) .menu li > ul > li{
	font-weight: inherit;
	line-height: inherit;
}

.header:not(.-mobile) .menu li .sub-menu,
.header:not(.-mobile) .menu li .sub-menu .sub-sub-menu{
	background-color: #2b5fa6;
    border-color: #ebba51;
    padding: 0;
    border-style: solid;
    border-width: 2px;
	box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.15);
}

.header:not(.-mobile) .menu li .sub-menu > li:not(:first-child)::before,
.header:not(.-mobile) .menu li .sub-menu .sub-sub-menu > li:not(:first-child)::before{
	content: "";
    display: block;
	position: absolute;
    width: calc(100% - 24px);
    height: 1px;
    background-color: rgba(255, 255, 255, 0.25);
    left: 12px;
    top: 0;
}

.has-submenu-icon{
	opacity: 1;
}

.header:not(.-mobile).-with-contained-menu.header-1 .menu, 
.header:not(.-mobile).-with-contained-menu.header-2 .menu, 
.header:not(.-mobile).-with-contained-menu.header-3 .menu, 
.header:not(.-mobile).-with-contained-menu.header-4 .menu{
	background-color: transparent;
}

.elementor-widget-slider_revolution sr7-arrow{
	transition: all .3s;
}

.elementor-widget-slider_revolution sr7-arrow:hover{
	opacity: 0.75 !important;
}

.ohio-widget.button{
	display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    align-content: center;
}

.-left .ohio-widget.button{
	justify-content: flex-start;
}

.-center .ohio-widget.button{
	justify-content: center;
}

.-right .ohio-widget.button{
	justify-content: right;
}

.ohio-widget.button svg.icon{
	min-width: auto;
    width: calc(1rem - 6px);
}

.ohio-widget.button.-text{
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: all .3s;
}

.ohio-widget.button.-text:hover{
	background-color: transparent;
	box-shadow: none;
	transform: scale(1.1);
}

footer .elementor-widget-icon-list ul li a{
	width: fit-content !important;
}

footer .elementor-widget-icon-list ul:not(.elementor-inline-items) li:first-child a span{
	color: #FFF;
	font-size: 20px;
	font-weight: 700;
	line-height: 120%;
}

footer .elementor-widget-icon-list ul:not(.elementor-inline-items) li:first-child + li {
	margin-top: 8px !important;
}

.elementor-widget-text-editor a{
	display: inline-flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    align-content: center;
}

.comments-container,
.project-content{
	display: none;
	opacity: 0;
}

.project-gallery{
	display: flex!important;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px!important;
	align-items: flex-start;
}

.project-gallery img {
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-gallery .first-image{
	width: calc(((100% - (30px* 1)) / 3)* 2);
	border: 1px solid #2b5fa6;
	/*flex-grow: 1;*/
}

.project-gallery .other-images{
	width: calc(((100% - (30px* 1)) / 3)* 1);
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-start;
	gap: 20px;
	background-color: #6b90c2;
	padding: 10px;
	overflow-y: scroll;
    max-height: 300px;
}

.project-gallery .other-images img:hover {
  filter: sepia(1) saturate(3) hue-rotate(340deg) brightness(0.9);
}

.project-gallery .other-images::-webkit-scrollbar-track {
    background: #ebba51;
}

.project-gallery .other-images img{
	width: calc(((100% - (20px* 3)) / 4)* 1);
    min-width: 0;
	border: 1px solid #fff;
}

body.single-ohio_portfolio{
	--clb-text-color: #212121;
}

.custom-form-row-50 p,
.custom-form-row-100 p{
	display: flex;
    gap: 40px;
    flex-direction: row;
    flex-wrap: wrap;
}

.custom-form-row-50 p br,
.custom-form-row-100 p br{
	display: none;
}

.custom-form-row-50 p label{
	width: calc(((100% - (40px * 1))/2)*1);
	color: #FFF;
	font-family: Barlow;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 200%;
	letter-spacing: -0.14px;
}

.custom-form-row-100 p label{
	width: 100%;
	color: #FFF;
	font-family: Barlow;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 200%;
	letter-spacing: -0.14px;
}

.custom-form-row-50 p label input[type="checkbox"],
.custom-form-row-100 p label input[type="checkbox"]{
	border-color: #fff;
}

.custom-form-row-50 p label input[type="checkbox"] + span a,
.custom-form-row-100 p label input[type="checkbox"] + span a{
	color: #FFF;
	font-family: Barlow;
	font-size: 14px;
	font-style: normal;
	font-weight: 700;
	line-height: 200%;
	letter-spacing: -0.14px;
}

.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter{
	padding: 0;
}

.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter > *{
	width: fit-content;
}

.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter .tag{
	border-radius: 100px;
	background-color: rgba(144, 145, 156, 0.15);
}

.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter .tag.active{
	background-color: #2B5FA6;
}

.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter + .portfolio-grid{
	margin-top: 40px;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid{
	display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 40px;
	height: fit-content !important;
	overflow: hidden;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid::after{
	display: none;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item{
	border: 1px solid #2B5FA6;
	position: relative !important;
    top: auto !important;
    left: auto !important;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 37.37%, rgba(0, 0, 0, 0.70) 87.47%), url(<path-to-image>) lightgray 50% / cover no-repeat;
	width: calc(((100% - (40px * 2))/3)*1);
	transition-duration: 0s !important;
    transform: none !important;
	flex-grow: 1;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item[style*="opacity: 0"]{
	display: none;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item.first-two-visible{
	width: calc(((100% - (40px * 1))/2)*1);
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item .portfolio-item > a{
	display: block;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item .card-details{
	padding: 40px;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item .card-details .project-details p{
	display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item .image-holder::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.75) 0%,
		rgba(0, 0, 0, 0.65) 20%,
		rgba(0, 0, 0, 0.45) 35%,
		rgba(0, 0, 0, 0.2) 50%,
		rgba(255, 255, 255, 0.08) 70%,
		rgba(255, 255, 255, 0) 100%
	);
}

.nav.with-mobile-menu .lang-dropdown{
	background-color: #ebba51;
    border: 2px solid transparent;
    font-weight: 700;
    line-height: 175%;
    letter-spacing: -0.16px;
    padding: 0 2rem 0 0.5rem !important;
}

@media only screen and (max-width: 1024px) {
	
	.project-gallery .first-image{
		width: 100%;
	}
	
	.project-gallery .other-images{
		width: 100%;
		max-height: 325px;
	}
	
	.page-headline .title{
		text-align: center;
	}
	
	.elementor-widget-ohio_recent_projects .-with-sorting .portfolio-filter{
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
	}
	
	.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item{
		width: calc(((100% - (40px * 1))/2)*1);
	}
	
	.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item .card-details{
		padding: 30px;
	}
	
}

@media only screen and (min-width: 769px) {
	
	.mega-menu-item.btn{
		background-color: #ebba51;
		border: 2px solid transparent;
		color: #fff;
		font-family: 'DM Sans', sans-serif;
		font-size: 0.95em;
		font-weight: 600;
		min-height: 2.75rem;
	}
	
	.mega-menu-item.btn:hover{
		background-color: #171b37;
	}
	
	.mega-menu-item.btn .menu-link{
		color: inherit !important;
		font-family: inherit !important;
		font-size: inherit !important;
		padding: 0 1.25rem !important;
	}
	
}

@media only screen and (max-width: 777px) {
	.elementor-widget-slider_revolution sr7-arrow{
		position: absolute;
		top: 50% !important;
		transform: translateY(-50%) !important;
	}	
	
	.elementor-widget-slider_revolution sr7-arrow.sr7-leftarrow{
		left: 0px !important;
	}
	
	.elementor-widget-slider_revolution sr7-arrow.sr7-rightarrow{
		right: 0px !important;
		left: unset !important;
	}
}

@media only screen and (max-width: 767px) {
	.ohio-widget.button{
		justify-content: center;
	}
	
	.custom-form-row-50 p, 
	.custom-form-row-100 p{
		gap: 20px;
	}
	
	.custom-form-row-50 p label,
	.custom-form-row-100 p label{
		width: 100%;
	}
	
	.single:not(.with-spacer) .-layout7:not(.blog-item){
		padding-top: 30px!important
	}
	
	.elementor-widget-ohio_recent_projects .grid_1 .portfolio-grid .grid-item{
		width: 100%!important;
	}
}

@media only screen and (max-width: 479px) {
	.elementor-widget-slider_revolution sr7-arrow{
		width: fit-content !important;
		height: fit-content !important;
	}
	
	.elementor-widget-slider_revolution sr7-arrow:before{
		width: 50px !important;
		height: 50px !important;
		line-height: 50px !important;
		font-size: 18px !important;
	}
}



body.lightbox-open {
    overflow: hidden;
}

/* LIGHTBOX BASE */
.custom-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    overflow: hidden;
}

.custom-lightbox.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* IMAGE */
.custom-lightbox img {
    max-width: 90%;
    max-height: 90%;
    transition: transform 0.3s ease;
}

.custom-lightbox:hover img {
    transform: scale(1.02);
}

/* VIEWPORT + SLIDER */
.lightbox-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-slider {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease;
}

.lightbox-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* BOTTONE CHIUSURA */
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 1;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-close::before,
.lightbox-close::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background: #fff;
}

.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

/* FRECCE NAVIGAZIONE */
.lightbox-arrow {
    display: none; /* 🔥 nasconde le frecce di default */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    z-index: 1;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.lightbox-arrow.prev { left: 20px; }
.lightbox-arrow.next { right: 20px; }

.lightbox-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.lightbox-arrow.prev::before { transform: rotate(-135deg); }
.lightbox-arrow.next::before { transform: rotate(45deg); }


.first-image {
    position: relative;
    display: inline-block; /* mantiene dimensioni dell'immagine */
}

.first-image:before {
    content: "";
    position: absolute;
    inset: 0; /* shortcut per top:0; left:0; width:100%; height:100% */
    background-color: rgba(43, 94, 166, 0.25);
    opacity: 0; /* start trasparente */
    transition: opacity 0.3s ease; /* animazione liscia */
    pointer-events: none; /* non interferisce con click sul bottone */
}

.first-image:hover:before {
    opacity: 1; /* overlay visibile */
}

.first-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* bottone overlay, nascosto di default */
.first-image-hover-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 2;
}

/* mostra il bottone al passaggio del mouse */
.first-image:hover .first-image-hover-btn {
    opacity: 1;
    pointer-events: auto;
}

/* opzionale: effetto hover sul bottone */
.first-image-hover-btn:hover {
    background: rgba(0,0,0,0.7);
}