﻿/* Palette di colori */
:root {
    --primary-color: #FFFFFF;
    --secondary-color: #FFFFFF;
    --tertiary-color: #FFFFFF;
    --text-color: #00213b;
    --font-family: sans-serif;
}

html, body {
    height: auto;
    min-height: 100vh;
    margin-top: 30px !important;
    padding: 0;
    overflow-x: hidden !important;
    background-color: var(--primary-color) !important;
    color: var(--text-color);
    font-family: var(--font-family);
}


    /* Contenitore input */

    #heroBanner .input-group {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;

    overflow: hidden;
    padding: 4px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.hero-overlay-box {
    margin-top: 4rem; /* o 3rem, 50px, ecc. */
}

/* Icona lente */
#heroBanner .input-group-text {
    background-color: transparent;
    border: none;
    font-size: 1.0rem;
    padding-left: 16px;
    padding-right: 0;
    color: #666;
}


/* Campo testo */

#heroBanner .form-control {
    border: none;
    padding-left: 8px;
    padding-right: 16px;
    font-size: 1rem;
    height: 36px;
    font-size: 1.1rem;
    border-radius: 0 20px 20px 0;
}

    /* Placeholder visibile */
    #heroBanner .form-control::placeholder {
        color: #999;
        font-style: italic;
    }

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}





#heroBanner input::placeholder {
    color: #999;
}

.hero-overlay-box {
    background-color: rgba(0, 0, 0, 0.3); /* nero trasparente */
    backdrop-filter: blur(4px); /* effetto vetro */
    color: #fff;
}



/* Mobile tweak */
@media (max-width: 768px) {
    #heroBanner {
        height: 330px !important; /* oppure 320px o quello che preferisci */
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-overlay-box {
        padding: 1.25rem; /* meno padding su mobile */
    }
}

/* Header fisso in alto con ombra raffinata */
#offertaHeader {
    position: fixed; /* fissa in alto */
    top: 0;
    left: 0;
    width: 100%; /* tutta larghezza disponibile */
    max-height: 70px; /* imposta un tetto massimo */
    z-index: 2000; /* sempre sopra tutto */
    background-color: rgba(255,255,255,0.95) !important; /* leggermente trasparente */
    backdrop-filter: blur(8px); /* effetto vetro elegante (opzionale) */
    border-bottom: 1px solid rgba(0,0,0,0.1); /* sottile bordo sotto */
}

/* Spazio necessario al contenuto sotto per evitare sovrapposizioni */
.offerta-content {
    padding-top: 190px !important; /* regola altezza in base al tuo header */
    overflow-y: auto !important; /* abilita lo scrolling verticale interno */
    height: calc(100vh - 190px) !important; /* altezza corretta per scorrimento interno */
}

header .input-group {
    max-width: none !important; /* rimuove il limite massimo precedente */
    flex-grow: 1;
}

header .d-flex {
    flex-direction: column; /* impila verticalmente titolo e barra ricerca */
    align-items: stretch !important;
}

header h1.h4 {
    margin-bottom: 12px; /* piccolo spazio tra titolo e barra ricerca */
}
header img#dealerLogoOverlay {
    object-fit: contain;
    max-height: 100px !important; /* altezza massima coerente con titolo */
    margin-bottom: 10px;
    margin-left: 10px;
}

.navbar-brand {
    font-size: 0.75rem; /* Riduci questa dimensione come preferisci, es. 0.9rem o 0.85rem */
    color: #555 !important; /* facoltativo se vuoi usare i tuoi colori */
    padding: 5px;
    
}


