﻿:root {
    --bg-primary: #008d2d;
    --bg-secondary: #008d2d;
    --bg-tertiary: #f2c98b;
}

.counter-box {
    top: -30px;
    left: 20px;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.8s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background-color: var(--bg-primary);
}

    .counter-box.show {
        transform: translateY(0);
        opacity: 1;
    }


.post-featured-image {
    overflow: hidden;
}

    .post-featured-image h4 {
        position: absolute;
        bottom: 20px;
        padding: 10px;
        color: white;
        background: rgba(0,0,0,.5);
        border-radius: 0 0 20px 20px
    }

.card-custom {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    max-width: 350px;
    font-family: sans-serif;
}

/* Immagine */
.card-img-wrapper {
    position: relative;
}

    .card-img-wrapper img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

/* Prezzo */
.price-badge {
    position: absolute;
    bottom: 15px;
    right: 0;
    background: #e2b878;
    color: #1a1a1a;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px 0 0 8px;
    font-size: 20px;
}

/* Corpo */
.card-body-custom {
    padding: 20px;
}

/* Titoli */
.title {
    font-weight: 700;
    margin-bottom: 5px;
}

.subtitle {
    color: #333;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Location */
.location {
    color: #777;
    font-size: 13px;
    margin-bottom: 20px;
}

/* Features */
.features {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    text-align: center;
}

    .features div {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 13px;
        color: #555;
    }

    .features i {
        color: #0d8b3e;
        margin-bottom: 5px;
    }

/* Bottone */
.btn-custom {
    display: block;
    width: 100%;
    text-align: center;
    background: #0d8b3e;
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

    .btn-custom:hover {
        background: #0a6f32;
    }

.footer-contact-box i {
    font-size: 18px;
    margin-top: 4px;
    min-width: 20px;
}

.footer-contact-box .fw-bold {
    font-size: 15px;
}

.footer-contact-box div div:last-child {
    font-size: 14px;
    opacity: 0.9;
}

.main-footer {
    background: #009b2a;
    color: #fff;
    padding: 70px 0 25px;
    position: relative;
    overflow: hidden;
}

    .main-footer a {
        color: #fff;
        text-decoration: none;
        transition: all 0.25s ease;
    }

        .main-footer a:hover {
            opacity: 0.85;
        }

.footer-top {
    padding-bottom: 36px;
}

.footer-brand {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-logo img {
    display: block;
    max-width: 100%;
    height: auto;
}

    .footer-logo img + img {
        margin-top: 18px;
    }

.footer-social-links h3,
.footer-links h3,
.footer-newsletter-box h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #fff;
}

.footer-social-links ul,
.footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-social-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .footer-social-links ul li a {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #fff;
        color: #111;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
    }

        .footer-social-links ul li a:hover {
            transform: translateY(-2px);
            opacity: 1;
        }

.footer-right {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.footer-contact-box {
    padding-top: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-icon {
    width: 26px;
    min-width: 26px;
    text-align: center;
    font-size: 19px;
    line-height: 1;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 4px;
}

.contact-text h4 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 4px;
    color: #fff;
}

.contact-text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom-content {
    padding-top: 8px;
}

.footer-links-wrap {
    height: 100%;
}

.footer-links ul li {
    margin-bottom: 14px;
    position: relative;
    padding-left: 16px;
}

    .footer-links ul li:last-child {
        margin-bottom: 0;
    }

    .footer-links ul li::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.85);
        position: absolute;
        left: 0;
        top: 9px;
    }

    .footer-links ul li a {
        font-size: 15px;
        font-weight: 600;
        color: #fff;
    }

.footer-links-secondary {
    padding-top: 34px;
}

.footer-newsletter-box {
    padding-left: 30px;
}

.footer-newsletter-form {
    margin-top: 8px;
}

.newsletter-field {
    position: relative;
}

    .newsletter-field .form-control {
        height: 56px;
        border-radius: 12px;
        border: none;
        padding: 0 70px 0 18px;
        background: #fff;
        color: #111;
        font-size: 15px;
        box-shadow: none;
    }

        .newsletter-field .form-control::placeholder {
            color: #666;
        }

        .newsletter-field .form-control:focus {
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
        }

.newsletter-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 10px;
    background: #009b2a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.25s ease;
}

    .newsletter-btn:hover {
        background: #008324;
        transform: translateY(-1px);
    }

    .newsletter-btn img {
        width: 16px;
        height: 16px;
        object-fit: contain;
    }

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
}

    .footer-copyright p {
        margin: 0;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.8);
    }

    .footer-copyright a {
        font-weight: 600;
    }

@media (max-width: 991.98px) {
    .main-footer {
        padding: 50px 0 25px;
    }

    .footer-newsletter-box {
        padding-left: 0;
    }

    .footer-links-secondary {
        padding-top: 0;
    }

    .footer-right {
        gap: 28px;
    }
}

@media (max-width: 767.98px) {
    .footer-logo {
        text-align: center;
    }

    .footer-social-links {
        text-align: center;
    }

        .footer-social-links ul {
            justify-content: center;
        }

    .contact-item {
        gap: 12px;
    }

    .footer-links-wrap .row > div + div {
        margin-top: 20px;
    }

    .footer-copyright {
        text-align: center;
    }
}

.card-img-top {
    height: 300px;
    object-fit: contain
}

@media (min-width: 1440px) {
    .owl-nav button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
    }

    .filtro-concessionari {
        position: absolute;
        top: -1rem;
        left: 0;
        z-index: 1000;
    }

        .filtro-concessionari .form-custom {
            border-radius: 0;
        }
}
