/* Nasconde le frecce dello slider */
.tp-leftarrow, .tp-rightarrow,
.tparrows {
  display: none !important;
}

/* Rimuove lo stile di base di carfeature-section */
.prt-row.carfeature-section {
    padding: 100px 0 85px; /* senza !important */
}

/* Con banner: selettore più specifico */
.prt-row.carfeature-section.has-banner {
    padding: 85px 0 85px !important;
}

/* Senza banner: selettore più specifico */
.prt-row.carfeature-section.no-banner {
    padding: 150px 0 85px !important;
}

.title-desc h2 {
    position: relative;
    color: var(--base-headingfont-color);
    font-size: 40px;
    line-height: 60px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 9;
}
.title-desc h3{
    display: inline-block;
    position: relative;
    color: var(--base-headingfont-color);
    font-size: 26px;
    line-height: 40px;
    margin-bottom: 10px;
}

/* Stili responsive per dispositivi mobili */
@media (max-width: 991px) {
    .prt-row.carfeature-section.no-banner {
        padding: 140px 0 45px !important;
    }
    .prt-row.carfeature-section.has-banner {
        padding: 45px 0 45px !important;
    }
    .prt-row.about-section2 {
        padding: 100px 0 85px !important; 
    }
    .title-desc h2 {
        position: relative;
        color: var(--base-headingfont-color);
        font-size: 24px;
        line-height: 34px;
        font-weight: 700;
        text-transform: uppercase;
        z-index: 9;
    }
    .title-desc h3{
        display: inline-block;
        position: relative;
        color: var(--base-headingfont-color);
        font-size: 16px;
        line-height: 26px;
        margin-bottom: 10px;
    }
    /* Titolo section-title h1 più piccolo su mobile */
    .section-title .title-header h1.title {
        font-size: 32px !important;
        line-height: 42px !important;
    }
    .title-overlay {
        font-size: 60px !important;
        line-height: 70px !important;
    }
}

@media (max-width: 767px) {
    .prt-row.carfeature-section.no-banner {
        padding: 130px 0 30px !important;
    }
    .prt-row.carfeature-section.has-banner {
        padding: 30px 0 30px !important;
    }
    .title-desc h2 {
        font-size: 22px;
        line-height: 30px;
    }
    .section-title .title-header h1.title {
        font-size: 28px !important;
        line-height: 36px !important;
    }
    .title-overlay {
        font-size: 48px !important;
        line-height: 56px !important;
    }
}

@media (max-width: 575px) {
    .prt-row.carfeature-section.no-banner {
        padding: 100px 0 25px !important;
    }
    .prt-row.carfeature-section.has-banner {
        padding: 30px 0 25px !important;
    }
}


/* Area riservata nascosta di default */
.menu li.mega-menu-item:last-child {
    display: none;
}

/* Area riservata visibile solo su schermi fino a 1199px */
@media (max-width: 1199px) {
    .menu li.mega-menu-item:last-child {
        display: block;
    }
    .prt-row.about-section2 {
        padding: 100px 0 85px !important; 
    }
}

.white{
    color:rgba(255, 255, 255, 0.80);
}

.black{
    color:rgba(0, 0, 0, 0.80) !important;
}

.specialoffer-section .featured-imagebox{
    position: relative;
    overflow: hidden;
}

.specialoffer-section .featured-thumbnail {
    display: block; /* Niente spazi in eccesso */
    width: 100%; /* Larghezza dell'immagine */
    height: auto; /* Mantiene le proporzioni */
    transition: none; /* Niente transizioni */
}
  
  .specialoffer-section .featured-thumbnail:hover {
    transform: none; /* Niente ingrandimento o altre trasformazioni */
}

  .specialoffer-section .featured-content {
    position: relative;
    width: 100%; /* Occupa tutta la larghezza del contenitore */
    padding-top: 5%; /* Proporzioni 4:3 (100% * altezza / larghezza) */
}

  .error-btn-wrapper {
    display: block; /* Elemento a blocco */
    text-align: center; /* Per gli elementi inline interni */
}

.b-bnr-contacts__link{
    font-size: 24px;
    font-weight: bold;
}

.prt-tabs.prt-tab-style-02 .featured-imagebox-offercar{margin: 20px 0;}
.prt-tabs.prt-tab-style-02 .featured-imagebox-offercar.style1 .featured-content{
    position: relative;
    padding: 15px 0px 0px 10px;
}

.bg-img7{
    background-color: #D3F8E2;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.bg-img8{
    background-color: #EDF7FC;
}

.bg-img9{
    background-color: #ffffff;
}

h1.product-single-meta-title {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.2;
    text-transform: uppercase;
    display: inline;
}

h1.product-single-meta-title2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #121212;
    line-height: 1.2;
    text-transform: uppercase;
    display: inline;
}

h2.product-single-meta-title {
    font-size: 32px;
    font-weight: 600;
    color: #252d3d;
    line-height: 1.2;
    text-transform: uppercase;
    display: inline;
}

h2.title-price {
    font-size: 36px;
    font-weight: 500;
    line-height: 46px;
    color: var(--base-skin);
    margin: 10px 0;
}

h2.title-price span {
    font-size: 18px;
    font-weight: 400;
    color: #252d3d;
}

.featured-imagebox-offercar .price span {
    font-size: 18px;
    line-height: 28px;
    color: var(--base-headingfont-color);
    font-weight: 400;
}

.car-overview-wrapper {
    position: relative;
    padding: 20px 40px 20px;
}

.prt-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.car-overview-wrapper ul.prt-overview-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--bs-border-color);
    display: flex;
    justify-content: space-between;
}

.car-overview-wrapper ul.prt-overview-list li:last-child {
    border-bottom: 0;
}

/*widget-contact-form*/
.widget.car-widget.widget-contact-form{ padding: 30px 30px 35px; }

#contactForm label.error {
    color: red;
    font-size: 14px;
    text-align: left;
}

/* Stili per le recensioni Google */
.review-avatar {
    transition: transform 0.3s ease;
}

.review-avatar:hover {
    transform: scale(1.1);
}

.testimonial-text {
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 60px;
}

.review-rating i {
    margin-right: 3px;
    font-size: 18px;
}

.google-rating-summary {
    background: rgba(255,255,255,0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 1px solid rgba(66, 133, 244, 0.1);
}

.prt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .google-rating-summary {
        padding: 20px 15px;
    }
    
    .rating-display {
        font-size: 20px !important;
    }
    
    .testimonial-text {
        min-height: auto;
    }
}

/* Punti di navigazione nello slider delle recensioni */
.testimonial-main .slick-dots {
    display: flex !important;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 30px 0 0 0;
    padding: 0;
    gap: 8px;
}

.testimonial-main .slick-dots li {
    display: inline-block;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.testimonial-main .slick-dots li button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background-color: #ddd;
    cursor: pointer;
    font-size: 0; /* Nasconde i numeri */
    line-height: 0;
    padding: 0;
    margin: 0;
    transition: all 0.3s ease;
    outline: none;
}

