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

/* Header */
.bg-body-tertiary {
    background-color: #004A6F;
    color: #fff;
   /* padding: 10px 0; */
}

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.logo-bianco {
  filter: brightness(0) invert(1);
}

.search-auto-style {
    margin-top: 10px;
    margin-bottom: 0;
    padding-bottom: 0.375rem;
}

.menu.open {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-social-icons {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* Autocomplete */
#autocomplete-select {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: white;
    border: 1px solid #ccc;
    max-height: 200px;
    overflow-y: auto;
}

#search-autocomplete {
    display: flex;
    align-items: center;
    position: relative;
    height: 100%;
    margin-right: 0.5rem;
}

#autocomplete-select option {
    padding: 8px;
    cursor: pointer;
}

#autocomplete-select option:hover {
    background-color: #f1f1f1;
}

#search-form {
    display: flex;
    align-items: center;
    height: 100;
}

.nav-link-style, 
.nav-link-style:link, 
.nav-link-style:visited {
    text-decoration: none;
}

a {
    text-decoration: none;
    color: inherit;
}

.nav-link-style {
    position: relative;
    color: white;
    font-weight: 500;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.nav-link-style::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: #FFAA17;
    transition: width 0.3s ease;
}

.nav-link-style:hover::after {
    width: 100%;
}

.nav-link-style:hover {
    color: #FFAA17;
}

.search-wrapper {
    position: static;
    margin: 0 1rem;
    display: flex;
    justify-content: center;
    align-items: right;
}

.search-container {
    position: relative;
}

.search-input {
    height: 50px;
    border-radius: 30px;
    padding-left: 50px;
    border: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.search-icon {
    position: absolute;
    top: 43%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
}

.navbar {
    min-height: 140px;
    padding-bottom: 30px;
    align-items: center;
}


.navbar-brand {
    margin-left: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
    margin-right: 1rem;
    width: auto;
    flex: 0 0 auto;
}

.logo {
    margin-left: 10px;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 0;
    margin-right: 1rem;
    width: auto;
    flex: 0 0 auto;   
}

.navbar-nav .nav-link {
    min-width: 120px;
    text-align: center;
    padding: 8px 16px;
    border-radius: 6px;
}

.header-text-content {
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 30px;
    text-align: center;
}

/*sfondo*/

.expanded-header {
    width: 100%;
    position: absolute;
    background-color: transparent !important; 
    align-items: center;
}


@import url('https://fonts.googleapis.com/css?family=Inconsolata:500');

.mobile-search-container {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.codepen-search {
  position: relative;
  width: 300px;
  height: 100px;
}

.codepen-search input {
  font-family: 'Inconsolata', monospace;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  margin: auto;
  outline: none;
  border: none;
  background: #ffaa17;
  color: white;
  text-shadow: 0 0 10px #ffaa17;
  padding: 0 80px 0 20px;
  border-radius: 30px;
  box-shadow: 0 0 25px 0 #ffaa17, 0 20px 25px 0 rgba(0, 0, 0, 0.2);
  transition: all 1s;
  opacity: 0;
  z-index: 5;
  font-weight: bolder;
  letter-spacing: 0.1em;
}

.codepen-search input:hover {
  cursor: pointer;
}

.codepen-search input:focus {
  width: 300px;
  opacity: 1;
  cursor: text;
}

.codepen-search .search-btn {
  position: absolute;
  margin: auto;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 50px;
  background: #ffaa17;
  border-radius: 50%;
  transition: all 1s;
  z-index: 4;
  box-shadow: 0 0 25px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

.codepen-search input:focus ~ .search-btn {
  right: -250px;
  background: #151515;
  z-index: 6;
}

.codepen-search .search-btn::before,
.codepen-search .search-btn::after {
  content: "";
  position: absolute;
  background: white;
  transition: all 0.5s;
}

.codepen-search .search-btn::before {
  width: 12px;
  height: 2px;
  background: white;
  position: absolute;
  top: calc(50% + 10px);
  left: calc(50% + 6px);
  transform: rotate(45deg);
}

.codepen-search .search-btn::after {
  width: 25px;
  height: 25px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
}

/* X centrata */
.codepen-search input:focus ~ .search-btn::before {
  width: 12px;
  height: 2px;
  transform: rotate(45deg);
  top: calc(50% + 10px);
  left: calc(50% + 6px);
}

.codepen-search input:focus ~ .search-btn::after {
  width: 25px;
  height: 25px;
  border: 2px solid white;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
}


.codepen-search input::placeholder {
  color: white;
  opacity: 0.5;
  font-weight: bolder;
}

.hamburger {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 978px) {
    header .search-wrapper,
    #search-form {
        display: none !important;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0.5rem 0;
    }

    #search-form {
        gap: 0.5rem;
        width: 100%;
    }

    .search-auto-style {
        min-width: 100%;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: transparent;
        padding: 1rem;
        text-align: center;
        width: 100%;
        height: 20vh;
    }

    .mobile-menu.show {
        display: flex;
    }

    .mobile-menu a,
    .mobile-menu form {
        color: white;
        text-decoration: none;
        padding: 0.5rem 0;
        font-size: 1.1rem;
        width: 100%;
    }

    .mobile-menu a:hover {
        color: #FFAA17;
    }

    .mobile-search-container {
        display: flex !important;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (min-width: 979px) {
    .mobile-menu-toggle,
    #mobile-menu {
        display: none !important;
    }

    .side-nav {
        display: none !important;
    }

    #search-form {
        display: flex !important;
    }

    .mobile-search-container {
        display: none !important;
    }
}

@media (max-width: 500px) {
    #search-form {
        display: none !important;
    }

    .search-wrapper {
        max-width: 100%;
        width: 100%;
        margin: 0.5rem 0;
    }

    #search-form {
        gap: 0.5rem;
        width: 100%;
    }

    .search-auto-style {
        min-width: 100%;
        width: 100%;
    }
}

@media (min-width: 501px) {
    #search-form2 {
        display: none !important;
    }
}

@media (max-width: 768px) {
  .logo {
    height: 30px; /* o 28px, a seconda di quanto vuoi rimpicciolirlo */
    margin-top: 2px;  /* allineamento verticale se serve */
  }

  .logo-hamburger {
    display: flex;
    align-items: center;
  }
}


.side-nav {
    height: 100%;
    width: 0;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #004A6F;
    overflow-x: hidden;
    transition: 0.4s;
    z-index: 2000;
    padding-top: 60px;
}

.side-nav a, .side-nav button {
    color: white;
    display: block;
    transition: 0.3s;
    font-size: 1.2rem;
    text-align: left;
}

.side-nav a:hover {
    color: #FFAA17;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}