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

        body {
            font-family: "barlow", sans-serif;
            color: #333;
            line-height: 1.6;
        }

        .container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* spazio ai lati su schermi piccoli */
    box-sizing: border-box; /* include il padding nella larghezza totale */
}

        /* Grid System */
        .grid {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 20px;
        }




/* Header */
        header {
            background: #0066FF;
            color: white;
            padding: 15px 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 2000;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

      .header-content {
      
            justify-content: space-between;
            align-items: center;
        }
        

        .logo img{
            width: 150px;
             grid-column: 1 / 3;
        }

        nav{
            grid-column: 3 / 10;

           
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 30px;
            justify-content: center
        }

        nav a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            transition: opacity 0.3s;
        }

        nav a:hover {
           color: #0a2b54;
        }

        .btn-preventivo {
            background: white;
            color: #0066FF;
            padding: 10px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: bold;
            transition: transform 0.3s;
            text-align: center;

             grid-column: 10 / 13;
        }

        .btn-preventivo:hover {
            transform: scale(1.05);
        }


        /* Hero Section */
        .hero {
            background: url(img/termoidraulica2.jpg);
            background-size: cover;
            background-position: center;
            color: white;
            padding: 180px 0 100px;
            margin-top: 50px;
            text-align: center;
           
        }

        .hero h1 {
            font-size: 48px;
            margin-bottom: 30px;
            line-height: 1.2;
        }

        .scroll-indicator {
   
    margin-top: 50px;
    font-size: 12px;
    cursor: pointer;


    
}


.scroll-indicator p{

    font-size: 16px;
font-weight: bold;

}

.scroll-indicator i {
  text-align: center;
    font-size: 24px;
    margin-top: 10px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}



        /* About Section */
        .about {
            padding: 60px 0 0 0;
            
        }

        .about-content {
           
            align-items: center;
        }

        .about-text {
            grid-column: 1/7;
        }

        .about-text h2 {
            font-size: 20px;
            color: #333;
            
        }

        .about-text p {
            margin-bottom: 14px;
            color: #333;
           
            margin-bottom: 20px;
        }

        .btn-primary {
            background: #0066FF;
            color: white;
            padding: 12px 30px;
            border-radius: 25px;
            text-decoration: none;
            display: inline-block;
            font-weight: bold;
            transition: transform 0.3s;
           
        }


          .btn-secondary {
            background: white;
            color:#0066FF;
            border: 2px solid #0066FF;
            padding: 12px 30px;
            border-radius: 25px;
            text-decoration: none;
            display: inline-block;
            font-weight: bold;
            transition: transform 0.3s;
              margin-right: 10px;
              margin-bottom: 10px;
        }

        .btn-primary:hover,  .btn-secondary:hover {
            transform: scale(1.05);
        }

        .about-logo {
            grid-column: 8/13;
            text-align: center;
        }

        .about-logo img {
            max-width: 300px;
            width: 100%;
        }



/* Services Section */
        .services {
              padding: 60px 0 0 0;
            background: white;
        }

        .services h2 {
            font-size: 32px;
            margin-bottom: 30px;
            text-transform: uppercase;
            letter-spacing: 1px;
            min-height: 40px;
        }

       

        .service-card {
    grid-column: span 3;
    background: #f4f4f4;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    align-self: start; /* torna a start */
    display: flex;
    flex-direction: column;
    min-height: 220px; /* altezza minima fissa */
}

.service-card h3 {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #333;
    min-height: 50px; /* spazio per 2 righe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto auto 0; /* spinge la freccia in fondo */
    color: #0066FF;
    font-size: 30px;
    transition: transform 0.3s;
   
}

.service-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    text-align: left;
    margin-top: 15px;
    flex-shrink: 0; /* impedisce la compressione */
}

        .service-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 20px;
            background: #0066FF;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
          
        }

         .service-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}



        .service-card.open .service-arrow {
             transform: scaleY(-1);
        }

        .service-arrow:hover {
               transform: translateY(5px);
        }
       

    

        .service-card.open .service-details {
            max-height: 500px;
        }

        .service-details ul {
            list-style: none;
            padding-left: 0;
        }

        .service-details li {
            padding: 5px 0;
            color: #666;
            font-size: 13px;
        }

        .service-details li::before {
            content: '>';
            margin-right: 8px;
            color: #0066FF;
        }

        .service-details p {
 padding: 5px 0;
            color: #666;
            font-size: 13px;
            font-weight: 700;
        }















        

           /* Contact Section */
        .contact-section {
             padding: 60px 0 0 0;
           
        }


        .contact-form-container {
            grid-column: 1 / 8;
            background-color: #f4f4f4;
            padding: 20px;
            border-radius: 10px;
        }

        .contact-form-container h2 {
            font-size: 28px;
            margin-bottom: 30px;
            text-transform: uppercase;
        }

        .contact-form input,
        .contact-form textarea {
            width: 100%;
            padding: 15px;
            margin-bottom: 15px;
            border: none;
            border-bottom: 2px solid #ddd;
            background: transparent;
            font-family: inherit;
            font-size: 14px;
        }

        .contact-form textarea {
            resize: vertical;
            min-height: 100px;
        }

        .contact-form input:focus,
        .contact-form textarea:focus {
            outline: none;
            border-bottom-color: #0066FF;
        }

        .contact-form button {
            background: #0066FF;
            color: white;
            padding: 12px 40px;
            border: none;
            border-radius: 25px;
            cursor: pointer;
            font-weight: bold;
            transition: transform 0.3s;
        }

        .contact-form button:hover {
            transform: scale(1.05);
        }

        .contact-info-container {
            grid-column: 9 / 13;
          
        }

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

        .contact-info {
            margin-top: 30px;
             display: flex;
             align-items: baseline;
             gap: 20px;
             
flex-wrap: wrap
        }

        .contact-info i{
            padding-right: 30px;
        }

        .contact-info p {
            margin-bottom: 10px;
            font-size: 14px;
        }

          .contact-info p a{
           text-decoration: none;
           color: #0066FF;
           padding-right: 30px;
        }

        .contact-info p a:hover {
        color:#0a2b54;
        }

        .contact-info strong {
            display: inline-block;
            padding-right: 10px;
        }

     .checkbox-container {
    display: flex;
    align-items:flex-start;
    gap: 5px;
    margin: 15px 0;
}