.testimonial-main .slick-dots li button:hover {
    background-color: #bbb;
    transform: scale(1.2);
}

.testimonial-main .slick-dots li.slick-active button {
    background-color: var(--base-color, #007cba);
    width: 14px;
    height: 14px;
}

/* Punti nascosti di default */
.testimonial-main .slick-dots {
    display: none;
}

/* Punti visibili solo se attivati nelle impostazioni */
.testimonial-main.show-dots .slick-dots {
    display: flex !important;
}

/* Stili responsive per mobile */
@media (max-width: 768px) {
    .testimonial-main .slick-dots {
        margin: 20px 0 0 0;
        gap: 6px;
    }
    
    .testimonial-main .slick-dots li button {
        width: 10px;
        height: 10px;
    }
    
    .testimonial-main .slick-dots li.slick-active button {
        width: 12px;
        height: 12px;
    }
}

/* Blocco .testimonial-text */

.testimonial-text {
    font-style: italic;
    font-size: 18px; /* Dimensione del carattere */
    line-height: 1.5; /* Ridotto da 1.6 a 1.5 */
    margin-bottom: 20px;
    min-height: 60px;
    color: #444; /* Colore per una lettura migliore */
    font-weight: 400; /* Peso del carattere */
}

/* Stili aggiuntivi delle recensioni */

/* Nome dell'autore e data */
.testimonial-caption h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.testimonial-caption span {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* Origine della recensione */
.review-source {
    font-size: 12px !important;
}

/* Versione mobile */
@media (max-width: 768px) {
    .testimonial-text {
        font-size: 16px;
        line-height: 1.4;
        min-height: auto; /* Niente altezza fissa su mobile */
    }
    
    .testimonial-caption h3 {
        font-size: 15px;
    }
    
    .testimonial-caption span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .testimonial-text {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .testimonial-caption h3 {
        font-size: 14px;
    }
}

.prt-row.about-section2 {
    padding: 150px 0 85px;
}

.active>.page-link, .page-link.active {
    color: #fff;
    background-color: var(--base-skin);
    border-color: var(--base-skin);
}

.page-link {
    color: var(--base-skin);
    background-color: var(--bs-pagination-bg);
}
/* === Header NON sticky: scorre via come una sezione normale === */
/* main.js aggiunge comunque la classe fixed-header durante lo scorrimento: la neutralizziamo */
.prt-stickable-header.fixed-header {
    position: static !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* === Split heading: marca+modello sopra, allestimento più piccolo sotto === */
/* Schede in /lista-veicoli/: modello in grassetto, allestimento su una riga a parte.
   Tema chiaro: testo nero su sfondo chiaro. */
.featured-imagebox-offercar .featured-title h3.title strong {
    font-weight: 700;
}
.featured-imagebox-offercar .featured-title .subtitle {
    font-size: 18px;
    color: #6b6b6b;
    margin: 0 0 14px;
    line-height: 1.3;
    font-weight: 500;
}

/* Titolo nella pagina di dettaglio /lista-veicoli/<auto>/.
   Modello PIÙ in grassetto della marca (strong), allestimento ben più piccolo dell'h1. */
h1.product-single-meta-title2 {
    font-weight: 600 !important;
}
h1.product-single-meta-title2 strong {
    font-weight: 800;
}
h2.product-single-meta-title {
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #6b6b6b !important;
    text-transform: none !important;
    margin-left: 6px;
}
@media (max-width: 600px) {
    h2.product-single-meta-title {
        display: block !important;
        margin-left: 0;
        margin-top: 6px;
        font-size: 20px !important;
    }
}

/* ================================================================
   Classic Car Collection — modifiche del 03.09.2026
   ================================================================ */

/* --- Slider a tutta altezza (desktop/portatile/tablet orizzontale) --- */
/* L'intestazione non resta sopra la slide: fullscreen sottrae già la sua altezza con
   fullScreenOffsetContainer, qui si toglie solo l'eventuale spazio sotto. */

/* Sottotitolo del blocco marche centrato, riga di lunghezza leggibile */
.category-section .section-title .title-desc {
    max-width: 760px;
    margin: 0 auto;
}

/* ================================================================
   Blocco marche: sfumature azzurre, schede della stessa altezza
   ================================================================ */

/* Sfumatura azzurra comune: blocco marche in home e sezione Chi siamo */
.ab-brands-section,
.ab-blue-gradient {
    position: relative;
    background: linear-gradient(135deg, #EAF6FE 0%, #CFE9FC 45%, #A9D8F8 100%);
}

/* Di default Slick rende le slide inline-block di altezza diversa:
   la traccia passa a flex, così le schede si allineano alla più alta.
   L'aspetto della scheda resta quello del template (.featured-imagebox-category
   in shortcodes.css), qui non si ridefinisce. */
.ab-brands-section .slick_slider .slick-track {
    display: flex;
    align-items: stretch;
}
.ab-brands-section .slick_slider .slick-slide {
    height: auto;
    display: flex;
}
.ab-brands-section .slick_slider .slick-slide > div,
.ab-brands-section .prt-box-col-wrapper {
    display: flex;
    width: 100%;
}
.ab-brands-section .featured-imagebox-category {
    display: flex;
    flex-direction: column;
    width: 100%;
}
.ab-brands-section .featured-imagebox-category .featured-content {
    margin-top: auto;
}

/* I loghi arrivano 240x180: entrano interi nel box 82x82 del template */
.ab-brands-section .featured-imagebox-category .featured-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ab-brands-section .section-title .title-desc {
    max-width: 760px;
    margin: 0 auto;
}

/* ================================================================
   Footer
   ================================================================ */

.ab-footer .first-footer { padding: 80px 0 60px; }

/* Scheda showroom */
.ab-footer-promo {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    min-height: 260px;
    display: flex;
    align-items: flex-end;
}
.ab-footer-promo__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-footer-promo__body {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 28px 26px 24px;
    background: linear-gradient(to top, rgba(10, 14, 20, .92) 15%, rgba(10, 14, 20, 0) 100%);
}
.ab-footer-promo__kicker {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5FC0FC;
}
.ab-footer-promo__title {
    margin-bottom: 6px;
    font-family: 'Exo 2', sans-serif;
    font-size: 22px;
    line-height: 30px;
    font-weight: 700;
    color: #fff;
}
.ab-footer-promo__note {
    margin-bottom: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, .7);
}

/* Fascia contatti */
.ab-footer-contacts {
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.ab-footer-contact {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
}
.ab-footer-contact__label {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5FC0FC;
}
.ab-footer-contact__value {
    font-size: 16px;
    color: #fff;
}
a.ab-footer-contact__value:hover { color: #5FC0FC; }

.ab-footer-cta { padding: 10px 0; }
.ab-footer-cta .prt-btn { width: 100%; text-align: center; }

@media (max-width: 991px) {
    .ab-footer .first-footer { padding: 60px 0 40px; }
    .ab-footer-promo { min-height: 220px; }
    .ab-footer-cta .prt-btn { width: auto; }
}

/* ================================================================
   Modifiche del 03.09.2026, seconda iterazione
   ================================================================ */

/* --- Logo nell'intestazione più grande --- */
.site-branding #logo-img { max-width: 195px; }

@media (max-width: 1199px) {
    .prt-header-style-01 .site-branding #logo-img,
    .prt-header-style-02 .site-branding #logo-img { max-width: 165px; }
}

/* --- Footer: immagine più in basso e più distante dalle colonne --- */
@media (min-width: 1200px) {
    /* il padding sulla colonna non funziona: in Bootstrap la regola .row>* è più specifica (0,1,1),
       quindi lo spazio si dà con il margin sulla scheda stessa */
    .ab-footer-promo { margin-top: 16px; margin-right: 60px; }
}

/* ================================================================
   HERO della home: altezza dello schermo meno l'intestazione
   Stesso approccio di fantasiedipane: l'altezza la tiene il CSS,
   il JS aggiorna solo l'altezza reale dell'intestazione in --ab-head-h.
   ================================================================ */

:root { --ab-head-h: 104px; }

.ab-hero {
    position: relative;
    /* Livello proprio: senza, .ab-hero__in con z-index:2 finiva nel contesto radice
       e copriva il menu a tendina dell'intestazione (anche lui con z-index:2) */
    z-index: 0;
    overflow: hidden;
    padding: 0;
    height: calc(100vh - var(--ab-head-h));   /* ripiego per i browser vecchi */
    height: calc(100svh - var(--ab-head-h));
    min-height: 520px;
    background: #0A0E14;
}

.ab-hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.ab-hero__slide.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity .8s ease;
}
.ab-hero__slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* Sfumatura scura a sinistra: il testo si legge su qualsiasi banner */
.ab-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 30, 74, .80) 0%, rgba(10, 30, 74, .45) 45%, rgba(10, 30, 74, .06) 75%);
}

.ab-hero__in {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
}

.ab-hero__kicker {
    display: block;
    margin-bottom: .35em;
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 2.95rem);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: uppercase;
    color: #fff;
}

.ab-hero__title {
    margin: 0;
    font-family: 'Exo 2', sans-serif;
    font-size: clamp(2.9rem, 7.6vw, 8.75rem);
    line-height: .93;
    font-weight: 700;
    text-transform: uppercase;
    color: #5FC0FC;
}

.ab-hero__cta { margin-top: clamp(1.6rem, 3.2vw, 3rem); }

/* Frecce e punti */
.ab-hero__arw {
    position: absolute;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    padding: 0;
    min-width: 52px;
    min-height: 52px;
    aspect-ratio: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all .3s ease;
}
.ab-hero__arw:hover { background: #5FC0FC; border-color: #5FC0FC; color: #06121C; }
.ab-hero__arw--l { left: 24px; }
.ab-hero__arw--r { right: 24px; }

.ab-hero__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    z-index: 3;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.ab-hero__dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    min-width: 10px;
    min-height: 10px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
    transition: all .3s ease;
}
.ab-hero__dots button[aria-current="true"] { background: #5FC0FC; transform: scale(1.3); }

/* --- Tablet --- */
@media (max-width: 1199px) {
    .ab-hero { min-height: 460px; }
    .ab-hero__arw { width: 44px; height: 44px; min-width: 44px; min-height: 44px; font-size: 18px; }
    .ab-hero__arw--l { left: 14px; }
    .ab-hero__arw--r { right: 14px; }
}

/* --- Mobile: tutto lo schermo è troppo, si lascia 78svh --- */
@media (max-width: 991px) {
    .ab-hero {
        height: 78vh;
        height: 78svh;
        min-height: 430px;
    }
    .ab-hero__veil {
        background: linear-gradient(180deg, rgba(6, 10, 16, .55) 0%, rgba(6, 10, 16, .35) 45%, rgba(6, 10, 16, .75) 100%);
    }
    .ab-hero__dots { bottom: 18px; }
}

@media (max-width: 575px) {
    .ab-hero { min-height: 400px; }
    .ab-hero__arw { display: none; }
}

/* Rispetta l'impostazione di sistema «riduci movimento» */
@media (prefers-reduced-motion: reduce) {
    .ab-hero__slide.is-on { transition: none; }
}

/* ================================================================
   Modifiche del 03.09.2026, quarta iterazione
   ================================================================ */

/* --- Voce di menu attiva: sottolineatura in basso invece della barra a sinistra --- */
@media (min-width: 1200px) {
    #site-header-menu .site-navigation ul.menu > li > a:before,
    #site-header-menu .site-navigation ul.menu > li.active > a:before {
        left: 0;
        right: 0;
        width: auto;
        height: 0;
        /* centrata sul link: non dipende dai padding verticali del menu */
        top: 50%;
        margin-top: 13px;
    }
    #site-header-menu .site-navigation ul.menu > li:hover > a:before,
    #site-header-menu .site-navigation ul.menu > li.active > a:before {
        height: 2px;
    }
}

