@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins';
}
#imghome {
    margin-top: 20px;
    width: 700px;
    height: 400px;
    border-radius: 10px;
    border: 2px solid #ffb703;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: #fff;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  background: rgba(15,23,42,0.9);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #ffb703;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #38bdf8;
  transition: 0.3s;
}

.logo img:hover {
  transform: scale(1.1);
}

.logo h1 {
  color: #38bdf8;
  font-size: 1.3rem;
}

/* LINKS DESKTOP */
.nav-links {
  display: flex;
}

.nav-links a {
  margin-left: 20px;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #ffb703;
  transform: translateY(-5px);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* HERO */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.hero h2 {
  font-size: 3rem;
  margin-top: 40px;
}

.hero p {
  margin-top: 6px;
  color: #cbd5f5;
}

/* SEZIONI */
section {
  padding: 80px 10%;
  scroll-margin-top: 90px;
}

h3 {
  margin-bottom: 10px;
  color: #38bdf8;
  font-size: 2rem;
}

/* SERVIZI */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 20px;
}

.card {
  background: #1e293b;
  padding: 20px 20px 80px;
  border-radius: 12px;
  transition: 0.3s;
  margin-top: 30px;
  height: 300px;
}

.card:hover {
  transform: translateY(-10px);
  background: #ffc300;
  color: black;
  cursor: pointer;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 30px;
}
#galleria p {
margin-top: -10px;
margin-bottom: 30px;
}

#paragrafoserv {
    margin-top: -10px;
    margin-bottom: 20px;
}

.gallery img {
  width: 300px;
  height: 300px;
  border-radius: 10px;
  transition: 0.4s;
  gap: 300px;
}

.gallery img:hover {
  transform: scale(1.03);
  border: 3px solid #ffc300;
  cursor: pointer;
}

.fa-check {
    color: #ffb703;
}

.fa-medapps {
    color: #ffb703;
}

.fa-briefcase {
    color: #ffb703;
}

.fa-envelope {
    color: #ffb703;
}

/* CONTATTI */
.contact p {
  margin: 10px 0;
}


/* FOOTER */
footer {
  text-align: center;
  padding: 20px;
  background: #020617;
  margin-top: 40px;
}
.fa-bolt {
    color: #ffc300;
}

/* ANIMAZIONI */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media(max-width:768px) {

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 0;
    background: #020617;
    width: 100%;
    flex-direction: column;
    align-items: center;

    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;

    transition: all 0.4s ease;
  }

  #imghome {
    width: 400px;
    height: 250px;
  }

  #home h2 {
    font-size: 30px;
    font-weight: bold;  
  }

  .gallery img{
    height: 300px;
  }

  #logofooter {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }

  

}




#contatti-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 50px 10%;
  flex-wrap: wrap;
}

.contact-box,
.work-box {
  flex: 1;
  min-width: 280px;
  border: 2px solid #ffb703;
  padding: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  align-items: center;
}

.work-box button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.work-box button:hover {
  background-color: #cc7a00;
}


.candidatura {
  max-width: 600px;
  margin: 80px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
}

.candidatura h2 {
  text-align: center;
  margin-bottom: 10px;
}

.candidatura p {
  text-align: center;
  margin-bottom: 20px;
}

.candidatura form {
  display: flex;
  flex-direction: column;
}

.candidatura input,
.candidatura textarea {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 15px;
}

.candidatura button {
  padding: 12px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.candidatura button:hover {
  background-color: #cc7a00;
}

#immaginechi {
  width: 400px;
  height: 400px;
}

.card h4 {
  font-size: 1.2rem;
  margin-top: -10px;
  color: #ffb703;
}


.card:hover h4 {
  color: #264371;
}

#mappa {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid #ffc300;
}

.fa-instagram {
  font-size: 30px;
  color: inherit;
  border: none;
  outline: none;
  text-decoration: none;
}
#linkinsta {
  text-decoration: none;
  color:  #b5179e;
}

/* SEZIONE PREVENTIVO */
#preventivo {
  text-align: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-top: 1px solid #ffb703;
  border-bottom: 1px solid #ffb703;
}

#preventivo p {
  margin: 10px 0 20px;
  color: #cbd5f5;
}

/* BOTTONE PREVENTIVO (coerente con work-box) */
#preventivo button {
  padding: 12px 25px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 16px;
}

#preventivo button:hover {
  background-color: #cc7a00;
  transform: translateY(-3px);
}

/* PAGINA PREVENTIVO */
.preventivo-page {
  max-width: 600px;
  margin: 120px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
  text-align: center;
}

.preventivo-page h2 {
  margin-bottom: 10px;
}

.preventivo-page form {
  display: flex;
  flex-direction: column;
}

.preventivo-page input,
.preventivo-page textarea {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 15px;
  border: none;
  outline: none;
}

.preventivo-page textarea {
  min-height: 120px;
  resize: none;
}

.preventivo-page button {
  padding: 12px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

.preventivo-page button:hover {
  background-color: #cc7a00;
}

/* RESPONSIVE */
@media(max-width:768px) {
  #preventivo {
    padding: 60px 20px;
  }

  .preventivo-page {
    margin: 100px 20px;
  }
}

/* ================= PREVENTIVO ================= */

