
html {
  scroll-behavior: smooth;
}

body {
    margin:0;
    color: #333333;
}

header {
    display: flex;
    flex-direction: column;

}
#menu-toggle {
  display: none;
}

nav {
    position: sticky;
  top: 0;
  z-index: 1000; 
    background: #f1e9dd;
    color: black;
    padding: 10px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0.9;
}

nav ul{
    font-family:'Inter', sans-serif;;
    list-style: none;
    display: flex;
    gap: 20px;
    text-transform: capitalize;
    justify-content: right;

}

a {
    text-decoration: none;
    color: inherit;
    font-family: inherit;
}

li {
    cursor: pointer;
}

li:hover {
    color: #4A6A88;
}

#logo {
  width: 100px;
  height: 100px;
}

#topheader {
   background: black;
   color: white;

   display: flex;
   justify-content: space-between;
   padding: 15px 30px;

   font-size: 14px;
}

#slider {
  background-image: url('../assets/header3.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
 

  height: 40vh;
  padding: 50px;
  display: flex;
  justify-content: center;
  align-items: start;
  flex-direction: column;

  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 36px;
  color: #f1e9dd;
  margin-bottom: 0;
}

video {

       width: 100%;
}



h2 { 
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size:38px;
    grid-column: 1/3;
}
#mainsec p {
    line-height: 1.4;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

#mainsec{
   display: flex;
   padding: 50px;
   color: #333333 ;
   background: #F9F6F2; /* #f0e8db; */
   font-size:20px;
   justify-content: center;
   align-items: center;
   gap: 50px;

}


#cta {
 flex-grow: 1;

}



.sideimg {
    margin-top: 30px;
    width: 300px;
    border-radius: 10px;
    flex-grow: 1;
}



.action {
    background-color: #4A6A88;
    color: white;
    border-radius: 10px;
    border: 1px solid lightblue;
    padding: 10px 20px;
    font-size: 22px;
    font-family: serif;
    margin-top: 20px;
    cursor: pointer;
    text-align: center  ;
}

.action:hover {
    background-color: #395673;
    color: white;
    text-decoration: none;
    
}

#secondsection {
   text-align: center;
   background: #8ba7c1;
  /* background-image: url('../assets/church-home-2.jpg');
   background-attachment: fixed;*/
   
   opacity: 1;
   padding: 50px;
    font-family: 'Playfair Display', serif;
   color: white;
   font-size: 22px;
}

#features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    padding: 30px;
    gap: 20px
}

#features-grid p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    margin-top: 0.1;
}


h3 {
    margin-bottom: 0;
    font-size: 24px;
    font-weight: 500;
}

.feature {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    font-size: 18px;
}

.featureicon {
    width: 60px;
}

#thirdsection {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
   text-align: center;
   background-image: url('../assets/church-sect.jpg');
   background-attachment: fixed;
  
   padding: 50px;
    
   color: white;
   font-size: 22px;
}

#thirdsection .lead {
    font-size: 30px;
    font-weight: 500;
}

 #il-progetto {
    
    background: #333333;
    padding: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color:  #f1e9dd;

 }

 .il-progetto-content {
   display: flex;
   margin-bottom: 50px;

 }

 #il-progetto h3 {
    font-family: Playfair Display, serif;
 }

 .projimg {
    width: 300px;
    object-fit: cover;
    height: auto;
    
    border-radius: 30px;
    margin-right: 50px;
    margin-top: 30px;
    
 }

  .chisonoimg {
    width: 400px;
    height: 300px;
    
    border-radius: 30px;
    margin-left: 50px;
    margin-top: 50px;
 }

  #services-section {
   background-image: url('../assets/church-services.jpg');
   background-attachment: fixed;
    background-position: top center;
    padding: 50px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    color:  #f1e9dd;

 }

   #services-section h3 {
    font-family: 'Inter', sans-serif;
    text-align: center;
    color:white;
    font-size: 32px;
    margin-bottom: 30px;
   }

 .service-box {
   background: #f1e9dd;
   color: #333;
   padding-top: 20px;
   padding-bottom: 50px;
   border-radius: 10px;
   text-align: center;
   flex: 1;
   margin: 10px;
   box-shadow: 5px 5px 10px rgba(255, 255, 255, 0.8);
 }
 .service-box.complete {
  background: #F5E4B5
 }

 .span-price {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 300;
    color: #4A6A88;
 }

 .service-box ul {

   text-align: left;
   margin-bottom: 30px;
 }

 .service-box ul li {
   cursor: default;
 }

 .price-section {
  margin-bottom: 50px;
 }

 .price {
  font-family: Playfair Display, serif;
    font-size: 38px;
    font-weight: 500;
    margin-top: 0px;
    line-height: 0.9;
 }

 .services-container {
   display: flex;
   margin-bottom: 70px;
 }

 #services-section h3 {
    font-family: Playfair Display, serif;
 }