/* Spaziatura generale nel menu filtri */
#menuFiltroOfferte.collapse {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Navbar-nav: padding orizzontale globale */
.navbar-nav {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

    /* Ogni voce nel menu: spazio tra i tasti */
    .navbar-nav .nav-item {
        margin-left: 0.25rem;
        margin-right: 0.25rem;
    }

    /* Ogni link: padding interno coerente */
    .navbar-nav .nav-link {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

        /* Evidenziazione della voce attiva */
        .navbar-nav .nav-link.active {
            font-weight: bold;
            color: var(--secondary-color) !important;
        }
    .navbar-nav .badge-alimentazione,
    .navbar-nav .badge-cambio {
        width: 24px;
        height: 24px;
        font-size: 0.55rem;
    }

   

    .navbar-nav .badge-letter-cambio {
        font-size: 0.9rem;
        letter-spacing: 0.3px;
    }
    /* Testo etichetta visibile solo su mobile */
.badge-label {
    font-weight: 500;
    margin-left: 6px;
    color: var(--text-color, #333);
    display: none;
}

.badge-item[data-tipo="privato"] i,
.badge-item[data-tipo="business"] i {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--tertiary-color);
}

.badge-letter-alim.badge-gpl {
    font-size: 0.75rem !important;
    color: #ff6f00;
    font-weight: bold;
}

/* ✅ Contenitore badge ibrido: centrato in verticale */
.badge-alimentazione.badge-hb,
.badge-alimentazione.badge-hg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

/* ✅ Lettera B per HB */
.badge-letter-alim.badge-letter-b {
    font-size: 0.9rem !important;
    font-weight: 800;
    color: #43a047; /* verde HB */
    line-height: 1;
}

/* ✅ Lettera G per HG */
.badge-letter-alim.badge-letter-g {
    font-size: 0.9rem !important;
    font-weight: 800;
    color: #558b2f; /* verde oliva HG */
    line-height: 1;
}

/* ✅ Etichetta HYBRID */
.badge-hybrid-label {
    font-size: 0.5rem;
    line-height: 1;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    margin-top: 2px;
}



.badge-letter-alim.badge-b {
    color: #4ea303 !important; /* verde più acceso */
    font-weight: 900;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
}

.badge-letter-alim.badge-g {
    color: #000 !important; /* verde più acceso */
    font-weight: 900;
    font-size: 1.5rem !important;
    letter-spacing: -0.5px;
}

#menuFiltroOfferte:not(.show) {
    display: none !important;
}

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .badge-label {
        display: inline-block;
    }

    .navbar-nav .badge-alimentazione,
    .navbar-nav .badge-cambio {
        width: 26px;
        height: 26px;
    }

    .navbar-nav .badge-letter-alim {
        font-size: 1.2rem !important;
    }

    .navbar-nav .badge-letter-cambio {
        font-size: 0.85rem;
        letter-spacing: 0.3px;
    }
}
/* Di base: pipe orizzontale */
/* Icona separatore - default */
.separator-icon i {
    font-size: 0.9rem;
    opacity: 0.5;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

/* Stile base per badge grid */
.badge-grid-mobile {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end !important; /* 👈 allinea a destra */
    margin-right: 55px;
    margin-top: -5px;
    width: 100%; /* ✅ fondamentale */
    max-width: 100%; /* 🔒 evita overflow */
    gap: 0.7rem;
}

/* Badge singolo quadrato */
.badge-item {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s ease;
}

    .badge-item:hover {
        background-color: #e6e6e6;
    }

    .badge-item .badge-alimentazione,
    .badge-item .badge-cambio {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
        font-size: 1.1rem;
    }

    .badge-item .badge-label {
        font-size: 0.65rem;
        margin: 0;
        line-height: 1;
    }



/* Su mobile: ruotata orizzontalmente */
@media (max-width: 768px) {
    .separator-icon i {
        transform: rotate(90deg);
        font-size: 1.1rem;
    }
}
/* Nasconde griglia su desktop */
#badgeMobileGrid {
    display: none;
}

@media (max-width: 768px) {
    #badgeMobileGrid {
        margin-top: 50px;
        display: block;
    }

        .badge-grid-mobile {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 10px;
            padding: 0.5rem 1rem;
        }

    .badge-item {
        display: flex;
        height: 55px;
        align-items: center;
        gap: 6px;
        padding: 4px 8px;
        border: 1px solid #ddd;
        border-radius: 8px;
        background-color: #f8f9fa;
        font-size: 0.85rem;
        font-weight: 500;
        cursor: pointer;
    }
    

        .badge-item .badge-alimentazione,
        .badge-item .badge-cambio {
            width: 26px;
            height: 26px;
            flex-shrink: 0;
        }

        .badge-item .badge-label {
            margin: 0;
        }

    .navbar-collapse.collapse:not(.show) {
        display: none;
    }

    .navbar-collapse.collapse.show {
        display: block;
    }
}
@media (max-width: 768px) {
    #menuFiltroOfferte {
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }

        #menuFiltroOfferte .badge-grid-mobile {
            width: 100%;
            margin: 0 auto;
            padding: 0.75rem 0; /* uniforme verticale */
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 0.5rem;
            justify-items: center;
        }

        #menuFiltroOfferte .badge-item {
            width: 100%;
            justify-content: center;
        }
}


