/* === PAGINATION STYLES === */
.pagination-wrapper {
    margin: 2rem 0;
    padding: 1rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
    list-style: none;
}

.page-item {
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--pagination-border);
    border-radius: 4px;
    color: var(--pagination-color);
    background-color: var(--pagination-bg);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Stile per la pagina CORRENTE */
.page-item.active .page-link {
    background-color: var(--pagination-active-bg) !important;
    border-color: var(--pagination-active-border) !important;
    color: var(--pagination-active-color) !important;
    font-weight: 600;
    box-shadow: 0 2px 4px var(--pagination-shadow);
    z-index: 1;
}

/* Hover per pagine non attive */
.page-link:not(.active):hover {
    background-color: var(--pagination-hover-bg);
    color: var(--pagination-hover-color);
    border-color: var(--pagination-border);
}

/* Stile per i bottoni disabilitati */
.page-item.disabled .page-link {
    color: var(--pagination-disabled-color);
    background-color: var(--pagination-disabled-bg);
    border-color: var(--pagination-disabled-border);
    opacity: 0.7;
    cursor: not-allowed;
}

/* Stile per le frecce */
.page-link[aria-label="Previous"],
.page-link[aria-label="Next"] {
    font-size: 0;
    position: relative;
}

.page-link[aria-label="Previous"]::before,
.page-link[aria-label="Next"]::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 14px;
}

.page-link[aria-label="Previous"]::before {
    content: "\f104";
}

.page-link[aria-label="Next"]::before {
    content: "\f105";
}

/* Responsive per mobile */
@media (max-width: 768px) {
    .pagination {
        gap: 0.3rem;
    }
    
    .page-link {
        min-width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* === NAVBAR STYLES === */
.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--navbar-border);
    box-shadow: 0 2px 10px var(--navbar-shadow);
    position: relative;
    z-index: var(--z-navbar);
}

/* Navbar con sfumatura */
.navbar.navbar-gradient {
    background: linear-gradient(135deg, var(--navbar-gradient-start) 0%, var(--navbar-gradient-end) 100%) !important;
    border-bottom: none;
}

/* Navbar con sfumatura orizzontale */
.navbar.navbar-gradient-horizontal {
    background: linear-gradient(to right, var(--navbar-gradient-start) 0%, var(--navbar-gradient-end) 100%) !important;
}

