/*
 Theme Name: Hello Elementor Child
 Description: Tema child per Hello Elementor.
 Author: Enrico Napolitano
 Author URI: https://www.enriconapolitano.com/
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-elementor-child
*/

/* custom property */
:root {
  --green: #93b6bc;
}
/**/

/* home page coming soon */
footer {
	display: none;
}

form.wpcf7-form.init {
    display: flex;
    justify-content: center;
    gap: 5px;
}

body {
  background: 
    radial-gradient(circle at 25% 35%, #92B6BB 0%, transparent 80%),
    radial-gradient(circle at 75% 45%, #46555D 0%, transparent 85%),
    radial-gradient(circle at 60% 85%, #92B6BB 0%, transparent 90%),
    radial-gradient(circle at 90% 10%, #F4E3BD 0%, transparent 30%) !important;

  background-color: rgba(255, 255, 255, 0.6) !important;
  background-blend-mode: overlay !important;
  background-attachment: fixed !important;
  background-size: cover !important;
	
  overflow-x: hidden!important;
}

[type=button], [type=submit], button {
    background-color: #ED6A41!important;
/* transparent!important; */
    color: #fff!important;
}

[type=button]:focus, [type=button]:hover, [type=submit]:focus, [type=submit]:hover, button:focus, button:hover {
    background-color: #DBA519!important;
}

 input[type="email"]:focus-visible{
    border: 1px solid #DBA519!important;
}

input[type="email"]:focus {
  outline: none;
	/*
  border-color: #yourColor;
  border-width: 2px;
	*/
}

input.wpcf7-form-control.wpcf7-email.wpcf7-text.wpcf7-validates-as-email.wpcf7-not-valid {
    color: #7A7A7A!important;
}

input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=url], select, textarea {
    color: #7A7A7A!important;
}

.glass {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 90px rgba(0, 0, 0, 0.1);
}

.elementor-element.elementor-element-43a5836.e-con-full.glass.e-flex.e-con.e-child {
    width: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-top: 50px;
}

input.wpcf7-form-control.wpcf7-email.wpcf7-text.wpcf7-validates-as-email {
    background-color: transparent!important;
}




.loading-dots {
  font-size: 1.2rem;
  font-weight: 500;
  color: #46555D;
  display: inline-block;
}

.loading-dots .dot {
    font-size: 2.5em !important;
    opacity: 0.2;
    animation: blink 1.4s infinite;
    line-height: 0;
}

.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}

.loading-dots .dot:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; }
  40% { opacity: 1; }
}

@media screen and (max-width: 767px) {
.elementor-2 .elementor-element.elementor-element-43a5836 {
    --content-width: 90%;
    --padding-top: 0px;
    --padding-bottom: 0px;
    --padding-left: 0px;
    --padding-right: 0px;
    padding: 0;
    padding-top: 40px;
    margin-top: -50px;
}
}

#cta p, #coming h2 {
	transition: 0.8s ease!important;
}

#cta:hover p, #coming:hover h2 {
	color: #ED6A41!important;
	transform: translateY(-8px)!important;
}
/**/

/* HEADER */
/* .burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}
.bar {
    width: 40px;
    height: 3px;
    background-color: var(--green);
    border-radius: 50px;
} */

.menu-aperto {
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.menu-aperto.active {
  transform: translate(0)!important;
}
.menu-aperto a:hover {
	letter-spacing: 10px;
}

.menu-aperto li {
	list-style: none;
	font-size: 32px;
	margin-bottom: -30px;
}

@media screen and (max-width: 767px) {
	.menu-aperto.active {
    justify-content: start;
    padding-top: 25vh;
    }
	
	.menu-aperto a, .menu-aperto .services {
		font-size: 30px;
	}
	
	.submenu-cs a {
		display: block;
		font-size: 20px!important;
		line-height: 30px!important;
		letter-spacing: 3px!important
	}
	
	.menu-aperto li {
	margin-bottom: 25px;
   }
	
	.elementor-2258 .elementor-element.elementor-element-91b5d78 {
    line-height: 1.2em!important;
   }
	
	.menu-services {
    height: 66px;
   }
	
	.menu-services:hover {
    height: 300px;
   }
	
	ul.submenu-cs {
    margin: 0!important;
    padding: 0;
    padding-top: 22px;
    }
}


.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  width: 48px;
  height: 40px;
  position: relative;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
  /* transition: transform 0.4s cubic-bezier(.68,-0.55,.27,1.55); */
  transition:  scale 0.3s ease;
}

.burger:hover {
  scale: 0.8;
  transition: 0.3s ease;
}

.bar {
  width: 40px;
  height: 3px;
  background-color: var(--green);
  border-radius: 50px;
  transition:
    transform 0.4s cubic-bezier(.68,-0.55,.27,1.55),
    opacity 0.3s ease,
    width 0.4s ease;
  transform-origin: center;
  position: relative;
}

@media screen and (max-width: 767px) {
	.bar {
		width: 25px;
		height: 2px;
	}
}

