 /*********impostazioni generali, menu di navigazione e HOME ************/

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: 'Roboto', sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #f4f4f4;
    }

    header {
      background: url('https://images.unsplash.com/photo-1596393030562-23f90e43d6c3') no-repeat center center/cover;
      height: 30vh;
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    header h1 {
      font-size: 3rem;
      background-color: rgba(0, 0, 0, 0.6);
      padding: 1rem 2rem;
      border-radius: 10px;
    }

    .logo {
        height: 40px;
        width: auto;
        vertical-align: middle;
            }

    nav {
      background: #1e3d59;
      /*padding: 1rem;*/
      text-align: center;
      flex-wrap: wrap;
    }

   nav a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: bold;
}

.nav-links a{
  color:#333 !important;
}

    nav a:hover {
      text-decoration: underline;
    }

    .intro {
      padding: 2rem;
      background: white;
      text-align: center;
    }

    .intro h2 {
      font-size: 2rem;
      margin-bottom: 1rem;
    }

    .features {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-around;
      padding: 2rem;
      background: #e0e0e0;
    }

    .feature {
      flex: 1 1 300px;
      margin: 1rem;
      padding: 1.5rem;
      background: white;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      text-align: center;
     
    }

    .feature i {
      font-size: 2rem;
      margin-bottom: 1rem;
      color: #1e3d59;
    }

    footer {
      background: #1e3d59;
      color: white;
      text-align: center;
      padding: 1rem;
      margin-top: 2rem;
    }

/**************i 3 box della home page *****************/
.boxes {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 40px auto;
  flex-wrap: wrap;
}

.box-link {
  text-decoration: none;
  color: inherit;
}

.box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 280px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

/**************icone social network*****************/

.social-icons {
  text-align: center;
  margin-top: 3rem;
}
.social-icons a {
  margin: 0 1rem;
  font-size: 2rem;
  color: #555;
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons a:hover {
  transform: scale(1.2);
  color: #cc6600;
}

/**************menu toggle*****************/
.menu-toggle{
  display:none;
  border:none;
  background:none;
  font-size:1.9rem;
  color:#333 !important;
  cursor:pointer;
}
/**********cookie GDPR privacy***************/
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  font-size: 0.9rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
#cookie-banner p {
  margin: 0;
}
#cookie-banner a {
  color: #ffc107;
  text-decoration: underline;
}
#cookie-banner button {
  background-color: #cc6600;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}
#cookie-banner button:hover {
  background-color: #ff9933;
}


