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

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-family, 'Montserrat'), sans-serif;
    background-color: #fff;
}

body {
    padding-top: 0;
    padding-bottom: 0; /* stessa altezza del footer */
}

/* --- TOPBAR --- */
.az-topbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 30px;
    background-color: var(--secondary-color, transparent);
    border-bottom: 4px solid var(--tertiary-color) !important;
    color: transparent;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    z-index: 3100;
}

.az-topbar-container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.az-topbar-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.az-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #fff;
    white-space: nowrap;
}

    .az-topbar-item a {
        color: #fff;
        text-decoration: none;
    }

        .az-topbar-item a:hover {
            text-decoration: underline;
        }

.az-topbar i {
    font-size: 0.8rem;
}

.az-navbar {
    position: fixed;
    top: 25px;
    width: 100% !important;
    height: 80px !important;
    z-index: 3 !important;
    background-color: rgba(0, 0, 0, 0.4); /* bianco semitrasparente */
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    font-family: var(--font-family, 'Montserrat'), sans-serif;
}
/* Quando scroll > 400px */
body.scrolled-logo .az-navbar {
    background-color: rgba(255, 255, 255, 0.7) !important; /* opacità aumentata */
    backdrop-filter: blur(4px); /* facoltativo: per leggibilità */
    transition: background-color 0.3s ease;
}



.az-navbar-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    max-width: 100%;
    margin: 0 auto;
    z-index: 30 !important;
}


.az-logo-container {
    height: 60px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
    z-index: 3001;
}

#logoWeb {
    margin: 3px;
    max-height: 57px;
    max-width: 400px;
    height: auto;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: brightness(0) invert(1);
    z-index: 3002 !important;
    position: relative; /* serve per gestire il pseudo-elemento */
    overflow: hidden; /* evita che il bagliore esca fuori */
}
.logo-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden; /* evita che il bagliore esca dai bordi */
    width: 100vw;
}

    .logo-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        left: -75%;
        width: 70%;
        height: 100%;
        background: linear-gradient( 120deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 100% );
        transform: skewX(-25deg);
        animation: logo-shine 15s infinite;
    }

@keyframes logo-shine {
    0% {
        left: -75%;
    }

    100% {
        left: 125%;
    }
}



@media (max-width: 576px) {
    #logoWeb {
        max-width: 350px !important;
    }
}

body.scrolled-logo #logoWeb {
    filter: none !important; /* rimuove il bianco invertito */
    transition: filter 0.3s ease;
}
body.scrolled-logo .az-navbar {
    backdrop-filter: blur(6px);
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}


#logoContainer.loaded #logoWeb {
    opacity: 1;
}


.az-navbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Contenitore social */
.az-social-links {
    display: flex;
    gap: 10px;
    align-items: center;
}

    /* Link base tondo */
    .az-social-links a {
        width: 22px;
        height: 22px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        text-decoration: none;
        transition: transform 0.2s ease;
        font-size: 1rem;
        color: white;
    }

        /* Hover effect */
        .az-social-links a:hover {
            transform: scale(1.1);
        }

    /* Icône interna */
    .az-social-links i {
        font-size: 1.0rem;
        color: white;
        line-height: 1;
    }

/* 🎨 Brand colors */
a.facebook {
    background-color: #1877F2;
}

a.instagram {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

a.linkedin {
    background-color: #0A66C2;
}

a.youtube {
    background-color: #FF0000;
}

a.whatsapp {
    background-color: #25D366;
}

a.telegram {
    background-color: #0088cc;
}

a.tiktok {
    background-color: #000000;
}

/* Trustpilot image override (già generato come <img>) */
a.trustpilot {
    background: white;
    padding: 4px;
    width: 36px;
    height: 36px;
    border-radius: 100px;
}

    a.trustpilot img {
        max-width: 100%;
        height: 22px;
        display: block;
    }

.az-share-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border: solid 2px grey;
    border-radius: 50%;
    padding: 1px;
    filter: grayscale(0%);
    transition: transform 0.2s ease, filter 0.2s ease;
}

