/* ============================================================
   style.css — Paolo Lalle | Sito pubblico
   Tema principale: Studio Bergamini (crema, taupe, minimale)
   Garage 68: tema scuro + rosso acceso
   ============================================================ */

/* --- Reset e base ----------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --font-display: 'Cormorant Garamond', Georgia, 'Palatino Linotype', serif;
    --font-body:    'Source Sans 3', 'Inter', 'Segoe UI', sans-serif;
    --blu:          #3d3833;
    --blu-scuro:    #2c2926;
    --blu-medio:    #6b635c;
    --blu-chiaro:   #f3efe9;
    --rosso:        #8d6e63;
    --rosso-hover:  #6d5248;
    --rosso-acceso: #e10600;
    --sfondo:       #f5f2ed;
    --testo:        #3a3632;
    --muted:        #7a726b;
    --bordo:        #e4ddd4;
    --bianco:       #fffcf8;
    --raggio:       2px;
    --raggio-lg:    4px;
    --raggio-xl:    6px;
    --shadow-sm:    0 1px 2px rgba(45,40,35,.04);
    --shadow-md:    0 2px 12px rgba(45,40,35,.06);
    --shadow-lg:    0 8px 28px rgba(45,40,35,.08);
    --rosso-rgb:    141, 110, 99;
    --header-h:     96px;
    --sos-h:        72px;
    --garage:       #8d6e63;
    --garage-scuro: #6d5248;
    --garage-chiaro:#f3efe9;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.8;
    color: var(--testo);
    background: var(--bianco);
    padding-top: var(--header-h);
}

body.has-sos-banner {
    padding-bottom: var(--sos-h);
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blu); transition: color .2s; }
a:hover { color: var(--rosso); }

/* --- Tipografia ------------------------------------------- */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--blu);
    margin-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--rosso);
    margin-top: .4rem;
}

.section-title.centrata::after {
    margin-left: auto;
    margin-right: auto;
}

.page-h1 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--blu);
}

/* --- Pulsanti --------------------------------------------- */
.btn-pl-primary {
    background-color: var(--rosso);
    color: var(--bianco);
    border: 2px solid var(--rosso);
    border-radius: var(--raggio);
    padding: .55rem 1.3rem;
    font-weight: 600;
    transition: background-color .2s, border-color .2s;
    text-decoration: none;
    display: inline-block;
}

.btn-pl-primary:hover,
.btn-pl-primary:focus {
    background-color: var(--rosso-hover);
    border-color: var(--rosso-hover);
    color: var(--bianco);
}

.btn-pl-outline {
    background-color: transparent;
    color: var(--bianco);
    border: 2px solid var(--bianco);
    border-radius: var(--raggio);
    padding: .55rem 1.3rem;
    font-weight: 600;
    transition: background-color .2s, color .2s;
    text-decoration: none;
    display: inline-block;
}

.btn-pl-outline:hover,
.btn-pl-outline:focus {
    background-color: var(--bianco);
    color: var(--blu);
}

.btn-pl-ghost {
    background-color: transparent;
    color: var(--rosso);
    border: 2px solid var(--rosso);
    border-radius: var(--raggio);
    padding: .45rem 1.1rem;
    font-weight: 600;
    transition: background-color .2s, color .2s;
    text-decoration: none;
    display: inline-block;
}

.btn-pl-ghost:hover {
    background-color: var(--rosso);
    color: var(--bianco);
}

/* --- Header wrap (topbar + navbar) ------------------------ */
.pl-header-wrap {
    background: var(--bianco);
    box-shadow: 0 1px 0 rgba(13,34,64,.06);
    z-index: 1030;
}

.pl-topbar {
    background: var(--blu-scuro);
    color: rgba(255,255,255,.88);
    font-size: .78rem;
    letter-spacing: .04em;
    padding: .4rem 0;
}

.pl-topbar a {
    color: rgba(255,255,255,.88);
    text-decoration: none;
}

.pl-topbar a:hover { color: #fff; }

.pl-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.pl-topbar-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .68rem;
    color: rgba(255,255,255,.55);
}

.pl-topbar-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pl-topbar-links i { color: var(--rosso); margin-right: .35rem; }

/* --- Navbar ----------------------------------------------- */
.pl-navbar {
    background-color: var(--bianco) !important;
    border-bottom: 3px solid var(--rosso);
    padding-top: .55rem;
    padding-bottom: .55rem;
    transition: box-shadow .3s;
}

.pl-navbar.scrolled {
    box-shadow: 0 2px 14px rgba(13,34,64,.12);
}

.pl-navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-logo {
    display: block;
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.pl-navbar .nav-link {
    color: var(--blu) !important;
    font-weight: 600;
    padding: .35rem .85rem !important;
    border-radius: var(--raggio);
    transition: color .2s, background-color .2s;
    letter-spacing: .01em;
}

.pl-navbar .nav-link:hover,
.pl-navbar .nav-link.active {
    color: var(--rosso) !important;
    background-color: rgba(var(--rosso-rgb), .08);
}

.pl-navbar .navbar-toggler {
    border-color: var(--blu);
    order: 2;
}

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

/* --- Menu mobile fullscreen ------------------------------ */
@media (max-width: 991.98px) {
    /* Override Bootstrap collapse per effetto fullscreen */
    .pl-navbar #menu-principale {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        max-height: 100vh !important;
        background: var(--blu) !important;
        z-index: 1055 !important;
        overflow-y: auto !important;
        display: none !important;
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .pl-navbar #menu-principale.show {
        display: flex !important;
    }

    /* Salta l'animazione collapsing sul mobile fullscreen */
    .pl-navbar #menu-principale.collapsing {
        height: 100vh !important;
        display: flex !important;
        transition: none !important;
    }

    /* Header interno al menu mobile */
    .menu-mobile-header {
        padding: 1.1rem 1.5rem;
        border-bottom: 1px solid rgba(255,255,255,.1);
        flex-shrink: 0;
    }

    .menu-mobile-brand {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--bianco);
        letter-spacing: -.2px;
    }

    .btn-menu-chiudi {
        background: none;
        border: 2px solid rgba(255,255,255,.3);
        border-radius: 8px;
        color: var(--bianco);
        font-size: 1.15rem;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: .85;
        transition: opacity .15s, border-color .15s;
        padding: 0;
    }

    .btn-menu-chiudi:hover {
        opacity: 1;
        border-color: rgba(255,255,255,.7);
    }

    /* Voci di menu mobile */
    .menu-mobile-voci {
        padding: 1.5rem 2rem;
        flex-shrink: 0;
        margin: 0 auto !important;   /* centra, annulla ms-auto di Bootstrap */
        width: 100%;
        text-align: center;
    }

    /* nessun separatore tra le voci */
    .menu-mobile-voci .nav-item {
        border-bottom: none;
    }

    .menu-mobile-voci .nav-link {
        padding: .75rem 1rem !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: rgba(255,255,255,.78) !important;
        letter-spacing: -.2px;
        border-radius: 10px;
        display: inline-block !important;
        transition: color .15s, background .15s !important;
    }

    .menu-mobile-voci .nav-link:hover {
        color: var(--bianco) !important;
        background: rgba(255,255,255,.08) !important;
    }

    .menu-mobile-voci .nav-link.active {
        color: var(--bianco) !important;
        background: rgba(var(--rosso-rgb), .22) !important;
    }

    /* Footer del menu mobile */
    .menu-mobile-footer {
        padding: 1.5rem;
        border-top: 1px solid rgba(255,255,255,.1);
    }

    .menu-mobile-footer-body .footer-nome {
        font-size: 1rem;
        font-weight: 700;
        color: var(--bianco);
    }

    .menu-mobile-footer-body .footer-titolo {
        font-size: .85rem;
        color: rgba(255,255,255,.55);
    }

    .menu-mobile-footer-body ul a {
        color: rgba(255,255,255,.65);
        text-decoration: none;
        font-size: .88rem;
    }

    .menu-mobile-footer-body ul a:hover {
        color: var(--bianco);
    }

    .menu-mobile-mail {
        color: rgba(255,255,255,.65);
        text-decoration: none;
        font-size: .88rem;
    }

    .menu-mobile-mail:hover {
        color: var(--bianco);
    }

    .menu-mobile-footer-credits {
        font-size: .75rem;
        color: rgba(255,255,255,.3);
        border-top: 1px solid rgba(255,255,255,.08);
        padding-top: .85rem;
        margin-top: 1rem;
        text-align: center;
    }

    /* Blocca lo scroll del body quando menu è aperto */
    .menu-mobile-aperto {
        overflow: hidden;
    }
}

