﻿/* 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;
    padding: 0;
    overflow-x: hidden !important;
    background-color: var(--primary-color) !important;
    color: var(--text-color);
    font-family: var(--font-family);
}

    body.split-layout {
        display: flex;
        height: 100vh;
        margin: 0;
        overflow: hidden;
    }

.colonna-sinistra {
    height: 100vh;
    width: 50vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;

}

.colonna-destra {
    position: relative;
    width: 50vw;
    height: 100vh;
    overflow-y: auto;
    background-color: var(--primary-color, #fff);
    padding-top: 10px;
    z-index: 1000;
}
.espandi-colonna-btn {
    position: absolute;
    top: 50%;
    z-index: 9999;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 6px rgba(0,0,0,0.2);
    transition: left 0.3s ease;
}

/* 🟦 Fissa la freccia al bordo della colonna destra */
body.split-layout .espandi-colonna-btn {
    left: calc(50vw - 18px); /* centrata sul bordo tra le due colonne */
}

body.split-layout.expanded .espandi-colonna-btn {
    left: calc(30vw - 18px); /* nuova posizione bordo espanso */
}

.espandi-colonna-btn i {
    transition: transform 0.3s ease;
}

body.split-layout.expanded .espandi-colonna-btn i {
    transform: rotate(180deg); /* direzione chiusura */
}

/* Transizioni per le colonne */
body.split-layout .colonna-sinistra,
body.split-layout .colonna-destra {
    transition: width 0.3s ease;
}

body.split-layout .colonna-sinistra {
    width: 50vw;
}

body.split-layout .colonna-destra {
    width: 50vw;
}

body.split-layout.expanded .colonna-sinistra {
    width: 30vw;
}

body.split-layout.expanded .colonna-destra {
    width: 70vw;
}
/* 🔧 Colonna sinistra compatta nel layout 30vw */
body.split-layout.expanded .hero-overlay-box {
    max-width: 90%; /* invece di 50vw */
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

body.split-layout.expanded .hero-title {
    font-size: 1.4rem;
    line-height: 1.2;
}

body.split-layout.expanded .hero-subtitle {
    font-size: 1rem;
}

body.split-layout.expanded #heroBanner .input-group {
    box-shadow: none;
    padding: 2px 6px;
}

body.split-layout.expanded #heroBanner .form-control {
    font-size: 0.95rem;
    height: 32px;
}



    /* Contenitore input */
#heroColonna {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

#heroBanner {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.img-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    z-index: 1;
}


.hero-overlay-box {
    top: 110px;
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 2rem;
    background: rgba(0,0,0,0.4);
    max-width: 50vw;
}


    #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);

}



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


/* 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: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

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

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

/* ✅ Modale in basso a sinistra, 50vw x 50vh */
#modalFiltri .modal-dialog {
    position: fixed;
    bottom: 180px;
    left: 30px;
    width: 45vW;
    height: 10vh;
    margin: 0;
    transform: none !important;
    max-width: none;
    z-index: 1055;
}

#modalFiltri .modal-content {
    height: 100%;
    border-radius: 6px 6px 6px 6px;
    overflow-y: auto;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
}

/* Facoltativo: backdrop meno scuro */
.modal-backdrop.show {
    opacity: 0.3;
}

/* 🔹 Contenitore filtri attivi + toggle + reset */
#sezioneBadgeFiltri {
    display: flex;
    align-items: flex-start; /* 🔝 allineamento alto */
    justify-content: space-between; /* 👈 distribuisce lo spazio */
    gap: 1rem;
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    width: 100%;
}

