body {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      color: #333;
      background-color: #f4f4f4;
    }

    /* Stile base per tutti i link */
a {
  color: #FF6F00;           
  text-decoration: none;   
  font-weight: 600;        
  transition: color 0.3s ease, text-decoration 0.3s ease;
  cursor: pointer;
}

/* Hover e focus per accessibilità */
a:hover,
a:focus {
  color: #ffffff;           
  text-decoration: none;
  outline: none;            
}



    header {
      background: linear-gradient(to right, #FF6F00 0%,#FC9840 100%);
      color: white;
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    header h1 {
      margin: 0;
      font-size: 1.8rem;
    }

    .phone-link {
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.phone-link:hover,
.phone-link:focus {
  color: #ffffff;
  text-decoration: none;
}

    nav a {
      color: white;
      text-decoration: none;
      margin-left: 1.5rem;
      font-weight: 600;
    }

    .hero {
  position: relative;
  background-image: url('/assets/img/persona-che-lavora-da-casa-con-un-cane.webp');
  background-size: cover;
  background-position: center 20%;
  padding: 4rem 2rem;
  color: white;
  overflow: hidden;
  min-height: 400px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* <-- overlay nero semi-trasparente */
  z-index: 1;
}

/* Contenuto sia sopra l’overlay */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  padding: 0 1rem;
}

    .hero h2 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }

    .cta-button {
      background-color: #70b52b;
      color: white;
      border: none;
      padding: 1rem 2rem;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      border-radius: 5px;
      transition: background 0.3s ease;
    }

    .cta-button:hover {
      background-color: #5a9a24;
    }

    .features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: -80px auto 3rem auto; /* margine negativo in alto per sovrapporre */
  padding: 0 1rem;
  position: relative;
  z-index: 10; /* sopra la hero */
}

.features2 {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0px auto 3rem auto; /* margine negativo in alto per sovrapporre */
  padding: 0 1rem;
  position: relative;
  z-index: 10; /* sopra la hero */
}

.feature {
  background-color: white;
  border-radius: 12px;
  border: 1px solid #d3d1d1;
  padding: 2rem;
  flex: 1;
  text-align: center;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-10px);
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .features {
    flex-direction: column;
    margin: -40px auto 2rem auto;
  }
  .feature {
    margin-bottom: 1.5rem;
  }
}


/* Responsive per mobile */
@media (max-width: 768px) {
  .features2 {
    flex-direction: column;
    margin: 0px auto 2rem auto;
  }
  .feature {
    margin-bottom: 1.5rem;
  }
}


    .feature h3 {
      font-size: 1.5rem;
      color: #000000;
      margin-bottom: 0.5rem;
    }

    .feature p {
      font-size: 1rem;
      color: #000000;
    }

    

    /* Pulsanti flottanti */
    .floating-btn {
      position: fixed;
      bottom: 20px;
      z-index: 1000;
      border-radius: 20%;
      padding: 15px;
      background-color: #25d366;
      color: white;
      font-size: 1.2em;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      cursor: pointer;
    }

    .floating-btn.phone {
      background-color: #34b7f1;
      right: 80px;
    }

    .floating-btn.chat {
      background-color: #f17034;
      right: 140px;
    }

    .floating-btn.whatsapp {
      right: 20px;
    }

   


/* Nascondi il pulsante mobile di default */
.phone-button-mobile {
  display: none;
}

/* Desktop: mostra solo il link completo */
@media (min-width: 769px) {
  .desktop-phone {
    display: flex;
  }
  .phone-button-mobile {
    display: none;
  }
}

/* Mobile: nascondi il link completo, mostra il pulsante circolare */
@media (max-width: 768px) {
  .desktop-phone {
    display: none;
  }

  .phone-button-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: white;
    border-radius: 50%;
    color: #FF6F00; /* arancione */
    font-size: 1.4rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
  }

  .phone-button-mobile:hover,
  .phone-button-mobile:focus {
    background-color: #f9f9f9;
    color: #e65c00;
  }
}


.site-footer {
  background-color: #333;
  color: white;
  padding: 1.5rem 2rem;
}

.footer-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 40px;
  display: block;
  margin-left: 25px;
}

    /* Trustpilot Widget */
    .trustpilot-widget {
      margin: 2rem auto;
      max-width: 90%;
    }

    .trustpilot-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding: 3rem 2rem;
  background-color: #edf2f5;
  flex-wrap: wrap;
}

.trustpilot-text {
  flex: 1;
  min-width: 280px;
  max-width: 45%;
  
  
}

.trustpilot-text h3 {
  font-size: 2.3rem;
  color: #000000;
  margin-bottom: 0.5rem;
}


.trustpilot-text p {
  font-size: 1.5rem;
  color: #000000;
  line-height: 1.4;
}

.trustpilot-widget-container {
  flex: 1;
  max-width: 50%;
  min-width: 300px;
}

/* Responsive per mobile */
@media (max-width: 768px) {
  .trustpilot-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trustpilot-text, .trustpilot-widget-container {
    max-width: 100%;
  }

  .trustpilot-text h3 {
    font-size: 1.8rem;  
  }

  .trustpilot-text p {
    font-size: 1rem;  
  }
}

 /* Form di contatto */