/* --- Schede marche più vicine al quadrato: logo e didascalia più compatti --- */
.ab-brands-section .featured-imagebox-category {
    padding: 26px 16px 22px;
}
.ab-brands-section .featured-imagebox-category .featured-thumbnail {
    margin-bottom: 8px;
}
.ab-brands-section .featured-imagebox-category .featured-title h3 {
    font-size: 17px;
    line-height: 24px;
}

/* ================================================================
   Chi siamo: testo su una colonna, media larghi quanto il testo
   ================================================================ */

/* Blocco media: foto di copertina, il video si carica al clic */
.ab-about-media {
    margin: 34px 0 40px;
}
.ab-about-media__frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--base-border-radius-15, 15px);
    box-shadow: 0 24px 50px rgba(12, 34, 56, .18);
    background: #0A0E14;
    aspect-ratio: 16 / 9;
}
.ab-about-media__frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ab-about-media__frame.has-video {
    cursor: pointer;
}
.ab-about-media__frame.has-video img,
.ab-about-media__frame.has-video video {
    transition: transform .6s ease, filter .3s ease;
}
.ab-about-media__frame.has-video:hover img,
.ab-about-media__frame.has-video:not(.is-playing):hover video {
    transform: scale(1.03);
    filter: brightness(.85);
}

/* Pulsante play al centro */
.ab-about-media__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 78px;
    height: 78px;
    padding: 0;
    min-width: 78px;
    min-height: 78px;
    aspect-ratio: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: #0A0E14;
    font-size: 24px;
    padding-left: 5px;                /* compensazione ottica del triangolo */
    cursor: pointer;
    transition: all .3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.ab-about-media__frame.has-video:hover .ab-about-media__play {
    background: #5FC0FC;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

/* Con il video avviato copertina e pulsante spariscono */
.ab-about-media__frame.is-playing img,
.ab-about-media__frame.is-playing .ab-about-media__play { display: none; }
.ab-about-media__frame.is-playing video { cursor: default; }

.ab-about-media__cap {
    display: block;
    margin-top: 14px;
    font-size: 14px;
    line-height: 22px;
    color: #6b6b6b;
}

/* Testo della pagina: elenchi e sottotitoli dall'editor */
.about-section .title-desc h2 { margin-bottom: 14px; }
.about-section .title-desc h3 { margin: 4px 0 12px; }
.about-section .title-desc ul {
    margin: 0 0 22px;
    padding-left: 0;
    list-style: none;
}
.about-section .title-desc ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}
.about-section .title-desc ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 10px;
    height: 2px;
    background: var(--base-skin);
}

