body {
  padding-top: 56px;
}

body.layout-home {
  padding-top: 0px;
}

body.layout-singlelogin {
  padding-top: 0px;
}



/* featurebox defaults */
#e107bootstrapcarousel .carousel-item {
  height: 65vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

#e107fullpagecarousel .carousel-item {
  height: 100vh;
  min-height: 300px;
  background: no-repeat center center scroll;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  background-color: #272B30;
  color: white;
}


ul.social-buttons li a {
    font-size: 20px;
    line-height: 50px;
    display: block;
    width: 50px;
    height: 50px;
    -webkit-transition: all .3s;
    transition: all .3s;
    color: #fff;
    border-radius: 100%;
    outline: 0;
    background-color: #212529;
}


/* fix for comment avatar */

.rounded-circle img.rounded {
    border-radius: 50%!important;
}

@media (min-width: 768px) {
    .offset1 {
        margin-left: 8.33333%;
    }
}

/*

.list-group-item.active a {
    z-index: 2;
    color: #fff;
    background-color: #007bff;
    border-color: #007bff;
}
*/

/* fix for caret bootstrap user nav */
.profile-photo-small {
  display: inline;
}

/* fix for fixed-top on login page - to save custom header */
.layout-singlelogin .fixed-top {
  position: initial;
}

/* fix for too small core login box width */

#login-template {
    max-width: 95%;
}

@media (min-width: 768px) { 
  #login-template {
      max-width: 800px;
      margin-right: auto;
      margin-left: auto;
  }
}

/* fix for too big margin */
#login-template .login-page-footer {
    margin-bottom: initial;  
}



#carousel-hero.carousel {
  position: relative;
  left: 0;
  top: 70px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  margin-bottom: 60px;
}

/* CUSTOM Responsive Styles */
.footer-brand .logo {
    height: 200px !important;
    max-height: none !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

.footer-brand img {
    height: 200px !important;
    max-height: none !important;
}
/* Navbar sticky con transizione smooth */
#main-navbar {
    transition: all 0.3s ease;
}

/* Quando navbar è sticky, aggiungi ombra */
#main-navbar.sticky-top {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Header top con transizione */
#header-top {
    transition: all 0.3s ease;
}
/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px !important;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.language-flag-btn {
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.7;
}
.language-flag-btn:hover {
    opacity: 1;
    transform: scale(1.15);
}
.language-flag-btn.active {
    opacity: 1;
}

#iubenda-legal-links {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 25px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    
    /* Transizioni per l'effetto fade */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
}

/* Stato nascosto */
#iubenda-legal-links.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(20px);
}

#iubenda-legal-links a {
    color: #ffffff !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

#iubenda-legal-links a:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.iubenda-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

/* Separatore tra i link del footer */
.nav-footer > li:not(:last-child) {
    position: relative;
}

.nav-footer > li:not(:last-child)::after {
    content: "•";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}