.contact-form-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  width: 320px;
  background-color: rgba(255, 255, 255, 0.3); 
  border: 1px solid rgba(255, 255, 255, 0.4); 
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px 24px;
  box-sizing: border-box;
  z-index: 1001;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* per Safari */
}

    .contact-form-popup.active {
      display: block;
    }


  .contact-form-popup .close-button {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 32px;
  height: 32px;
  background: transparent !important;
  border: 1px solid #949494;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  color: #990000;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

    .contact-form-popup input,
    .contact-form-popup textarea {
      width: calc(100% - 16px);
      margin: 8px 0;
      margin: 10px 0;
      border: 1px solid #ccc;
      border-radius: 20px;
      padding: 10px;
      font-family: Montserrat;
    }

    .contact-form-popup button {
      background-color: #70b52b;
      color: white;
      border: none;
      padding: 10px;
      width: 60%;
      border-radius: 8px;
      cursor: pointer;
      font-size: 1.1rem;
      font-weight: bold;
    }

    .contact-form-popup button:hover {
      background-color: #5a9a24;
    }

    .contact-form-popup h3 {
      font-size: 1.6rem;
    }

    /* Sezione partner con layout a due colonne */
.partners {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 2rem;
  background-color: #fff;
  flex-wrap: wrap;
  gap: 2rem;

}

/* Box con i loghi */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex: 1;
  max-width: 50%;
}

.partner-logo {
  width: calc(33.33% - 1rem); 
  height: 60px;               
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;  
  border: 1px solid #eee;     
  box-sizing: border-box;
  padding: 0.8rem;
  border-radius: 12px;
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Box testo */
.partner-text {
  flex: 1;
  max-width: 45%;
}

.partner-text h3 {
  margin: 0;
  font-size: 2.8rem;
  color: #000000;
}

.partner-text h4 {
  margin: 0.5rem 0;
  font-size: 1.6rem;
  color: #FF6F00;
}

.partner-text p {
  font-size: 1.3rem;
  line-height: 1.5;
  color: #000000;
}

@media (max-width: 768px) {
  .partners {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .partner-logos {
    max-width: 100%;
    justify-content: center;
  }

  .partner-logo {
    width: 30%; 
  }

  .partner-text {
    max-width: 100%;
    margin-top: 2rem;
  }

  .partner-text h3,
  .partner-text h4,
  .partner-text p {
    text-align: center;
  }
}

    .highlight {
  background: linear-gradient(to right, #FF6F00 0%,#FC9840 100%);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  color: #ffffff;
}


    .logo img {
  height: 70px; 
  display: block;
}

.contact-section {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap; /* per mobile impila i box */
  justify-content: center;
  background-color: white;
}

.contact-box {
  background-color: #edf2f5; 
  border-radius: 10px;
  padding: 1.5rem 2rem;
  flex: 1 1 320px;
  max-width: 450px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.contact-box h3 {
  margin-bottom: 0.5rem;
  color: #f36f21;
}

.contact-box p {
  margin-bottom: 1rem;
  color: #000000;
  font-size: 1rem;
}

.contact-image {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.cta-button, .call-button {
  background-color: #70b52b;
  color: white;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  text-decoration: none; /* per link */
}

.cta-button:hover, .call-button:hover {
  background-color: #55891d;
}



.contact-form-popup form {
  display: flex;
  flex-direction: column;
}


.contact-form-popup button[type="submit"] {
  background-color: #70b52b;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin: 0 auto;
}

.contact-form-popup button[type="submit"]:hover {
  background-color: #55891d;
}

/* Responsive: su mobile i box vanno uno sotto l'altro */
@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    align-items: center;
  }
  .contact-box {
    max-width: 100%;
  }
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}


@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.icon-feature {
  display: block;
  font-size: 3rem;
  color: #f36f21;
  margin: 0.3rem  1rem 0;
  animation: pulse 2.5s ease-in-out infinite;
  padding: 8px;
}

.mission {
  background-color: #f9f9f9;
  padding: 3rem 1.5rem;
  text-align: center;
}

.mission .container {
  max-width: 900px;
  margin: 0 auto;
}

.mission h3 {
  color: #f36f21; 
  font-weight: 700;
  font-size: 2.4rem;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
}

.mission p {
  color: #000000;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-family: 'Montserrat', sans-serif;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.mission .strongest {
  color: #f36f21;
  font-weight: 700;
}

/* Wrapper con max-width e centratura uguale a features */
.partners,
.trustpilot-section {
  max-width: 1200px;
  margin: 0 auto 1rem auto; /* margine verticale per distanziare dalle altre sezioni */
  background-color: #f5f5f5;
  display: flex;
  align-items: center; /* allinea verticalmente */
}

/* Layout mobile: colonne verticali */
@media (max-width: 768px) {
  .partners,
  .trustpilot-section {
    flex-direction: column;
    margin: 0 auto 2rem auto;
  }
}

/* Impostazioni interne partner e trustpilot - esempio */
.partner-logos,
.partner-text,
.trustpilot-text,
.trustpilot-widget-container {
  flex: 1; /* occupano metà larghezza */
}



.contact-form-popup .form-check {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-form-popup .form-check > div {
  display: flex;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
}

/* Fix per allineamento: checkbox a sinistra */
.contact-form-popup .form-check-input {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  margin-right: 8px;
}

/* Etichetta occupa il resto */
.contact-form-popup .form-check-label {
  flex-grow: 1;
  font-size: 11px;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
}


.contact-form-popup .col-12 {
  text-align: left !important;
  padding: 0;
}