@media (max-width: 767px) {
    .ab-about-media { margin: 26px 0 30px; }
    .ab-about-media__play {
        width: 60px; height: 60px;
        min-width: 60px; min-height: 60px;
        font-size: 19px;
    }
}

/* Video proprio in uploads/video/: riproduzione nativa, senza incorporamenti */
.ab-about-media__frame video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0A0E14;
}

/* ================================================================
   Conto vendita: fila di quattro servizi
   ================================================================ */

/* Pagina senza sfondo */
.ab-plain-white { background: var(--base-white); }

.ab-service-grid { margin-top: 26px; }

/* Riquadri della stessa altezza, testo in alto nella scheda */
.ab-service-grid .featured-icon-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ab-service-grid .featured-icon-box .featured-title h3 {
    font-size: 19px;
    line-height: 27px;
    margin-bottom: 8px;
}
.ab-service-grid .featured-icon-box .featured-desc p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 25px;
    transition: color .3s ease;
}

/* Riquadro: sfondo proprio invece di quello del template rgba(255,255,255,.26),
   che su una pagina bianca diventa invisibile */
.ab-service-grid .featured-icon-box.style2 {
    background-color: #EFF6FE;
    border-color: rgba(41, 112, 243, .14);
    box-shadow: 0 10px 26px rgba(19, 82, 130, .07);
}
.ab-service-grid .featured-icon-box.style2 .featured-icon .prt-icon {
    background-color: var(--base-white);
}

/* IMPORTANTE: la regola sopra ha la stessa specificità (0,3,0) di quella del template
   .featured-icon-box.style2:hover, ma viene dopo nella cascata: senza una regola
   :hover esplicita annullava lo sfondo blu e il testo bianco finiva
   su sfondo bianco. Per questo lo stato hover si definisce qui per intero. */
.ab-service-grid .featured-icon-box.style2:hover {
    background-color: var(--base-dark);
    border-color: var(--base-dark);
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(19, 82, 130, .28);
}
.ab-service-grid .featured-icon-box.style2:hover .featured-title h3,
.ab-service-grid .featured-icon-box.style2:hover .featured-desc,
.ab-service-grid .featured-icon-box.style2:hover .featured-desc p {
    color: var(--base-white);
}
/* Cerchio dell'icona sul riquadro blu: bianco, altrimenti blu su blu */
.ab-service-grid .featured-icon-box.style2:hover .featured-icon .prt-icon {
    background-color: var(--base-white);
    color: var(--base-dark);
}

@media (max-width: 991px) {
    .ab-service-grid { margin-top: 12px; }
    /* In colonna i riquadri erano attaccati: li distanziamo */
    .ab-service-grid .prt-box-col-wrapper { margin-bottom: 20px; }
    .ab-service-grid .prt-box-col-wrapper:last-child { margin-bottom: 0; }
    /* Niente sollevamento al tocco sul telefono */
    .ab-service-grid .featured-icon-box.style2:hover { transform: none; }
}

/* ================================================================
   Lista veicoli: barra laterale dei filtri
   ================================================================ */

.prt-row.carlist-section { padding: 150px 0 80px; }

.carlist-section .bl-sidebar {
    position: sticky;
    top: 170px;
}
.carlist-section .bl-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.carlist-section .bl-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--base-headingfont-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--base-skin);
}
.carlist-section .bl-sidebar-widget .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    padding: 10px 14px;
    background-color: #f9f9f9;
    transition: .3s;
}
.carlist-section .bl-sidebar-widget .form-select:focus {
    border-color: var(--base-skin);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(46, 134, 222, .1);
}

/* Pulsante «Reset filtri» quando non ci sono risultati */
.prt-carlist-wrapper .btn-primary {
    background-color: var(--base-skin);
    border-color: var(--base-skin);
}
.prt-carlist-wrapper .btn-primary:hover {
    background-color: var(--base-dark);
    border-color: var(--base-dark);
}

@media (max-width: 1199px) {
    .prt-row.carlist-section { padding: 165px 0 85px; }
}
@media (max-width: 991px) {
    .prt-row.carlist-section { padding: 140px 0 60px !important; }
    .carlist-section .bl-sidebar { position: static; margin-bottom: 25px; }
}

/* Intestazione: menu un po' più a sinistra, più spazio prima di «Area riservata».
   Nel template .prt-header-style-01 .header_extra { padding-left: 50px } */
@media (min-width: 1200px) {
    .prt-header-style-01 .header_extra { padding-left: 110px; }
}

/* ================================================================
   Scheda veicolo
   ================================================================ */

.prt-row.car-details-single-section { padding: 150px 0 60px; }

/* La colonna destra resta fissa durante lo scorrimento */
.car-details-single-section .bl-sidebar { position: sticky; top: 170px; }
.bl-sidebar-widget .bp-video { margin-bottom: 0; }

/* Widget delle caratteristiche: stesse schede della barra dei filtri */
.car-details-single-section .bl-sidebar-widget {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
}
.car-details-single-section .bl-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--base-headingfont-color);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--base-skin);
}