/* Riduce il font e uniforma stile dei link segmento */
#segmentiDinamici .nav-link {
    font-size: 0.8rem; /* 👈 leggermente più piccolo */
    opacity: 0.85; /* 👈 leggera trasparenza */
    color: var(--tertiary-color) !important;
    transition: opacity 0.2s ease;
    padding: 0.3rem 0.75rem;
}

    /* Hover e active visibili */
    #segmentiDinamici .nav-link:hover,
    #segmentiDinamici .nav-link.active {
        opacity: 1;
        background-color: #f8f9fa;
        border-radius: 0.375rem;
    }

/* 💡 Stile pannello laterale segmenti */
#segmentiPerTipo {
    position: fixed;
    top: 100px;
    right: 0;
    width: 300px;
    height: calc(100vh - 100px);
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08);
    z-index: 1050;
    overflow-y: auto;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    pointer-events: none;
    opacity: 0.9;
}

    /* Pannello visibile */
    #segmentiPerTipo.show {
        transform: translateX(0);
        visibility: visible;
        pointer-events: all;
    }

    /* Titolo e nav-link nel pannello */
    #segmentiPerTipo h6 {
        font-size: 0.8rem; /* più piccolo */
        font-weight: 600; /* meno marcato */
        color: var(--tertiary-color) !important; /* usa il colore dinamico */
        margin: 0 0 1rem 0;
        padding: 0 10px;
    }

    #segmentiPerTipo .nav-link {
        font-size: 0.8rem; /* più compatto */
        color: var(--secondary-color) !important; /* coerente con tema */
        padding: 0.4rem 0.5rem;
    }

        #segmentiPerTipo .nav-link:hover {
            background-color: #f2f2f2;
        }

/* Pulsante chiudi */
#chiudiSegmenti {
    position: absolute;
    top: 1px;
    right: 12px;
    font-size: 2.0rem;
    color: #666;
    background: transparent;
    border: none;
    z-index: 9999;
}

#btnResetFiltri,
#btnCondividi {
    font-weight: 600;
    font-size: 0.6rem;
    padding: 0.35rem 0.75rem;
    letter-spacing: 0.5px;
    border-width: 1px;
    border-color: #555;
    color: #555;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    margin-left: 1rem;
}

    #btnResetFiltri:hover,
    #btnCondividi:hover {
        background-color: #003459;
        border-color: #003459;
        color: #fff;
    }

    #btnResetFiltri i,
    #btnCondividi i {
        transition: transform 0.2s ease;
    }

    #btnResetFiltri:hover i,
    #btnCondividi:hover i {
        transform: scale(1.2);
    }


.filtro-offerta {
    color: var(--tertiary-color) !important;

    font-size: 0.75rem;
}


.filtro-offerta.active {
    color: var(--secondary-color) !important;
    font-weight: bold;
    
}
.card-wrapper {
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
    display: block;
    cursor: pointer;
}

    .card-wrapper.hidden {
        opacity: 0;
        pointer-events: none;
        display: none !important;
    }

    .card-wrapper:hover {
        box-shadow: 0 0 0 10px rgba(0, 52, 89, 0.1); /* leggero effetto hover */
        transition: box-shadow 0.4s ease;
        border-radius: 5px;
    }


/* Stile per icona hamburger */
/* Fix posizione del bottone toggle */
.navbar-toggler-wrapper {
    position: absolute;
    top: 5px;
    right: 27px;
    z-index: 1050;
}

.navbar-toggler {
    width: 32px;
    height: 32px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
    .navbar-toggler:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
    }


.navbar-toggler-icon {
    background-image: none !important;
    position: relative;
    width: 18px;
    height: 2px;
    background-color: var(--secondary-color);
}

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        background-color: var(--secondary-color);
        transition: all 0.3s ease;
    }

    .navbar-toggler-icon::before {
        top: -8px;
    }

    .navbar-toggler-icon::after {
        top: 8px;
    }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-color: transparent;
}

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before {
        transform: rotate(45deg);
        top: 0;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after {
        transform: rotate(-45deg);
        top: 0;
    }


/* Collapse su desktop: chiuso di default */
@media (min-width: 768px) {
    #menuFiltroOfferte:not(.show) {
        display: none !important;
    }
}