/* 🔹 Toggle menu (9 puntini) */
.az-toggler.grid-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;

}

    .az-toggler.grid-toggle:hover {
        background: rgba(0, 52, 89, 0.05);
        border-color: var(--tertiary-color, #FF7100);
    }

/* Griglia dei 9 puntini */
.grid-dots {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-template-rows: repeat(3, 6px);
    gap: 4px;
}

    .grid-dots span {
        width: 6px;
        height: 6px;
        background-color: var(--primary-color, #000);
        border-radius: 2px;
        display: block;
    }
/* Menu che compare */
.az-menu {
    display: none;
    position: fixed;
    top: 375px; /* subito sotto topbar + navbar */
    left: 100px;
    width: 43vw;
    height: 50vh;
    overflow-y: auto;
    background-color: var(--secondary-color, #003459);
    padding: 0rem 1rem; /* ⬅️ meno spazio sopra e sotto */
    flex-direction: column;
    gap: 1rem;
    z-index: 4000;
    border-bottom-right-radius: 48px;
    border-top-right-radius: 48px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

    .az-menu.open {
        display: flex !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        flex-direction: column;
        align-items: flex-start; /* ✅ questa riga */
    }
/* Label accanto */
.label-filtri {
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    user-select: none;
    color: white;
    padding: 6px 0;

}

/* 🔹 Badge attivi */
#marcaAttiva {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    flex: 1;

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

    }

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

/* 🔹 Bottone Reset */
#btnResetFiltri {
    white-space: nowrap;
    min-height: 34px;
    background: #f0f0f0;
    border: 1px solid #ccc;
    color: #333;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: auto; /* ✅ spinge verso destra */
}

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

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

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

/* 🔹 Badge selezione filtro (quadrati) */
.badge-item {
    width: 70px;
    height: 50px;
    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;
    }

    /* 🔹 Badge attivo */
    .badge-item.active {
        border: 5px solid var(--tertiary-color, #FF7100);
        color: inherit !important;
    }

        .badge-item.active .badge-label,
        .badge-item.active i,
        .badge-item.active .badge-letter-alim,
        .badge-item.active .badge-letter-cambio {
            color: white !important;
        }


@media (max-width: 768px) {
    .az-toggler.grid-toggle {
        display: inline-grid !important;
    }

    .label-filtri {
        display: none !important; /* solo puntini su mobile */
    }
    .az-menu {
        top: 50px; /* subito sotto topbar + navbar */
        left: 100px;
        width: 75vw;
        height: 87vh;
    
    }
    #marcaAttiva {
        display: none !important; /* ❌ Nasconde i badge attivi */
    }

    #btnResetFiltri {
        display: inline-flex !important; /* ✅ Lascia visibile il tasto reset */
    }
    .az-navbar {
        position: fixed;
        top: 25px;
        width: 100% !important;
        height: 80px;
        z-index: 2000 !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;
    }
}


/* Overlay nascosto inizialmente */
.overlay-filtri-local {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
    background: #fff;
    border-radius: 10px;
    border-top: 1px solid #ddd;
    padding: 14px;
    margin-top: 10px;
}

    /* Mostra con transizione */
    .overlay-filtri-local.show {
        max-height: 600px;
        opacity: 1;
        padding-top: 1rem;
    }


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




    /* 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);
    
}

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



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



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




.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 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top; /* centra in orizzontale, inizia dall’alto */
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}
.scroll-loader {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.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);
    }
}
@keyframes pulse {
    0% {
        background-color: #e0e0e0;
    }

    50% {
        background-color: #f0f0f0;
    }

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

.card-skeleton .skeleton-line {
    animation: pulse 1.5s infinite ease-in-out;
}






/* 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 {
    top:0;
    position: sticky;
    width: 100%;
    overflow: hidden;
    background: var(--secondary-color); /* sfondo blu scuro */
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    z-index: 5000;

}


.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;
    color: var(--primary-color) !important;
    width: auto;
    font-weight: 800 !important;
    font-size: 0.75rem !important;
    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;
    margin-top: 30px; /* o 1.5rem, 32px ecc. */
}

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


.trustpilot-widget {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    z-index: 0 !important;
}




@media (max-width: 768px) {

    

    body.split-layout {
        flex-direction: column;
        height: auto;
    }

    .colonna-destra {
        width: 100vw !important;
        height: auto !important;
        overflow-y: visible !important;
        padding-bottom: 50px;
        top: 30px;
    }

    .colonna-sinistra {
        width: 100vw !important;
        height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    #heroBanner {
        display: flex;
        flex-direction: column;
        height: auto !important;
        min-height: 420px; /* forza almeno un’altezza visibile */
        margin-bottom: -60px;
    }

    .hero-overlay-box {
        top: 110px;
        z-index: 2;
        position: relative;
    }

    .img-hero {
        position: absolute;
        height: 100%;
        top: 0;
        left: 0;
    }


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

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

    
    .hero-overlay-box {
        max-width: 100%;
        padding: 1.5rem 1rem;
    }

    #titoloOfferta {
        font-size: 1.0rem;
    }

    .espandi-colonna-btn {
        display: none !important;
    }

    #btnApriFiltri {
        width: 100%;
        font-size: 1rem;
        padding: 0.6rem 1rem;
        margin-top: 1rem;
    }

    #top-richieste {
        margin-top: 0 !important; /* elimina il -30px */
        position: relative;
        z-index: 1 !important;
    }

    #modalFiltri .modal-dialog {
        bottom: 300px;
        left: 10px;
        width: 95vw;
        height: 18vh;
        overflow: hidden !important;
    }

    #modalFiltri .modal-content,
    #modalFiltri .modal-body {
        overflow: hidden !important;
        max-height: 100%;
    }

}
/* Desktop (solo quando >768px) */
@media (min-width: 769px) {
    .az-navbar {
        width: 50%;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .az-navbar {
        width: 100%;
    }
}