/*********pagina chi-siamo ************/
 * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }
    body {
      font-family: 'Roboto', sans-serif;
      line-height: 1.6;
      color: #333;
      background: #f9f9f9;
    }
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 2rem;
    }
    h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
      color: #fff;
      background: linear-gradient(135deg, #cc6600, #ff9966);
      padding: 1rem 1.5rem;
      border-radius: 15px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.2);
      animation: fadeInDown 1s ease;
      text-align: center;
    }
    h2 {
      font-size: 1.5rem;
      margin-bottom: 2rm;
      color: #555;
      animation: fadeInDown 1.2s ease;
    }
    p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
      animation: fadeInUp 1.3s ease;
      text-align: justify;
    }
    .section-title {
      border-left: 4px solid #cc6600;
      padding-left: 1rem;
      margin-top: 2rem;
      margin-bottom: 1rem;
      font-weight: bold;
      color: #222;
      font-size: 1.3rem;
    }
    ul {
      list-style: disc;
      padding-left: 2rem;
      animation: fadeInUp 1.4s ease;
    }
    ul li {
      margin-bottom: 0.8rem;
    }
    .soci {
      display: flex;
      flex-wrap: wrap;
      gap: 2rem;
      margin-top: 2rem;
    }
    .socio {
      flex: 1 1 250px;
      text-align: center;
    }
    .socio img {
      width: 100%;
      max-width: 250px;
      border-radius: 8px;
      margin-bottom: 0.5rem;
    }
    .socio strong {
      display: block;
      margin-top: 0.5rem;
      color: #cc6600;
    }
    .social-icons {
      text-align: center;
      margin-top: 3rem;
    }
    .social-icons a {
      margin: 0 1rem;
      font-size: 2rem;
      color: #555;
      transition: transform 0.3s ease, color 0.3s ease;
    }
    .social-icons a:hover {
      transform: scale(1.2);
      color: #cc6600;
    }
    @keyframes fadeInDown {
      from { opacity: 0; transform: translateY(-30px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes fadeInUp {
      from { opacity: 0; transform: translateY(30px); }
      to { opacity: 1; transform: translateY(0); }
       }

/*********pagina come operiamo************/
body {
      font-family: 'Roboto', sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f8f9fa;
      color: #333;
      line-height: 1.6;
    }

    header {
      background: linear-gradient(to right, #222, #444);
      color: white;
      padding: 40px 20px;
      text-align: center;
    }

    header h1 {
      font-size: 2.5rem;
      margin: 0;
    }

    header p {
      margin-top: 10px;
      font-size: 1.1rem;
      color: #ddd;
    }

    .timeline {
      position: relative;
      max-width: 1100px;
      margin: 50px auto;
      padding: 0 20px;
    }

    /* Linea centrale */
    .timeline::after {
      content: '';
      position: absolute;
      width: 6px;
      background-color: #ccc;
      top: 0;
      bottom: 0;
      left: 50%;
      margin-left: -3px;
    }

    /* Box degli step */
    .timeline-item {
      padding: 20px 30px;
      position: relative;
      background-color: inherit;
      width: 50%;
    }

    /* A sinistra */
    .timeline-item.left {
      left: 0;
    }

    /* A destra */
    .timeline-item.right {
      left: 50%;
    }

    /* Cerchio */
    .timeline-item::before {
      content: '';
      position: absolute;
      width: 20px;
      height: 20px;
      right: -10px;
      background-color: white;
      border: 4px solid #ff6600;
      top: 20px;
      border-radius: 50%;
      z-index: 1;
    }

    .timeline-item.right::before {
      left: -10px;
    }

    /* Contenuto */
    .timeline-content {
      padding: 20px;
      background: white;
      position: relative;
      border-radius: 10px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.08);
      transition: transform 0.3s ease;
    }

    .timeline-content:hover {
      transform: translateY(-5px);
    }

    .timeline-content h3 {
      margin-top: 0;
      font-size: 1.4rem;
      color: #222;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .timeline-content p {
      color: #555;
      font-size: 0.95rem;
    }

    .timeline-content img {
      width: 100%;
      margin-top: 15px;
      border-radius: 8px;
    }

    /* Fade-in animation */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Mobile */
    @media screen and (max-width: 768px) {
      .timeline::after {
        left: 31px;
      }

      .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
      }

      .timeline-item.right {
        left: 0%;
      }

      .timeline-item::before {
        left: 15px;
      }
    }

/***pagina come operiamo: codice per finanziamento e detrazioni fiscali****/
/* --- Finanziamento: sezione --- */
.finance {
  background: linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  padding: 60px 20px;
}
.finance .finance-wrap {
  max-width: 1100px;
  margin: 0 auto;
}
.finance-title {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 10px;
  color: #222;
}
.finance-title i { color: #cc6600; margin-right: 8px; }
.finance-subtitle {
  text-align: center;
  color: #555;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* KPI cards */
.finance-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.kpi-card i {
  font-size: 1.6rem;
  color: #cc6600;
  margin-bottom: 8px;
  display: inline-block;
}
.kpi-label {
  display: block;
  font-size: .9rem;
  color: #666;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #222;
}
.kpi-suffix {
  font-size: .95rem;
  color: #444;
  margin-left: 4px;
}

/* Box esempio e CTA */
.finance-example {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
.finance-example h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #222;
}
.finance-example h3 i { color: #cc6600; margin-right: 8px; }
.example-list {
  margin: 12px 0 18px 1.2rem;
  color: #444;
}
.btn-cta {
  display: inline-block;
  background: #cc6600;
  color: #fff;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
  margin-right: 10px;
}
.btn-cta:hover { background: #e67300; transform: translateY(-1px); }
.btn-more {
  display: inline-block;
  background: #f1f1f1;
  color: #333;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.btn-more:hover { background: #e9e9e9; }

.finance-notes {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: #fff7f0;
  border: 1px solid #ffe0c2;
  color: #5a3a14;
}

/* Animazioni di ingresso */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Responsive */
@media (max-width: 1024px) {
  .finance-kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .finance-title { font-size: 1.6rem; }
  .finance-kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi-card { padding: 16px; }
}
@media (max-width: 420px) {
  .finance-kpis { grid-template-columns: 1fr; }
}
/* box "calcola il tuo piano" */
.link-section {
    margin: 1rem 0;
    font-size: 1rem;
}
.link-section a {
    color: #004e92;
    text-decoration: none;
    font-weight: bold;
}
.link-section a:hover {
    text-decoration: underline;
}
/****pagina come operiamo: Container  gallery con sfondo colorato per immagini di lavori eseguiti****/
.gallery-section {
    background-color: #f5f5f5; /* sfondo colorato */
    padding: 40px 20px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1000px;
    text-align: center;
}

.gallery-container {
    margin-top: 20px;
}

.swiper-slide img {
    width: 150px;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.swiper-slide img:hover {
    transform: scale(1.05);
}
/****pagina come operiamo:video****/
.examples-section {
  text-align: center;
  padding: 50px 20px;
  background: #f7f7f7;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 900px;
}

.video-btn-container {
  margin-top: 25px;
}

.video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e67e22;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.video-btn:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.video-icon {
  font-size: 22px;
}


/****pagina come operiamo:footer****/

    footer {
      background-color: #222;
      color: white;
      text-align: center;
      padding: 20px;
      font-size: 0.9rem;
      margin-top: 40px;
    }

/*********pagina realizzazioni************/
    body {
      font-family: "Segoe UI", sans-serif;
      margin: 0;
      padding: 0;
      background-color: #f8f9fa;
      color: #333;
    }

    header {
      background-color: #222;
      color: white;
      padding: 20px;
      text-align: center;
    }

    header h1 {
      margin: 0;
      font-size: 2.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    header h1::before {
      content: "🏗️";
      font-size: 1.5rem;
    }

    header p {
      margin: 10px 0 0;
      font-style: italic;
      color: #fff;
    }

    main {
      max-width: 1000px;
      margin: 40px auto;
      padding: 0 20px;
    }

    .intro {
      text-align: center;
      margin-bottom: 40px;
    }

    .intro p {
      font-size: 1.1rem;
      color: #555;
    }

    .swiper {
      width: 100%;
      margin-bottom: 20px;
    }

    .swiper-slide img {
      width: 100%;
      height: auto;
      border-radius: 10px;
      transition: transform 0.3s ease;
    }

    .gallery-thumbs .swiper-slide {
      opacity: 0.5;
      cursor: pointer;
    }

    .gallery-thumbs .swiper-slide-thumb-active {
      opacity: 1;
      transform: scale(1.05);
    }

    footer {
      background-color: #222;
      color: white;
      text-align: center;
      padding: 15px 0;
      margin-top: 40px;
    }
/*********pagina chiedi-un-preventivo************/
.preventivo-section {
  max-width: 600px;
  margin: 40px auto;
  padding: 20px;
  background: #f3f7fb;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.preventivo-section h1 {
  text-align: center;
  color: #fff;
}
.preventivo-section p {
  text-align: center;
  color: #555;
  margin-bottom: 1.5rem;
}
.preventivo-section label {
  display: block;
  margin-top: 1rem;
  color: #333;
}
.preventivo-section input,
.preventivo-section select {
  width: 100%;
  padding: 8px;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.estimate {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: #222;
}
.btn-submit {
  margin-top: 1.5rem;
  padding: 0.8rem;
  width: 100%;
  background: #cc6600;
  color: white;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.btn-submit:hover {
  background: #e67300;
}
.preventivo-section textarea {
  width: 100%;
  padding: 8px;
  margin-top: 0.3rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  resize: vertical;
}
/*********pagina contatti************/


/*********pagina articolo 2 del blog************/

.blocco-immagini-casaclima {
    margin: 40px 0;
}

/* HERO IMAGE */
.img-hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.img-hero img {
    width: 100%;
    display: block;
}

.overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 20px;
    font-size: 20px;
}

.overlay-text span {
    font-size: 14px;
    opacity: 0.9;
}

/* BOX CERTIFICATO */
.box-certificato {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: center;
}

.img-certificato img {
    width: 100%;
    max-width: 350px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.testo-certificato {
    flex: 1;
}

.testo-certificato h3 {
    margin-top: 0;
    color: #1a3d6d;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .box-certificato {
        flex-direction: column;
    }

    .overlay-text {
        font-size: 16px;
    }
}




/**************media-query*****************/

  /* FIX NAVBAR INDEX MOBILE */

@media (max-width:992px){

  .main-nav{
    background:#fff !important;
  }

  .menu-toggle{
    display:block !important;
    color:#333 !important;
  }

  .menu-toggle i{
    color:#333 !important;
  }

  .nav-links{
    background:#fff !important;
  }

  .nav-links a{
    color:#333 !important;
  }
}