#faq-section {
  background-color: #f4f1ec;
  padding: 60px 20px;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

#faq-section h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 40px;
}

.faq-container {
  display: flex;
  padding: 0 100px;
  text-align: left;
  gap: 20px;
}

.faq-column {
  flex: 1;
}
.faq-item {

  margin-bottom: 20px;
  border-bottom: 1px solid #ccc;

}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 20px;
  font-weight: bold;
  color: #4A6A88;
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #2f4d67;
}

.faq-answer {
  overflow: hidden;
  height: 0;
  transition: height 0.4s ease;
}



.faq-item.active .faq-answer {
  max-height: 300px; /* abbastanza grande da contenere la risposta */
  padding-bottom: 15px;
}

#contatti {

    background: #f1e9dd;
    padding: 50px;
    font-family: 'Inter', sans-serif;
    color: #333333;
    text-align: center;
}

#contact-section {
  background-color: #f5f5f5;
  padding: 50px;
  font-family: 'Segoe UI', sans-serif;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 280px;
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.contact-info p {
  margin: 10px 0;
  font-size: 18px;
}

.contact-info a {
  color: #4a6a88;
  text-decoration: none;
}

.social-icons {
  margin-top: 20px;
}

.social-icons a img {
  width: 32px;
  margin-right: 15px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-icons a:hover img {
  opacity: 1;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

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

.contact-form label {
  font-weight: 600;
  margin: 10px 0 5px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: white;
}

.contact-form button {
  margin-top: 20px;
  padding: 12px;
  font-size: 18px;
  background-color: #4a6a88;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #395673;
}


#site-footer {
  background-color: #2b2e32;
  color: white;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo img {
  width: 120px;
  margin-bottom: 10px;
}

.footer-logo p {
  font-size: 20px;
  margin: 0;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-links ul li a {
  color: #ccc;
  text-decoration: none;
}

.footer-links ul li a:hover {
  text-decoration: underline;
}

.footer-contact p,
.footer-contact a {
  color: #ccc;
  font-size: 15px;
  text-decoration: none;
}

.footer-social a img {
  width: 28px;
  margin-right: 12px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 14px;
  color: #aaa;
  border-top: 1px solid #444;
  padding-top: 15px;
}
  

@media (max-width: 768px) {
  #mainsec {
    flex-direction: column;
  }

  #menu-toggle {
    display: block;
      width: 30px;
      background: #f7f4e8;
  height: 30px;
  border: 1px solid #94a0ac;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 6px;
  transition: 0.3s ease;

  }
  #nav-links {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  background: #f1f0dd;
  width: 100%;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
  }

  #header {
    padding: 0px;
    margin-bottom: 0px;
  }



nav ul{
    
    margin-top:2px;
    padding: 0;
    align-items: center;
    padding: 20px 0px;
}

  #nav-links.show {
    display: flex;
      max-height: 500px; /* abbastanza per contenere i link */
  opacity: 1;
  transform: translateY(0);
  }


    #slider {
      background-attachment: unset;
    background-position: center center;
    background-size: cover;
    height: 30vh;
    font-size: 24px;
    padding: 30px 20px;
  }

  .sideimg {
    align-self: center;
  }

    .faq-container {
    flex-direction: column;
    padding: 0 20px;
  }

  #features-grid {
    display: flex;
    flex-direction: column;
    padding: 50px;
}


  .contact-container {
    flex-direction: column;
  }

   .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    margin-top: 10px;
  }

   .il-progetto-content {
   display: flex;
   flex-direction: column;
   margin-bottom: 0px;

 }
  .projimg {
    width: 300px;
    object-fit: cover;
    height: auto;
    border-radius: 10px;
 }

  .chisonoimg {
    width: 100%;
    object-fit: cover;
    height: auto;
    border-radius: 10px;

    margin-left: 0px;
    margin-bottom: 30px;

 }

 .services-container{
     display: flex;
   margin-bottom: 70px;
     flex-direction: column;
     align-items: center;
    
 }

 .service-box {
    margin: 10px 0;
    flex: none;
    width: 100%;
   
 }

}