*{
font-family: 'Quicksand', serif;

}
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
   /* evita scrollbar orizzontali */
}


.logo img{

width: 60px;
text-align: left;
margin-right:15px;
opacity:0;
background:white;
}

.head-background{
  background: white;
  background: linear-gradient(360deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 1) 0%, rgba(255, 255, 255, 1) 0%, rgba(0, 0, 0, 1) 100%);
  background-size: cover;

}

header {
  color: #A0A0A0; /* oro più elegante */
  letter-spacing: 1px;
  text-transform: uppercase;
padding:1rem;
transition: transform 0.3s ease;
}




nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1.5rem;
  text-align: right;
  background: transparent;
  position: relative;
  z-index: 10;
}

nav a {
  color: #A0A0A0;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s ease;
}

nav a:hover {
  color: #383838;
}

/* --- Hero Section --- */
.hero {
  min-height: 50vh; /* invece di 100vh */
    padding-top: 0px; /* o meno, dipende dall’altezza della navbar */
    padding-bottom: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
margin-top: -70px;


}

/* --- Titolo --- */
.hero h1 {
  font-size: 7rem;
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero .window {
  color: #587a82; /* azzurro brillante */
}

/* --- Paragrafo --- */
.hero p {
  font-size: 1.2rem;
  color: #383838;
  max-width: 700px;
  margin: 0 auto 2rem;
}

/* --- Pulsanti --- */
.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary, .btn-secondary {
  padding: 0.9rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Pulsante azzurro */
.btn-primary {
  background: #587a82;;
  color: #fff;
}

.btn-primary:hover {
  background: #587a82;;
  transform: translateY(-3px);
}

/* Pulsante grigio */
.btn-secondary {
  background: #fff;
  color: #777;
}

.btn-secondary:hover {
  background: #f1f1f1;
  transform: translateY(-3px);
}



.services h2{
text-align: center;
font-size: 2rem;
}

.services p{
color: #555;
padding-top:10px;
}
.p-services{
text-align: center;
}
.card-services{
 display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  background-color: white;
  padding: 20px;

}

.card{

vertical-align: top;
background-color: white;
border: 2px solid #E8E8E8;
border-radius: 8px;
padding: 5px 2px 10px 8px ;
margin-bottom: 20px;


height:250px;
  transition: all 0.3s ease;


    flex: 1 1 250px;
    max-width: 280px;

    text-align: left;
    margin: 0; /* togli margin-left */
    box-sizing: border-box;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px #D3D3D3;
  cursor: pointer;
  border:2px solid #587a82;
}
.card i{
color:white;
background-color: black;
border: 2px solid #E8E8E8;
width: 50px;
height: 50px;
font-size: 1.3rem;
display: flex;       /* per centrare bene l’icona */
align-items: center;
justify-content: center;
border-radius: 10px;
margin-top: 15px;
margin-left: 10px;
}
.card:hover i {
  background-color:#587a82;
  color: white; /* opzionale, per contrasto */
  transition: all 0.3s ease;
}




.projects{
background-color: white;
}
.projects h2{
text-align: center;
font-size: 2rem;
}
.projects p{
color: #555;
}
.p-projects{
text-align: center;
}

.about {
  background: var(--light);
  padding: 80px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
  text-align: left;
}

.about-text {
  max-width: 500px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* --- CARD2 (Mission Box) --- */
.card2 {
  background: white;
  border: 2px solid #E8E8E8;
  border-radius: 15px;
  padding: 30px 25px;
  max-width: 380px;
  text-align: left;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: var(--transition);
}

.card2:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border: 2px solid #587a82;
}

.card2 i {
  background: black;
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.card2 h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  text-align:left;
}

.card2 p {
  color: #555;
  line-height: 1.6;
  text-align:left;
}

/* --- Founder Section --- */
.founder {
  background: #111;
  color: white;
  text-align: center;
  padding: 30px 20px;
  border-radius: 20px;
  margin: 30px auto 0;
  max-width: 90%;
}

.founder h3 {
  font-size: 2rem;
  margin-bottom: 5px;
}

.founder p {
  color: #A0A0A0;
  font-size: 1rem;
}

.form input, textarea{
background: white;
border: 2px solid #E8E8E8;
height:20px;
border-radius:10px;
}



.select{
width: 600px;
background: white;
border: 2px solid #E8E8E8;
border-radius:10px;

}
.btn3 {
  background: #d3d3d3;
  color: var(--black);
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 10px;
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  margin-right: 5px;
  border: 2px solid #E8E8E8;
}

.btn3:hover {
 box-shadow: 0 4px 10px #D3D3D3;

}




.info{
margin-top:200px;
}

.info h2{
font-size: 4rem;
text-align:center;

}
.info p{
color: #555;
font-size: 1rem;
text-align:center;
}




.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}



.contact-item a:hover {
  color: #D3D3D3;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}
.social-icons a {
  color: black;
  font-size: 1.5rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: black;
  transform: scale(1.1);

}



.social-icons i {
padding: 4px;
box-shadow: 0 4px 5px ;
border: 2px solid black;
border-radius:100px;
}
.pre-footer {
  background: white;
  color: black;
  padding: 4rem 2rem;
border-top: thin solid #D3D3D3;
margin-top: 30px;
}

.pre-footer h2{
text-align: left;
}
.pre-footer p{
color: #555;
text-align: left;
}

.list h3{
padding-top:30px;
}


.list ul , li{
color: #555;
text-decoration:none;
list-style-type: none;
padding-top:5px;

}
.list a{
text-decoration: none;
}
.list input{
width: 80% ;
height: 30px;
background: white;
border: 2px solid #E8E8E8;
border-radius: 10px;
}

.projects {
  background: white;
  padding: 60px 20px;
}

.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 30px;
}

.project-card {
  width: 280px;
  background: white;
  border: 2px solid #E8E8E8;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: 0.3s ease;
}
.project-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-5px);
  border: 2px solid #587a82;
}

