.hero-bg {
  background-image: url('../assets/sfondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  animation: bgMove 30s ease-in-out infinite alternate;
}

@keyframes bgMove {
  0% {
    background-position: center;
  }
  50% {
    background-position: center right;
  }
  100% {
    background-position: center left;
  }
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.hero-bg .content {
  position: relative;
  z-index: 2;
}

/* Trasparenza navbar con effetto blur */
    .navbar {
      max-height: 70px;
      background-color: #fff;
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    /* Bordo inferiore su voci del dropdown */
    .dropdown-menu .dropdown-item {
      border-bottom: 1px solid #ddd!important;
    }

    /* Rimuove il bordo all'ultimo item */
    .dropdown-menu .dropdown-item:last-child {
      border-bottom: none;
    }

.logo-navbar {
  max-height: 100%;       /* Non supera mai l'altezza del contenitore */
  height: auto;           /* Mantiene proporzioni corrette */
  width: auto;            /* Opzionale: mantiene proporzioni anche in larghezza */
  object-fit: contain;    /* Evita distorsione */
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}

/* frase */

#centrato-frase

{

    text-align: center;

    height:100%;

    width: 100%;

}

#centrato-frase> div{

    display: inline-block;

    /*width: 90%;*/

    /*height:100%;*/

    margin:50px; 

    padding:5px;

    vertical-align: middle;

    /*border: 1px double #E9E9E9; */

    /*border-radius: 5px;*/

    /*background:#fff;*/

    opacity: 7; 

    opacity: .9; filter: alpha(opacity=90);

    text-align: left;

}





.frase-container { position: relative; max-width:500px; margin: 0 auto;}



.frase-container h4.tema-caption {

    font-size: 16px!important;

    line-height: 18px;

    position: absolute;

    bottom: -10px!important;

}



.frase {

    background-color: #eeeeeec4;

    border-radius: 20px;

    padding: 40px;

    text-align: justify;

    color: #444;

    font-weight: normal;

    font-style: italic;

    /*font-size: 22px;*/

    font-size: 3.5vmin;

    line-height: 34px;

}



.frase-autore, .frase-autore * {

    font-family: palatino, georgia, serif;

    font-size: 23px;

    padding: 20px 40px;

    color: #666;

}



.frase-autore strong {

    text-align: right !important;

}



.frase, .frase a, .frase span {

    color: #777;

    font-family: Georgia;

}



.frase a:hover {

    text-decoration: none;

}



.frase b, .frase strong {

    font-weight: bold;

    font-style: normal;

    font-family: georgia, palatino, serif;

}



.frase em, .frase i {

    font-weight: normal;

    font-style: normal;

    font-family: georgia, palatino, serif;

    font-size: 80%;

    color:#888;

}



.frase-pub-note {

    margin-top: 40px;

    font-style: italic!important;

    font-weight: normal;

    font-style: italic;

    font-family: georgia, palatino, serif;

    font-size: 85%;

    color:#888;

}



.frase-pub-note a {

    text-decoration: underline;

}



.frase-default:before, .frase-default:after {

    font-family: FontAwesome;

    font-style: normal;

    color:#ccc;

    font-size: 30px;

    line-height:40px;

    margin: 0;

    position: absolute;

}



.frase-default:before {

    content: "\f10d";

    top:0;

    left:10px;

}



.frase-default:after {

    content: "\f10e";

    bottom:0;

    right:10px;

}



.frase-in-elenco {

    font-size: 20px;

    line-height: 30px;

}



.frase-in-elenco:before, .frase-in-elenco:after {

    font-size: 18px;

    line-height:30px;

}



.frase-shadow {

    -webkit-box-shadow: 4px 4px 12px #888;

    box-shadow: 4px 4px 12px #777;

}



.frase-storia {

    font-style: normal;

    font-family: palatino, serif;

}



.frase-storia blockquote {

    border-left: 5px solid #ccc;

    margin-bottom: 0px!important;

}



.frase-storia b, .frase-storia strong {

    font-weight: 900;

    font-style: normal;

    font-family: palatino, serif;

    color: #444;

}



.frase-storia em, .frase-storia i, .frase-storia u, .frase-storia blockquote {

    font-style: italic;

    font-family: palatino, serif;

    color:#444;

    font-size: 23px;

}



.frase-immagine {

    font-style: italic;

    font-family: palatino, serif;

    font-size: 18px;

    line-height: 26px;

}



.tema-caption {

    padding: 10px 20px !important;

    position: absolute;

    bottom: 0;

    color: #fff;

    text-shadow: 0 1px 1px #000;

    /*border:1px solid red;*/

    background: rgba(0, 0, 0, 0.3);

    border-radius: 0px 0px 6px 6px;

    opacity: 1;

    line-height: 22px;

    font-size: 16px !important;

    width: 50%;

}

/* frase FINE */

.icon-bar 			

{

    display:                 block;

    width:                   20px;

    height:                  3px;

    margin:                  5px;

    background-color:        #fff;

    -webkit-border-radius:   2px;

    -moz-border-radius:      2px;

    border-radius:           2px;

}

.card:hover {
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
    transform: scale(1.01);
    transition: all 0.2s;
}

.docker-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 600;
    color: #0366d6;
}

#linksocial {
    position: fixed;
    right: 15%;
    top: 70px;
    clear: both;
    text-align: right;
    z-index: 1;
    filter: alpha(opacity=80);
    /*background: rgba(0, 0, 0, 0.4);*/ /* sfondo semi-trasparente */
    border-radius: 12px; /* bordi arrotondati */
    padding: 10px; /* spazio interno */
}

#linksocial img {

    height: 30px;

    width: 30px;

    -webkit-transition: all 1s ease;

    -moz-transition: all 1s ease;

    -o-transition: all 1s ease;

    -ms-transition: all 1s ease;

    transition: all 1s ease;

}

#linksocial img:hover {

    width: 50px;

    height: 50px;

} 

@media screen and (max-width: 768px) {
    #linksocial {
        right: 10px; /* più vicino al bordo su mobile */
        top: 70px;
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* allinea verticalmente a destra */
        gap: 10px; /* spazio tra le icone */
        background: rgba(0, 0, 0, 0.4); /* mantiene lo sfondo */
        border-radius: 12px; /* mantiene arrotondamento */
        padding: 10px;
    }

    #linksocial img:hover {
        width: 40px; /* riduci effetto hover su mobile */
        height: 40px;
    }
}

.cookie-banner, .cookie-preferences {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: rgba(0,0,0,0.9);
  color: #fff;
  padding: 20px;
  z-index: 9999;
}

.cookie-banner.hidden, .cookie-preferences.hidden {
  display: none;
}

.cookie-banner-content, .cookie-preferences-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cookie-banner-buttons, .cookie-preferences-buttons {
  margin-top: 10px;
}

.cookie-banner button, .cookie-preferences button {
  background: #fff;
  color: #000;
  border: none;
  padding: 8px 16px;
  margin: 5px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.cookie-banner button:hover, .cookie-preferences button:hover {
  background: #e0e0e0;
}

.cookie-preferences label {
  display: block;
  margin: 10px 0;
}

#sortableGallery tr {
  cursor: move;
}