/* Condividi icona stile iOS */
.az-share-btn {
    background: #fff;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.2s ease;
}

    .az-share-btn:hover {
        transform: scale(1.1);
    }

/* 🔘 Stile base hamburger */
.grid-toggle {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 5px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    width: auto;
    height: auto;
    align-items: center;
    justify-items: center;
}

    .grid-toggle span {
        width: 6px;
        height: 6px;
        background-color: var(--primary-color, #000);
        border-radius: 2px; /* o 50% se vuoi cerchietti */
        display: block;
        transition: background-color 0.2s ease;
    }

    .grid-toggle:hover span {
        background-color: var(--tertiary-color, #FF7100);
    }


.az-servizi-menu {
    display: flex;
    flex-direction: column; /* ✅ verticale */
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}


    .az-servizi-menu li a.active {
        color: var(--tertiary-color) !important;
        border-bottom: 2px solid var(--tertiary-color);
    }


    .az-servizi-menu li a {
        color: var(--primary-color) !important;
        text-decoration: none;
        transition: color 0.2s ease;
    }

.az-servizi-menu li a:hover {
    color: var(--tertiary-color) !important;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Contenitore dei gruppi di badge */
.badge-grid-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem; /* verticale, orizzontale */
    justify-content: flex-start;
    align-items: flex-start;
}



/* Badge singoli */
.badge-item.filtro-offerta {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    height: 40px;
    width: 120px; /* ✅ larghezza fissa */
    margin-right: 0.75rem; /* ✅ spazio tra badge in riga */
    margin-bottom: 0.75rem; /* ✅ spazio tra righe */

    gap: 0.4rem;
    padding: 0.4rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    background: rgba(255, 255, 255, 1);
    color: #003459; /* ✅ colore testo leggibile su sfondo bianco */
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}


    .badge-item.filtro-offerta:hover {
        background: rgba(255,255,255,0.15);
        border-color: var(--tertiary-color, #FF7100);
    }
    .badge-item.filtro-offerta.active,
    .badge-item.filtro-offerta.active * {
        color: #003459 !important;
    }

    .badge-item.filtro-offerta.active {
        border: 3px solid var(--tertiary-color, #FF7100);
        background-color: rgba(255, 255, 255, 0.85); /* ✅ sfondo chiaro ma leggibile */
        color: #003459 !important;
    }




/* Etichetta interna */
.badge-label {
    font-weight: 500;
    white-space: nowrap;
}

#menuFiltroOfferte p {
    margin-top: 1rem;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: white;
}
.filtri-nlt-menu .btn-toggle-top {
    min-width: 140px;
    text-align: left;
    justify-content: flex-start;
    font-weight: 500;
    border: 1px solid white;
    color: white;
    padding: 0.4rem 0.75rem;
    background-color: transparent;
    transition: all 0.2s ease;
}

    .filtri-nlt-menu .btn-toggle-top:hover {
        border-color: var(--tertiary-color, #FF7100);
        color: var(--tertiary-color, #FF7100);
    }

    .filtri-nlt-menu .btn-toggle-top i {
        width: 18px;
        text-align: center;
    }



.az-footer-bottom {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 35px;
    background-color: var(--secondary-color, #003459);
    color: #fff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    z-index: 3100;
    border-top: 3px solid var(--tertiary-color);
}

.az-footer-container {
    width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    
}

.az-footer-text {
    white-space: nowrap;
}

    .az-footer-text .nlt-link {
        text-decoration: none;
        margin-left: 4px;
        background: linear-gradient( 90deg, #ccc 0%, #eee 20%, #aaa 40%, #f5f5f5 50%, #999 70%, #ddd 85%, #bbb 100% );
        background-size: 200% auto;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
        animation: shine 5s linear infinite;
    }

@keyframes shine {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

/* Mostra il toggle fino a 1205px */
@media (max-width: 1250px) {
    #svcToggle {
        display: block !important;
    }
}

/* Nascondilo sopra 1205px */
@media (min-width: 1251px) {
    #svcToggle {
        display: none !important;
    }
}