/* Tabelle delle caratteristiche */
.vh-overview-grid { padding: 0; }
.vh-overview-grid .prt-overview-list { list-style: none; padding: 0; margin: 0; }
.vh-overview-grid .prt-overview-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
}
.vh-overview-grid .prt-overview-list li:last-child { border-bottom: 0; }
.vh-overview-grid .prt-overview-list li span:first-child { color: #888; }
.vh-overview-grid .prt-overview-list li span:last-child {
    font-weight: 600;
    color: var(--base-headingfont-color);
}

/* Pulsanti di contatto nella colonna della scheda */
.vh-contact-buttons { display: flex; flex-direction: column; gap: 10px; }
.vh-contact-btn {
    display: block;
    text-align: center;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 600;
    transition: all .2s;
    cursor: pointer;
}
.vh-contact-btn a {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.vh-btn-phone { background: var(--base-skin); }
.vh-btn-phone:hover { background: var(--base-dark); transform: translateY(-2px); }
.vh-btn-whatsapp { background: #25d366; }
.vh-btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* Campi del modulo «Scrivici»: nel tema sono scuri su sfondo scuro, qui servono bianchi */
.bl-sidebar-widget .query_form-1 label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}
.bl-sidebar-widget .query_form-1 span.text-input input,
.bl-sidebar-widget .query_form-1 span.text-input textarea {
    background-color: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 15px;
    transition: border-color .2s;
}
.bl-sidebar-widget .query_form-1 span.text-input input:focus,
.bl-sidebar-widget .query_form-1 span.text-input textarea:focus {
    border-color: var(--base-skin);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, .1);
    outline: none;
}

/* Riepilogo rapido sotto la galleria */
.vh-quickbar .vh-qb-item { background: #fff; }

@media (max-width: 1199px) {
    .prt-row.car-details-single-section { padding: 165px 0 60px; }
    .car-details-single-section .bl-sidebar { position: static; margin-top: 30px; }
}

/* ================================================================
   Contatti: senza il pannello hero blu
   ================================================================ */

.prt-row.contact-intro-section { padding-bottom: 30px !important; }
.ct-cards-section { padding: 0 0 60px; }

/* Contact Cards */
.ct-cards-section { padding: 0; position: relative; z-index: 2; }
.ct-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 0;
}
.ct-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s;
}
.ct-card:hover { transform: translateY(-3px); }
.ct-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(46, 134, 222, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.ct-card-icon i { font-size: 22px; color: var(--base-skin); }
.ct-card h4 {
    font-size: 17px;
    color: var(--base-headingfont-color);
    margin: 0 0 10px;
}
.ct-card-link {
    display: block;
    font-size: 15px;
    color: #555;
    text-decoration: none;
    margin-bottom: 4px;
    transition: color 0.2s;
}
.ct-card-link:hover { color: var(--base-skin); }
.ct-card-link.ct-wa {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #25d366;
    font-weight: 600;
    margin-top: 4px;
}
.ct-card-link.ct-wa:hover { color: #1da851; }
.ct-card-text {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Hours in card */
.ct-hours { text-align: left; }
.ct-hours-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}
.ct-hours-row:last-child { border-bottom: none; }
.ct-hours-row span:first-child { font-weight: 600; color: #333; }
.ct-hours-closed span:last-child { color: #e53e3e; font-weight: 500; }

@media (max-width: 991px) {
    .ct-cards-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .ct-cards-row { grid-template-columns: 1fr; }
}

/* Form + Map Section */
.ct-main-section { padding: 50px 0 80px; }

/* Form Block */
.ct-form-block {
    background: #fff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}
.ct-form-block h2 {
    font-size: 24px;
    color: var(--base-headingfont-color);
    margin: 0 0 6px;
}
.ct-form-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 24px;
}
.ct-form-group { margin-bottom: 16px; }
.ct-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}
.ct-form-group input,
.ct-form-group select,
.ct-form-group textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 11px 16px;
    font-size: 15px;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.ct-form-group input:focus,
.ct-form-group select:focus,
.ct-form-group textarea:focus {
    outline: none;
    border-color: var(--base-skin);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}
.ct-form-group textarea { resize: vertical; min-height: 100px; }
.ct-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 575px) {
    .ct-form-row { grid-template-columns: 1fr; }
    .ct-form-block { padding: 24px 20px; }
}
.ct-form-note {
    font-size: 12px;
    color: #aaa;
    margin-bottom: 14px;
}
.ct-form-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: var(--base-skin);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.ct-form-btn:hover { background: var(--base-dark); }
.ct-form-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Form result messages */
#formResult {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0;
    width: 100%;
    box-shadow: none !important;
    border: none !important;
    border-radius: 6px !important;
}
#formResult:empty { display: none; }
#formResult.ct-form-success {
    padding: 10px 14px !important;
    background: #f0fdf4 !important;
    color: #16a34a;
}
#formResult.ct-form-error {
    padding: 10px 14px !important;
    background: #fef2f2 !important;
    color: #dc2626;
}

/* Map Block */
.ct-map-block {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    height: 100%;
    min-height: 520px;
}
.ct-map-block iframe {
    display: block;
    width: 100%;
    height: 100%;
}
.ct-map-footer {
    margin-top: 12px;
    text-align: right;
}
.ct-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--base-skin);
    text-decoration: none;
    padding: 8px 18px;
    border: 2px solid var(--base-skin);
    border-radius: 8px;
    transition: all 0.2s;
}
.ct-directions-btn:hover {
    background: var(--base-skin);
    color: #fff;
}

/* ================================================================
   Consenso alla privacy policy e honeypot
   ================================================================ */

.ab-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
}
.ab-privacy-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    aspect-ratio: 1;
    flex-shrink: 0;
    margin: 2px 0 0;
    padding: 0;
    accent-color: var(--base-skin);
    cursor: pointer;
}
.ab-privacy-check label {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    color: #666;
    cursor: pointer;
}
.ab-privacy-check a {
    color: var(--base-skin);
    text-decoration: underline;
}
.ab-privacy-check a:hover { color: var(--base-dark); }

/* Campo trappola: fuori dalla vista ma non con display:none,
   perché alcuni bot ignorano questi campi */
.ab-hp {
    position: absolute !important;
    left: -9999px !important;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Conto vendita: testo che in pages.text viene dopo l'elenco dei riquadri */
.ab-text-after-tiles { margin-top: 40px; margin-bottom: 0; }
.ab-text-after-tiles .title-desc h3 { margin-bottom: 12px; }

/* ================================================================
   Margine superiore UNICO della prima sezione su tutte le pagine.
   L'intestazione sta sopra il contenuto, quindi margine = altezza dell'intestazione + spazio.
   --ab-head-h: valore di default per breakpoint, aggiornato dallo script in header.php.
   ================================================================ */
:root { --ab-head-h: 104px; --ab-page-gap: 46px; }
@media (max-width: 1199px) { :root { --ab-head-h: 108px; --ab-page-gap: 40px; } }
@media (max-width: 767px)  { :root { --ab-page-gap: 34px; } }
@media (max-width: 575px)  { :root { --ab-page-gap: 28px; } }

.prt-row.carfeature-section.no-banner,
.prt-row.carlist-section,
.prt-row.car-details-single-section,
.prt-row.about-section2 {
    padding-top: calc(var(--ab-head-h) + var(--ab-page-gap)) !important;
}

/* ================================================================
   Titolo di pagina UNICO (tutte le pagine interne tranne la home)
   h1.ab-page-title: una dimensione, maiuscole normali, linea blu sotto.
   ================================================================ */
h1.ab-page-title,
.section-title .title-header h1.ab-page-title {
    display: block !important;
    font-size: 46px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--base-headingfont-color) !important;
    margin: 0 0 18px !important;
    padding: 0 0 16px !important;
    position: relative;
}
h1.ab-page-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background-color: var(--base-skin);
}

/* Blocco section-title su queste pagine: via la fascia del template da 132px
   e i 52px vuoti tra titolo e testo: la linea ora è sull'h1 stesso */
.carfeature-section.no-banner .section-title .title-header,
.about-section2 .section-title .title-header { padding-bottom: 0 !important; }
.carfeature-section.no-banner .section-title .title-desc,
.about-section2 .section-title .title-desc { margin-top: 0 !important; padding-top: 0 !important; }
.carfeature-section.no-banner .section-title .title-desc:before,
.about-section2 .section-title .title-desc:before { display: none !important; }