/* --- Hero ------------------------------------------------- */
.pl-hero {
    background: linear-gradient(135deg, var(--blu) 0%, #2a4a7a 100%);
    color: var(--bianco);
    padding: 6rem 0 5rem;
    margin-top: 0;
    overflow: hidden;
    position: relative;
}

.pl-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: rgba(192,57,43,.15);
    pointer-events: none;
}

.pl-hero-titolo {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.pl-hero-titolo .accento {
    color: var(--rosso);
    text-shadow: 0 0 20px rgba(192,57,43,.35);
}

.pl-hero-sottotitolo {
    font-size: 1.15rem;
    opacity: .9;
    margin-bottom: 2rem;
    max-width: 560px;
}

/* --- Chi sono --------------------------------------------- */
.pl-chi-sono {
    padding: 5rem 0;
    background: var(--bianco);
}

.pl-chi-sono-testo {
    font-size: 1.05rem;
    color: var(--testo);
}

.pl-chi-sono-foto {
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    width: 200px;
    height: 200px;
    object-fit: cover;
}

/* --- Card articolo ---------------------------------------- */
.pl-card {
    background: var(--bianco);
    border: 1px solid var(--bordo);
    border-radius: var(--raggio-lg);
    overflow: hidden;
    transition: box-shadow .35s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1), border-color .3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pl-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: transparent;
}

/* Immagine copertina con overlay al hover */
.pl-card .card-img-wrap {
    overflow: hidden;
    position: relative;
}

.pl-card .card-img-top {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
    display: block;
}

.pl-card:hover .card-img-top {
    transform: scale(1.04);
}

.pl-card .card-img-overlay-hint {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(30,58,110,.35) 100%);
    opacity: 0;
    transition: opacity .35s;
}

.pl-card:hover .card-img-overlay-hint {
    opacity: 1;
}

.pl-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--sfondo);
}

.pl-card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--blu-chiaro) 0%, #d4dff5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blu-medio);
    font-size: 2.8rem;
    opacity: .7;
}

.pl-card-body {
    padding: 1.4rem 1.4rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pl-card-footer {
    padding: 0 1.4rem 1.25rem;
}

.pl-card .card-body {
    padding: 1.4rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pl-card-titolo {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blu);
    margin-bottom: .5rem;
    line-height: 1.35;
}

.pl-card-titolo a {
    color: inherit;
    text-decoration: none;
}

.pl-card-titolo a:hover {
    color: var(--rosso);
}

.pl-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--blu);
    line-height: 1.35;
    margin-bottom: .6rem;
}

.pl-card .card-text {
    font-size: .9rem;
    color: var(--muted);
}

.pl-card-excerpt {
    font-size: .9rem;
    color: var(--muted);
    flex: 1;
}

/* Meta riga (data + link) */
.pl-card .card-meta {
    padding-top: .85rem;
    border-top: 1px solid var(--bordo);
    margin-top: auto;
}

.pl-card .data-articolo {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 500;
}

/* Card placeholder immagine (usata in blog listing) */
.card-img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--blu-chiaro) 0%, #cad9f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blu-medio);
    font-size: 2.5rem;
    opacity: .65;
}

/* --- Badge categoria -------------------------------------- */
.badge-categoria {
    display: inline-flex;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
    padding: .28em .8em;
    border-radius: 50px;
    color: var(--bianco);
    text-decoration: none;
    letter-spacing: .6px;
    text-transform: uppercase;
    transition: opacity .15s, transform .15s;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

.badge-categoria:hover {
    opacity: .88;
    color: var(--bianco);
    transform: scale(1.04);
}

/* --- Sezione blog in homepage ----------------------------- */
.pl-blog-home {
    background: var(--sfondo);
    padding: 5rem 0 5.5rem;
    position: relative;
    overflow: hidden;
}

/* Pattern decorativo sfondo blog */
.pl-blog-home::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42,82,152,.07) 0%, transparent 70%);
    pointer-events: none;
}

.pl-blog-home::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(214,48,49,.06) 0%, transparent 70%);
    pointer-events: none;
}

/* --- Sezione servizi in homepage -------------------------- */
.pl-servizi-home {
    padding: 5rem 0;
    background: var(--bianco);
}

.servizio-icona-home {
    font-size: 2.8rem;
    color: var(--rosso);
    margin-bottom: 1rem;
}

/* --- Breadcrumb ------------------------------------------- */
.pl-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.pl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--muted);
}

.pl-breadcrumb .breadcrumb-item a {
    color: var(--blu);
}

.pl-breadcrumb .breadcrumb-item.active {
    color: var(--muted);
}

/* --- Blog listing ----------------------------------------- */
.pl-blog-listing {
    padding: 3rem 0 5rem;
}

.blog-header-band {
    background: var(--blu);
    color: var(--bianco);
    padding: 3.5rem 0 2.5rem;
    margin-top: 60px;
}

/* --- Filtro categorie ------------------------------------- */
.filtro-categorie {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 2.5rem;
}

.pill-cat {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    padding: .4rem 1.05rem;
    border-radius: 50px;
    border: 1.5px solid var(--bordo);
    font-size: .84rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    background: var(--bianco);
    transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
}

.pill-cat:hover {
    border-color: var(--blu-medio);
    color: var(--blu);
    background: var(--blu-chiaro);
    box-shadow: 0 2px 10px rgba(30,58,110,.12);
}

.pill-cat.active {
    background: var(--blu);
    border-color: var(--blu);
    color: var(--bianco);
    box-shadow: 0 4px 14px rgba(30,58,110,.25);
}

/* --- Paginazione ------------------------------------------ */
.pl-pagination .page-link {
    color: var(--blu);
    border-color: var(--bordo);
    padding: .45rem .85rem;
}

.pl-pagination .page-item.active .page-link {
    background-color: var(--blu);
    border-color: var(--blu);
    color: var(--bianco);
}

.pl-pagination .page-link:hover {
    background-color: var(--sfondo);
    color: var(--blu);
}

/* --- Singolo articolo ------------------------------------- */
.inner-hero {
    background: var(--blu);
    color: var(--bianco);
    padding: 3rem 0 2.5rem;
    margin-top: 0;
}

.inner-hero .page-h1 {
    color: var(--bianco);
}

.articolo-body {
    font-size: 1.07rem;
    line-height: 1.85;
    color: var(--testo);
}

.articolo-body h2, .articolo-body h3 {
    color: var(--blu);
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: .8rem;
}

.articolo-body p { margin-bottom: 1.2rem; }

.articolo-body a {
    color: var(--rosso);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.articolo-body ul, .articolo-body ol {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.articolo-body img {
    border-radius: var(--raggio);
    margin: 1.5rem 0;
    max-width: 100%;
}

.articolo-body blockquote {
    border-left: 4px solid var(--rosso);
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: var(--muted);
    font-style: italic;
}

/* --- Correlati -------------------------------------------- */
.sezione-correlati {
    background: var(--sfondo);
    padding: 3rem 0 4rem;
    margin-top: 3rem;
}

/* --- Pagina Servizi --------------------------------------- */
.servizi-header-band {
    background: var(--blu);
    color: var(--bianco);
    padding: 3.5rem 0 2.5rem;
    margin-top: 60px;
}

.servizio-row {
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--bordo);
}

.servizio-row:last-of-type { border-bottom: none; }

.servizio-icona-grande {
    font-size: 3.8rem;
    color: var(--rosso);
    line-height: 1;
}

.servizio-titolo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blu);
    margin-bottom: .7rem;
}

.cta-servizi {
    background: linear-gradient(135deg, var(--blu) 0%, #2a4a7a 100%);
    color: var(--bianco);
    padding: 4rem 0;
    text-align: center;
}

/* --- Footer ----------------------------------------------- */
.pl-footer {
    background: var(--blu-scuro);
    color: rgba(255,255,255,.75);
    padding: 3.5rem 0 2rem;
    font-size: .9rem;
}

.pl-footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--bianco);
    margin-bottom: .25rem;
}

.pl-footer-sub {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 1rem;
}

.pl-footer h6 {
    color: var(--bianco);
    font-weight: 600;
    margin-bottom: .75rem;
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .6px;
}

.pl-footer a {
    color: rgba(255,255,255,.7);
    text-decoration: none;
    transition: color .2s;
    display: block;
    margin-bottom: .3rem;
}