/* Navbar trasparente con overlay */
.navbar.navbar-transparent {
    background: var(--navbar-transparent-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Testi e link */
.navbar .navbar-brand,
.navbar .navbar-nav .nav-link {
    color: var(--navbar-text) !important;
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:focus {
    color: var(--navbar-link-hover) !important;
}

.navbar .navbar-nav .nav-link.active {
    color: var(--navbar-link-active) !important;
    font-weight: 600;
}

/* Icone nella navbar */
.navbar .navbar-nav .nav-link i,
.navbar .navbar-brand i {
    color: var(--navbar-icon-color) !important;
    transition: color 0.3s ease;
}

.navbar .navbar-nav .nav-link:hover i,
.navbar .navbar-brand:hover i {
    color: var(--navbar-icon-hover) !important;
}

/* Dropdown nella navbar */
.navbar .dropdown-menu {
    background-color: var(--navbar-bg);
    border: 1px solid var(--navbar-border);
    box-shadow: 0 10px 40px var(--navbar-shadow);
}

.navbar .dropdown-item {
    color: var(--navbar-text) !important;
}

.navbar .dropdown-item:hover {
    background-color: var(--navbar-link-hover);
    color: var(--bg-darker) !important;
}

/* Toggler per mobile */
.navbar-toggler {
    border-color: var(--navbar-border);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* === VARIANTI SPECIALI === */

/* Navbar scura */
.navbar.navbar-dark {
    --navbar-bg: var(--navbar-dark-bg);
    --navbar-text: var(--navbar-dark-text);
    --navbar-link: var(--navbar-dark-link);
    --navbar-border: var(--navbar-dark-border);
}

.navbar.navbar-dark .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navbar con pattern */
.navbar.navbar-pattern {
    background-image: 
        linear-gradient(135deg, var(--navbar-gradient-start) 0%, var(--navbar-gradient-end) 100%),
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.1) 10px, rgba(255,255,255,0.1) 20px);
}

/* Navbar con effetto glass */
.navbar.navbar-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* === POINTS OF SALE STYLES === */
.point-of-sale-card {
    background: var(--pos-bg-white);
    border-radius: 8px;
    border: 1px solid var(--pos-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.point-of-sale-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-light);
}

.pos-header {
    background: var(--pos-bg-white);
    padding: 25px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--pos-border);
}

.pos-number {
    width: 60px;
    height: 60px;
    background: var(--pos-number-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pos-number-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.pos-title h3 {
    color: var(--pos-title-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.pos-location {
    color: var(--pos-location-color);
    margin: 0;
    font-size: 0.95rem;
}

.pos-content {
    padding: 25px;
    background: var(--pos-bg-white);
}

.pos-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pos-detail-border);
}

.pos-detail:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.detail-icon {
    width: 40px;
    height: 40px;
    background: var(--pos-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    border: 1px solid var(--pos-icon-border);
}

.detail-icon i {
    color: var(--pos-icon-color);
    font-size: 16px;
}

.detail-content h5 {
    color: var(--pos-title-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.detail-content p {
    color: var(--pos-location-color);
    margin: 0;
    line-height: 1.4;
}

.detail-content a {
    color: var(--pos-number-bg);
    text-decoration: none;
}

.detail-content a:hover {
    text-decoration: underline;
}

.pos-actions {
    padding: 20px 25px;
    background: var(--pos-actions-bg);
    border-top: 1px solid var(--pos-border);
    display: flex;
    gap: 10px;
}

.no-points-of-sale {
    background: var(--pos-bg);
    border-radius: 8px;
    border: 1px solid var(--pos-border);
}

.available-services {
    background: var(--service-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--service-border);
}

.service-item {
    background: var(--service-bg-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--service-border);
    height: 100%;
}

.service-item .service-icon {
    width: 60px;
    height: 60px;
    background: var(--service-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.service-item .service-icon i {
    color: var(--service-icon-color);
    font-size: 24px;
}

.service-item h5 {
    color: var(--service-title-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.service-item p {
    color: var(--service-text-color);
    margin: 0;
    font-size: 0.9rem;
}

.find-us-section {
    background: var(--service-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--service-border);
}

.transport-method {
    text-align: center;
    background: var(--transport-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--transport-border);
    height: 100%;
}

.transport-icon {
    width: 80px;
    height: 80px;
    background: var(--transport-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.transport-icon i {
    color: var(--transport-icon-color);
    font-size: 32px;
}

/* === REVIEWS STYLES === */
.reviews-stats {
    background: var(--review-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
}

.stat-card {
    background: var(--review-bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
    height: 100%;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--pos-number-bg);
    margin-bottom: 10px;
    line-height: 1;
}

.stat-stars {
    font-size: 1.5rem;
    margin-left: 10px;
}

.stat-label {
    color: var(--review-meta-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.review-card {
    background: var(--review-bg);
    border-radius: 8px;
    border: 1px solid var(--review-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--card-shadow-light);
}

.review-header {
    background: var(--review-bg-white);
    padding: 20px;
    border-bottom: 1px solid var(--review-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.review-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--review-author-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--review-author-color);
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.author-info h5 {
    color: var(--pos-title-color);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.review-date,
.review-source {
    color: var(--review-meta-color);
    font-size: 0.85rem;
}

.review-rating {
    font-size: 1.2rem;
}

.review-content {
    padding: 20px;
    background: var(--review-bg-white);
}

.review-text {
    color: var(--review-text-color);
    line-height: 1.6;
    margin-bottom: 15px;
}

.review-vehicle {
    padding-top: 15px;
    border-top: 1px solid var(--review-vehicle-border);
}

.no-reviews {
    background: var(--review-bg);
    border-radius: 8px;
    border: 1px solid var(--review-border);
}

.leave-review-section {
    background: var(--review-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
}

.platform-card {
    background: var(--review-bg-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
    height: 100%;
    transition: all 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--card-shadow-light);
}

.platform-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
}

.platform-icon.google {
    background: var(--platform-google-bg);
}

.platform-icon.facebook {
    background: var(--platform-facebook-bg);
}

.platform-icon.autoscout {
    background: var(--platform-autoscout-bg);
}

.platform-icon.email {
    background: var(--platform-email-bg);
}

.platform-icon i {
    color: var(--platform-icon-color);
    font-size: 24px;
}

.platform-card h5 {
    color: var(--pos-title-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.platform-card p {
    color: var(--review-meta-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.why-reviews-matter {
    background: var(--review-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
}

.reason-card {
    background: var(--review-bg-white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--review-border);
    height: 100%;
}

.reason-icon {
    width: 80px;
    height: 80px;
    background: var(--reason-icon-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.reason-icon i {
    color: var(--reason-icon-color);
    font-size: 32px;
}

/* === GALLERY STYLES === */
.gallery-categories {
    background: var(--gallery-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--gallery-border);
}

.gallery-filter {
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.gallery-filter.active {
    background: var(--pagination-active-bg);
    border-color: var(--pagination-active-border);
    color: var(--pagination-active-color);
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: var(--gallery-bg);
    border: 1px solid var(--gallery-border);
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-medium);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gallery-overlay-bg);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: var(--gallery-content-color);
    padding: 20px;
}

.gallery-content i {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.gallery-content h5 {
    margin-bottom: 5px;
    font-weight: 600;
}

.gallery-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.no-gallery-results {
    background: var(--gallery-bg);
    border-radius: 8px;
    border: 1px solid var(--gallery-border);
}

/* === INSTAGRAM STYLES === */
.social-cta .btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.instagram-post-card {
    background: var(--instagram-bg);
    border-radius: 8px;
    border: 1px solid var(--instagram-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.instagram-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-light);
}

.post-media {
    position: relative;
    overflow: hidden;
}

.instagram-embed {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

.post-info {
    padding: 20px;
    background: var(--review-bg-white);
}

.post-header {
    margin-bottom: 15px;
}

.post-title {
    color: var(--pos-title-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.post-date {
    color: var(--review-meta-color);
    font-size: 0.9rem;
    display: block;
}

.post-category {
    margin-bottom: 15px;
}

.category-badge {
    background: var(--instagram-category-bg);
    color: var(--instagram-category-color);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-actions .btn {
    border-radius: 20px;
    font-size: 0.9rem;
}

.no-instagram-posts {
    background: var(--instagram-bg);
    border-radius: 8px;
    border: 1px solid var(--instagram-border);
}

.instagram-features {
    background: var(--instagram-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--instagram-border);
}

.hashtags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.hashtag {
    background: var(--instagram-hashtag-bg);
    color: var(--instagram-hashtag-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* === PARTNER STYLES === */
.partner-card {
    background: var(--partner-bg);
    border-radius: 8px;
    border: 1px solid var(--partner-border);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    text-decoration: none;
    color: inherit;
    display: block;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-light);
    text-decoration: none;
    color: inherit;
}

.partner-logo {
    padding: 30px;
    background: var(--partner-logo-bg);
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.default-logo {
    text-align: center;
    color: var(--partner-logo-color);
}

.default-logo i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.default-logo span {
    font-weight: 600;
    font-size: 1.1rem;
}

.partner-info {
    padding: 20px;
    background: var(--partner-bg-white);
}

.partner-description {
    color: var(--partner-description-color);
    line-height: 1.6;
    font-size: 0.95rem;
}

.partner-action {
    padding: 15px 20px;
    background: var(--partner-bg);
    border-top: 1px solid var(--partner-border);
    text-align: center;
}

.visit-link {
    color: var(--partner-link-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.no-partners {
    background: var(--partner-bg);
    border-radius: 8px;
    border: 1px solid var(--partner-border);
}

.partnership-benefits,
.partnership-types {
    background: var(--partner-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--partner-border);
}

.benefit-card,
.partnership-type-card {
    background: var(--partner-bg-white);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--partner-border);
    height: 100%;
    transition: all 0.3s ease;
}

.benefit-card:hover,
.partnership-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--card-shadow-light);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    background: var(--partner-benefit-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.benefit-icon i {
    color: var(--partner-benefit-color);
    font-size: 32px;
}

.type-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.type-icon {
    width: 60px;
    height: 60px;
    background: var(--partner-type-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.type-icon i {
    color: var(--partner-type-color);
    font-size: 24px;
}

.type-content p {
    color: var(--partner-type-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.type-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.type-benefits li {
    padding: 5px 0;
    color: var(--partner-type-text);
}

.type-benefits i {
    color: var(--partner-type-check);
    margin-right: 8px;
    width: 16px;
}

.become-partner-cta {
    background: var(--partner-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--partner-border);
}

/* === GLOBAL STYLES === */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--link-hover);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* === HEADER STYLES === */
.header {
    box-shadow: 0 2px 10px var(--card-shadow-light);
}

.top-bar {
    background-color: var(--topbar-bg);
    padding: 10px 0;
    font-size: 0.9rem;
}

.contact-info span {
    margin-right: 15px;
    color: var(--topbar-text);
    font-weight: 500;
}

.navbar-brand img {
    max-height: 50px;
}

/* === SLIDER STYLES === */
.slider-section {
    margin-top: 20px;
}

.carousel-item {
    height: 500px;
    background-color: var(--bg-gray);
}

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

.slider-content {
    background-color: var(--hero-overlay-bg);
    padding: 20px;
    border-radius: 5px;
}

/* === SEARCH FORM STYLES === */
.search-form-horizontal {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 5px;
    box-shadow: 0 5px 15px var(--card-shadow-light);
}

.badge-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.badge-overlay .badge {
    margin-left: 5px;
}

.vehicle-specs {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.vehicle-specs li {
    margin-bottom: 5px;
}

/* === WHY CHOOSE US STYLES === */
.feature-box {
    background-color: var(--bg-white);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-light);
}

.feature-box .icon {
    color: var(--link-color);
}

/* === VEHICLE DETAILS STYLES === */
.vehicle-gallery .main-image {
    border: 1px solid var(--border-gray-light);
    border-radius: 5px;
    overflow: hidden;
}

.thumbnail {
    cursor: pointer;
    border: 2px solid var(--border-gray-light);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--link-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

#risultatoCalcolo {
    background: var(--financing-result-bg);
    border: 2px solid var(--financing-result-border);
    animation: slideInUp 0.5s ease;
}

@keyframes slideInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#formFinanziamenti .form-control:focus,
#formFinanziamenti .form-select:focus {
    border-color: var(--bg-white);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.badge {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--bg-gray);
    color: var(--link-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--link-color);
}

/* === SQL DEBUG STYLES === */
pre.sql-log {
    background: var(--bg-gray);
    border-left: 3px solid var(--success-color);
    padding: 10px;
    margin: 10px 0;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
}

pre.sql-error {
    background: var(--danger-light);
    border-left: 3px solid var(--danger-color);
    padding: 10px;
    margin: 10px 0;
    font-family: Consolas, monospace;
    white-space: pre-wrap;
}

/* === VEHICLE SHOWCASE 5 === */
.vehicle-showcase-5 {
    display: inline-block; 
    width: 100%; 
    text-align: left; 
    border: 1px solid var(--vehicle-card-border); 
    min-height: inherit; 
    vertical-align: top;
    margin-top: 30px;
    transition: all 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-showcase-5:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--card-shadow-light);
}

/* === CAR IMAGE CONTAINER === */
.vehicle-showcase-5 .car-image {
    position: relative;
    overflow: hidden;
}

.vehicle-showcase-5 .car-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.vehicle-showcase-5:hover .car-image img {
    transform: scale(1.05);
}

/* === VEHICLE LABELS CONTAINER === */
.vehicle-showcase-5 .car-image .labels-container {
    position: absolute; 
    top: 8px; 
    left: 8px; 
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    z-index: 4;
    max-width: calc(100% - 16px);
}

/* === VEHICLE LABEL === */
.vehicle-showcase-5 .car-image .label {  
    background: var(--danger-color); 
    font-size: 11px !important; 
    line-height: 1; 
    color: var(--bg-white); 
    font-weight: 600; 
    padding: 8px 10px; 
    text-transform: uppercase; 
    border-radius: .25em;
    white-space: nowrap;
}

.vehicle-showcase-5 .car-image .label.new { 
    background-color: var(--vehicle-label-new);
}

.vehicle-showcase-5 .car-image .label.used { 
    background-color: var(--vehicle-label-used);
}

.vehicle-showcase-5 .car-image .label.neo-patentati { 
    background-color: var(--vehicle-label-neo);
    color: var(--vehicle-label-neo-text);
}

.vehicle-showcase-5 .car-image .label.cilindrata { 
    background-color: var(--vehicle-label-cilindrata);
    color: var(--bg-white);
}

.vehicle-showcase-5 .car-image .label.fatturabile { 
    background-color: var(--vehicle-label-fatturabile);
    color: var(--bg-white);
}

/* === OVERLAY BANNER === */
.vehicle-showcase-5 .car-overlay-banner {
    position: absolute;
    top: 8px; 
    right: 8px; 
    bottom: 8px; 
    left: 8px; 
    z-index: 4; 
    width: auto; 
    height: auto; 
    display: flex; 
    align-items: center;   
    justify-content: center; 
    background: none !important; 
    transition: all .4s ease-in-out 0s;
    opacity: 0;
}

.vehicle-showcase-5:hover .car-overlay-banner {
    opacity: 1; 
    top: 8px;
}

.vehicle-showcase-5 .car-overlay-banner:before {
    content: ""; 
    position: absolute; 
    left: 0; 
    right: 0; 
    top: 0; 
    bottom: 0; 
    background: var(--vehicle-overlay-bg); 
    opacity: var(--vehicle-overlay-opacity); 
    transform: scale(0.9);  
    transition: all .25s ease-in-out 0s;
}

.vehicle-showcase-5:hover .car-overlay-banner:before {
    transform: scale(1);
}

/* === QUICK ACTIONS === */
.vehicle-showcase-5 .car-overlay-banner ul {
    position: relative; 
    transform: none; 
    top: auto;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.vehicle-showcase-5 .car-overlay-banner ul li a {
    width: 43px; 
    height: 42px; 
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 14px; 
    background: var(--vehicle-action-bg); 
    color: var(--vehicle-action-color); 
    border: none; 
    border-radius: 5px; 
    transition: all .25s ease-in-out 0s;
    text-decoration: none;
}

.vehicle-showcase-5 .car-overlay-banner ul li a:hover {
    color: var(--vehicle-action-color);
    background: var(--vehicle-action-hover);
}

/* === PRICE SECTION === */
.vehicle-showcase-5 .car-image .price {
    position: absolute; 
    right: 8px; 
    bottom: 8px; 
    background: var(--vehicle-price-bg); 
    padding: 7px 15px;
    border-radius: 4px;
}

.vehicle-showcase-5 .car-image .price .new-price,
.vehicle-showcase-5 .car-image .price .new-price .currency {
    color: var(--vehicle-price-color); 
    font-size: 20px; 
    font-weight: 500;
}

.vehicle-showcase-5 .car-image .price.car-price .old-price { 
    color: var(--vehicle-price-old); 
    font-size: 16px; 
    opacity: 0.7; 
    padding-right: 5px;
    display: block;
}

.vehicle-showcase-5 .car-image .price.car-price .old-price span.currency {
    color: var(--vehicle-price-old);
}

.vehicle-showcase-5 .car-image .price.car-price > p { 
    margin: 0; 
    font-size: 15px; 
    padding: 0 5px; 
    line-height: 22px; 
    margin-left: 5px; 
    position: relative; 
    top: -1px; 
    display: inline-block; 
    background: var(--text-dark); 
    color: var(--bg-white); 
    border-radius: 2px; 
    font-style: italic;
}

/* === CAR CONTENT === */
.vehicle-showcase-5 .car-content {
    padding: 15px;
    background: var(--vehicle-content-bg);
}

.vehicle-showcase-5 .car-content .car-attribute-subtitle {
    color: var(--vehicle-subtitle-color); 
    font-size: 17px; 
    font-weight: 600; 
    text-transform: uppercase; 
    margin-bottom: 5px;
}

.vehicle-showcase-5 .car-content .item-title {
    display: block; 
    width: 100%; 
    font-size: 16px; 
    line-height: 30px; 
    font-weight: 400; 
    margin-bottom: 15px;
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap;
}

.vehicle-showcase-5 .car-content .item-title a {
    color: inherit; 
    font-size: inherit; 
    font-weight: inherit; 
    margin: 0; 
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap; 
    transition: all .25s ease-out 0s;
    text-decoration: none;
    display: block;
    width: 100%;
}

.vehicle-showcase-5 .car-content .item-title a:hover {
    color: var(--vehicle-subtitle-color);
}

/* === CAR ATTRIBUTES === */
.vehicle-showcase-5 .car-content .car-attribute-columns {
    display: flex; 
    gap: 15px;
}

.vehicle-showcase-5 .car-content .car-attribute-columns > div {
    width: calc(33.3333% - 10px);
}

.vehicle-showcase-5 .car-content .car-attribute-column-1-title {
    font-size: 15px; 
    line-height: 22px; 
    margin-bottom: 3px; 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap;
    color: var(--vehicle-attribute-title);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.vehicle-showcase-5 .car-content .car-attribute-column-1-value {
    font-size: 16px; 
    line-height: 24px; 
    color: var(--vehicle-attribute-value); 
    font-weight: 600; 
    overflow: hidden; 
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === RESPONSIVE STYLES === */
@media (max-width: 768px) {
    .pos-header {
        flex-direction: column;
        text-align: center;
    }
    
    .pos-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .pos-detail {
        flex-direction: column;
        text-align: center;
    }
    
    .detail-icon {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .pos-actions {
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-stars {
        display: block;
        margin-left: 0;
        margin-top: 5px;
    }
    
    .review-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .review-meta {
        align-items: center;
        text-align: center;
    }
    
    .platform-card {
        margin-bottom: 20px;
    }
    
    .carousel-item {
        height: 350px;
    }
    
    .search-form-horizontal {
        margin-top: 0;
    }
    
    .vehicle-card .card-img-top {
        height: 150px;
    }
    
    .tech-specs {
        gap: 10px;
    }
    
    .tech-item {
        padding: 12px;
    }
    
    .tech-icon {
        width: 40px;
        height: 40px;
    }
    
    .tech-icon i {
        font-size: 20px;
    }
    
    .tech-value {
        font-size: 16px;
    }
    
    .tech-label {
        font-size: 13px;
    }
    
    .gallery-card img {
        height: 200px;
    }
    
    .gallery-filter {
        margin-bottom: 10px;
    }
    
    .hashtags-list {
        justify-content: center;
    }
    
    .hashtag {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .partner-logo {
        min-height: 150px;
        padding: 20px;
    }
    
    .partner-logo img {
        max-height: 80px;
    }
    
    .type-header {
        flex-direction: column;
        text-align: center;
    }
    
    .type-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .post-info {
        padding: 15px;
    }
    
    .instagram-embed iframe {
        height: 400px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .hero-icon {
        display: none;
    }
    
    .card-body .border-end {
        border-right: none !important;
        border-bottom: 1px solid var(--border-gray);
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }
    
    .card-body .border-end:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }
    
    .staff-photo-large,
    .staff-photo-placeholder {
        width: 150px;
        height: 150px;
    }
    
    .staff-photo-placeholder i {
        font-size: 3rem;
    }
    
    .staff-photo-header {
        padding: 20px;
    }
    
    .point-of-sale-card .pos-header .pos-title.text-center h3 {
        font-size: 1.1rem;
    }
    
    .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--border-gray);
        border-radius: 8px;
        margin-top: 0.5rem;
    }
    
    .dropdown-item:hover {
        transform: none;
    }
    
    .accessories-list {
        gap: 8px;
    }
    
    .accessories-list li {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .vehicle-showcase-5 {
        margin-top: 20px;
    }
    
    .vehicle-showcase-5 .car-image img {
        height: 200px;
    }
    
    .vehicle-showcase-5 .car-image .labels-container {
        max-width: calc(100% - 32px);
    }
    
    .vehicle-showcase-5 .car-content {
        padding: 25px;
    }
    
    .vehicle-showcase-5 .car-content .item-title {
        font-size: 18px;
        line-height: 26px;
    }
    
    .vehicle-showcase-5 .car-content .car-attribute-columns {
        flex-direction: column;
        gap: 10px;
    }
    
    .vehicle-showcase-5 .car-content .car-attribute-columns > div {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-bottom: 1px solid var(--bg-gray);
    }
    
    .vehicle-showcase-5 .car-content .car-attribute-columns > div:last-child {
        border-bottom: none;
    }
    
    .vehicle-showcase-5 .car-content .car-attribute-column-1-title {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .tech-item .d-flex {
        flex-direction: column;
        text-align: center;
    }
    
    .tech-content {
        margin-top: 10px;
        margin-left: 0 !important;
    }
    
    .staff-photo-large,
    .staff-photo-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .staff-photo-placeholder i {
        font-size: 2.5rem;
    }
    
    .vehicle-showcase-5 .car-image img {
        height: 180px;
    }
    
    .vehicle-showcase-5 .car-image .labels-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }
    
    .vehicle-showcase-5 .car-image .label {
        font-size: 10px !important;
        padding: 6px 8px;
    }
    
    .vehicle-showcase-5 .car-content {
        padding: 20px;
    }
    
    .vehicle-showcase-5 .car-image .price {
        padding: 5px 10px;
    }
    
    .vehicle-showcase-5 .car-image .price .new-price {
        font-size: 18px;
    }
    
    .vehicle-showcase-5 .car-overlay-banner ul {
        gap: 5px;
    }
    
    .vehicle-showcase-5 .car-overlay-banner ul li a {
        width: 38px;
        height: 37px;
        font-size: 12px;
    }
}

/* === DROPDOWN ANIMATIONS === */
.dropdown-menu.show {
    animation: dropdownFadeIn 0.3s ease;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-toggle::after {
    border: none;
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    vertical-align: middle;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

.dropdown-item .badge {
    margin-left: auto;
    font-size: 0.7rem;
}

/* === TEMA SCURO OVERRIDES === */
.dark-theme .accessories-list li {
    background: var(--secondary-light);
    color: var(--text-primary);
    border-color: var(--border-light);
}

.dark-theme .accessories-list li:hover {
    background: var(--border-light);
    border-color: var(--secondary-color);
}

.dark-theme .vehicle-showcase-5 {
    border-color: var(--border-color);
    background: var(--card-bg);
}

.dark-theme .vehicle-showcase-5 .car-content {
    background: var(--card-bg);
}

.dark-theme .vehicle-showcase-5 .car-content .item-title a {
    color: var(--text-primary);
}

.dark-theme .vehicle-showcase-5 .car-content .item-title a:hover {
    color: var(--primary-color);
}

.dark-theme .vehicle-showcase-5 .car-content .car-attribute-column-1-title {
    color: var(--text-muted);
}

.dark-theme .vehicle-showcase-5 .car-content .car-attribute-column-1-value {
    color: var(--text-primary);
}

.text-muted {
    color: var(--text-muted) !important;
}
}

/* === TECHNICAL DETAILS === */
.technical-details {
    background: var(--tech-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--tech-border);
}

.description,
.social-share,
.accessories,
.video-section {
    background: var(--tech-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--tech-border);
}

.description h3,
.social-share h3,
.accessories h3,
.video-section h3,
.technical-details h3 {
    margin-bottom: 15px;
    color: var(--tech-label-color);
    font-weight: 600;
}

/* === ACCESSORI SECTION === */
.accessories {
    background: transparent;
    padding: 20px 0;
    border-radius: 0;
    border: none;
}

.accessories h3 {
    margin-bottom: 20px;
    color: var(--tech-label-color);
    font-weight: 600;
    font-size: 1.5rem;
}

.accessories-list {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    margin-top: 0;
}

.accessories-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accessories-list li {
    background: var(--tech-bg);
    color: var(--tech-label-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--tech-border);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.accessories-list li:hover {
    background: var(--border-gray-light);
    border-color: var(--border-gray);
    transform: translateY(-1px);
}

.tech-specs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tech-item {
    background: var(--tech-item-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--tech-item-border);
    transition: all 0.3s ease;
}

.tech-item:hover {
    box-shadow: 0 2px 8px var(--card-shadow-light);
    transform: translateY(-1px);
}

.tech-icon {
    width: 50px;
    height: 50px;
    background: var(--tech-icon-bg);
    border: 2px solid var(--tech-icon-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-icon i {
    color: var(--tech-icon-color);
    font-size: 24px;
}

.tech-content {
    flex: 1;
}

.tech-label {
    color: var(--tech-label-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-value {
    color: var(--tech-value-color);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

/* === PRICE SECTION === */
.price-section {
    background: var(--price-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--price-border);
    text-align: center;
}

.main-price {
    margin-bottom: 10px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--price-value-color);
    display: block;
    line-height: 1.2;
}

.original-price {
    font-size: 1.2rem;
    color: var(--price-original-color);
    text-decoration: line-through;
    font-weight: 500;
}

.savings-badge {
    background: var(--price-savings-bg);
    color: var(--price-savings-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-top: 5px;
}

.financing-price {
    padding-top: 15px;
    border-top: 1px solid var(--price-financing-border);
}

.financing-label {
    display: block;
    font-size: 0.9rem;
    color: var(--price-financing-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.financing-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--price-financing-value);
    display: block;
}

/* === ACTION BUTTONS === */
.action-buttons {
    background: var(--action-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--action-border);
}

.action-buttons .btn {
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 4px var(--btn-shadow);
}

.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--btn-hover-shadow);
}

.action-buttons .btn-primary {
    background: var(--action-btn-primary);
}

.action-buttons .btn-success {
    background: var(--action-btn-success);
}

.action-buttons .btn-warning {
    background: var(--action-btn-warning);
    color: var(--action-btn-warning-text);
}

.action-buttons .btn i {
    font-size: 18px;
}

/* === FOOTER === */
.footer {
    background-color: var(--footer-bg);
}

.footer h5 {
    color: var(--footer-text);
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.social-links a {
    color: var(--footer-link);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* === FANCYBOX CUSTOMIZATION === */
.fancybox-button {
    background: rgba(30, 30, 30, 0.6);
}

.fancybox-thumbs {
    background: rgba(0, 0, 0, 0.8);
}

.fancybox-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0) 100%);
    color: var(--hero-text-color);
}

/* === STAFF PHOTO === */
.staff-photo-header {
    background: var(--staff-photo-bg);
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid var(--border-gray-light);
}

.staff-photo-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 4px solid var(--staff-photo-border);
    box-shadow: 0 8px 24px var(--card-shadow-medium);
    transition: all 0.3s ease;
}

.staff-photo-large:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px var(--card-shadow-heavy);
}

.staff-photo-placeholder {
    width: 180px;
    height: 180px;
    background: var(--staff-placeholder-bg);
    border: 4px solid var(--staff-photo-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 8px 24px var(--card-shadow-medium);
}

.staff-photo-placeholder i {
    font-size: 4rem;
    color: var(--staff-placeholder-color);
}

.point-of-sale-card .pos-header .pos-title.text-center {
    text-align: center;
}

.point-of-sale-card .pos-header .pos-title.text-center h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.point-of-sale-card .pos-header .pos-title.text-center .pos-location {
    font-size: 1rem;
    font-weight: 600;
    color: var(--staff-name-color);
}

/* === DROPDOWN STYLES === */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 280px;
    box-shadow: 0 10px 40px var(--card-shadow-medium);
}

.dropdown-header {
    color: var(--pos-title-color);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem 1rem 0.25rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: var(--bg-gray);
    color: var(--link-color);
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: var(--link-color);
    color: var(--bg-white);
}

.dropdown-item.active i {
    color: var(--bg-white) !important;
}

.dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.3;
}

/* === FINANCING STYLES === */
.bg-gradient-primary {
    background: var(--financing-gradient-primary);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px var(--card-shadow-medium) !important;
}

.hero-icon {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.card-header {
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.7s;
}

.card:hover .card-header::before {
    left: 100%;
}

#calcolatoreRata .form-control:focus,
#calcolatoreRata .form-select:focus {
    border-color: var(--link-color);
    
/* Aggiungi questo al tuo style.css base */
.dark-mode-ready {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Per prevenire flash di contenuto chiaro */
.dark-loading {
    background-color: #000000 !important;
    color: #ffffff !important;
}    

/* Cambio Thema */
.theme-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border-radius: 8px;
}

.theme-selector select {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px;
    border-radius: 4px;
}