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

html{
    scroll-snap-type: y mandatory;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    padding:0;
    overscroll-behavior-y: none;
}

#logo{
    position:fixed;
    left:0;
    right:0;
    top:3em;
    padding:1em;
    display:flex;
    align-items: flex-start;
    z-index:3;
    justify-content: center;
    opacity: 0;
}

#logo.fade-in{
    opacity: 1; /* Imposta l'opacità finale a 1 */
    transition: opacity 1s ease-in-out; /* Imposta la durata della transizione. Modifica questo valore a tuo piacimento */
}

#logo img{
    width:200px;
    transition: 0.3s ease-in-out;
   /* filter: invert(100%); */
}

#logo.small-logo {

}

#logo.small-logo img {
    width:111px;  /* Adjust this value to fit your needs */
}


.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align:center;
}

.block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5em 2em 2em 2em;
    min-height: 100vh;
    scroll-snap-align: start;
    opacity: 0;
}

.block button {
    background-color: #007BFF;  /* Cambia per adattarsi al colore del tuo sito web */
    color: white;  /* Colore del testo */
    border: none;  /* Rimuove i bordi */
    padding: 0.5em;  /* Imbottitura intorno al testo */
    text-align: center;  /* Allinea il testo al centro */
    text-decoration: none;  /* Rimuove il sottolineamento */
    font-size: 21px;  /* Dimensione del testo */
    margin: 0.5em 1em 0.5em 1em;  /* Margine intorno al pulsante */
    cursor: pointer;  /* Cambia il puntatore del mouse in una "mano" quando passa sopra */
    transition-duration: 0.4s;  /* Durata dell'effetto di transizione */
        display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width:250px;
}

.block button:hover {
    background-color: #0056b3;  /* Colore dello sfondo quando il mouse passa sopra */
    color: white;  /* Colore del testo quando il mouse passa sopra */
}

.block button i {
    margin-right:0.3em;
    color: white;  /* Colore del testo quando il mouse passa sopra */
}


.block-content {
    width:90%;
    margin:0 auto;
}

.title {
    font-size: 2.5em;
    font-weight: 700;
    margin: 1em auto 0.5em auto;
    font-family: 'Syne', sans-serif;
    animation-delay: 0.3s;
    opacity: 0;
}

.title .material-icons{
    display:block;
    font-size:64px;
}

.content {
    font-size: 1.2em;
    line-height: 1.6;
    animation-delay: 0.5s;
    opacity: 0;
}


#intro {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#intro video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(-50%);
    background-size: cover;
    transition: 1s opacity;
}

#intro .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 164, 220, 0.8);
    z-index: 2;
}

#intro .block-content {
    padding-top:7em;
    position: relative;
    z-index: 3;
    color:#ffffff;
}

.scrolldown{
    color: #fff;
    font-size:4em;
    font-family: 'Material Icons';
    animation: scroll 2s ease-in-out infinite;
    margin:0.3em auto 0 auto;
}



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

    

@media (min-width: 900px) {

    #logo{
        top:8em;
    }

    #logo img{
        width:250px;
        transition: 0.3s ease-in-out;
    }

    #logo.small-logo{
        top:0;
        justify-content:flex-start;
    }

   .block-content {
        width:80%;
    }
  .block-content .title {
        font-size: 4.5em;
    }

.block-content .content {
        width:80%;
        margin:0 auto;
    }
}





/* Colori di sfondo per ogni sezione */

#missione {
    background: linear-gradient(rgba(3, 93, 126,1), rgba(3, 93, 126,0.7)), url('trasformazione.jpg') center no-repeat;
    background-size: cover;
    color:#f5f5f5;

}

#trasformazione{
    background: linear-gradient(rgba(4, 164, 220), rgba(3, 93, 126,0.7)), url('innovazione.jpg') center no-repeat;
    background-size: cover;
    color:#fff;
}



#team {
    background: linear-gradient(rgba(3, 93, 126,1), rgba(3, 93, 126,0.7)), url('team.jpg') center no-repeat;
    background-size: cover;
    color:#F8F8F8;
}

#servizi{
    background: linear-gradient(rgba(4, 164, 220), rgba(3, 93, 126,0.7)), url('mercati.jpg') center no-repeat;
    background-size: cover;
    color:#ffffff;
}


#servizi-logistic{
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255,0.8)), url('logistic.jpg') center no-repeat;
    background-size: cover;
}

#servizi-automotive{
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255,0.8)), url('auto.jpg') center no-repeat;
    background-size: cover;
}