#logoContainer {
    width: auto;
    height: 75px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: flex-start; /* spinge in alto */
    margin-left: 1rem;
    margin-top: -15px;
    margin-bottom: 40px;
}

    #logoContainer.logo-skeleton {
        background: linear-gradient(-90deg, #e0e0e0, #f8f8f8, #e0e0e0);
        background-size: 400% 400%;
        animation: skeleton 1.2s infinite ease-in-out;
    }

    #logoContainer img {
        width: auto;
        height: 100%;

        object-fit: contain;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    #logoContainer.loaded img {
        opacity: 1;
    }
#logoLink {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}
#logoContainer * {
    pointer-events: auto !important;
}

@keyframes skeleton {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}
@media (max-width: 768px) {
    #logoContainer {
        max-width: 180px; /* 👈 limite alla larghezza su mobile */
        height: 80px; /* 👈 eventualmente anche più basso su mobile */
        left: -7px;
    }

        #logoContainer img {
            height: 100%;
            width: auto;
            max-width: 100%;
        }
}

.hero-skeleton-overlay {
    background-color: #ddd;
    animation: pulseHero 1.2s infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes pulseHero {
    0% {
        background-color: #ddd;
    }

    50% {
        background-color: #ccc;
    }

    100% {
        background-color: #ddd;
    }
}

#heroBannerImage {
    transition: opacity 0.3s ease;
    z-index: 1;
}

.card-skeleton {
    width: 100%;
    
    height: auto;
    border-radius: 10px;
    background-color: #f5f5f5;
    padding: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    animation: fadeIn 0.2s ease-in;
}

    .card-skeleton .skeleton-img {
        width: 100%;
        height: 160px;
        background-color: #ddd;
        border-radius: 6px;
    }

    .card-skeleton .skeleton-line {
        height: 14px;
        background-color: #e0e0e0;
        border-radius: 4px;
    }

    .card-skeleton .short {
        width: 40%;
    }

    .card-skeleton .medium {
        width: 70%;
    }

    .card-skeleton .long {
        width: 100%;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}




/* Responsive adattamento header su mobile */
@media (max-width: 767px) {

    html, body {
        height: auto;
        min-height: 100vh;
        margin-top: 40px !important;
        padding: 0;
        overflow-x: hidden !important;
        background-color: var(--primary-color);
        color: var(--text-color);
        font-family: var(--font-family);
    }

    #offertaHeader {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        background-color: #fff;
        }



        #offertaHeader h1.h4 {
            font-size: 1.25rem;
            margin-bottom: 10px !important; /* margine ridotto */
            text-align: center; /* centrato chiaramente */
        }

        #offertaHeader .input-group {
            width: 100% !important;
            margin-top: 5px; /* distanza dalla barra ricerca */
        }


}


/* Header e ricerca */
.container-fluid {
    padding: 0 15px;
}

.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.input-group {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 4px;
}

    .input-group .form-control {
        border-radius: 0 4px 4px 0 !important;
    }

    .input-group .input-group-text {
        border-radius: 4px 0 0 4px;
    }

.bg-white {
    background-color: #fff !important;
}

#searchInput {
    font-size: 0.85rem !important; /* default consigliato */
    padding: 0.45rem 0.75rem;
}

    #searchInput::placeholder {
        font-style: italic;
        color: #999;
    }

#top-richieste {
    width: 100vw;
    overflow: hidden;
    background: var(--secondary-color); /* sfondo blu scuro */
    color: #fff;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.top-richieste-header {
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}

.scroll-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 2rem;
    width: 100vw;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    flex: 0 0 auto;
}

    .scroll-gallery::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }


    .scroll-gallery .card-wrapper {
        flex: 0 0 auto;
        width: 280px;
        scroll-snap-align: start;
        
    }

    .scroll-gallery.dragging {
        cursor: grabbing;
        user-select: none;
    }