.pl-footer a:hover { color: var(--bianco); }

.pl-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    font-size: .8rem;
    color: rgba(255,255,255,.45);
}

/* --- Utilities generiche ---------------------------------- */
.testo-muted-sm { font-size: .82rem; color: var(--muted); }

.divider-rosso {
    width: 48px;
    height: 3px;
    background: var(--rosso);
    margin: .5rem 0 1.5rem;
}

/* --- Blog hero band --------------------------------------- */
.blog-hero {
    background: linear-gradient(135deg, var(--blu-scuro) 0%, var(--blu) 65%, #1d3d7a 100%);
    padding: 3rem 0 2.8rem;
    position: relative;
    overflow: hidden;
}

.blog-hero::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.045) 0%, transparent 65%);
    pointer-events: none;
}

.blog-hero-titolo {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--bianco);
    margin-bottom: .4rem;
    line-height: 1.2;
}

.blog-hero-sub {
    color: rgba(255,255,255,.68);
    font-size: 1rem;
    max-width: 580px;
    margin: .4rem 0 0;
    line-height: 1.6;
}

.pl-breadcrumb-light .breadcrumb-item a            { color: rgba(255,255,255,.72); }
.pl-breadcrumb-light .breadcrumb-item.active       { color: rgba(255,255,255,.48); }
.pl-breadcrumb-light .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.38); }

/* --- Card hero (articolo in evidenza) --------------------- */
.pl-card-hero {
    display: flex;
    flex-direction: column;
    border-radius: var(--raggio-xl);
    overflow: hidden;
    background: var(--bianco);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--testo);
    border: 1px solid var(--bordo);
    transition: box-shadow .35s cubic-bezier(.22,1,.36,1), transform .3s cubic-bezier(.22,1,.36,1);
}

.pl-card-hero:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    color: var(--testo);
    text-decoration: none;
}

.pl-card-hero-img {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.pl-card-hero-img-el {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.22,1,.36,1);
}

.pl-card-hero:hover .pl-card-hero-img-el { transform: scale(1.04); }

.pl-card-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,34,69,.42) 100%);
}

.pl-card-hero-img-blank {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--blu-chiaro) 0%, #c8d5f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--blu-medio);
    opacity: .6;
}

.pl-card-hero-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: inline-flex;
    align-items: center;
    font-size: .68rem;
    font-weight: 700;
    padding: .25em .75em;
    border-radius: 50px;
    color: var(--bianco);
    text-transform: uppercase;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.pl-card-hero-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pl-card-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .3em;
    font-size: .7rem;
    font-weight: 700;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: .8rem;
}

.pl-card-hero-titolo {
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--blu);
    line-height: 1.25;
    margin-bottom: .85rem;
}

.pl-card-hero-excerpt {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.72;
    flex: 1;
    margin-bottom: 1.4rem;
}

.pl-card-hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--bordo);
}

.pl-card-hero-data {
    font-size: .8rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .35em;
}

.pl-card-hero-cta {
    font-size: .88rem;
    font-weight: 700;
    color: var(--rosso);
    display: inline-flex;
    align-items: center;
    gap: .2em;
    transition: gap .2s;
}

.pl-card-hero:hover .pl-card-hero-cta { gap: .48em; }

/* Hero: layout orizzontale da md in su */
@media (min-width: 768px) {
    .pl-card-hero           { flex-direction: row; }
    .pl-card-hero-img       { width: 50%; }
    .pl-card-hero-img-el    { aspect-ratio: unset; height: 100%; min-height: 300px; }
    .pl-card-hero-img-blank { aspect-ratio: unset; height: 100%; min-height: 300px; }
    .pl-card-hero-body      { width: 50%; padding: 2.5rem; }
}

/* --- Card articolo standard (griglia blog 3 col) ---------- */
.pl-card-img-link {
    display: block;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.pl-card-img-wrap {
    overflow: hidden;
    position: relative;
}

.pl-card-img-el {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22,1,.36,1);
}

.pl-card:hover .pl-card-img-el { transform: scale(1.05); }

.pl-card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15,34,69,.28) 100%);
    opacity: 0;
    transition: opacity .35s;
}

.pl-card:hover .pl-card-img-overlay { opacity: 1; }

.pl-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
}

.pl-card-img-blank {
    width: 100%;
    aspect-ratio: 3/2;
    background: linear-gradient(135deg, var(--blu-chiaro) 0%, #cad5ee 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--blu-medio);
    opacity: .65;
    position: relative;
}

.pl-card-body-inner {
    padding: 1.35rem 1.4rem 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pl-card-titolo-inner {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--blu);
    line-height: 1.35;
    margin-bottom: .5rem;
}

.pl-card-titolo-inner a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.pl-card-titolo-inner a:hover { color: var(--rosso); }

.pl-card-excerpt-inner {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 1rem;
}

.pl-card-meta-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: .8rem;
    border-top: 1px solid var(--bordo);
    margin-top: auto;
}

.pl-card-data {
    font-size: .78rem;
    color: var(--muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .3em;
}

.pl-card-leggi {
    font-size: .8rem;
    font-weight: 700;
    color: var(--rosso);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .2em;
    transition: gap .2s, color .2s;
}

.pl-card-leggi:hover { color: var(--rosso-hover); gap: .45em; }

/* --- Responsive ------------------------------------------- */
@media (max-width: 767.98px) {
    .pl-hero { padding: 5rem 0 3.5rem; }
    .pl-hero-titolo { font-size: 2rem; }
    .pl-card { margin-bottom: 1rem; }
    .filtro-categorie { gap: .35rem; }
}

/* --- Pulsante "link vedi tutti" ----------------------------- */
.link-vedi-tutti {
    color: var(--blu-medio);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .3em;
    transition: color .2s, gap .2s;
}

.link-vedi-tutti:hover {
    color: var(--rosso);
    gap: .55em;
}

/* --- Animazioni entrata card ------------------------------ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-card {
    opacity: 0;
    animation: fadeInUp .55s cubic-bezier(.22,1,.36,1) forwards;
}

.animate-card:nth-child(1) { animation-delay: .05s; }
.animate-card:nth-child(2) { animation-delay: .13s; }
.animate-card:nth-child(3) { animation-delay: .21s; }
.animate-card:nth-child(4) { animation-delay: .29s; }
.animate-card:nth-child(5) { animation-delay: .37s; }
.animate-card:nth-child(6) { animation-delay: .45s; }

/* --- Header interno sezione blog / filtro categorie ------- */
.blog-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

/* --- Paginazione migliorata ------------------------------- */
.pl-pagination .page-link {
    color: var(--blu);
    border-color: var(--bordo);
    padding: .45rem .85rem;
    font-weight: 500;
    border-radius: var(--raggio) !important;
    margin: 0 2px;
    transition: background .2s, color .2s, box-shadow .2s;
}

.pl-pagination .page-item.active .page-link {
    background-color: var(--blu);
    border-color: var(--blu);
    color: var(--bianco);
    box-shadow: 0 3px 10px rgba(30,58,110,.25);
}

.pl-pagination .page-link:hover {
    background-color: var(--blu-chiaro);
    color: var(--blu);
    border-color: var(--blu-medio);
}

/* --- Hero articolo (stile magazine) ----------------------- */
.articolo-hero {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
}

.articolo-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.articolo-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10,22,50,.90) 0%, rgba(10,22,50,.38) 55%, transparent 100%);
    pointer-events: none;
}

.articolo-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding-bottom: 2.5rem;
}

.articolo-titolo--hero {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--bianco);
    line-height: 1.2;
    margin: 0 0 .4rem;
    text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.articolo-meta--hero {
    color: rgba(255,255,255,.75);
}

.pl-breadcrumb--hero .breadcrumb-item a            { color: rgba(255,255,255,.72); }
.pl-breadcrumb--hero .breadcrumb-item.active       { color: rgba(255,255,255,.48); }
.pl-breadcrumb--hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.38); }

/* Intestazione standard (articoli senza immagine di copertina) */
.articolo-titolo {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    color: var(--blu);
    line-height: 1.22;
    margin-bottom: .3rem;
}

.articolo-header { border-bottom: 1px solid var(--bordo); padding-bottom: 1.25rem; }

/* --- Galleria immagini nel corpo dell'articolo ------------ */
.article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    margin: 1.75rem 0;
}

.article-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--raggio);
    margin: 0;
    display: block;
    cursor: zoom-in;
    transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}