#servizi-power{
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255,0.8)), url('electro.jpg') center no-repeat;
    background-size: cover;
}

#servizi-industrial{
    background: linear-gradient(rgba(255, 255, 255,1), rgba(255, 255, 255,0.8)), url('industrial.jpg') center no-repeat;
    background-size: cover;
}

#contatti {
    flex-flow: column wrap;
    background: linear-gradient(rgb(18, 113, 144), rgba(18, 113, 144,0.7)), url('contact.jpg') center no-repeat;
    background-size: cover;
    color:#fff;

}

#dove-siamo{
    background-color:rgba(3, 93, 126,0.1);
}

#dove-siamo ul{
list-style: none;
margin:0 auto;
text-align:center;
padding:0;
}

#dove-siamo ul li{
        font-family: 'Syne', sans-serif;
        padding:1em;
        font-size:1em;
        color:#fff;
        background-color:rgba(3, 93, 126,1);
        font-weight:700;
        margin:1em auto;
        border-radius:32px;
}


@media (min-width: 900px) {

#dove-siamo ul li{
display:inline-block;   
font-size:2em;
margin:1em;
}

}


.servizi-items ul {
    list-style: none;
    padding: 0;
    margin:3em auto;
    text-align: center; /* Allinea il contenuto al centro */
    display:flex;
    align-content: space-between;
    gap:1em;
align-items: flex-start;
    justify-content: center;
    flex-wrap:wrap;
    width:80%;
}

.servizi-items li {
    text-align:center;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: column;
    margin-bottom: 10px;
    height: 200px;
    width: 200px;
    border-radius: 50%; 
    background-color:  
    font-weight: bold;
    background: linear-gradient(rgba(0, 0, 0,0.7), #56666a);
    animation-delay: 0.7s;
    opacity: 0;
}

.servizi-items li .material-icons {
    color: white;
    margin-bottom: 10px;
    font-size: 3em; /* Modifica questa dimensione per controllare quanto grande vuoi che sia l'icona */
}

/* Potrebbe essere necessario aggiungere una regola CSS per controllare la dimensione del testo. */
.servizi-items li span {
    font-size: 0.8em; /* Modifica questa dimensione per controllare quanto grande vuoi che sia il testo */
    max-width:150px;
    color: white;
}




#processo {
    flex-flow: column wrap;
    background: linear-gradient(rgba(3, 93, 126,1), rgba(3, 93, 126,0.7)), url('process.jpg') center no-repeat;
    background-size: cover;
    color:#fff;
}


.process-flow {
    display: none;
    align-items:flex-start;
    justify-content:flex-start;
    align-content: space-between;
    flex-direction:row;
    margin:3em auto;
    overflow-x: scroll;
    width:100%;
    border-radius: 9px;
    padding:2em;
    background-color: rgba(0,0,0,0.3);
}

.step {
    width:14.28%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1em;
    margin:2em;
}

.circle {
    width: 5em;
    height: 5em;
    background-color: rgba(3, 93, 126,1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.material-icons {
    color: #999;
}



#footer {
margin:3em auto;
    font-size:1em;
}

#footer .legal{
    margin-top:1em;
    font-size:1em;
}

#footer a{
    color:#fff;
}

.animate {
    animation-name: fadeAndGrow;
animation-duration: 0.3s;
animation-timing-function: ease-in-out;
animation-fill-mode: forwards;
  }
  
  @keyframes fadeAndGrow {
    0% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }
  

  #cookie-banner{
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 980px;
    z-index: 9999;
    background: rgba(3, 93, 126, 0.96);
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 1.2em;
}

.cookie-banner-content{
    display: flex;
    flex-direction: column;
    gap: 1em;
    text-align: left;
}

.cookie-banner-content p{
    font-size: 1em;
    line-height: 1.5;
}

.cookie-banner-actions{
    display: flex;
    flex-wrap: wrap;
    gap: 0.8em;
    align-items: center;
}

#cookie-banner button{
    background-color: #04a4dc;
    color: white;
    border: none;
    padding: 0.7em 1.2em;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease-in-out;
}

#cookie-banner button:hover{
    background-color: #035d7e;
}

#cookie-banner a{
    color: #fff;
    text-decoration: underline;
    font-weight: 700;
}

body.cookie-banner-hidden #cookie-banner{
    display: none;
}

@media (min-width: 900px){
    .cookie-banner-content{
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2em;
    }

    .cookie-banner-content p{
        margin: 0;
        flex: 1;
    }
}