/*COSTANTI*/
:root {
  --colore-principale: #1188f6;

}

body{
    background-image: url('immagini/sfondo_2.png'); 
    background-size: cover;
    background-attachment: fixed;       
    background-position: center;  
    background-repeat: no-repeat;
    color: #374151;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    font-size:20px;
    font-family: Arial, Helvetica, sans-serif;
}
/*@font-face {
    font-family: "Gruenewald VA";
    src: url("fonts/gruenewald-va.woff2") format("woff2"),
        url("fonts/gruenewald-va.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    line-height: 1.8;
}*/


@keyframes apparizione {
    from {
        opacity: 0;                 /* Invisibile all'inizio */
        transform: translateY(30px); /* Spostato di 30px verso il basso */
    }
    to {
        opacity: 1;                 /* Completamente visibile alla fine */
        transform: translateY(0);    /* Torna alla sua posizione originale */
    }
}

header {
    
    position: sticky;
    top: 0;
    z-index: 1000;
    background-image: url('immagini/navbar_background.png');    
    background-size: cover;  
    max-width:100%;

}
.section-navbar{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 15px;
    padding: 10px 12%;
    width: 100%;
    box-sizing: border-box;
    
}
.section-navbar a{
    margin: 0;
    display: flex;
    
}
.section-navbar h3{
    margin: 0;
    color:#374151;
    line-height: 1.2; /*riduce spazio tra le linee*/
    box-shadow: 0px 3px 5px #1187f68b;
    border-radius: 8px;
    width: auto;
    padding:7px;
    background-color: #1187f617;
}

main{
    flex: 1;
}
.navbar{
    position: fixed;
    z-index: 9999;
    min-width: 100px;
    display:grid;
    grid-template-rows: auto auto auto auto auto auto;
    background-color: white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    text-align: center;
}
.figure {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    height:70px;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
}
.figure:hover,
.figure.hover-attivo{
background-color: #f1f1f1;
    color: #0606f8;
    text-shadow: 
        0 0 10px var(--colore-principale), 
        0 0 20px var(--colore-principale), 
        0 0 40px var(--colore-principale), 
        0 0 80px var(--colore-principale), 
        0 0 90px var(--colore-principale);
}
.figure p{
    font-size:30px;
}
.custom-logo {
    width: 32px;      
    height: 32px;
    vertical-align: middle;
    transition: transform 0.2s ease, filter 0.2s ease; /* Aggiunta transizione per il filtro */
}

/* Effetto sull'immagine quando si passa sopra alla figura o quando la figura è attiva */
.figure:hover .custom-logo,
.figure.hover-attivo .custom-logo {
    transform: scale(1.2);
    /* drop-shadow segue i contorni trasparenti del PNG, box-shadow farebbe un quadrato */
    filter: drop-shadow(0 0 8px var(--colore-principale)); 
}


.btn-container{
    position: relative;
    display: inline-block; 
}
.btn-navbar {
    display: none;
    position:absolute;
    top: 0;  
    left: 100%; 
    margin-top: 10px;
    margin-left: 2px;    
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    border-radius: 4px;
}
.btn-navbar a {
color: #333333;
font-weight: bold;
padding: 12px 16px;
text-decoration: none;
display: block;
max-height: 70px;
}
.btn-navbar a:hover,
.btn-navbar a.h-on {
    background-color: #f1f1f1;
    color: var(--colore-principale);
    text-shadow: 
        0 0 10px var(--colore-principale), 
        0 0 20px var(--colore-principale), 
        0 0 40px var(--colore-principale), 
        0 0 80px var(--colore-principale), 
        0 0 90px var(--colore-principale);
}
.btn-navbar .dropdown-content {
color: #333333;
font-weight: bold;
padding: 12px 16px;
text-decoration: none;
display: block;
}
.btn-container:hover .btn-navbar {
    display: block;
}
.principale{
    display:flex;
    justify-content: center;
    align-items: center;
}

footer{
    text-align: center;
}