.project-card:hover .project-btn {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  border: 2px solid #587a82;
}

/* --- Simulazioni di “preview” --- */
.preview {
  width: 100%;
  height: 150px;
  border-radius: 8px;
  margin-bottom: 15px;
  position: relative;
  overflow: hidden;
}

/* Finta interfaccia di un sito */
.mock1 {
  background: linear-gradient(180deg, #000 30%, #f5f5f5 70%);
}
.mock1::before {
  content: "";
  position: absolute;
  top: 15px; left: 15px;
  width: 60%; height: 10px;
  background: #ccc;
  border-radius: 5px;
}
.mock1::after {
  content: "";
  position: absolute;
  top: 40px; left: 15px;
  width: 40%; height: 8px;
  background: #e0e0e0;
  border-radius: 5px;
}

/* Variante con colori vivaci */
.mock2 {
  background: linear-gradient(45deg, #2c2c2c, #a0a0a0);
}
.mock2::before {
  content: "";
  position: absolute;
  top: 20px; left: 20px;
  width: 70%; height: 80px;
  background: rgba(255,255,255,0.2);
  border-radius: 5px;
}

/* Variante dashboard */
.mock3 {
  background: linear-gradient(135deg, #111, #444);
}
.mock3::before {
  content: "";
  position: absolute;
  top: 25px; left: 25px;
  width: 50%; height: 50px;
  background: #e8e8e8;
  border-radius: 4px;
}
.mock3::after {
  content: "";
  position: absolute;
  bottom: 20px; right: 20px;
  width: 25%; height: 25px;
  background: #d3d3d3;
  border-radius: 4px;
}

/* Bottone */
.project-btn {
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #A0A0A0;
  border-radius: 5px;
  color: black;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
  transition: 0.3s;
}
.project-btn:hover {
  background: white;
  color: #587a82;;
  border: 2px solid #587a82;
}

.card-services2{
background-color:white;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 30px;

}

.card3{
display: inline-block;
vertical-align: top;
background-color: white;
border: 2px solid #E8E8E8;
border-radius: 8px;
padding: 5px 2px 10px 8px ;
margin-bottom: 50px;
width: 250px;
margin-left: 30px;
height:250px;
transition: all 0.3s ease;
align-items:center;
text-align:center;
margin-top: 30px;
}

.card3:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px #D3D3D3;
  cursor: pointer;
  border: 2px solid #587a82;
}
.card3 i{
color:white;
background-color: black;
border: 2px solid #E8E8E8;
width: 50px;
height: 50px;
font-size: 1.3rem;
display: flex;       /* per centrare bene l’icona */
align-items: center;
justify-content: center;
border-radius: 100px;
margin-top: 15px;
margin-left: 97px;
}
.card3 a{
color:#555;
text-decoration:none;
}
.card3:hover i {
   background-color:#587a82;
   color: white; /* opzionale, per contrasto */
   transition: all 0.3s ease;
 }

.card4{
max-width:60%;
 margin: 0 auto; /* centra orizzontalmente */
padding-top: 40px;
border: 2px solid #E8E8E8;
border-radius: 10px;
padding-bottom: 40px;

}

footer{
border-top: thin solid #D3D3D3;
padding-bottom:10px;
padding-left: 10px;
}
footer p{
color: #555;
}

/* Nascondi hamburger su desktop */
.hamburger {
  display: none; /* nascosto su desktop */
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.8rem;
  color: #A0A0A0;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.4s ease;
         z-index: 4000;
}
body.menu-open .hamburger {
  position: fixed;  /* la X resta ferma anche se scrolli */
  top: 1.5rem;
  right: 1.5rem;
}

/* se usi fontawesome la dimensione può essere controllata così */
.hamburger i {
  font-size: 1.8rem;
  line-height: 1;
  color: inherit;
}

/* blocco scroll (opzionale, ma utile) */
.body-lock, body.menu-open {
  overflow: hidden;
  height: 100vh;
}

@media (max-width: 480px) {
  .card-services, .projects-grid, .card-services2 {
    flex-direction: column;
    align-items: center;
  }

  .card, .project-card, .card3 {
    width: 90%;
    max-width: 350px;
  }
  .card3{
  margin-right:10px;
  }
}

/* Menu mobile */
@media (max-width: 900px) {
  .hamburger {
    display: block;

  }

  nav {
    display: none;
    flex-direction: column;
    background: white;
    position: fixed;
    top: 80px;
    right: 0;
    width: 100%;
    text-align: center;
    border-top: 1px solid #eee;
    padding-top: 5rem;
    z-index: 3000;

  }

  nav.active {
    display: flex;
  }

  nav a {
    border: 2px solid #D3D3D3;
    width: 80%;
    margin: 10px auto;
    padding: 10px;
    border-radius: 10px;
    background: white;
    color: #383838;
  }

  nav a:hover {
    border: 2px solid #587a82;
    color: #587a82;
  }
}

/* Overlay bianco */

/* Tablet */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 4rem;
  }
  .card, .card2{
  flex-direction: column;
  align-items: center;
  text-align:center;
  }
  .projects-grid {
    flex-direction: column;
    align-items: center;
  }
  .card4{
  max-width:90%;
  padding-left:10px;
  padding-right:10px;
  }
  .select{
  width: 100%;
  }
}

/* Smartphone */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 3rem;
  }
  .buttons {
    flex-direction: column;
  }
  .info h2 {
    font-size: 2rem;
  }
  .about {
    flex-direction: column;
    text-align: center;
  }
    .card, .card2{
    flex-direction: column;
    align-items: center;
    text-align: center;
    }
.card4{
max-width:90%;
padding-left:10px;
padding-right:10px;
}
.select{
width: 100%;
}

.btn-secondary{
margin-left:10px;
margin-right:10px;
}
.btn-primary{
margin-left:10px;
margin-right:10px;
}
.founder {
margin-left:15px;
margin-right:15px;
}
footer p{
color: #555;
}
.card3{
width: 60%;
}
}


.menu-overlay {
   position: fixed;
   top: 0;   /* <- CORRETTO, non bottom:10px */
   left: 0;
   width: 100%;
   height: 100%;
   background: white;
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.4s ease;
   z-index: 2000;
 }

.menu-overlay.active {
  opacity: 1;
  pointer-events: all;
}


.preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.project-card:hover .preview img {
  transform: scale(1.05);

}