/* Sottotitoli nel testo della pagina: niente maiuscolo, non competono con l'h1 */
.carfeature-section.no-banner .title-desc h2,
.about-section2 .title-desc h2 {
    font-size: 28px !important;
    line-height: 1.25 !important;
    text-transform: none !important;
    font-weight: 700 !important;
    margin: 6px 0 14px !important;
}
.carfeature-section.no-banner .title-desc h3,
.about-section2 .title-desc h3 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    font-weight: 700 !important;
    margin: 22px 0 10px !important;
}

/* Lista veicoli: contatore e ordinamento subito sotto il titolo */
.prt-carlist-wrapper h1.ab-page-title { margin-bottom: 14px !important; }
.prt-carlist-wrapper .car-filter-wrapper .filter-view { margin-top: 0 !important; }

@media (max-width: 991px) {
    h1.ab-page-title,
    .section-title .title-header h1.ab-page-title {
        font-size: 36px !important;
        margin-bottom: 16px !important;
        padding-bottom: 14px !important;
    }
    .carfeature-section.no-banner .title-desc h2,
    .about-section2 .title-desc h2 { font-size: 24px !important; }
    .carfeature-section.no-banner .title-desc h3,
    .about-section2 .title-desc h3 { font-size: 20px !important; }
}
@media (max-width: 575px) {
    h1.ab-page-title,
    .section-title .title-header h1.ab-page-title {
        font-size: 30px !important;
        line-height: 1.2 !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }
    h1.ab-page-title:after { width: 48px; }
    .carfeature-section.no-banner .title-desc h2,
    .about-section2 .title-desc h2 { font-size: 22px !important; }
    .carfeature-section.no-banner .title-desc h3,
    .about-section2 .title-desc h3 { font-size: 19px !important; }
}

/* ================================================================
   Riquadro al posto di mappa/video finche' non c'e' il consenso cookie
   ================================================================ */
.ck-attesa {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; text-align: center; padding: 34px 22px;
    background: #f4f7fb; border: 1px dashed #b9c6d6; border-radius: 14px;
    min-height: 260px; height: 100%; box-sizing: border-box;
}
.ct-map-block .ck-attesa { min-height: 520px; }
.ck-attesa i { font-size: 34px; color: var(--base-skin); }
.ck-attesa p { margin: 0; max-width: 46ch; font-size: 15px; line-height: 1.55; color: #55606e; }
.ck-attesa .ck-attesa-nota { font-size: 13px; }
.ck-attesa .ck-attesa-nota a { color: var(--base-skin); text-decoration: underline; }
.ck-carica {
    border: 0; cursor: pointer; background: var(--base-skin); color: #fff;
    border-radius: 100px; padding: 11px 22px; font-weight: 600; font-size: 14px; line-height: 1.2;
}
.ck-carica:hover { filter: brightness(.92); }

/* Riquadri Conto vendita: icona al centro, spazio prima del testo, titolo e
   descrizione anch'essi al centro, altrimenti icona al centro e testo a sinistra */
.ab-service-grid .featured-icon-box.style2 {
    text-align: center;
    padding: 34px 26px 30px;
}
.ab-service-grid .featured-icon-box.style2 .featured-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.ab-service-grid .featured-icon-box.style2 .featured-icon .prt-icon { margin: 0; }
.ab-service-grid .featured-icon-box.style2 .featured-content { text-align: center; padding: 0; }
.ab-service-grid .featured-icon-box.style2 .featured-title h3 { margin-bottom: 12px; }
/* trattino del template sotto il titolo (h3:before), al centro */
.ab-service-grid .featured-icon-box.style2 .featured-title h3:before {
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0;
}
@media (max-width: 991px) {
    .ab-service-grid .featured-icon-box.style2 { padding: 28px 22px 26px; }
    .ab-service-grid .featured-icon-box.style2 .featured-icon { margin-bottom: 18px; }
}

/* ================================================================
   Contatti: schede nello stesso stile dei riquadri Conto vendita
   (sfondo azzurro, bordo sottile, cerchio bianco dell'icona).
   ================================================================ */
/* spazio tra testo introduttivo e schede: la regola del template
   .carfeature-section.no-banner (0,3,0) annullava i 30px: li riallineiamo */
.prt-row.contact-intro-section.carfeature-section.no-banner { padding-bottom: 34px !important; }
.ct-cards-section { padding-bottom: 10px; }

.ct-card {
    background: #EFF6FE;
    border: 1px solid rgba(41, 112, 243, .14);
    box-shadow: 0 10px 26px rgba(19, 82, 130, .07);
    padding: 32px 22px 28px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ct-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(19, 82, 130, .14);
}
.ct-card-icon {
    width: 62px;
    height: 62px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(19, 82, 130, .10);
    margin: 0 auto 18px;
}
.ct-card-icon i { font-size: 24px; }
.ct-card h4 {
    font-size: 19px;
    font-weight: 700;
    position: relative;
    padding-bottom: 14px;
    margin-bottom: 12px;
}
/* stesso trattino sotto il titolo dei riquadri Conto vendita */
.ct-card h4:after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 34px;
    height: 2px;
    background: var(--base-headingfont-color);
    transform: translateX(-50%);
}
@media (max-width: 991px) {
    .ct-card { padding: 26px 18px 24px; }
}

/* ================================================================
   Richieste Mauro 04/09: fondo blu, slogan accanto al logo, hero
   "La passione", blocco "Cerca per marca", footer/contatti showroom
   ================================================================ */
:root { --ccc-blue: #0F2A5C; --ccc-blue-2: #163A7A; }

/* Intestazione blu invece che nera (desktop + mobile) */
#masthead.prt-header-style-01,
#masthead .prt-header-wrap,
#masthead .site-header-menu,
#masthead .prt-stickable-header,
#masthead .prt-stickable-header.fixed-header,
#masthead .site-header-menu-inner,
#site-header-menu .menu.active { background-color: var(--ccc-blue) !important; }
#masthead .site-navigation ul.menu > li > a:before { background-color: #fff; }

/* Slogan accanto al logo */
.site-branding-wrap { display: flex; align-items: center; gap: 22px; }
.ab-brand-tagline {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    padding-left: 22px;
    border-left: 1px solid rgba(255, 255, 255, .28);
    line-height: 1.3;
    white-space: nowrap;
}
@media (max-width: 1599px) { .ab-brand-tagline { display: none; } }
#site-header-menu .site-navigation ul.menu > li > a { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1599px) {
    .prt-header-style-01 .header_extra { padding-left: 28px; }
    #site-header-menu .site-navigation ul.menu > li > a { padding-left: 9px; padding-right: 9px; font-size: 13px; }
    #site-header-menu .site-navigation ul.menu > li { margin: 0 2px; }
}

/* Hero: solo "La passione" */
.ab-hero__title { font-size: clamp(3rem, 8vw, 8.75rem); letter-spacing: .02em; }