/*.Button{
    display: flex;
    justify-content: center; 
    width: 100%;
    height: 80px;
    
    
}
.Button table{
    width: 100%;
    max-width: 1200px;
}

.Button button{
    background :none;
    border: none;
    padding:0;
    color: #374151;
    font-size : 25px;
    cursor: pointer;
    font-family: Arial, cursive;

    
}
.Button button:hover {
    color: #0606f8;
    text-shadow: 
        0 0 10px rgb(20, 20, 255), 
        0 0 20px rgb(15, 15, 255), 
        0 0 40px rgb(10, 10, 252), 
        0 0 80px rgb(5, 5, 246), 
        0 0 90px rgb(0, 0, 253);
}*/

#nav-contatti p{
    font-size: 18px;

}
#nav-contatti .par-contatti{
    font-size: 20px;
    line-height: 50px;
    font-weight:bold;
}

.sezione-colonne {
    width: 100%;
    display: flex;
    justify-content: center; 
    align-items: center;    
    gap: 50px;     
    font-size: 20px;
}

.colonna {
    flex: 1;
    width: 100%;
    max-width: 700px;
    font-size: 25px;
    display: flex;
    justify-content: center; 

}          
.table{
        display: grid;
        grid-template-rows: auto auto auto auto auto auto auto auto auto auto;
        padding:10px;
        margin-top: 100px;
    }

.colonna-immagine{
    margin-right:100px;
    display: flex;
    justify-content: center;  
    align-items: center;     
    height: 200px;
    margin-top: 100px;
    margin-bottom: 100px;

}
.colonna-immagine img{
    width: auto;
    max-width: 100%;
    height: 300px;
    object-fit: contain;

}
.colonna-testo{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 50px;
    font-weight: bold;
}
.colonna-testo h2{
    color:white;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    background-color: black;
    border-radius:7px;
    width: 250px;
    height: 50px;
    display: flex;
    align-items:center;
    justify-content: center;
}

.grid{
    display:grid;
    grid-template-rows: auto auto auto auto;
    place-items: center;
}

.title-grid{
    animation: apparizione 2s ease-out forwards;
    display: grid;
    position:relative;
    place-items: center;
    margin-top:50px;
    text-align: center;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    background-color: var(--colore-principale);
    border-radius:10px;
    width: 1400px;
    height: 100px;
}

.title-grid h1{
    font-size:4rem;
    color:white;
}
.title-grid h2{
    color:white;
}
.btn-grid{
    display: grid;
    grid-template-columns: auto auto auto auto;
    width: 80%;
    margin-top: 20px;

}
.btn-grid a{
    text-decoration: none;
}
.btn-grid button{
    color:white;
    font-weight: bold;
    font-size: 25px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    background-color: black;
    border-radius:10px;
    border:none;
    width: 250px;
    height: 70px;
    display: flex;
    align-items:center;
    justify-content: center;
}
.btn-grid button:hover {
    background-color: rgb(60, 60, 60);
}

/*gestione box scorrimento immagini*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.Images {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 700px;
    font-family: sans-serif;
}


/* Contenitore principale del pannello */
.carousel-container {
    position: relative;
    width: 80%;
    max-width: 800px;
    height: 450px;
    overflow: hidden;

}

/* Traccia che contiene tutte le immagini allineate */
.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    
}
.nascosto{
    transition:none;
    pointer-events: none;
}
/* Stile della singola diapositiva */
.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /*object-fit: cover;  Mantiene le proporzioni senza distorcere */
}



/* Pulsanti di navigazione (Frecce) */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.2s;
    user-select: none;
    z-index: 10;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.9);
}

.nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.btn-left {
    left: 15px;
}

.btn-right {
    right: 15px;
}
#nav-contatti a{
    font-size: 18px;
}

/*GESTIONE MENU' A TENDINA NAVBAR


.dropdown-logo {
  position: relative;
  display: inline-block;
}
.dropdown-logo img{
    width:500px;
    height:auto;
}


.dropdown-navbar {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 500px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  margin-top: 2px;
}


.dropdown-navbar a {
  color: #333333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  height:100px;
}


.dropdown-navbar a:hover {
  background-color: #f1f1f1;
    color: #0606f8;
    text-shadow: 
        0 0 10px blue, 
        0 0 20px blue, 
        0 0 40px blue, 
        0 0 80px blue, 
        0 0 90px blue;
}


.dropdown-logo:hover .dropdown-navbar {
  display: block;
}*/