span.services:hover {
letter-spacing: 10px;
color: #6FA6AF;
}

span.services {
    display: inline-block;
    transition: 0.3s ease;
}

.menu-services:hover ul.submenu-cs {
	pointer-events: auto;
	opacity: 1;
	height: 320px;
}

ul.submenu-cs {
	pointer-events: none;
	opacity: 0;
    height: 0px;
	transition: 0.5s ease;
}

/* Micro shine opzionale */
.bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.burger:hover .bar::after {
  opacity: 0.7;
}

/* Stato attivo */
.burger.is-open {
  transform: rotate(90deg); /* twist generale */
}

/* Top bar → ruota in diagonale */
.burger.is-open .bar:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  background-color: var(--green)!important;
}

/* Middle bar → si “scioglie” */
.burger.is-open .bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

/* Bottom bar → ruota in diagonale opposta */
.burger.is-open .bar:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  background-color: var(--green)!important;
}


/*HEADER*/
.header-cs {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: 0.8s ease;
  background-color: rgba(255,255,255,0); /* base: trasparente */
}

.header-cs.active {
  background-color: rgba(255,255,255,0.6);   /* un po’ di latte */
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%); /* Safari */
}

.burger .bar {
	background-color: var(--green); /* colore quando c'è la banda bianca */
	transition: background-color 0.2s ease;
}

.burger .bar.is-white {
	background-color: #fff; /* colore quando NON c'è la banda bianca */
}

.bar.work {
	background-color: var(--green)!important;
}
/**/


/*HOMEPAGE TEST*/
.best-works .e-con-inner {
	transition: 0.4s ease;
	cursor: pointer;
}
.best-works .e-con-inner:hover {
    gap: 30px;
}
.card-img {
  transition: transform 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  overflow: hidden;
}

.top-left-img {
  border-radius: 30px 0 0 0;
}

.top-right-img {
  border-radius: 0 30px 0 0;
}

.bottom-left-img {
  border-radius: 0 0 0 30px;
}

.bottom-right-img {
  border-radius: 0 0 30px 0;
}

.card-img:hover {
  transform: rotateY(-8deg);
}

.box-img.pre-anim {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--stagger, 0ms);
}

.box-img.in-view {
  opacity: 1;
  transform: translateY(0);
}
.overlay-card {
	opacity: 0;
	transition: opacity 0.4s ease;
}
.overlay-card:hover {
	transition: opacity 0.4s ease;
	opacity: 1;
}

/*--interno--*/
/*effetto h2.testo-principale*/
/* ---- Rivelazione morbida del blocco ---- */
.h2-testo-principale {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease!important;
}
.h2-testo-principale.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Span: highlight soft con #93b6bc ---- */
.h2-testo-principale span {
  display: inline-block;                 /* per avere background “a pill” */
  transition:  color .35s ease, filter .35s ease, transform .35s ease;
  transform: translateY(2px);
  filter: blur(.3px);
}
.h2-testo-principale span.active {
  color: #93b6bc;          /* evidenziazione richiesta */
  transform: translateY(0);
  filter: blur(0);
}
/*--*/
/**/

/*ARROW DOWN*/
.arrow-down {
  cursor: pointer;
  display: inline-block;
  transition: transform 0.3s ease;
}

.arrow-down:hover {
  animation: bounce 0.8s ease-in-out infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(10px); }
}
/**/

/*PAGINA WORK*/
.main-title-work span {
  opacity: 0;
  transform: translateY(-12px);
  display: inline-block;
  will-change: opacity, transform;
}

.main-title-work span.reveal {
  animation: fade-in-down 600ms cubic-bezier(.2,.7,.2,1) both;
  animation-delay: var(--d, 0s);
}

@keyframes fade-in-down {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .main-title-work span { opacity: 1; transform: none; }
  .main-title-work span.reveal { animation: none; }
}
/**/
	
/*PAGINA SERVIZI*/
	.container-servizi {
		max-height: 100vh!important;
		min-height: 100vh!important;
		height:100vh!important;
		overflow: hidden!important;
	}
/**/

/*PAGINA CONTATTI*/
input, select, textarea {
    border-radius: 10px!important;
}
/**/

/* UTILITIES */
.visibility-none {
	visibility: hidden;
}
.bottone a {
	transition: 0.3s ease!important;
}
.bottone a:hover {
	transform: scale(0.9)!important;
}
.grassetto {
	font-weight: 700!important;
}
.object-fit img {
	width: 100%!important;
	height: 100%!important;
	object-fit: cover!important;
}
.highlight{
	color: #92B6BB!important;
}
/**/

/* pagina next e prev */
.disabled {
    opacity: 0.3;
    pointer-events: none;
	cursor: auto;
}
.avanti, .indietro {
	cursor: pointer;
}
/**/


/* colore accettazione form */
div#wpforms-confirmation-880 {
    background-color: rgba(255,255,255,0.5)!important;
    border: 3px solid #ec6a40!important;
}
/**/