.scroll-gallery {
    cursor: grab;
}
.btn-toggle-top {
    background-color: transparent !important;
    color: var(--primary-color);
    width: 200px;
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border: solid 1px white;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

    .btn-toggle-top:hover {
        opacity: 0.6;
        color: #fff;
        border: solid 1px white;
    }

    .btn-toggle-top i {
        transition: transform 0.2s ease;
    }

    .btn-toggle-top.collapsed i {
        transform: rotate(0deg);
    }

    .btn-toggle-top:not(.collapsed) i {
        transform: rotate(180deg);
    }


.modal-fullscreen .modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
/* === Badge tondo comune === */
/* Contenitore badge: orizzontale, in alto a destra */
.badges-wrapper {
    position: absolute;
    top: 5px;
    right: 10px;
    display: flex;
    flex-direction: row; /* ← orizzontale */
    gap: 6px;
    z-index: 2;
}

/* === Badge cambio === */
.badge-cambio {
    width: 30px;
    height: 30px;
    border: 0px solid transparent; /* ✅ come avevi messo */
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* === Badge alimentazione === */
.badge-alimentazione {
    width: 30px;
    height: 30px;
    border: 0px solid transparent; /* ✅ come avevi messo */
    border-radius: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    transition: all 0.2s ease;
}

/* === Lettere CAMBIO: MAN / AUT === */
.badge-letter-cambio {
    font-weight: 400;
    font-size: 0.95rem;
    color: #000;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    line-height: 1;
}

.badge-letter-alim {
    font-weight: 900;
    font-size: 1.75rem !important;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
}

.badge-letter-alim-verde {
    color: #28a745 !important;
}

.badge-ev {
    background: #097fa2;
    font-size: 1.35rem !important;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.card-tag {
    position: absolute;
    top: 0;
    left: 0;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom-right-radius: 20px;
    z-index: 5;
    color: #fff;
}


/* Colore per privati */
.tag-privati {
    background-color: var(--secondary-color); /* blu scuro */
}

/* Colore per partita IVA */
.tag-business {
    background-color: var(--tertiary-color); /* arancio */
}



/* Frecce laterali */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .scroll-arrow:hover {
        background: rgba(255,255,255,1);
    }

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

.scroll-arrow i {
    color: #003459;
    font-size: 1.2rem;
}

/* Corpo Cards */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important; /* 👈 cambia qui */
    gap: 20px;
    padding: 10px;
}

/* Card modale */
.card.modal-card {
    height: 100%;
    border: none;
    border-radius: 10px;
    background-color: var(--primary-color);
}

    .card.modal-card .img-wrapper {
        position: relative;
        overflow: hidden;
        width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .card.modal-card .card-img-top {
        width: 100%;
        height: auto;
        top: 35px;
        display: block;
        transition: opacity 0.5s ease-in-out;
    }

.img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent; /* se vuoi sfondo trasparente */
}

    .img-wrapper img.card-img-top {
        width: auto;
        max-width: 100%;
        max-height: 200px; /* o altezza che preferisci */
        object-fit: contain;
        margin-top: 30px;
        margin-bottom: 0;
    }

.img-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: var(--tertiary-color);
}

    .img-wrapper::before {
        content: '';
        position: absolute;
        width: 100%;
        height: 90%;
        top: 0;
        right: 0;
        background-color: var(--primary-color);
        border-bottom-right-radius: 100%;
        border-top-right-radius: 0;
        opacity: 1;
    }

    .img-wrapper::after {
        content: '';
        position: absolute;
        width: 150%;
        height: 40%;
        bottom: -5%;
        
        background-color: lightgrey;
        border-radius: 100%;
    }

.graphic-extra {
    position: absolute;
    width: 60%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 1); /* Colore trasparente esempio */
    border-radius: 0; /* Rotondo ovale */
    transform: rotate(0deg); /* Ruotato per effetto grafico */
    z-index: 1;
}

    .img-wrapper img.card-img-top {
        position: relative;
        z-index: 4; /* assicura che l'immagine resti sempre sopra */
    }


.stelle-convenienza {
    font-size: 0.95rem;
    line-height: 1.2;
    font-size: 0.75rem;
}


.filigrana-solo-privati::after {
    content: 'SOLO PER PRIVATI';
    position: absolute;
    top: 40px;
    left: 10px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: none;
    pointer-events: none;
    z-index: 3;
}

.filigrana-business::after {
    content: 'PARTITA IVA';
    position: absolute;
    top: 40px;
    left: 10px;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    background: none;
    pointer-events: none;
    z-index: 3;
}


.card.modal-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.card.modal-card .card-title {
    font-weight: 700;
    font-size: 1.45rem;
    margin-bottom: 0.5rem;
}

.versione {
    font-weight: 600;
    font-size: 0.75rem;
    
    display: block;
    line-height: 1.2;
    min-height: 2rem; /* oppure usa em se preferisci */
}


.card-text {
    margin-bottom: 0.5rem !important; /* Riduce margine sotto al testo della versione */
    color: #555 !important;
}

.card-body hr {
    margin-top: 0 !important; /* Riduce margine sopra l'hr */
    margin-bottom: 0 !important; /* Se necessario, riduce margine sotto l'hr */
}