/*GESTIONE MENU' A TENDINA SERVIZI*/

/* Contenitore principale */
.dropdown {
  position: relative;
  display: inline-block;
}


/* Contenitore del menu nascosto di base */
.dropdown-content {
  display: none;
  /*position: absolute;*/
  top: 0;  
  left: 100%; 
  margin-left: 2px;    
  background-color: rgba(179, 225, 238, 0.717);
  min-width: 200px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 4px;
  
}

/* Stile dei singoli link nel menu */
.dropdown-content a {
  color: #333333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  max-height: 70px;
}

/* Cambia sfondo alle opzioni quando ci passi sopra */
.dropdown-content a:hover {
  background-color: rgba(151, 225, 250, 0.808);
    color: var(--colore-principale);
    text-shadow: 
        0 0 10px var(--colore-principale), 
        0 0 20px var(--colore-principale), 
        0 0 40px var(--colore-principale), 
        0 0 80px var(--colore-principale), 
        0 0 90px var(--colore-principale);
}

/* Mostra il menu quando passi il mouse sul contenitore */
.dropdown:hover .dropdown-content {
  display: block;
}



/*GESTIONE PANNELLO RICERCA*/

/* Pulsante principale per aprire la ricerca 
.btn-apri-ricerca {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    color: white;
    border: none;
    border-radius: 4px;
}*/

/* Pannello di ricerca nascosto di default */
/*.pannello-ricerca {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding-top: 50px;

    visibility: hidden;
    opacity: 0;

    transition: opacity .3s;
    z-index: 9999;
}

.pannello-ricerca.attivo {
    visibility: visible;
    opacity: 1;
}*/

.contenitore-ricerca{
    position: relative;
    width: 500px;
    max-width: 100%;
    margin-top:0px;
}


.input-ricerca {
    width: 100%;
    padding: 15px;
    font-size: 22px;
    border-radius: 8px;
    border: none;
    box-sizing: border-box;
}

.menu-tendina {
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;

    background: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid #ccc;
    border-top: none;

    box-shadow: 0 4px 12px rgba(0,0,0,.2);

    max-height: 300px;
    overflow-y: auto;

    display: none;
    z-index: 10000;
}

.menu-tendina.attivo {
    display: block;
}

.menu-tendina a {
    display: block;
    padding: 12px;
    color: #333;
    text-decoration: none;
}

.menu-tendina a:hover {
    background: #f1f1f1;
}


/*DESIGN CARDS*/


.card{
    display: grid;
    grid-template-columns: 700px 700px;
    align-items: center; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    margin-bottom: 100px;
    scroll-margin-top: 120px;
    animation: apparizione 2s ease-out forwards;
     
}
.card:hover{
    background-color: rgba(78, 163, 253, 0.309);
}

@starting-style {
.box {
    opacity: 0;
    transform: translateY(30px);
}
}

/* Stato visibile */
.box{
    transition: opacity 0.8s ease, transform 0.8s ease;
    opacity: 1;
    transform: translateY(0);
}

/*DESIGN EMOJI*/
.custom-emoji {
    width: 32px;      
    height: 32px;
    vertical-align: middle;
    transition: transform 0.2s ease;
}


/*.custom-emoji:hover {
    transform: scale(1.2);
}*/

.pdf:hover {
    color:#333;
}

/*DESIGNE FOOTER*/
.custom-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px 20px;
    text-align: center;
    border-top: 3px solid var(--colore-principale);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
}

.footer-content p {
    margin: 0 0 20px 0;
    color: gray;
    font-size: 1rem;
}


.btn-contatti {
    display: inline-block;
    background: var(--colore-principale);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
}


.btn-contatti:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}


.footer-bottom {
    margin-top: 25px;
    font-size: 0.8rem;
    color: #666;
}