.article-gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

@media (max-width: 767.98px) {
    .articolo-hero { height: 280px; }
    .articolo-titolo--hero { font-size: 1.4rem; }
    .articolo-hero-content { padding-bottom: 1.25rem; }
    .article-gallery {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: .5rem;
    }
    .article-gallery img { height: 150px; }
}

/* --- Lightbox immagini articolo --------------------------- */
.pl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-lightbox[hidden] { display: none; }

.pl-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10,22,50,.93);
    cursor: zoom-out;
}

.pl-lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(92vw, 1200px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pl-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--raggio);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
    display: block;
}

.pl-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    z-index: 2;
    background: rgba(255,255,255,.12);
    border: none;
    color: var(--bianco);
    font-size: 2rem;
    line-height: 1;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}

.pl-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ============================================================
   STUDIO 161 — Nuovi componenti aggiunti
   ============================================================ */

/* --- Variabili aggiuntive --------------------------------- */
:root {
    --verde-wa:     #25d366;
    --verde-wa-h:   #1da851;
}

/* --- HERO homepage ---------------------------------------- */
.pl-hero {
    min-height: calc(70vh - var(--header-h));
    background: var(--blu-scuro);
    color: var(--bianco);
    padding: 4.5rem 0 3.5rem;
    position: relative;
}

.pl-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--rosso);
}

.hero-sopratitolo {
    font-size: .8rem;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .75;
    margin-bottom: .25rem;
}

.hero-studio {
    color: #fff;
    font-weight: 700;
}

.hero-titolo {
    font-size: clamp(2.8rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: .5rem;
    letter-spacing: -.02em;
}

.hero-tagline {
    font-size: 1.1rem;
    opacity: .85;
    max-width: 55ch;
    line-height: 1.6;
}

.hero-contact-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.hero-contact-item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    background: rgba(255,255,255,.1);
    padding: .35rem .85rem;
    border-radius: 50px;
    font-size: .9rem;
    transition: background .2s, color .2s;
}

.hero-contact-item:hover { background: rgba(255,255,255,.2); color: #fff; }

.hero-wa {
    background: var(--verde-wa) !important;
    color: #fff !important;
}
.hero-wa:hover { background: var(--verde-wa-h) !important; }

.hero-emblem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(255,255,255,.15);
    border-radius: var(--raggio-xl);
    padding: 2.5rem 3rem;
    backdrop-filter: blur(8px);
    text-align: center;
}

.hero-emblem-anno {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    opacity: .6;
}

.hero-emblem-numero {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--rosso);
    letter-spacing: -.05em;
}

.hero-emblem-tag {
    font-size: .7rem;
    letter-spacing: .3em;
    text-transform: uppercase;
    opacity: .55;
}

.hero-cta .btn { min-width: 150px; }

/* --- Pulsanti aggiuntivi ---------------------------------- */
.btn-pl-ghost {
    background: transparent;
    color: var(--blu);
    border: 2px solid var(--bordo);
    border-radius: var(--raggio);
    padding: .55rem 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: border-color .2s, color .2s;
}
.btn-pl-ghost:hover { border-color: var(--blu); color: var(--blu-scuro); }

.btn-pl-outline-dark {
    background: transparent;
    color: var(--testo);
    border: 2px solid var(--testo);
    border-radius: var(--raggio);
    padding: .55rem 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, color .2s;
}
.btn-pl-outline-dark:hover { background: var(--testo); color: #fff; }

.btn-wa {
    background: var(--verde-wa);
    color: #fff;
    border: 2px solid var(--verde-wa);
    border-radius: var(--raggio);
    padding: .55rem 1.3rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background .2s, border-color .2s;
}
.btn-wa:hover { background: var(--verde-wa-h); border-color: var(--verde-wa-h); color: #fff; }

/* --- Tre Pilastri ----------------------------------------- */
.pl-pilastri {
    background: var(--sfondo);
}

.pilastro-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
    transition: box-shadow .25s, transform .2s;
}
.pilastro-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pilastro-inlinea  { border-top-color: var(--blu); }
.pilastro-protezione { border-top-color: var(--rosso); }
.pilastro-garage   { border-top-color: var(--garage); }

.pilastro-icona {
    font-size: 2rem;
    margin-bottom: .75rem;
}
.pilastro-inlinea .pilastro-icona   { color: var(--blu); }
.pilastro-protezione .pilastro-icona { color: var(--rosso); }
.pilastro-garage .pilastro-icona    { color: var(--garage); }

.pilastro-badge {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}
.pilastro-inlinea .pilastro-badge   { color: var(--blu-medio); }
.pilastro-protezione .pilastro-badge { color: var(--rosso); }
.pilastro-garage .pilastro-badge    { color: var(--garage-scuro); }

.pilastro-titolo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--testo);
    margin-bottom: .75rem;
}

.pilastro-testo {
    font-size: .92rem;
    color: var(--muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.pilastro-lista {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}
.pilastro-lista li {
    font-size: .88rem;
    padding: .2rem 0;
    color: var(--testo);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pilastro-lista .bi-check2 { color: #27ae60; font-size: 1rem; }

.pilastro-link {
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}
.pilastro-inlinea .pilastro-link   { color: var(--blu); }
.pilastro-protezione .pilastro-link { color: var(--rosso); }
.pilastro-garage .pilastro-link    { color: var(--garage-scuro); }

/* --- Strip gratuito --------------------------------------- */
.pl-strip-gratuito {
    background: var(--blu);
    color: var(--bianco);
    padding: 1.75rem 0;
}

.strip-gratuito-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.strip-icon {
    font-size: 2rem;
    color: var(--rosso);
    flex-shrink: 0;
}

.strip-gratuito-inner > div {
    flex: 1;
    min-width: 200px;
}

.btn-pl-strip {
    background: var(--bianco);
    color: var(--blu);
    border: none;
    border-radius: var(--raggio);
    padding: .55rem 1.4rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    transition: background .2s;
}
.btn-pl-strip:hover { background: var(--sfondo); color: var(--blu-scuro); }

/* --- Chi sono — dato cards -------------------------------- */
.dato-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.dato-icon {
    font-size: 1.75rem;
    color: var(--blu);
    display: block;
    margin-bottom: .5rem;
}

.dato-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
    margin-bottom: .25rem;
}

.dato-valore {
    font-size: 1rem;
    font-weight: 700;
    color: var(--testo);
}

/* --- Partner cards --------------------------------------- */
.partner-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 1.5rem 1rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow .2s;
}
.partner-card:hover { box-shadow: var(--shadow-md); }

.partner-icon {
    font-size: 1.75rem;
    color: var(--blu-medio);
    display: block;
    margin: 0 auto .5rem;
}

.partner-nome {
    font-weight: 700;
    font-size: .95rem;
    color: var(--testo);
}

.partner-desc {
    font-size: .82rem;
    color: var(--muted);
    margin-top: .2rem;
}

/* --- CTA finale ------------------------------------------ */
.pl-cta-finale {
    background: var(--sfondo);
}

.cta-finale-box {
    background: var(--bianco);
    border-radius: var(--raggio-xl);
    padding: 3rem 2rem;
    box-shadow: var(--shadow-md);
}

.cta-finale-titolo {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--blu);
}

.cta-finale-sub {
    color: var(--muted);
    font-size: 1.05rem;
}

/* --- Pagine inner hero ----------------------------------- */
.pl-page-inner { min-height: 70vh; }
.pt-navbar { padding-top: 0; }

.inner-hero {
    background: var(--blu-scuro);
    color: var(--bianco);
    padding: 3.5rem 0 3rem;
    border-bottom: 4px solid var(--rosso);
}

.inner-hero-titolo {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .5rem;
}

.inner-hero-sub {
    font-size: 1.05rem;
    opacity: .8;
    max-width: 65ch;
}

.pl-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,.7); text-decoration: none; }
.pl-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,.5); }
.pl-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* --- Servizi page ---------------------------------------- */
.servizi-sezione-header { max-width: 680px; }

.servizi-sezione-badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .75rem;
}

.badge-inlinea {
    background: var(--blu-chiaro);
    color: var(--blu);
}

.badge-protezione {
    background: rgba(214,48,49,.1);
    color: var(--rosso);
}

.servizi-sezione-titolo {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--testo);
    margin-bottom: .75rem;
}

.servizi-sezione-intro {
    color: var(--muted);
    line-height: 1.7;
}