.checkbox-container input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}

.checkbox-container label,
.checkbox-container a {
    font-size: 13px;
    cursor: pointer;
}


        /* Map Section */
        .map-section {
              padding: 60px 0 0 0;
           
        }

        .map-section h2 {
            font-size: 28px;
            margin-bottom: 30px;
            text-transform: uppercase;
        }

        .map-content {
            display: grid;
            grid-template-columns: repeat(12, 1fr);
            gap: 40px;
        }

        .map-address {
            grid-column: 1/5;
        }

        .map-address p {
            font-size: 18px;
            line-height: 1.8;
            
        }

        .map-container {
    grid-column: 6/13;
    background: #E5E7EB;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0; /* importante per il grid */
}

.map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
}

        .map-address ul li{
            list-style: none;

        }

        p.map-text{
            font-size: 13px;
        }

        h5{
            margin-top: 15px;
            font-size: 16px;
        }

.map-address a{
    text-decoration: none;
    color: #0066FF;
}

.map-address a:hover{
 
    color: #0a2b54;
}




        /* Footer */
        footer {
            background: #0066FF;
            color: white;
            padding: 40px 0 20px;
            margin-top: 60px;
        }

        .footer-content {
          
            margin-bottom: 30px;
        }

        .footer {
            grid-column: span 3;
        }

        .footer h4 {
            font-size: 16px;
           
        }

        .footer p {
            font-size: 13px;
            line-height: 1.8;
             margin-bottom: 15px;
        }

        .footer a{
            text-decoration: none;
            color: white;
        }

        .footer ul li{
            list-style: none;
        }

        .footer-legal{
grid-column: 8/13;
        }

        .footer-bottom {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255,255,255,0.2);
            font-size: 12px;
        }

        .footer-certificazioni img{
    width: 100%;
    max-width: 300px;
    height: 80px; /* altezza fissa */
    object-fit: contain;
    margin-bottom: 20px;
    
  
        }

        .footer img{
            max-width: 200px;
        }

        .certificato-1{
            grid-column: 1/4;
        
        }
        .certificato-2{
            grid-column: 5/8;
            margin: 0 auto;
        }
        .certificato-3{
            grid-column: 9/13;
            margin-left: auto;

        }



        /*RESPONSIVE*/

        /* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    grid-column: 11 / 13;
    justify-self: end;
   /* z-index: 1001;*/
    width: 30px;
    height: 24px;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    position: absolute;
    left: 0;
    transition: 0.3s;
    border-radius: 10px;
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* Stato attivo */
.hamburger.active span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


@media (max-width: 768px) {
    
     .container {
        padding: 0 15px;
    }

    .grid{
        gap: 10px;
    }
   

    .logo img{
        grid-column: 1 / 2;
        width: 100px;
    }

    .btn-preventivo {
        grid-column: 5 / 12;
        justify-self: end;
        padding: 8px 16px;
        font-size: 14px;
    }

    .hamburger {
        display: flex;
        grid-column: 12 / 13;
        justify-self: end;
    }

   nav {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background: #0066FF;
        transition: top 0.3s;
        padding: 40px 20px;
        grid-column: 1 / -1;
        margin-top: 55px;
    }

    nav.active {
        top: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    nav a {
        font-size: 24px;
    }


.hero {
                padding: 90px 0 70px;
            }

            .hero h1 {
                font-size: 28px;
            }

            .about-text, .about-logo {
                grid-column: 1/13;
            }

            .about-logo {
                margin-top: 20px;
            }

.about-text h2{
    font-size: 18px;
}

.about-text p{
    font-size: 14px;
}






.service-card {
                grid-column: span 6;
            }

 .contact-form-container, .contact-info-container {
                grid-column: 1/13;
            }

            .contact-info-container {
                margin-top: 40px;
             
            }


        


.map-content {
        gap: 20px;
    }
    
    .map-address {
        grid-column: 1/13; /* occupa tutta la larghezza */
    }
    
    .map-container {
        grid-column: 1/13; /* occupa tutta la larghezza */
        height: 300px;
    }
}







 @media (max-width: 480px) {



    .btn-primary{
margin-bottom: 10px;
font-size: 10pt;
    }

    .btn-secondary{
        font-size: 10pt;
            }

      .about-logo img {
max-width: 200px;
      }
       

    
  .btn-preventivo {
        grid-column: 3 / 11;
        padding: 6px 8px;
        font-size: 10px;
        
    }

      .hamburger {
        width: 26px;
        height: 20px;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
    }

    .logo {
            width: 100px;
        }

   
    .container {
        padding: 0 15px;
    }




   

    .service-card {
                grid-column: 1/13;
            }


 .map-section {
        padding: 40px 0;
    }
    
    .map-content {
        gap: 20px;
    }
    
    .map-address {
        grid-column: 1/13;
    }
    
    .map-container {
        grid-column: 1/13;
        height: 250px;
    }
    
    .map-section h2 {
        font-size: 22px;
    }
    
    .map-address p {
        font-size: 16px;
    }


    
        .footer {
            grid-column: 1/13;
            text-align: center;
        }



} 

