
/* Reset */
body, html{ font-family: 'Inter', sans-serif; line-height: 1; font-size: 16px; box-sizing: border-box;margin: 0;padding: 0;}*,*:before,*:after{ box-sizing: border-box; }h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0 0 1rem 0;padding: 0;}ol,ul{padding-left: 20px;line-height: 1.5;}img{height: auto;}h1{font-size: 4rem;} h2{font-size: 3rem;} h3{font-size: 2rem;} h4{font-size: 1rem;} h5{font-size: 0.8rem;} h6{font-size: 0.6rem;}a{text-decoration:none}
body{ background:  #0A2E38; color:#fff;}
html{scroll-behavior: smooth;}

/* Menu */
:root { --menu-bg: #0A2E38; --menu-color: #fff; }

.header{
  position: fixed;
  top:0;
  left:0;
  z-index: 998;
  width: 100%;
  padding: 10px 15px;

  background: rgba(56, 182, 255, 0.35);   /* fondamentale */
  /* background: rgba(10, 46, 56, 0.35);  */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  
}
.header__content{max-width: 1200px;width: 100%;margin: 0 auto; display: flex;justify-content: space-between;}

.header__logo,
.header__quick{display: flex; align-items: center;color:var(--menu-color)}

.header__menu{padding: 0;margin: 0;}
.header__menu li{display: inline-block;}
.header__menu li a{color:var(--menu-color); opacity: 1;display: block;padding: 16px;font-size: 15px;}

.header__menu a.underline{text-decoration: underline;color:#38b6ff}

@media (max-width: 768px) {
  .header__menu{   
    position: absolute; top:70px; right:0; background-color: var(--menu-bg); width: 90%; height: 100vh;  
    overflow: hidden;transition: all 1s cubic-bezier(.215, .61, .355, 1); transform: translateX(101%); 
    border-left: 1px solid #999; border-top: 1px solid #999;
  }

  .header__menu li{width: 100%;border-bottom: 1px solid #999}
  .menu-open .header__menu{transform: translateX(0%);}

  .icon-hamburger{height: 50px;width: 40px;margin-left: 20px;padding-top: 5px;}
  .icon-hamburger span{height: 2px; width: 30px;background: var(--menu-color);position: relative;display: block;margin-top: 11px;transition: all 0.2s cubic-bezier(.215, .61, .355, 1);}
  
  .menu-open .icon-hamburger span:nth-child(1){transform: rotate(45deg) translateY(9px);}
  .menu-open .icon-hamburger span:nth-child(2){transform: rotate(-45deg) translateY(-9px);}

  .header__quick{display: flex; justify-content: flex-end; width: 50%;}

}


/* ! Grid System */
.grid { 
  margin: 0 auto; 
  padding: 0 15px; 
  width: 1250px; 
  display: flex; 
  flex-flow: row; 
  flex-wrap: wrap;
  align-items: stretch; /* stessa altezza */
}
@media (max-width: 768px) {
  .grid{ width: 100%; }
}
.grid--center{justify-content: center;}
.col{ flex: 1;}

[class*='col-'] { position: relative;padding: 0 15px;}

.col-20{ width: 20%; }
.col-25{ width: 25%; }
.col-30{ width: 30%; }
.col-33{ width: 33.33%; }
.col-50{ width: 50%; }
.col-70{ width: 70%; }
.col-80{ width: 80%; }
.col-100{ width: 100%; }

@media (max-width: 768px) {
  .col-50{ width: 100%; }
}

@media (max-width: 991px) {
  .tab-20 { width: 20%; }
  .tab-25 { width: 25%; }
  .tab-33 { width: 33.33%; }
  .tab-50 { width: 50%; }
  .tab-100 { width: 100%; }
}

@media (max-width: 768px) {
  [class*='col-'] { width: 100%;}
  .sma-20 { width: 20%; }
  .sma-25 { width: 25%; }
  .sma-33 { width: 33.33%; }
  .sma-50 { width: 50%; }
  .sma-100 { width: 100%; }
}


/* ! Title System */
h1, .text-1 {font-size: 3.5rem;margin-bottom:1rem}
h2, .text-2 {font-size: 2.2rem;margin-bottom:1.8rem;line-height: 1.2;}
h3, .text-3  {font-size: 1.6rem;margin-bottom:1rem;line-height: 1.2;}
h4, .text-4 {font-size: 1.2rem;margin-bottom:0.2rem;;line-height: 1.2;}
p{font-size: 1rem;margin-bottom:1.2rem; line-height: 1.5;}
@media (max-width: 768px) {
  h1, .text-1 {font-size: 3.0rem;margin-bottom:1rem}
  h2, .text-2 {font-size: 2.0rem;margin-bottom:1.8rem;line-height: 1.2;}
  h3, .text-3  {font-size: 1.4rem;margin-bottom:1rem;line-height: 1.2;}
  h4, .text-4 {font-size: 1.0rem;margin-bottom:0.2rem;;line-height: 1.2;}
  p{font-size: 1rem;margin-bottom:1.2rem; line-height: 1.5;}
}
/* ! Button System */
.button { 
  font-size: 1rem; text-transform: uppercase; background: #38b6ff; color:#fff; 
  text-decoration: none;padding: 14px 25px; display: inline-block;
  border-radius: 4px; font-weight: 700;
}  

.button:hover{
  background: #333; 
}

.button-small { 
  font-size: 1rem; text-transform: uppercase; background: #38b6ff; color:#fff; 
  text-decoration: none;padding: 10px 20px; display: inline-block;
  border-radius: 4px; font-weight: 700;
} 

/* ! Helpers  */
.mt-0{margin-top: 0 }
.mt-1{margin-top: 10px}
.mt-2{margin-top: 20px}
.mt-3{margin-top: 40px}
.mt-4{margin-top: 100px }

.mb-0{margin-bottom: 0}
.mb-1{margin-bottom: 10px}
.mb-2{margin-bottom: 20px}
.mb-3{margin-bottom: 40px}
.mb-4{margin-bottom: 100px}

.p-0{padding: 0}
.p-1{padding: 10px}
.p-2{padding: 20px}
.p-3{padding: 40px}
.p-4{padding: 100px}

.pt-1{padding-top: 10px;}
.pt-3{padding-top: 20px;}
.pt-3{padding-top: 40px;}
.pt-4{padding-top: 15vh;}

.pb-1{padding-bottom: 10px;}
.pb-2{padding-bottom: 20px;}
.pb-3{padding-bottom: 40px;}
.pb-4{padding-bottom: 15vh;}
.pb-5{padding-bottom: 5vh;}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }


/* ! Cover */
.cover{ 
  text-align: center;
  min-height:300px;
  width:100%; 
  display:flex;
  flex-direction:column;
  justify-content:center; 
  background-position: center center;
  background-size:cover;
}
.cover * {color:#fff}

/* Helpers - Utility */
.round{border-radius: 5px;}
.spacer{height: 10vh;}
.relative{position: relative;}
.overflow-h{overflow: hidden;}
@media (max-width: 768px) {
  .sma-text-center{text-align: center;}
}

.img-small{height:270px;width:100%;object-fit: cover;}
.ionicon{width: 20px;height: 20px;margin: 10px;}
.font-normal{font-weight: 400;}

/* Hero */
.blob{position: absolute; top:-20%; left:-20%; width: 140%;z-index: -1;}
.hero{min-height: 100vh;display: flex;align-items: center;}

.hero-section {
    position: relative; /* Importante: crea un contesto di posizionamento per il contenuto */
    height: 100vh;
    width: 100%;
    overflow: hidden;   /* Nasconde le parti del video che escono dall'area */
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 0;
}

#video-background {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%; 
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Mette il video dietro al contenuto */
    background-size: cover; /* Assicura che il video copra l'area */
}

#img-background{
  position: absolute;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  z-index:-1;
}

#img-background img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-content {
    position: relative;
    z-index: 1; /* Assicura che il contenuto sia sopra il video */
}


/* Animazione comparsa allo scroll */
@keyframes softFadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stato iniziale */
.soft-reveal .sr-item {
  opacity: 0;
  transform: translateY(20px);
}

/* Animazione attiva (on scroll) */
.soft-reveal .sr-item.is-visible {
  animation: softFadeUp 0.9s ease forwards;
}

/* Stagger delicato */
.soft-reveal .sr-item.is-visible:nth-child(1) { animation-delay: 0.2s; }
.soft-reveal .sr-item.is-visible:nth-child(2) { animation-delay: 0.4s; }
.soft-reveal .sr-item.is-visible:nth-child(3) { animation-delay: 0.6s; }
.soft-reveal .sr-item.is-visible:nth-child(4) { animation-delay: 0.8s; }

@media (prefers-reduced-motion: reduce) {
  .soft-reveal .sr-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}


/* box page */
.box_page{
  padding-top:10vh;
  padding-bottom: 10vh;
  border-bottom: solid 1px #38b6ff;
  width:fit-content;
  margin:0 auto;
}

.box_page ul{
  list-style: none;
  padding-left: 0;
}

.box_page ul li {
  position: relative;
  padding-left: 1.5em;
}

.box_page ul li::before {
  content: "➜";
  position: absolute;
  left: 0;
  color: #38b6ff; /* cambia colore se vuoi */
  font-weight: bold;
}

@media (max-width: 768px) {
.box_page{}
}

/* -----box progetti----- */
.box_progetti{ 
  text-align: center;
  min-height:300px;
  width:100%; 
  display:flex;
  flex-direction:column;
  justify-content:center; 
  background-position: center center;
  background-size:cover;
}
.cover * {color:#fff}

/* anteprime immagini + lighbox */
.box_anteprime_immagini {
    display: flex;
    gap: 10px;
    margin-top:50px;
}

.box_anteprime_immagini img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    transition: transform 0.2s ease;
}

.box_anteprime_immagini img:hover {
    transform: scale(1.05);
}

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

.lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    animation: zoomIn 0.3s ease;
}

