/* Importa font più moderni e coerenti */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

* {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
   scroll-behavior: smooth;
}

:root {
   --primary-color: #3498db;
   /* Colore blu */
   --secondary-color: #ffffff;
   /* Colore bianco */
   --accent-color: #e74c3c;
   /* Colore rosso */
   --text-color: #2c3e50;
   /* Colore grigio scuro */
   --heading-font: "Poppins", sans-serif;
   --body-font: "Roboto", sans-serif;
   --padding: 0 1.5rem;
   --border-radius: 8px;
}

body {
   font-family: var(--body-font);
   color: var(--text-color);
   background-color: var(--secondary-color);
}

.container {
   max-width: 1500px;
   margin: 0 auto;
   padding: var(--padding);
   border-radius: var(--border-radius);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Stili per i titoli */
h1,
h2,
h3,
h4 {
   font-family: var(--heading-font);
   color: var(--primary-color);
   margin-bottom: 1rem;
}

h1 {
   font-size: 2.5rem;
   font-weight: 600;
}

.site-name {
   color: white;
}

h2 {
   font-size: 2rem;
   font-weight: 500;
   text-align: center;
}

h3 {
   font-size: 1.75rem;
   font-weight: 500;
}

h4 {
   font-size: 1.5rem;
   font-weight: 400;
}

.sub-title {
   font-size: 1.7rem;
   font-weight: 700;
   text-align: center;
}

p {
   margin-bottom: 1rem;
}

a {
   color: white;
   text-decoration: none;
   transition: color 0.3s ease;
}

/* a:hover {
   font-size: 1.5rem;
} */

.question {
   font-weight: 600;
   font-size: 1.2rem;
}

/* Stili per il menu mobile */
.call-button {
   background-color: var(--accent-color);
   color: white;
   border: none;
   padding: 0.5rem 1rem;
   margin-bottom: 0.7rem;
   cursor: pointer;
   font-size: 1rem;
   border-radius: var(--border-radius);
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.call-button:hover {
   background-color: var(--accent-color);
}

/* Stili header */
.header {
   background-color: var(--primary-color);
   padding: var(--padding);
   border-radius: var(--border-radius);
   color: white;
   margin-bottom: 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.header h1 {
   font-size: 2rem;
}

.navbar ul {
   list-style: none;
   display: flex;
   gap: 1rem;
}

.navbar a {
   font-weight: 600;
   color: white;
   transition: color 0.3s ease;
}

.navbar a:hover {
   color: var(--accent-color);
}

/* Stili per il contenuto principale */

/* *Social media buttons */


#hideContacts {
  position: fixed;
  top: 34%;
  left: 0;
  z-index: 1000;
  cursor: pointer;
  color: var(--text-color);
  font-size: 32px;
}

 .social-btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1000;
  position: fixed;
  top: 40%;
  left: 0;
  gap: 2px;
  padding: 0.2rem;
}


.social-btns i {
  font-size: 1.2rem;
  color: white;
  border-radius: 50%;
  z-index: 1;
} 

.leafBtn {
   position: relative;
   width: 120px; 
   height: 100px;  
   display: inline-flex;
   align-items: center;
   justify-content: center;
   font-size: 10px;
   transition: transform 0.3s ease, color 0.3s ease;
 }
 
 .leafBtn svg {
   position: absolute;
   width: 100%;
   height: 100%;
   z-index: 0;
   
 }
 

 /* Colori */
 .whatsappBtn { color: #25d366; }
 .whatsappBtn:hover { color: #128c7e; transform: scale(1.2); }
 
 .phoneBtn { color: #34b7f1; }
 .phoneBtn:hover { color: #007bff; transform: scale(1.2); }
 
 .emailBtn { color: #f39c12; }
 .emailBtn:hover { color: #d35400; transform: scale(1.2); }
 

/* Servizi */
.servizi-main {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
   border-bottom: 2px solid var(--primary-color);
   border-radius: 8px;
   padding-bottom: 1rem;
   box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
}

.servizi-article {
   margin-bottom: 2rem;
   flex: 1;
   font-size: 1.3rem;
   padding: var(--padding);
}

.servizi-list {
   list-style: none;
   padding: 10px;
}

.servizi-list li {
   margin-bottom: 0.5rem;
   align-items: center;
}

.article-aside {
   flex: 1;
   padding: var(--padding);
   font-size: 1.2rem;
   text-align: center;
}

.article-aside img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
}

.contatti-div {
   width: 90%;
   margin: 0 auto;
   text-align: center;
   font-size: 1.4rem;
   padding: var(--padding);
   border-radius: var(--border-radius);
   background-color: #a7c7e7;
}

.contatti-title {
   font-size: 1.5rem;
   font-weight: 600;
   margin-bottom: 1rem;
   color: var(--accent-color);
}

.right-article {
   flex: 1;
   padding: var(--padding);
   font-size: 1.2rem;
   text-align: center;
}

.right-article img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
}

.right-article p {
   margin-bottom: 1rem;
}

.right-article a {
   color: var(--accent-color);
}

.left-article {
   flex: 1;
   padding: var(--padding);
   font-size: 1.2rem;
   text-align: center;
}

.left-article img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
}

.info {
   display: flex;
   flex-wrap: wrap;
   justify-content: space-between;
}

.info img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
}
.left-info {
   flex: 1;
   padding: var(--padding);
   font-size: 1.2rem;
   text-align: center;
}

.right-info {
   flex: 1;
   padding: var(--padding);
   margin-top: 2rem;
   font-size: 1.2rem;
   text-align: center;
}

.banner-container {
   display: flex;
   align-items: center;
   justify-content: center;
   height: 100%;
   padding: 1rem;
}

.banner-container img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
}
/* Stili per il div edilizia visibile */
.div-edile {
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   background-color: var(--primary-color);
   color: white;
   padding: var(--padding);
   border-radius: var(--border-radius);
   box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.titolo-edile {
   font-size: 1.5rem;
   font-weight: 600;
   margin-bottom: 1rem;
   color: var(--accent-color);
}

.div-edile img {
   max-width: 100%;
   height: auto;
   border-radius: var(--border-radius);
   margin: 1rem auto;
}

.link-edile:hover {
   font-size: inherit;
}

img:hover {
   transform: scale(1.05);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
   object-fit: cover;
   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
   transition: transform 0.4s ease, box-shadow 0.3s ease;
}

/* * Footer */

footer {
  background-color: #222;
  color: #fff;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0;
  font-size: 16px;
  color: #ccc;
}

.footerLink {
  color: #00bfff;
  text-decoration: none;
}

/* Social icons */
.social-icons {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-icons li {
  display: inline-block;
}

.social-icons a {
  color: #fff;
  font-size: 24px;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #00bfff;
  transform: scale(1.2);
}

.portfolioLink {
  color: rgb(29, 187, 29);
  text-decoration: none;
}

.portfolioLink:hover {
  color: #00bfff;
  text-decoration: underline;
}

.portfolioLink:visited {
  color: rgb(29, 187, 29);
}

.key-words {
   position: fixed;
   left: -99999999999999;
}

.italic {
   font-style: italic;
}

.small-fs {
   font-size: 1.2rem;
}

.red {
   color: red;
   font-size: 0.8rem;
}

.bold {
   font-weight: bold;
}

.email {
   color: var(--accent-color);
}

.evidenziato {
   background-color: var(--accent-color);
   color: white;
   padding: 0.5rem 1rem;
   border-radius: var(--border-radius);
   font-weight: bold;
}

.underline {
   text-decoration: underline;
}

/* Back to top arrow */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--accent-color);
  color: white;
  font-size: 24px;
  padding: 10px 15px;
  border-radius: 50%;
  text-align: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #15b300;
}

/* Quando visibile */
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}


/* MEDIA QUERIES - Mobile fino a 768px */
@media screen and (max-width: 768px) {
   /* Header in colonna */
   .header {
      flex-direction: column;
      align-items: center;
      text-align: center;
   }

   /* Menu mobile verticale */
   .navbar ul {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;
   }

   /* Servizi - testo più grande e più spazio */
   .servizi-list li {
      font-size: 1.3rem;
      margin-bottom: 1rem;
   }

   /* Layout principali in colonna */
   .servizi-main,
   .info,
   .div-edile {
      flex-direction: column;
      align-items: center;
      text-align: center;
   }

   /* Padding ridotto per spazi piccoli */
   .container,
   .servizi-article,
   .article-aside,
   .left-article,
   .right-article,
   .left-info,
   .right-info {
      padding: 1rem;
   }

   /* Immagini full width su mobile */
   img {
      max-width: 100%;
      height: auto;
   }

   /* Titoli più piccoli per evitare overflow */
   h1 {
      font-size: 1.8rem;
   }
   h2 {
      font-size: 1.5rem;
   }
   h3 {
      font-size: 1.3rem;
   }
}