﻿/* ===================================================================
   BRAND PAGE — BASE STYLE
   =================================================================== */

body {
    font-family: var(--font-family, 'Montserrat', sans-serif) !important;
}


/* ===================================================================
   COLONNA SINISTRA (stesso stile usato)
   =================================================================== */

.colonna-sinistra {
    position: fixed;
    top: 5px;
    padding-top: 100px;
    left: 0;
    width: 380px;
    bottom: 0;
    background: linear-gradient( to bottom, color-mix(in srgb, var(--tertiary-color) 95%, white 5%), color-mix(in srgb, var(--tertiary-color) 85%, black 15%) );
    color: var(--primary-color, #fff);
    box-shadow: inset -15px 0 205px rgba(0,0,0,0.5);
    overflow: hidden;
}

    .colonna-sinistra .hero-video {
        position: absolute;
        top: 2rem;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top left, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.4) 30%, rgba(0,0,0,0.1) 70%, transparent 100% );
}


/* ===================================================================
   COLONNA DESTRA
   =================================================================== */

.colonna-destra {
    margin-left: 380px;
    padding: 0;
    background: var(--secondary-color, #f1f1f1);
    min-height: 100vh;
    position: relative;
}


/* ===================================================================
   HERO BRAND
   =================================================================== */

.brand-hero {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.brand-logo {
    width: 110px;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}


.brand-name {
    font-size: 1rem;
    font-weight: 700;
    color: #fff !important;
    margin: 0;
}

/* ============================================================
   LOGO BRAND FLOTTANTE (DESKTOP + MOBILE)
   ============================================================ */

.brand-logo-wrapper {
    position: absolute;
    top: 2rem; /* sopra il contenuto */
    right: 2rem; /* nell’angolo in alto a destra */
    z-index: 30;
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.8);
    border-radius: 100px;
    backdrop-filter: blur(1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    padding: 9px;
}

    .brand-logo-wrapper .brand-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.brand-ai-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 7rem auto 2rem auto;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-ai-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* ===================================================================
   LOGO SOVRAPPOSTO ALL'IMMAGINE (solo mobile)
   =================================================================== */

.brand-mobile-logo-wrapper {
    position: absolute;
    top: 20px;
    left: 50%;
    z-index: 20;
    width: 130px;
    height: 130px;
    display: none; /* viene attivato solo su mobile */
    transform: translateX(-50%);
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85);
    border-radius: 100px;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255,255,255,0.50);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    padding: 10px;
}
.brand-mobile-logo {
    width: 100%;
    height: auto;
    border-radius: 50px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    object-fit: cover;
}


/* ------------------------------------------------------------
   VERSIONE MOBILE / TABLET
   ------------------------------------------------------------ */
@media (max-width: 1250px) {

    .brand-logo-wrapper {
        position: relative;
        display: none;
        top: 0;
        right: 0;
        margin: 10px auto 20px auto;
        width: 150px;
        height: 150px;
    }

    .brand-mobile-logo-wrapper {
        display: flex !important;
        width: 150px;
        height: 150px;
    }

    /* Nascondo il logo desktop */
    .brand-hero .brand-logo {
        display: none !important;
    }

    .brand-ai-image-wrapper {
        width: 100%;
        max-width: 1200px;
        margin: 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .brand-ai-image {
        width: 100%;
        height: auto;
        border-radius: 1px;
        box-shadow: 0 12px 30px rgba(0,0,0,0.15);
        object-fit: cover;
    }

}

/* ===================================================================
   TESTO BRAND
   =================================================================== */

.brand-section {
    margin-bottom: 2.5rem;
}

    .brand-section h3 {
        border-left: 8px solid var(--tertiary-color);
        background: var(--primary-color) !important;
        padding-left: 1rem;
        color: #111;
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .brand-section h2 {
        border-left: 8px solid var(--tertiary-color);
        background: var(--primary-color) !important;
        padding-left: 1rem;
        color: #111;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

.brand-text {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--primary-color);
    text-align: justify;
    padding: 1rem 1.0rem 1rem 1.0rem;
}


/* ===================================================================
   AUTO DISPONIBILI — CARD VERTICALI
   =================================================================== */

.brand-auto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Card */
.brand-auto-card {
    display: flex;
    flex-direction: column;
    border-radius: 1px;
    padding: 0;
    gap:1rem;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

    .brand-auto-card:hover {
        
        box-shadow: 0 14px 30px rgba(0,0,0,0.15);
    }

/* IMMAGINE AUTO */
.brand-auto-img-wrapper {
    width: 100%;
    aspect-ratio: 5 / 4; /* immagine rettangolare moderna */
    overflow: hidden;
}

    .brand-auto-img-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* TESTO */
.brand-auto-info {
    padding: 1rem 1rem 1.4rem;
    background: var(--secondary-color);
}

.brand-auto-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.brand-auto-price {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 0.5rem;
    color: var(--primary-color);
    border-left: 5px solid var(--tertiary-color);
    padding-left: 10px;
}

.venduta-label {
    background: #b80000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-block;
    margin-top: 6px;
}

.sold-img {
    filter: grayscale(40%) brightness(0.8);
}

.seo-subtitle-vendute {
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.2rem; /* sembra un H3 ma non lo è */
    color: #333;
    font-weight: 600;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .brand-auto-grid {
        grid-template-columns: 1fr;
    }
}


/* ===================================================================
   RESPONSIVE
   =================================================================== */

@media (max-width: 1250px) {

    body.split-layout {
        display: block;
        height: auto;
    }

    .colonna-sinistra {
        position: relative;
        width: 100%;
        height: auto;
    }

    .colonna-destra {
        margin-left: 0 !important;
        padding: 1.5rem;
        padding-top: 0.5rem !important;
    }

    .brand-auto-card {
        flex-direction: column;
    }

        .brand-auto-card img {
            width: 100%;
            height: auto;
        }

   
}