/* Cerca per marca: una riga sola, subito sotto la foto */
.ab-marche-section { padding: 90px 0 90px; background: #fff; }
.ab-marche-box {
    margin: 0 auto;
    position: relative; z-index: 3;
    max-width: 980px;
    background: #fff;
    border: 1px solid rgba(41, 112, 243, .14);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(19, 82, 130, .14);
    padding: 26px 34px 28px;
    display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.ab-marche-box__head { flex: 1 1 300px; min-width: 0; }
.ab-marche-box__title {
    font-family: 'Exo 2', sans-serif; font-size: 24px; font-weight: 700;
    text-transform: none; line-height: 1.2; margin: 0 0 4px;
}
.ab-marche-box__desc { margin: 0; font-size: 14.5px; color: #55606e; }
.ab-marche-box__desc a { color: var(--base-skin); text-decoration: underline; }
.ab-marche-form { flex: 0 1 460px; display: flex; align-items: center; gap: 12px; }
.ab-marche-form__label { margin: 0; font-weight: 600; white-space: nowrap; }
.ab-marche-form__select { flex: 1 1 auto; height: 50px; border-radius: 100px; padding: 0 44px 0 18px; font-size: 15px; }
.ab-marche-form__btn { white-space: nowrap; }
@media (max-width: 991px) {
    .ab-marche-box { margin: 0 16px; padding: 22px 22px 24px; gap: 16px; }
    .ab-marche-form { flex-basis: 100%; }
}
@media (max-width: 575px) {
    .ab-marche-box { margin: 0 12px; border-radius: 14px; box-shadow: 0 10px 26px rgba(19, 82, 130, .10); }
    .ab-marche-form { flex-wrap: wrap; }
    .ab-marche-form__label { display: none; }
    .ab-marche-form__select { flex-basis: 100%; }
    .ab-marche-form__btn { width: 100%; }
}
/* la sezione dopo il box non deve incollarsi */
.ab-marche-section + section { padding-top: 0 !important; }

/* Footer / contatti: showroom + sede legale */
.ab-footer-contact__label--2 { margin-top: 12px; }
.ab-footer-contact__value--sm { font-size: 13px; opacity: .75; }
.ct-card-text--sm { font-size: 13.5px; color: #6b7482; margin-top: 8px; }
.ct-card-text strong { color: var(--base-headingfont-color); }

/* ---- Hero: "La passione" parte dal paraurti sinistro e attraversa la targa ---- */
.ab-hero__in { justify-content: flex-start; }
.ab-hero__in .container {
    position: absolute;
    top: 62%;
    left: 0;
    transform: translateY(-50%);
    max-width: none;
    width: auto;
    margin: 0;
    padding-left: 6.5vw;
}
.ab-hero__title {
    font-size: clamp(3rem, 8.2vw, 9.4rem);
    line-height: .95;
    letter-spacing: .01em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
}
@media (max-width: 767px) {
    .ab-hero__in .container { top: 62%; padding-left: 6vw; }
    .ab-hero__title { font-size: clamp(2.6rem, 13vw, 4.4rem); }
}

/* ---- Lista veicoli: nessuna sidebar, un solo filtro "Marca" ---- */
.carlist-section .prt-carlist-wrapper .filter-view { align-items: flex-start !important; }
.ab-marca-filter form { gap: 8px; }
.ab-marca-filter__label { margin: 0; font-weight: 600; white-space: nowrap; }
.ab-marca-filter .form-select { max-width: 320px; }
.ab-marca-filter__count { margin: 8px 0 0; font-size: 14px; color: #55606e; }
.ab-marca-filter__count a { color: var(--base-skin); text-decoration: underline; }
@media (max-width: 767px) {
    .ab-marca-filter { margin-bottom: 12px; }
    .ab-marca-filter .form-select { max-width: none; }
}

/* ---- Home: Chi siamo in breve ---- */
.ab-home-about { padding: 0 0 90px; background: #fff; }
.ab-home-about__media { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(19, 82, 130, .14); }
.ab-home-about__media img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4 / 3; }
.ab-home-about__text { padding-left: 30px; }
.ab-home-about__kicker {
    display: inline-block; margin-bottom: 10px;
    font-family: 'Exo 2', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--base-skin);
}
.ab-home-about__title {
    font-family: 'Exo 2', sans-serif; font-size: 38px; line-height: 1.12; font-weight: 700;
    text-transform: none; margin: 0 0 18px; position: relative; padding-bottom: 16px;
}
.ab-home-about__title:after { content: ''; position: absolute; left: 0; bottom: 0; width: 64px; height: 3px; background: var(--base-skin); }
.ab-home-about__text p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: #3d4653; }
.ab-home-about__text .prt-btn { margin-top: 10px; }
.prt-row.category-section.ab-brands-section { padding: 80px 0 90px !important; }
.ab-brands-section .section-title { margin-bottom: 40px; }
@media (max-width: 991px) { .prt-row.category-section.ab-brands-section { padding: 56px 0 64px !important; } }
@media (max-width: 991px) {
    .ab-home-about { padding-bottom: 60px; }
    .ab-home-about__media { margin-bottom: 26px; }
    .ab-home-about__text { padding-left: 0; }
    .ab-home-about__title { font-size: 30px; }
}

/* Chi siamo in home: blocchi <h3> sotto foto+intro (Come lavoriamo, Dove trovarci) */
.ab-home-about__more { margin-top: 56px; }
.ab-home-about__more h3 { font-size: 24px; line-height: 1.3; text-transform: none; font-weight: 700; margin: 26px 0 12px; }
.ab-home-about__more p { font-size: 16px; line-height: 1.7; color: #3d4653; }
.ab-home-about__more ul { list-style: none; padding: 0; margin: 0 0 14px; }
.ab-home-about__more ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; line-height: 1.6; }
.ab-home-about__more ul li:before { content: ''; position: absolute; left: 0; top: 13px; width: 14px; height: 2px; background: var(--base-skin); }
@media (max-width: 991px) { .ab-home-about__more { margin-top: 36px; } .ab-home-about__more h3 { font-size: 21px; } }

/* Video showroom in home: nella colonna a fianco del testo */
.ab-home-about .ab-about-media { margin: 0; }
.ab-home-about .ab-about-media__frame { aspect-ratio: 4 / 3; border-radius: 18px; }
.ab-home-about .ab-about-media__frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 991px) { .ab-home-about .ab-about-media { margin-bottom: 26px; } }

/* Home: video e testo (intro + Come lavoriamo) fianco a fianco, allineati in alto */
.ab-home-about .row.align-items-center { align-items: flex-start !important; }
.ab-home-about .ab-about-media { position: sticky; top: calc(var(--ab-head-h) + 24px); }
.ab-home-about__text .ab-home-about__more { margin-top: 26px; }

/* ================================================================
   Footer blu come la testata, senza la texture "ragnatela" del template
   (images/footer-bg.webp in main.css)
   ================================================================ */
.footer.ab-footer,
.footer.ab-footer.bg-base-black {
    background-color: var(--ccc-blue) !important;
    background-image: none !important;
}
.footer.ab-footer > .prt-bg-layer { background-color: var(--ccc-blue) !important; opacity: 1; }
.footer.ab-footer .second-footer,
.footer.ab-footer .bottom-footer-border { border-top-color: rgba(255, 255, 255, .12); }
.footer.ab-footer .ab-footer-contact__label { color: #8FD0FF; }

/* ================================================================
   Hero (Mauro 07/09): "La passione" in basso a destra, sotto in bianco
   "Auto d'epoca e Supercar" larga quanto il titolo. Slogan tolto dalla testata.
   ================================================================ */
.ab-brand-tagline { display: none !important; }
.ab-hero__in .container {
    position: absolute;
    top: auto; left: auto; transform: none;
    right: 6.5vw; bottom: 9%;
    width: auto; max-width: none; margin: 0; padding: 0;
}
.ab-hero__text { display: inline-flex; flex-direction: column; align-items: stretch; text-align: right; }
.ab-hero__title { font-size: clamp(3rem, 7.8vw, 9rem) !important; line-height: .95; letter-spacing: .01em; text-shadow: 0 6px 30px rgba(0,0,0,.35); }
.ab-hero__sub {
    margin: 10px 0 0;
    font-family: 'Exo 2', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.9vw, 2.05rem);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 3px 18px rgba(0,0,0,.4);
    /* larga quanto "La passione": una riga, parole distribuite sull'intera larghezza */
    text-align: justify;
    text-align-last: justify;
    white-space: nowrap;
    width: 100%;
}
.ab-hero__veil { background: linear-gradient(180deg, rgba(10,30,74,.10) 0%, rgba(10,30,74,.15) 55%, rgba(10,30,74,.72) 100%); }

/* Mobile: niente ritaglio della foto. La foto sta intera (16:9) e il testo
   va sotto, centrato, sul fondo blu. */
@media (max-width: 767px) {
    /* la testata e' sovrapposta al contenuto: la foto parte sotto di essa */
    .ab-hero { height: auto !important; min-height: 0 !important; display: block; background: var(--ccc-blue); padding-top: var(--ab-head-h) !important; }
    .ab-hero__slide { position: absolute; inset: 0; }
    .ab-hero__slide.is-on { position: relative; inset: auto; }
    .ab-hero__slide > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
    .ab-hero__veil { display: none; }
    .ab-hero__in { position: relative; inset: auto; display: block; padding: 22px 16px 30px; text-align: center; }
    .ab-hero__in .container { position: static; padding: 0; width: 100%; }
    .ab-hero__text { display: inline-flex; text-align: center; }
    .ab-hero__title { font-size: clamp(2.5rem, 12.5vw, 4.2rem) !important; text-shadow: none; }
    .ab-hero__sub { font-size: clamp(.8rem, 3.3vw, 1.15rem); letter-spacing: .1em; text-shadow: none; }
    .ab-hero__arw { display: none !important; }
}

/* Ricerca per marca senza titolo: box stretto, campo largo */
.ab-marche-box--slim { max-width: 860px; padding: 18px 22px; justify-content: center; }
.ab-marche-box--slim .ab-marche-form { flex: 1 1 auto; width: 100%; }
.ab-marche-box--slim .ab-marche-form__select { height: 54px; font-size: 16px; }
.ab-marche-box--slim .ab-marche-box__desc { text-align: center; width: 100%; }
@media (max-width: 575px) { .ab-marche-box--slim { padding: 16px; } }

/* In vetrina */
.ab-vetrina-section { padding: 0 0 90px; background: #fff; }
.ab-vetrina-section .section-title { margin-bottom: 30px; }
@media (max-width: 991px) { .ab-vetrina-section { padding-bottom: 60px; } }

/* Hero: sottotitolo senza giustificazione, dimensione tale da stare largo quanto il titolo */
.ab-hero__sub {
    text-align: right !important;
    text-align-last: auto !important;
    font-size: clamp(1.15rem, 2.9vw, 3.35rem) !important;
    letter-spacing: .045em !important;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.1;
}
@media (max-width: 767px) {
    .ab-hero__sub { text-align: center !important; font-size: clamp(.95rem, 4.6vw, 1.55rem) !important; letter-spacing: .05em !important; }
}

/* Vetrina: box di ricerca al posto del titolo, poi le card originali */
.prt-row.specialoffer-section.carfeature-section.ab-vetrina-section { padding: 0 0 90px !important; }
.ab-vetrina-section .ab-marche-box--slim { margin-bottom: 44px; }
.ab-marche-form__label { display: none; }
.ab-home-about { padding-bottom: 70px; }
@media (max-width: 991px) {
    .prt-row.specialoffer-section.carfeature-section.ab-vetrina-section { padding: 0 0 60px !important; }
    .ab-vetrina-section .ab-marche-box--slim { margin-bottom: 30px; }
}

/* Chi siamo ora e' la prima sezione dopo l'hero: aria sopra */
.prt-row.ab-home-about { padding-top: 90px !important; }
@media (max-width: 991px) { .prt-row.ab-home-about { padding-top: 56px !important; } }

/* ================================================================
   Chi siamo su fondo azzurro (stesso gradiente del blocco marche).
   Il video ha gia' l'ombra, il box di ricerca sotto resta bianco su bianco.
   ================================================================ */
.prt-row.ab-home-about {
    background: linear-gradient(135deg, #EAF6FE 0%, #CFE9FC 45%, #A9D8F8 100%) !important;
    padding: 90px 0 !important;
}
.ab-home-about__text p { color: #2f3a48; }
.ab-about-media__cap { color: #4a5563; }
/* la vetrina che segue: stesso respiro sopra il box di ricerca che c'e' sotto */
.prt-row.specialoffer-section.carfeature-section.ab-vetrina-section,
.prt-row.ab-marche-section { padding-top: 90px !important; }
@media (max-width: 991px) {
    .prt-row.ab-home-about { padding: 56px 0 !important; }
    .prt-row.specialoffer-section.carfeature-section.ab-vetrina-section,
    .prt-row.ab-marche-section { padding-top: 56px !important; }
}

/* Didascalia del video centrata sotto il riquadro */
.ab-home-about .ab-about-media__cap { text-align: center; }

/* Testata: sui monitor larghi logo e menu stanno nella stessa colonna del
   contenuto (1330px come .container); sotto i 1600px tornano a tutta larghezza */
@media (min-width: 1600px) {
    #masthead .site-header-menu-inner > .container-fluid {
        max-width: 1330px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* Logo nell'intestazione: <div class="ab-site-logo"> invece di <h1> (un solo h1 per pagina, quello della pagina).
   Stessi margini che aveva .site-branding h1 in main.css e responsive.css. */
.site-branding .ab-site-logo { margin-bottom: 0; line-height: 0; }
@media all and (max-width: 1199px) {
    .prt-header-style-01 .site-branding .ab-site-logo,
    .prt-header-style-02 .site-branding .ab-site-logo { padding: 15px 0 10px; }
}

/* Galleria della scheda: cornice 4:3, le foto verticali stanno intere con bordi laterali grigio chiaro */
#car-view .fotorama__stage { background: #f2f4f7; }