.servizi-sottosezione-titolo {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blu);
    border-left: 3px solid var(--rosso);
    padding-left: .75rem;
}

.servizio-item-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 1.75rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow .2s, transform .2s;
    border-left: 3px solid transparent;
}
.servizio-item-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-left-color: var(--blu);
}
.servizio-item-card.sic-highlight { border-left-color: var(--rosso); }

.sic-icona {
    font-size: 1.5rem;
    color: var(--blu-medio);
    margin-bottom: .5rem;
}

.sic-titolo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--testo);
    margin-bottom: .4rem;
}

.sic-testo {
    font-size: .88rem;
    color: var(--muted);
    margin: 0;
}

.servizi-legale-box {
    background: var(--blu-chiaro);
    border-left: 4px solid var(--blu);
    border-radius: var(--raggio-lg);
    padding: 2rem;
}

.servizi-legale-icona {
    font-size: 3rem;
    color: var(--blu-medio);
}

.servizi-separator {
    border-color: var(--bordo);
    margin: 2rem 0;
}

.servizi-hero {
    background: var(--blu-scuro);
}

.inner-hero-nav .btn-pl-outline {
    color: rgba(255,255,255,.8);
    border-color: rgba(255,255,255,.3);
    font-size: .85rem;
}
.inner-hero-nav .btn-pl-outline:hover {
    border-color: rgba(255,255,255,.7);
    color: #fff;
}

.servizi-cta-box {
    background: var(--sfondo);
    border-radius: var(--raggio-xl);
    padding: 2.5rem;
}

/* --- Garage 68 ------------------------------------------ */
.garage68-hero {
    background: #111;
}

.garage68-hero-badge {
    font-size: .75rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--garage);
    margin-bottom: .4rem;
}

.garage68-titolo {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
}

.g68-numero {
    color: var(--garage);
}

.garage68-sottotitolo {
    font-size: 1.25rem;
    font-style: italic;
    opacity: .8;
    margin-bottom: .75rem;
}

.garage-feature-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    border-top: 4px solid var(--garage);
}

.gfc-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--garage);
    opacity: .3;
    line-height: 1;
    margin-bottom: .5rem;
}

.gfc-titolo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--testo);
    margin-bottom: .75rem;
}

.gfc-testo {
    font-size: .9rem;
    color: var(--muted);
}

.garage-service-card {
    background: var(--bianco);
    border-radius: var(--raggio-lg);
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: box-shadow .2s;
}
.garage-service-card:hover { box-shadow: var(--shadow-md); }

.gsc-icona {
    font-size: 2rem;
    color: var(--garage);
    display: block;
    margin-bottom: .75rem;
}

.gsc-titolo {
    font-size: 1rem;
    font-weight: 700;
    color: var(--testo);
    margin-bottom: .5rem;
}

.gsc-testo {
    font-size: .88rem;
    color: var(--muted);
}

.partner-card-garage {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--garage-chiaro);
    border-radius: var(--raggio-lg);
    padding: 1.5rem;
    border-left: 4px solid var(--garage);
}

.partner-icon-sm {
    font-size: 1.5rem;
    color: var(--garage-scuro);
    flex-shrink: 0;
    margin-top: .1rem;
}

.garage68-cta {
    background: var(--garage-chiaro);
    border-radius: var(--raggio-xl);
    padding: 2.5rem;
}

/* --- Contatti page --------------------------------------- */
.contatto-diretto-card {
    display: block;
    background: var(--bianco);
    border: 2px solid var(--bordo);
    border-radius: var(--raggio-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color .2s, box-shadow .2s;
    height: 100%;
}
.contatto-diretto-card:hover {
    border-color: var(--blu);
    box-shadow: var(--shadow-md);
}

.contatto-wa { border-color: var(--verde-wa) !important; }
.contatto-wa:hover { border-color: var(--verde-wa-h) !important; }

.cd-icona {
    font-size: 2rem;
    color: var(--blu);
    display: block;
    margin-bottom: .5rem;
}
.contatto-wa .cd-icona { color: var(--verde-wa); }

.cd-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    margin-bottom: .25rem;
}

.cd-valore {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--testo);
}

.cd-note {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .2rem;
}

/* --- Footer aggiornato ----------------------------------- */
.footer-sezione-titolo {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
    font-weight: 700;
}

.footer-nome {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
}

.footer-titolo {
    font-size: .9rem;
    color: rgba(255,255,255,.65);
}

.footer-contact-link {
    font-size: .9rem;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}
.footer-contact-link:hover { color: var(--blu); }
.footer-wa { color: var(--verde-wa) !important; }
.footer-wa:hover { color: var(--verde-wa-h) !important; }

/* --- Navbar Garage 68 item ------------------------------ */
.nav-garage68 {
    color: var(--rosso) !important;
    font-weight: 700;
}
.nav-garage68:hover, .nav-garage68.active {
    color: var(--rosso-hover) !important;
    text-shadow: none;
}

/* --- Lead text ------------------------------------------ */
.lead-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--testo);
}

body.theme-garage68 .lead-text { color: #f0f0f0; }
body.theme-garage68 .lead-text strong { color: var(--rosso-acceso); }

/* ============================================================
   Vetrine categorie (Novità)
   ============================================================ */
.vetrina-cat-card {
    display: block;
    background: var(--bianco);
    border: 1px solid var(--bordo);
    border-radius: var(--raggio-lg);
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .25s, transform .2s, border-color .2s;
}
.vetrina-cat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--rosso);
    color: inherit;
}

.vetrina-cat-img {
    aspect-ratio: 16/9;
    background: var(--blu-chiaro);
    overflow: hidden;
    position: relative;
}
.vetrina-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vetrina-cat-img-blank {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--blu-medio);
    opacity: .55;
}

.vetrina-cat-body {
    padding: 1.4rem 1.35rem 1.25rem;
}
.vetrina-cat-nome {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--blu);
    margin-bottom: .4rem;
}
.vetrina-cat-desc {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: .85rem;
}
.vetrina-cat-meta {
    font-size: .8rem;
    font-weight: 700;
    color: var(--rosso);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ============================================================
   Banner SOS flottante
   ============================================================ */
.sos-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    align-items: stretch;
    background: #5081c0;
    box-shadow: 0 -4px 24px rgba(0,0,0,.28);
    min-height: var(--sos-h);
}

.sos-banner-call {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: clamp(1.2rem, 3.2vw, 1.35rem);
    letter-spacing: .01em;
    padding: .85rem 1rem;
}
.sos-banner-call:hover,
.sos-banner-call:focus {
    color: #fff;
    background: #416fa9;
}

.sos-banner-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #004db0;
    font-weight: 900;
    letter-spacing: .12em;
    font-size: .85rem;
    padding: .35rem .7rem;
    border-radius: 4px;
    min-width: 3.4rem;
}

.sos-banner-save {
    border: none;
    border-left: 1px solid rgba(255,255,255,.25);
    background: #004db0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 0 1.1rem;
    min-width: 5.5rem;
    min-height: 44px;
    cursor: pointer;
    touch-action: manipulation;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .15rem;
    -webkit-tap-highlight-color: rgba(255,255,255,.2);
}
.sos-banner-save:hover,
.sos-banner-save:focus {
    background: #003d8b;
    color: #fff;
    text-decoration: none;
}
.sos-banner-save i { font-size: 1.15rem; }

.sos-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(20, 16, 12, .62);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}
@media (min-width: 576px) {
    .sos-modal-backdrop {
        align-items: center;
        padding: 1.25rem;
    }
}
.sos-modal-backdrop[hidden] { display: none !important; }
.sos-modal-backdrop.aperto { display: flex; }