#preventivo {
  text-align: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-top: 1px solid #ffb703;
  border-bottom: 1px solid #ffb703;
}

#preventivo p {
  margin: 10px 0 20px;
  color: #cbd5f5;
}

#preventivo button {
  padding: 12px 25px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
}

#preventivo button:hover {
  background-color: #cc7a00;
  transform: translateY(-3px);
}

/* PAGINA PREVENTIVO */
.preventivo-page {
  max-width: 600px;
  margin: 120px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
  text-align: center;
  background: #1e293b;
}

.preventivo-page h2 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.preventivo-page p {
  margin-bottom: 20px;
  color: #cbd5f5;
}

/* FORM */
.preventivo-page form {
  display: flex;
  flex-direction: column;
}

.preventivo-page input,
.preventivo-page textarea,
.preventivo-page select {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  font-size: 14px;
}

.preventivo-page textarea {
  min-height: 120px;
  resize: none;
}

/* BOTTONI */
.preventivo-page button {
  padding: 12px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin-top: 5px;
}

.preventivo-page button:hover {
  background-color: #cc7a00;
}

/* MOBILE */
@media(max-width:768px) {

  .preventivo-page {
    margin: 100px 20px;
    padding: 20px;
  }

  .preventivo-page input,
  .preventivo-page textarea,
  .preventivo-page select {
    font-size: 16px;
  }

}

/* ================= ANIMAZIONI ================= */

/* ELEMENTI NASCOSTI */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* QUANDO ENTRANO */
.show {
  opacity: 1;
  transform: translateY(0);
}

/* ENTRATA PAGINA */
body {
  opacity: 0;
  transition: opacity 0.6s ease;
}

body.page-loaded {
  opacity: 1;
}

/* MENU MOBILE MIGLIORATO */
.nav-links.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ANIMAZIONE HOVER PIU FLUIDA */
button {
  transition: all 0.3s ease;
}

/* PICCOLO EFFETTO SEZIONI */
section {
  transition: all 0.4s ease;
}

/* MOBILE FIX */
@media(max-width:768px) {

  .nav-links a {
    padding: 15px;
    display: block;
    width: 100%;
    text-align: center;
  }

}

/* ANIMAZIONI */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* FADE IN PAGINA */
body {
  opacity: 0;
  transition: opacity 0.5s ease;
}

body.page-loaded {
  opacity: 1;
}

/* MENU MOBILE FIX */
.nav-links.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* PREVENTIVO */
.preventivo-page {
  max-width: 600px;
  margin: 120px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
  text-align: center;
}

.preventivo-page input,
.preventivo-page textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
}

/* MOBILE */
@media(max-width:768px) {
  .nav-links a {
    display: block;
    padding: 15px;
    width: 100%;
    text-align: center;
  }

  .preventivo-page {
    margin: 100px 20px;
  }
}

/* solo miglioramento estetico */
.preventivo-page {
  max-width: 600px;
  margin: 120px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
  text-align: center;
  background: #1e293b;
}

/* CANDIDATURA FIX VISUALE */
.candidatura {
  max-width: 600px;
  margin: 120px auto;
  padding: 30px;
  border: 2px solid #ff9900;
  border-radius: 10px;
  background: #1e293b; /* 🔥 QUESTO TOGLIE EFFETTO "TUTTO BLU" */
  color: white;
  text-align: center;
}

/* FORM */
.candidatura form {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.candidatura input,
.candidatura textarea {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  outline: none;
}

/* BOTTONI */
.candidatura button {
  padding: 12px;
  border: none;
  background-color: #ff9900;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  margin-bottom: 10px;
}

.candidatura button:hover {
  background-color: #cc7a00;
}


/* =========================
   PREVENTIVO + CANDIDATURA RESPONSIVE
========================= */

/* contenitore base già centrato */
.preventivo-page,
.candidatura {
  width: 90%;
}

/* form più leggibile su mobile */
.preventivo-page form,
.candidatura form {
  display: flex;
  flex-direction: column;
}

/* input adattivi */
.preventivo-page input,
.preventivo-page textarea,
.preventivo-page select,
.candidatura input,
.candidatura textarea {
  width: 100%;
  font-size: 16px; /* evita zoom su iPhone */
}

/* bottoni full width su mobile */
@media (max-width: 768px) {

  .preventivo-page,
  .candidatura {
    margin: 100px 15px;
    padding: 20px;
  }

  .preventivo-page button,
  .candidatura button {
    width: 100%;
    font-size: 16px;
  }

  /* navbar mobile fix già coerente col tuo stile */
  .nav-links {
    flex-direction: column;
  }

  .nav-links a {
    padding: 15px;
    text-align: center;
    display: block;
  }
}

/* schermi piccoli (telefono vero) */
@media (max-width: 480px) {

  .preventivo-page h2,
  .candidatura h2 {
    font-size: 22px;
  }

  .preventivo-page p,
  .candidatura p {
    font-size: 14px;
  }
}

.contact-box a {
  color: #ffffff;
  text-decoration: none;
  border-bottom: 1px solid #ffffff;
  transition: 0.3s;
}

.contact-box a:hover {
  border-bottom: 1px solid #ffb703;
  color: #ffb703;
}