body {
    visibility: hidden;
}

@media (min-width: 768px) {
    .search-bar {
        width: 50% !important;
    }
}
.fonts-loaded body {
    visibility: visible;
}
.cmp-input-search {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cmp-input-search .form-group {
    width: 100%;
}

.input-group {
    position: relative;
    display: flex;
    width: 100%;
}

.autocomplete-icon {
    position: absolute;
    right: 10px;
    top: 50% !important;
    transform: translateY(-50%);
}

.background-cerca {
    background-image: url('');
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    max-width: 50000px !important;
    max-height: 180px !important;
}

.ui-autocomplete {
    z-index: 1050;
}

.ui-menu-item-wrapper {
    display: flex;
    align-items: center;
    font-family: Titillium Web;
}

.ui-menu-item-wrapper img {
    width: 80px;
    height: 80px;
    margin-right: 10px;
}

.navbar .close-div .close-menu .icon {
    fill: #000 !important;
}

.carousel-item img {
    object-fit: cover;
    width: 100%;
}

.container.background-cerca {
    top: 0;
    left: 0;
    z-index: 2;
    color: white; /* Assuming text color should be white for better contrast */
    padding-bottom: 18px !important;
    padding-top: 0px !important;
    margin-top: 18px !important;
}

 .it-header-center-wrapper {
     height: 100px;
     padding: 0px;
 }
.navbar .navbar-collapsable .navbar-nav li a.nav-link {
    padding: 5px 24px !important;
}

.newsletter-popup {
    display: flex; /* Cambiato da none a flex per visualizzare il popup */
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay background */
    z-index: 1000;
}

/* Reset margini e padding per input e label */
.form-check-input {
    vertical-align: middle; /* Allinea verticalmente il bottone */
    margin: 0; /* Rimuove margini predefiniti */
}

.form-check-label {
    vertical-align: middle; /* Allinea verticalmente al bottone */
    margin-left: 5px; /* Spazio tra bottone e etichetta */
    display: inline-block; /* Evita comportamenti inline strani */
}

/* Mantiene un'altezza fissa per evitare spostamenti */
.form-group {
    line-height: 1.5; /* Garantisce spaziatura consistente */
}

/* Evita cambiamenti di aspetto su focus/selezione */
.form-check-input:focus {
    outline: none; /* Rimuove il bordo di focus */
    box-shadow: none; /* Rimuove effetti di ombra */
}

.form-group label.active{
    transform: translateY(0%) !important;
}

.notification-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup {
    display: flex; /* Cambiato da none a flex per visualizzare il popup */
    justify-content: center; /* Centra orizzontalmente */
    align-items: center; /* Centra verticalmente */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Overlay background */
    z-index: 1000;
}

.popup-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative; /* Aggiorna per posizionare il pulsante di chiusura */
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}

#aziendaGroup {
    display: none;
}

.popup-content h2 {
    margin-top: 0;
}

.popup-content p {
    margin-bottom: 20px;
}





.popup-content h2 {
    margin-top: 0;
}

.popup-content p {
    margin-bottom: 20px;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    background-color: #f1f1f1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#newsletterForm .form-group {
    margin-bottom: 15px;
}

#newsletterForm .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#newsletterForm .btn-primary {
    background-color: #17334f;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

#newsletterForm .btn-primary:hover {
    background-color: #07768D;
}

.goog-te-gadget-simple {
    border: none;
    background-color: transparent;
    padding: 0;
}

.goog-te-gadget-simple .goog-te-menu-value span:first-child {
    display: none; /* Nasconde la parola "Seleziona lingua" */
}

.goog-te-gadget-simple .goog-te-menu-value span:nth-child(2) {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    text-transform: uppercase; /* Visualizza solo le prime due lettere della lingua */
}

.goog-te-gadget-icon {
    display: none; /* Nasconde l'icona di Google */
}

/* Stile generale per il widget */
#google_translate_element {
    display: inline-block;
}

.btn-dark{
    background-color: #07768D !important;
    border-color: #07768D !important;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    text-align: center;
    z-index: 10000;
    display: none; /* Hidden by default */
}

.cookie-consent p {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.cookie-consent a {
    color: #00aaff;
    text-decoration: underline;
}

.cookie-consent .btn {
    margin-left: 10px;
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-primary {
    background-color: #28a745;
    color: white;
}

.btn-secondary {
    background-color: #dc3545;
    color: white;
}

@media (min-width: 992px) {
    .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .h2, .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a .it-brand-title, .it-header-center-wrapper .it-header-center-content-wrapper .it-brand-wrapper a h2 {
        font-size: 2.36em;
        margin-bottom: 0;
        font-weight: 600;
    }
}

 .product-header {
     background-color: #f8f9fa;
     padding: 30px;
     border-radius: 8px;
 }
.product-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}
.product-details {
    padding: 15px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
}
.product-title {
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}
.product-description {
    font-size: 1.2em;
    color: #666666;
    margin-bottom: 15px;
}
.product-category {
    font-size: 1em;
    color: #007bff;
    margin-bottom: 15px;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.product-grid-item {
    width: calc(33.333% - 10px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
}
.product-grid-item img {
    width: 100%;
    height: auto;
}
.product-grid-item h4 {
    padding: 10px;
    font-size: 1.2em;
    background-color: #f8f9fa;
}