/* CONTROLLI */
.lightbox button {
    position: absolute;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    padding: 10px;
}

.lightbox .close {
    top: 20px;
    right: 30px;
    font-size: 50px;
}

.lightbox .prev {
    left: 20px;
}

.lightbox .next {
    right: 20px;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}



/* animazione contatore numeri */
.stats {
  display: flex;
  gap: 40px;
  justify-content: left;
  text-align: center;
  padding: 40px 20px;
  border-top: solid 1px #38b6ff;
  border-bottom: solid 1px #38b6ff;
  margin:0px 0px 40px 0px;
}
@media (max-width: 768px) {
  .stats {display: none;}

}
.stat .number {
  font-size: 48px;
  font-weight: 700;
}

.stat p {
  margin: 10px 0px 0px 0px;
  font-size: 16px;
}

/* immagini di sfondo per box nella home */

.img-background-home {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.img-background-home img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.img-background-home::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45); /* regola la scurezza */
}

/* Servizi su home */

.bg_box_home_servizi {
  background-color: #eee;
}

.bg_box_home_servizi h1{color: #333;}
.bg_box_home_servizi h2{color: #333;}
.bg_box_home_servizi h3{color: #333;}
.bg_box_home_servizi h4{color: #333; padding:10px 0px;}
.bg_box_home_servizi p{color: #333;}

.img-link {
	display: inline-block;
	overflow: hidden; /* IMPORTANTISSIMO */
  border-radius: 5px;
}

.img-link img {
	transition: filter 0.3s ease, transform 0.5s ease;
}

.img-link:hover img {
	filter: brightness(65%);
	transform: scale(1.05);
}

/* Form COntatti */

.contact-form {
  max-width: 500px;
  margin: auto;
  padding: 30px;
}

.contact-form h2 {
  margin-bottom: 20px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 5px;
  border: 1px solid #fff;
  font-size: 15px;
}

input:focus,
textarea:focus {
  outline: none;
}

.checkbox label {
  display: flex;
  align-items: flex-start; /* oppure center */
  gap: 6px;
  font-size: 13px;
}


.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

button{
  font-size: 1rem;
  text-transform: uppercase;
  background: #38b6ff;
  color: #fff;
  text-decoration: none;
  padding: 14px 25px;
  display: inline-block;
  border-radius: 4px;
  font-weight: 700;
  border: 0px;
  font-family: inherit;
}

/* immagine sfondo contatti */
.img-background-contatti {
	position: absolute;
	inset: 0;
	z-index: -1;
  left: 130px;
  overflow: hidden;;
}

.img-background-contatti img {
	width: 130%;
}


/* carosello titoli hero */
.carousel {
    position: relative;
    min-height: 140px; /* regola in base al contenuto */
}

.carousel-item {
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-item.active {
    opacity: 1;
    position: relative;
}


/* Footer */
.footer{
  background-color: #0A2E38;
  color:#fff
}

.footer-bottom{
  background-color: #ad3939;
  color:#fff; 
  padding: 20px;
  text-align: center;
  margin-bottom: 0;
}

.footer-bottom a{
  color:#fff;
}