.riga-doppia {
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

    .riga-doppia .valore-grande {
        font-size: 1.6rem;
        font-weight: 900;
        line-height: 1.2;
        color: var(--secondary-color);
    }

    .riga-doppia .label-sotto {
        font-size: 0.65rem;
        font-weight: 600;
        color: #777;
        margin-top: 0.2rem;
    }


.dettagli-offerta {
    font-size: 1.8rem;
    color: #555;
    margin-left: auto; /* 👈 spinge il blocco a destra */
}

.mesi, .km {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 0px;
    margin-left: 10px;
    font-size: 1.5rem;
}

.valore-mesi, .valore-km {
    font-weight: 900;
    color: var(--tertiary-color);

}

.label-mesi, .label-km {
    font-weight: bold;
    color: #777;
    font-size: 0.6rem;
    margin-top: -5px;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    margin-top: 0;
    border: 1px solid grey !important;
    padding: 10px 25px;
    color: var(--tertiary-color) !important;
    font-weight: 700;
    transition: transform 0.3s ease;
}

    .btn-primary:hover {
        color: var(--secondary-color) !important;
    }


/* Effetto Placeholder (Skeleton) */
@keyframes placeholder-glow {
    0% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.4;
    }
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 1.5s ease-in-out infinite;
    background-color: #e2e5e7; /* leggermente più chiaro e moderno */
}

.placeholder {
    display: inline-block;
    vertical-align: middle;
    cursor: wait;
    opacity: 1;
    border-radius: 6px; /* più arrotondato */
}

    .placeholder.col-4 {
        width: 33.333%;
        height: 1rem;
    }

    .placeholder.col-6 {
        width: 50%;
        height: 1.2rem;
    }

    .placeholder.col-7 {
        width: 58.333%;
        height: 1rem;
    }

    .placeholder.col-12 {
        width: 100%;
        height: 2rem;
    }

    .placeholder.card-img-top {
        width: 100%;
        height: 200px;
        border-radius: 8px 8px 0 0; /* più elegante nella card */
    }

.disabled {
    pointer-events: none;
    opacity: 0.65;
}

#socialLinks {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* per sicurezza */
    gap: 12px;
    position: fixed;
    width: 100%;
    margin-left: auto;
}


#socialLinks {
    display: flex;
    gap: 12px;
    z-index: 100;
}



    #socialLinks a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

        #socialLinks a:hover {
            transform: scale(1.15);
        }

    #socialLinks i {
        font-size: 1.2rem;
        color: white;
        line-height: 1;
    }

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

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


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;
}

a.trustpilot {
    background-color: rgba(255,255,255);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    padding: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    a.trustpilot img.trustpilot-icon {
        height: 23px; /* 👈 più grande */
        width: auto;
        display: block;
    }

#headerTopRow {
    margin-top: -30px;
    margin-bottom: 10px;
}
nav.navbar {
    position: fixed;
    top: 70px; /* Altezza del tuo header */
    left: 0;
    width: 100%;
    z-index: 2900; /* Sotto header, sopra tutto il resto */
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

#marcaAttiva .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.6em;
}

#marcaAttiva a {
    font-size: 1.5rem !important;
    line-height: 1;
}




@media (max-width: 768px) {
    #socialLinks {
        top: auto;
        bottom: 8px;
        right: 10px;
        gap: 10px !important;
    }

        #socialLinks a {
            width: 34px;
            height: 34px;
            padding: 1px;
        }

        #socialLinks img.trustpilot-icon {
            height: 20px;
        }
    
    .btn-toggle-top {
        background-color: transparent !important;
        color: var(--primary-color);
        width: 160px;
        font-weight: 600;
        font-size: 0.75rem;
        padding: 0.4rem 0.4rem;
        border: solid 1px white;
        border-radius: 0.5rem;
        transition: all 0.2s ease-in-out;
    }
}

.azcore-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color); /* colore primario */
    color: white;
    padding: 0.3rem 1rem;
    display: flex;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
    border-top: solid 1px var(--tertiary-color)
}


.footer-content {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.75rem;
    font-weight: 200;
}


.footer-content {
    flex-grow: 1;
}

.footer-powered {
    font-size: 0.75rem;
    text-align: right;
    white-space: nowrap;
}

    .footer-powered a {
        color: var(--tertiary-color) !important;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
    }

@media (max-width: 768px) {
    #footerTextContent {
        display: none;
    }

    .azcore-footer {
        justify-content: flex-end;
        padding-right: 1rem;
    }

    .footer-powered a {
        font-size: 0.8rem;
    }
}
.trustpilot-widget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
}