.sos-modal {
    background: #fff;
    border-radius: 12px 12px 0 0;
    max-width: 440px;
    width: 100%;
    padding: 1.5rem 1.35rem 1.5rem;
    box-shadow: var(--shadow-lg);
    max-height: min(92vh, 720px);
    overflow-y: auto;
}
@media (min-width: 576px) {
    .sos-modal { border-radius: 8px; }
}
.sos-modal h2,
.sos-modal-guida-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--blu);
    margin: 0 0 .5rem;
    line-height: 1.25;
}
.sos-modal-guida-title { color: #fff; text-align: left; width: min(100%, 420px); }

.sos-guida-lead {
    font-size: 1.12rem;
    line-height: 1.55;
    color: var(--testo);
    margin: 0 0 1.15rem;
}
.sos-body .sos-guida-lead { color: #e8e8e8; }

.sos-guida-block {
    background: #f5f2ed;
    border-radius: 8px;
    padding: 1rem 1rem 1.05rem;
    margin-bottom: .85rem;
}
.sos-body .sos-guida-block { background: #2a2a2a; }
.sos-guida-block[hidden] { display: none !important; }
.sos-guida-block h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--blu);
    margin: 0 0 .7rem;
}
.sos-body .sos-guida-block h3 { color: #fff; }
.sos-guida-block ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: sos-step;
}
.sos-guida-block li {
    counter-increment: sos-step;
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    font-size: 1.08rem;
    line-height: 1.5;
    color: var(--testo);
    margin-bottom: .75rem;
}
.sos-body .sos-guida-block li { color: #f0f0f0; }
.sos-guida-block li:last-child { margin-bottom: 0; }
.sos-guida-block li::before {
    content: counter(sos-step);
    flex: 0 0 1.85rem;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: var(--rosso-acceso);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: .1rem;
}
.sos-guida-switch { margin: .15rem 0 .9rem; }
.sos-guida-altro {
    background: none;
    border: none;
    padding: 0;
    color: var(--blu-medio);
    font-size: .98rem;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    text-align: left;
}
.sos-body .sos-guida-altro { color: #ddd; }
.sos-guida-actions { display: flex; flex-direction: column; gap: .65rem; }
.sos-guida-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    background: var(--rosso-acceso);
    color: #fff !important;
    font-weight: 800;
    font-size: 1.12rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    padding: .7rem 1rem;
}
.sos-guida-cta:hover,
.sos-guida-cta:focus { background: #c10500; color: #fff !important; }
.sos-guida-chiudi {
    display: block;
    width: 100%;
    margin-top: .85rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.05rem;
    font-weight: 600;
    min-height: 48px;
    cursor: pointer;
}

.sos-modal-actions {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-top: 1.1rem;
}

@media (max-width: 575.98px) {
    :root { --sos-h: 64px; --header-h: 88px; }
    .sos-banner-label-full { display: none; }
    .pl-topbar-label { display: none; }
}

/* ============================================================
   Tema scuro Garage 68
   ============================================================ */
body.theme-garage68 {
    background: #1a1a1a;
    color: #f5f5f5;
    font-family: 'Inter', system-ui, sans-serif;
    --font-display: 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --testo: #f5f5f5;
    --muted: #c4c4c4;
    --bordo: #3a3a3a;
    --sfondo: #222;
    --blu: #ffffff;
    --blu-scuro: #111111;
    --blu-chiaro: #2a2a2a;
    --blu-medio: #e10600;
    --rosso: #e10600;
    --rosso-hover: #c10500;
    --garage: #e10600;
    --garage-scuro: #c10500;
    --garage-chiaro: #2a2a2a;
}

body.theme-garage68 .pl-header-wrap { background: #1a1a1a; }
body.theme-garage68 .pl-topbar { background: #1a1a1a; }
body.theme-garage68 .pl-navbar {
    background: #1a1a1a !important;
    border-bottom-color: var(--rosso-acceso);
}
body.theme-garage68 .pl-navbar .nav-link {
    color: rgba(255,255,255,.82) !important;
}
body.theme-garage68 .pl-navbar .nav-link:hover,
body.theme-garage68 .pl-navbar .nav-link.active {
    color: #fff !important;
    background: rgba(225,6,0,.22);
}
body.theme-garage68 .nav-garage68 {
    color: var(--rosso-acceso) !important;
}
body.theme-garage68 .navbar-toggler { border-color: rgba(255,255,255,.45); }
body.theme-garage68 .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(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (max-width: 991.98px) {
    body.theme-garage68 .pl-navbar #menu-principale {
        background: #1a1a1a !important;
    }
}

body.theme-garage68 .pl-footer {
    background: #111;
    color: rgba(255,255,255,.7);
}
body.theme-garage68 a:not(.btn):not(.sos-banner-call):not(.sos-banner-save):not(.btn-wa):not(.btn-pl-primary) { color: #fff; }
body.theme-garage68 a:not(.btn):not(.sos-banner-call):not(.sos-banner-save):hover { color: var(--rosso-acceso); }
body.theme-garage68 .section-title { color: #fff; }
body.theme-garage68 .section-title::after { background: var(--rosso-acceso); }
body.theme-garage68 .text-muted { color: #b5b5b5 !important; }
body.theme-garage68 .garage68-hero {
    background: #111;
    border-bottom: 4px solid var(--rosso-acceso);
}
body.theme-garage68 .garage68-hero-badge,
body.theme-garage68 .g68-numero { color: var(--rosso-acceso); }
body.theme-garage68 .garage-feature-card,
body.theme-garage68 .garage-service-card {
    background: #2a2a2a;
    box-shadow: none;
    border-top-color: var(--rosso-acceso);
    color: #f5f5f5;
}
body.theme-garage68 .gfc-num,
body.theme-garage68 .gsc-icona,
body.theme-garage68 .gfc-titolo,
body.theme-garage68 .gsc-titolo { color: var(--rosso-acceso); }
body.theme-garage68 .gfc-testo,
body.theme-garage68 .gsc-testo { color: #c8c8c8; }
body.theme-garage68 .partner-card-garage {
    background: #2a2a2a;
    border-left-color: var(--rosso-acceso);
}
body.theme-garage68 .partner-icon-sm { color: var(--rosso-acceso); }
body.theme-garage68 .garage68-cta {
    background: #2a2a2a;
    color: #f5f5f5;
}
body.theme-garage68 .btn-pl-ghost {
    color: #fff;
    border-color: var(--rosso-acceso);
}
body.theme-garage68 .btn-pl-ghost:hover {
    background: var(--rosso-acceso);
    color: #fff;
    border-color: var(--rosso-acceso);
}
body.theme-garage68 .pl-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
body.theme-garage68 .pl-card .card-title,
body.theme-garage68 .pl-card-titolo { color: #fff; }
body.theme-garage68 .footer-contact-link { color: rgba(255,255,255,.7); }
body.theme-garage68 .footer-contact-link:hover { color: var(--rosso-acceso); }
body.theme-garage68 .articolo-titolo { color: #fff; }
body.theme-garage68 .articolo-body { color: #eaeaea; }
body.theme-garage68 .articolo-body h2,
body.theme-garage68 .articolo-body h3 { color: #fff; }
body.theme-garage68 .articolo-body strong { color: var(--rosso-acceso); }
body.theme-garage68 .correlati-titolo { color: #fff; }
body.theme-garage68 .pl-card-correlato {
    background: #2a2a2a;
    color: #fff;
}
body.theme-garage68 .vetrina-cat-card {
    background: #2a2a2a;
    border-color: #3a3a3a;
}
body.theme-garage68 .vetrina-cat-nome { color: #fff; }

body.theme-garage68 .pilastro-garage { border-top-color: var(--rosso-acceso); }

/* ============================================================
   Studio Bergamini — override tema principale
   Non si applica a Garage 68
   ============================================================ */
body:not(.theme-garage68) h1,
body:not(.theme-garage68) h2,
body:not(.theme-garage68) h3,
body:not(.theme-garage68) .page-h1,
body:not(.theme-garage68) .section-title,
body:not(.theme-garage68) .hero-titolo,
body:not(.theme-garage68) .inner-hero-titolo,
body:not(.theme-garage68) .blog-hero-titolo,
body:not(.theme-garage68) .cta-finale-titolo,
body:not(.theme-garage68) .servizi-sezione-titolo,
body:not(.theme-garage68) .pilastro-titolo,
body:not(.theme-garage68) .vetrina-cat-nome,
body:not(.theme-garage68) .articolo-titolo,
body:not(.theme-garage68) .articolo-titolo--hero {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: .02em;
}

body:not(.theme-garage68) .section-title {
    font-size: clamp(1.7rem, 3.2vw, 2.35rem);
    font-weight: 600;
    color: var(--blu);
}

body:not(.theme-garage68) .section-title::after {
    width: 40px;
    height: 1px;
    background: var(--rosso);
}

body:not(.theme-garage68) .pl-topbar {
    background: var(--sfondo);
    color: var(--muted);
    border-bottom: 1px solid var(--bordo);
}

body:not(.theme-garage68) .pl-topbar a {
    color: var(--testo);
}

body:not(.theme-garage68) .pl-topbar a:hover {
    color: var(--rosso);
}

body:not(.theme-garage68) .pl-topbar-label {
    color: var(--muted);
}

body:not(.theme-garage68) .pl-topbar-links i {
    color: var(--rosso);
}

body:not(.theme-garage68) .pl-header-wrap {
    background: var(--bianco);
    box-shadow: none;
    border-bottom: 1px solid var(--bordo);
}

body:not(.theme-garage68) .pl-navbar {
    background: var(--bianco) !important;
    border-bottom: none;
}

body:not(.theme-garage68) .pl-navbar .nav-link {
    color: var(--testo) !important;
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .82rem;
    background: transparent !important;
}

body:not(.theme-garage68) .pl-navbar .nav-link:hover,
body:not(.theme-garage68) .pl-navbar .nav-link.active {
    color: var(--rosso) !important;
    background: transparent !important;
}

body:not(.theme-garage68) .nav-garage68 {
    color: var(--rosso) !important;
    font-weight: 600;
}

@media (max-width: 991.98px) {
    body:not(.theme-garage68) .pl-navbar #menu-principale {
        background: var(--bianco) !important;
    }
    body:not(.theme-garage68) .menu-mobile-header {
        border-bottom-color: var(--bordo);
    }
    body:not(.theme-garage68) .btn-menu-chiudi {
        color: var(--testo);
        border-color: var(--bordo);
    }
    body:not(.theme-garage68) .menu-mobile-voci .nav-link {
        color: var(--testo) !important;
    }
    body:not(.theme-garage68) .menu-mobile-voci .nav-link.active {
        color: var(--rosso) !important;
        background: transparent !important;
    }
    body:not(.theme-garage68) .menu-mobile-footer {
        border-top-color: var(--bordo);
    }
    body:not(.theme-garage68) .menu-mobile-footer-body .footer-nome,
    body:not(.theme-garage68) .menu-mobile-footer-body ul a,
    body:not(.theme-garage68) .menu-mobile-mail {
        color: var(--testo);
    }
    body:not(.theme-garage68) .menu-mobile-footer-body .footer-titolo,
    body:not(.theme-garage68) .menu-mobile-footer-credits {
        color: var(--muted);
    }
}

body:not(.theme-garage68) .pl-hero,
body:not(.theme-garage68) .inner-hero,
body:not(.theme-garage68) .blog-hero,
body:not(.theme-garage68) .servizi-hero {
    background: var(--sfondo) !important;
    color: var(--testo);
    border-bottom: 1px solid var(--bordo);
    min-height: 0;
}

body:not(.theme-garage68) .pl-hero::before,
body:not(.theme-garage68) .pl-hero::after,
body:not(.theme-garage68) .blog-hero::after {
    display: none;
}

body:not(.theme-garage68) .hero-titolo {
    font-size: clamp(2.6rem, 7vw, 4.6rem);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blu);
    line-height: 1.05;
}

body:not(.theme-garage68) .hero-chiamaci-label {
    font-size: .78rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin: 0;
}

body:not(.theme-garage68) .hero-sopratitolo,
body:not(.theme-garage68) .hero-studio {
    color: var(--muted);
    letter-spacing: .28em;
    font-size: .78rem;
    font-weight: 500;
}

body:not(.theme-garage68) .hero-tagline {
    color: var(--muted);
    opacity: 1;
    font-size: 1.05rem;
    max-width: 48ch;
}

body:not(.theme-garage68) .hero-contact-item {
    background: transparent;
    color: var(--testo);
    border: 1px solid var(--bordo);
    border-radius: 0;
}

body:not(.theme-garage68) .hero-contact-item:hover {
    background: var(--blu-chiaro);
    color: var(--testo);
}

body:not(.theme-garage68) .hero-wa {
    background: transparent !important;
    color: var(--testo) !important;
    border-color: var(--bordo);
}

body:not(.theme-garage68) .hero-emblem {
    background: transparent;
    border: 1px solid var(--bordo);
    border-radius: 0;
    backdrop-filter: none;
}

body:not(.theme-garage68) .hero-emblem-numero {
    color: var(--rosso);
    font-family: var(--font-display);
    font-weight: 600;
}

body:not(.theme-garage68) .btn-pl-primary {
    background: var(--blu-scuro);
    border: 1px solid var(--blu-scuro);
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}

body:not(.theme-garage68) .btn-pl-primary:hover,
body:not(.theme-garage68) .btn-pl-primary:focus {
    background: var(--rosso);
    border-color: var(--rosso);
    color: #fff;
}

body:not(.theme-garage68) .btn-pl-outline {
    color: var(--testo);
    border: 1px solid var(--testo);
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-size: .82rem;
}

body:not(.theme-garage68) .btn-pl-outline:hover,
body:not(.theme-garage68) .btn-pl-outline:focus {
    background: var(--blu-scuro);
    border-color: var(--blu-scuro);
    color: #fff;
}

body:not(.theme-garage68) .btn-pl-ghost,
body:not(.theme-garage68) .btn-pl-outline-dark {
    background: transparent;
    color: var(--testo);
    border: 1px solid var(--testo);
    border-radius: 0;
    font-weight: 500;
    letter-spacing: .04em;
}

body:not(.theme-garage68) .btn-pl-ghost:hover,
body:not(.theme-garage68) .btn-pl-ghost:focus,
body:not(.theme-garage68) .btn-pl-outline-dark:hover,
body:not(.theme-garage68) .btn-pl-outline-dark:focus {
    background: var(--blu-scuro);
    border-color: var(--blu-scuro);
    color: #fff;
}

body:not(.theme-garage68) .btn-wa {
    background: transparent;
    color: var(--testo);
    border: 1px solid var(--bordo);
    border-radius: 0;
}

body:not(.theme-garage68) .btn-wa:hover {
    background: var(--blu-chiaro);
    color: var(--testo);
    border-color: var(--muted);
}

body:not(.theme-garage68) .pilastro-card,
body:not(.theme-garage68) .servizio-item-card,
body:not(.theme-garage68) .dato-card,
body:not(.theme-garage68) .partner-card,
body:not(.theme-garage68) .vetrina-cat-card,
body:not(.theme-garage68) .pl-card,
body:not(.theme-garage68) .cta-finale-box,
body:not(.theme-garage68) .contatto-diretto-card {
    box-shadow: none;
    border: 1px solid var(--bordo);
    border-radius: 0;
    background: var(--bianco);
}

body:not(.theme-garage68) .pilastro-card {
    border-top: 1px solid var(--bordo);
}

body:not(.theme-garage68) .pilastro-card:hover,
body:not(.theme-garage68) .vetrina-cat-card:hover,
body:not(.theme-garage68) .pl-card:hover,
body:not(.theme-garage68) .contatto-diretto-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--rosso);
}

body:not(.theme-garage68) .pilastro-inlinea,
body:not(.theme-garage68) .pilastro-protezione,
body:not(.theme-garage68) .pilastro-garage {
    border-top-color: var(--bordo);
}

body:not(.theme-garage68) .pilastro-icona,
body:not(.theme-garage68) .pilastro-inlinea .pilastro-icona,
body:not(.theme-garage68) .pilastro-protezione .pilastro-icona,
body:not(.theme-garage68) .pilastro-garage .pilastro-icona {
    color: var(--rosso);
}

body:not(.theme-garage68) .pilastro-badge,
body:not(.theme-garage68) .pilastro-inlinea .pilastro-badge,
body:not(.theme-garage68) .pilastro-protezione .pilastro-badge,
body:not(.theme-garage68) .pilastro-garage .pilastro-badge {
    color: var(--muted);
    font-weight: 500;
}

body:not(.theme-garage68) .pilastro-lista .bi-check2 {
    color: var(--rosso);
}

body:not(.theme-garage68) .pilastro-link,
body:not(.theme-garage68) .pilastro-inlinea .pilastro-link,
body:not(.theme-garage68) .pilastro-protezione .pilastro-link,
body:not(.theme-garage68) .pilastro-garage .pilastro-link {
    color: var(--rosso);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: .78rem;
}

body:not(.theme-garage68) .pl-strip-gratuito,
body:not(.theme-garage68) .cta-servizi {
    background: var(--sfondo);
    color: var(--testo);
}

body:not(.theme-garage68) .strip-icon {
    color: var(--rosso);
}

body:not(.theme-garage68) .btn-pl-strip {
    background: var(--blu-scuro);
    color: #fff;
    border-radius: 0;
}

body:not(.theme-garage68) .pl-footer {
    background: #3a3530;
    color: rgba(255,255,255,.72);
}

body:not(.theme-garage68) .footer-nome,
body:not(.theme-garage68) .pl-footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
}

body:not(.theme-garage68) .blog-hero-titolo,
body:not(.theme-garage68) .inner-hero-titolo,
body:not(.theme-garage68) .page-h1 {
    color: var(--blu);
}

body:not(.theme-garage68) .blog-hero-sub,
body:not(.theme-garage68) .inner-hero-sub {
    color: var(--muted);
    opacity: 1;
}

body:not(.theme-garage68) .pl-breadcrumb .breadcrumb-item a {
    color: var(--muted);
}

body:not(.theme-garage68) .pl-breadcrumb .breadcrumb-item.active {
    color: var(--testo);
}

body:not(.theme-garage68) .pl-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: var(--bordo);
}

body:not(.theme-garage68) .inner-hero-nav .btn-pl-outline {
    color: var(--testo);
    border-color: var(--bordo);
}

body:not(.theme-garage68) .pl-pagination .page-item.active .page-link {
    background: var(--blu-scuro);
    border-color: var(--blu-scuro);
}

body:not(.theme-garage68) .pl-card .card-title,
body:not(.theme-garage68) .pl-card-titolo,
body:not(.theme-garage68) .pl-card-titolo-inner a {
    color: var(--blu);
    font-family: var(--font-display);
    font-weight: 600;
}

body:not(.theme-garage68) a:not(.btn):not(.sos-banner-call):not(.sos-banner-save):not(.hero-contact-item):not(.contatto-diretto-card):hover {
    color: var(--rosso);
}

body:not(.theme-garage68) a.btn:hover,
body:not(.theme-garage68) a.btn:focus {
    color: #fff;
}

body:not(.theme-garage68) a.btn-wa:hover,
body:not(.theme-garage68) a.btn-wa:focus {
    color: var(--testo);
}

body:not(.theme-garage68) .divider-rosso {
    height: 1px;
    background: var(--rosso);
}

body:not(.theme-garage68) .badge-inlinea,
body:not(.theme-garage68) .badge-protezione {
    background: var(--blu-chiaro);
    color: var(--rosso);
    border-radius: 0;
}

body:not(.theme-garage68) .servizi-legale-box {
    background: var(--blu-chiaro);
    border-left-color: var(--rosso);
}

body:not(.theme-garage68) .vetrina-cat-meta {
    font-weight: 500;
    letter-spacing: .08em;
}


/* Aggiornamento ottobre 2026: fondo corda e testi ad alto contrasto. */
body:not(.theme-garage68) {
    --sfondo: #d5c6b0;
    --blu-chiaro: #dfd2be;
    --bordo: #b5a58f;
    --muted: #584e44;
    --rosso: #65483e;
    --rosso-hover: #5c4036;
    --rosso-rgb: 101, 72, 62;
    background: var(--sfondo);
}
body:not(.theme-garage68) .pl-chi-sono,
body:not(.theme-garage68) .pl-pilastri,
body:not(.theme-garage68) .pl-blog-home,
body:not(.theme-garage68) .pl-cta-finale,
body:not(.theme-garage68) .bg-light,
body:not(.theme-garage68) .pl-header-wrap,
body:not(.theme-garage68) .pl-navbar { background: var(--sfondo) !important; }
body:not(.theme-garage68) .pilastro-card,
body:not(.theme-garage68) .servizio-item-card,
body:not(.theme-garage68) .dato-card,
body:not(.theme-garage68) .partner-card,
body:not(.theme-garage68) .pl-card,
body:not(.theme-garage68) .cta-finale-box,
body:not(.theme-garage68) .contatto-diretto-card { background: #e6dccd; }
body:not(.theme-garage68) .text-muted { color: var(--muted) !important; }
body:not(.theme-garage68) .hero-emblem-anno,
body:not(.theme-garage68) .hero-emblem-tag { color: var(--muted); opacity: 1; }
.hero-garage-link { text-decoration: none; transition: border-color .2s, transform .2s; }
.hero-garage-link:hover { border-color: var(--rosso); transform: translateY(-3px); }
.hero-garage-link .hero-emblem-anno { font-size: 1.35rem; letter-spacing: .18em; }
.pl-card .card-title a { color: inherit; text-decoration: none; }
.news-categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.news-category { display: flex; flex-direction: column; padding: 1.1rem 1.2rem; border: 1px solid var(--bordo); border-radius: 4px; background: #e6dccd; text-decoration: none; color: var(--testo); }
.news-category strong { font-size: 1.1rem; }
.news-category span { font-size: .9rem; color: var(--muted); }
.news-category.active { background: var(--blu-scuro); border-color: var(--blu-scuro); color: #fff; }
.news-category.active span { color: #f0e7db; }
body:not(.theme-garage68) a.news-category.active:hover { color: #fff; }
.news-group { border-top: 1px solid var(--bordo); padding-top: 2rem; }
.news-group-heading { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.news-group-heading .btn { flex-shrink: 0; }
.news-group-label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.news-empty { padding: 1.5rem; background: #e6dccd; border: 1px dashed var(--bordo); }
.privacy-content { max-width: 850px; margin-inline: auto; }
.privacy-content h2 { margin-top: 2rem; }
.privacy-content a { text-decoration: underline; }
.cookie-notice { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 780px; margin-inline: auto; z-index: 1040; background: #fffaf2; color: #302b27; border: 1px solid #9c8870; border-radius: 6px; box-shadow: 0 8px 32px #0003; padding: 1.1rem 1.3rem; font-family: var(--font-body); line-height: 1.55; }
.has-sos-banner .cookie-notice { bottom: calc(var(--sos-h) + 1rem); }
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: .4rem 0 .8rem; font-size: .95rem; }
.cookie-notice-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-notice a { color: #5c4036 !important; text-decoration: underline; font-weight: 600; }
.cookie-notice button { background: #302b27; color: #fff; border: 0; border-radius: 4px; padding: .6rem 1.2rem; min-height: 44px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid #786047; outline-offset: 4px; }
.theme-garage68 a:focus-visible, .theme-garage68 button:focus-visible { outline-color: #fff; }
@media (max-width: 991.98px) {
    body:not(.theme-garage68) .pl-navbar #menu-principale { background: var(--sfondo) !important; }
    .hero-garage-link { width: 190px; padding: 1rem; }
    .hero-garage-link .hero-emblem-numero { font-size: 4.5rem; }
}
@media (max-width: 575.98px) {
    .news-group-heading { flex-direction: column; align-items: flex-start; }
    .cookie-notice { left: .6rem; right: .6rem; padding: .9rem; max-height: 65vh; overflow-y: auto; }
    .cookie-notice-actions { flex-wrap: wrap; }
}

body:not(.theme-garage68) .card-img-placeholder { background: #dacdbb; color: var(--muted); }
.pl-card .card-body .badge-categoria { align-self: flex-start; max-width: 100%; white-space: normal; }

/* Testata tenue e schede veicolo — 13 ottobre 2026. */
body:not(.theme-garage68) .pl-header-wrap,
body:not(.theme-garage68) .pl-topbar,
body:not(.theme-garage68) .pl-navbar { background: #efe8dc !important; }
.garage-vehicle-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.garage-vehicle-card { min-width: 0; background: #262626; border: 1px solid #444; border-radius: 6px; overflow: hidden; }
.garage-vehicle-card a { display: block; height: 100%; color: #fff; text-decoration: none; }
.garage-vehicle-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .2s; }
.garage-vehicle-card h3 { margin: 0; padding: 1rem 1.1rem; color: inherit; font-size: 1.15rem; line-height: 1.5; }
.garage-vehicle-card:hover { border-color: #aaa; }
.garage-vehicle-card:hover img { transform: scale(1.02); }
.garage-vehicle-placeholder { aspect-ratio: 3 / 2; display: grid; place-items: center; font-size: 3rem; color: #bbb; background: #333; }
@media (max-width: 991.98px) {
    body:not(.theme-garage68) .pl-navbar #menu-principale { background: #efe8dc !important; }
    .garage-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .garage-vehicle-grid { grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    .garage-vehicle-card img { transition: none; }
}

#vetrina, #vetrina-motori { scroll-margin-top: calc(var(--header-h) + 1.5rem); }
body.theme-garage68 .garage-vehicle-card a:hover { color: #fff; }
@media (max-width: 575.98px) {
    .page-home .row.g-5 { --bs-gutter-x: 1.5rem; }
}
