/* ------------------------------------------------------------------
   wp-components.css — Wayrent WP theme component overrides + new
   layouts (hero, archive, vehicle card, lead form, blog cards).
   Loaded after shared.css.
------------------------------------------------------------------ */

/* ── ADAM CHATBOT WIDGET — make it less obstructive on mobile ──
   On mobile the widget covers content cards. Make it a smaller floating
   button that opens the full chat when tapped. */
@media (max-width: 768px) {
    .adam-toggle,
    [data-adam-toggle],
    .chiedi-a-adam {
        bottom: 0.875rem !important;
        right: 0.875rem !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.875rem !important;
    }
    /* If widget contains an "il nostro agente AI" text, hide it on small screens */
    .adam-toggle .toggle-subtitle,
    [data-adam-toggle] .toggle-subtitle {
        display: none !important;
    }
}

/* ── MOBILE NORMALIZATION ──────────────────────────────────────
   Aggressive overrides to standardize padding, margins, and font
   sizes across all sections on mobile. The static site uses many
   different inline styles per box (padding:2.5rem on testimonials,
   p-8 on servizi, p-10 on perché, etc.) which look inconsistent
   when stacked vertically on small screens. This block forces
   uniform values so every box reads as part of the same system. */
@media (max-width: 900px) {

    /* Layout — single-column for all grids/bentos/cards */
    .grid-bento,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    .grid-bento .bento-wide,
    .grid-bento .bento-sm {
        grid-column: 1 !important;
        grid-row: auto !important;
    }

    /* Brand ticker — keep the animated marquee scrolling (do NOT wrap). */
}

@media (max-width: 768px) {
    /* Section vertical padding — uniform across the page */
    section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    /* Inner section gutter (horizontal) — UNIFORM 1.25rem to screen edge
       for EVERY section container/wrapper so every box, every card, every
       step, every testimonial lines up at the same gutter. */
    section .container,
    section > .container,
    section > div > .container,
    section .container.mx-auto,
    section > div[class*="container"],
    section > div[class*="max-w-"],
    section > div[class*="mx-auto"] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
        box-sizing: border-box !important;
    }

    /* Hero specifically (uses .hero-inner not .container) */
    #hero .hero-inner,
    #hero > div,
    .hero-section .hero-content,
    .hero-section .hero-inner {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Any direct child of <section> with inline padding — normalize H padding */
    section > div[style*="padding"]:not([style*="padding:0"]) {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }

    /* Force the "Come Funziona" step grid cards to also span full width and
       sit at the same gutter (no extra horizontal offset). */
    .step-grid {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .step-grid > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Inner visual cards inside steps — same border-radius + shadow as siblings */
    .step-grid > div > div[class*="bg-white"],
    .step-grid > div > div[class*="rounded-xl"] {
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Cards / bento boxes — uniform padding + margin */
    .bento-wide,
    .bento-sm,
    .grid-bento > div,
    .card,
    .card-hover,
    .service-card,
    [class*="rounded-xl"][class*="border"][class*="p-8"],
    [class*="rounded-xl"][class*="border"][class*="p-10"],
    [class*="bg-[#F7F8FA]"][class*="rounded-xl"],
    [class*="bg-white"][class*="rounded-xl"] {
        padding: 1.5rem !important;
        min-height: auto !important;
        margin-bottom: 0 !important;
    }

    /* Headings — DO NOT override hero H1 (static page has its own clamp()
       calc that's much larger). Only normalize H2/H3 inside section blocks. */
    section h2:not(#hero h2) { font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important; line-height: 1.2 !important; }
    section h3:not(#hero h3) { font-size: 1.125rem !important; line-height: 1.3 !important; }
    section h4 { font-size: 1rem !important; }

    /* Body text */
    p,
    li,
    .text-base { font-size: 0.95rem !important; line-height: 1.6 !important; }
    .text-sm,
    .text-text-muted { font-size: 0.875rem !important; }
    .text-xs { font-size: 0.78rem !important; }

    /* Testimonials / quotes */
    blockquote,
    .testimonial-quote,
    .review-quote,
    .grid-bento p,
    .grid-bento blockquote {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Buttons — consistent sizing + full-width primary CTA on hero */
    .btn-accent,
    .btn-primary,
    .btn-white,
    .btn-outline-white,
    .btn-ghost {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.95rem !important;
        white-space: normal;
    }

    /* Hero specific: stack CTAs full width */
    #hero .flex.gap-4,
    .hero-inner .flex.gap-4 {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    #hero .btn-accent,
    #hero .btn-outline-white {
        text-align: center;
        justify-content: center;
    }

    /* Mini-stats row — center + smaller */
    #hero .flex.gap-8 {
        gap: 1rem !important;
        justify-content: flex-start !important;
    }

    /* Servizi cards — service icons consistent size */
    .card-hover svg,
    .service-card svg {
        width: 1.5rem !important;
        height: 1.5rem !important;
    }

    /* Section labels uniform */
    .section-label {
        font-size: 0.7rem !important;
        margin-bottom: 0.625rem !important;
    }

    /* Heading underline uniform */
    .heading-line {
        margin-top: 0.875rem !important;
    }

    /* Lists in cards — tighter spacing */
    .card-hover ul li,
    .service-card ul li {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }

    /* Tailwind padding utility overrides — static site uses p-8/p-10/p-12
       inline classes that don't shrink on mobile. Normalize to 1.5rem. */
    .p-10 { padding: 1.5rem !important; }
    .p-8  { padding: 1.5rem !important; }
    .p-7  { padding: 1.5rem !important; }
    .p-6  { padding: 1.25rem !important; }
    .py-24 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .py-20 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .py-16 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-14 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-12 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .py-10 { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
    .gap-10 { gap: 1.5rem !important; }
    .gap-8  { gap: 1.25rem !important; }
    .gap-6  { gap: 1rem !important; }

    /* Step numbers (1, 2, 3 circles in "Come Funziona") — uniform 2.25rem */
    .step-grid > div > div[style*="border-radius:50%"],
    [style*="border-radius:50%"][style*="width:3rem"] {
        width: 2.25rem !important;
        height: 2.25rem !important;
        font-size: 0.875rem !important;
    }

    /* Step cards — bigger top margin so each step has air */
    .step-grid {
        gap: 1.25rem !important;
    }

    /* Inner step visual cards — uniform padding */
    .step-grid > div > div[class*="bg-white"],
    .step-grid > div > div[class*="rounded-xl"] {
        padding: 1.25rem !important;
        box-shadow: 0 4px 16px -4px rgba(27,58,95,0.08) !important;
    }

    /* Margin between consecutive top-level items in a stack */
    section > div > div + div,
    section > div + div {
        margin-top: 0 !important;
    }

    /* Hero stats — uniform spacing */
    #hero .border-l-2,
    #hero [style*="border-left"] {
        padding-left: 0.625rem !important;
    }

    /* SVG icons inside small badges/icons — uniform */
    [style*="width:2rem"][style*="height:2rem"] {
        width: 1.75rem !important;
        height: 1.75rem !important;
    }
}

/* ── PRODUCT IMAGE FITTING ───────────────────────────────────
   Cars should be fully visible (contain), not cropped (cover). */
#product-image,
.product-image img,
.vehicle-card img,
.vehicle-card-image img {
    object-fit: contain !important;
    background: #ffffff;
}

/* ════════════════════════════════════════════════════════════
   v1.0.22 — MOBILE POLISH PASS (balanced rhythm)
   Uniform vertical rhythm + 10 targeted fixes for ≤768px.
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── 0. UNIFORM RHYTHM — 3rem section / 1.5rem card / 1.25rem gap */
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    section > .container,
    section > div > .container,
    section .container.mx-auto,
    section > div[class*="container"],
    section > div[class*="max-w-"],
    section > div[class*="mx-auto"] {
        padding-left: 1.25rem !important;
        padding-right: 1.25rem !important;
    }
    /* Tailwind padding utility overrides */
    .py-24, .py-20, .py-16, .py-14 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    .p-10, .p-8, .p-7 {
        padding: 1.5rem !important;
    }
    .gap-10, .gap-8, .gap-6 {
        gap: 1.25rem !important;
    }

    /* ── 1. Hero H1 bigger + comfier line-height ──────────────── */
    #hero h1,
    .hero-content-grid h1 {
        font-size: clamp(2.75rem, 9vw, 3.5rem) !important;
        line-height: 1.08 !important;
        letter-spacing: -0.035em !important;
    }

    /* ── 2. Offerte NLT carousel: ONE card per screen, CENTERED.
            Swiper config (in catalog.js) uses centeredSlides:true on mobile.
            CSS just sets the slide width. Swiper handles the centering math. */
    [data-catalog-carousel] {
        overflow: hidden;
    }
    [data-catalog-carousel] .swiper-slide {
        width: 86vw !important;
        max-width: 340px !important;
        flex-shrink: 0;
    }
    /* Center the pagination dots + nav arrows below */
    [data-catalog-carousel] .swiper-pagination,
    section .swiper-pagination {
        margin-top: 1rem;
        text-align: center;
    }

    /* ── 3. Suppliers — re-enable hero ticker ONLY, hide the
            "10+ Fornitori a Confronto" image+card block in
            #section-perche left column (image side). ──────────── */

    /* (a) hero ticker visible on mobile */
    .hero-ticker {
        display: block !important;
    }
    .hero-ticker .ticker-fade-left,
    .hero-ticker > div:first-child:not(.ticker-track):not(.ticker-fade-right) {
        display: none !important;
    }

    /* (b) hide the image+stat-chip left column of Perché Wayrent */
    #section-perche > div > div:first-child {
        display: none !important;
    }
    /* And shift the right (content) column to full width */
    #section-perche > div {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }
    #section-perche .section-perche-content {
        padding: 2.5rem 1.5rem !important;
    }

    /* ── 4. Perché Wayrent — bullets breathe, then 2rem gap to CTA ── */
    #section-perche .section-perche-content > div > div > div[style*="display:flex"][style*="gap:1rem"] {
        padding: 1.25rem 0 !important;
    }
    /* Gap between last bullet and the "Richiedi un Preventivo" button */
    #section-perche .section-perche-content a.btn-accent,
    #section-perche .section-perche-content [href*="contatti"],
    #section-perche .section-perche-content [href="#form"] {
        margin-top: 2rem !important;
    }

    /* ── 5. Come Funziona — UNIFORM step order (text → card x3) +
            2.5rem gap between steps + tighter inner spacing ──── */

    /* Outer container of the 3 steps: uniform 2.5rem gap */
    section#come-funziona > div > div[style*="flex-direction:column"],
    section#come-funziona > div > div[style*="display:flex"] {
        gap: 2.5rem !important;
    }

    /* Force all steps to stack: TEXT first → CARD second (no zigzag flip) */
    .step-grid {
        gap: 1.25rem !important;
    }
    .step-grid > div.order-last,
    .step-grid > div[class*="order-last"] {
        order: 1 !important; /* override the inline-styles.css order:-1 trick */
    }
    .step-grid > div:not(.order-last):not([class*="order-last"]) {
        order: 0 !important;
    }

    /* Number circle — tighter bottom margin */
    .step-grid > div > div[style*="border-radius:50%"] {
        margin-bottom: 0.5rem !important;
    }
    /* Titles + descriptions */
    .step-grid > div h3 {
        margin-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    .step-grid > div > p {
        margin-bottom: 0 !important;
    }
    /* Inner rows inside step 1's white card */
    .step-grid > div > div[class*="bg-white"] > div[style*="display:flex"][style*="gap:1rem"] {
        margin-bottom: 0.625rem !important;
    }
    .step-grid > div > div[class*="bg-white"] > div[style*="display:flex"][style*="gap:1rem"]:last-child {
        margin-bottom: 0 !important;
    }
    /* All inner visual cards: uniform 1.25rem top margin after their text block */
    .step-grid > div > div[class*="bg-white"][class*="rounded-xl"] {
        margin-top: 0 !important; /* the step-grid gap (1.25rem) handles spacing */
    }

    /* ── 6. UNIFORM CTA — every section-end button has IDENTICAL
            width, alignment, and margin above content.
            Approach: force the WRAPPING DIV to be a flex container with
            justify-content:center. That centers any button inside it
            regardless of button width. Then enforce uniform button width
            via a width rule on the button itself. ── */

    /* Every wrapper that contains a section-end CTA → center via flex */
    section a.btn-accent,
    section a.btn-white,
    section a.btn-primary,
    section a.btn-outline-white,
    section button.btn-accent,
    section button.btn-white,
    section button.btn-primary {
        /* Don't touch buttons that are inside the header or a hero CTA row */
    }

    /* Pattern: a div with text-align:center that wraps a single CTA */
    section > div > div[style*="text-align:center"]:has(a.btn-accent),
    section > div > div[style*="text-align:center"]:has(a.btn-white),
    section > div > div[style*="text-align: center"]:has(a.btn-accent),
    section > div > div[style*="text-align: center"]:has(a.btn-white),
    section > div > div.text-center:has(a.btn-accent),
    section > div > div.text-center:has(a.btn-white) {
        display: flex !important;
        flex-direction: column;
        align-items: center !important;
        justify-content: center !important;
        margin-top: 2.5rem !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }

    /* Direct CTA child of section/container (no wrapper) */
    section > .container > a.btn-accent:last-child,
    section > .container > a.btn-white:last-child,
    section > div > a.btn-accent:last-child,
    section > div > a.btn-white:last-child {
        display: block !important;
        margin: 2.5rem auto 0 auto !important;
    }

    /* ANY section-end CTA button on mobile: identical visual size */
    section a.btn-accent:not(.site-header-cta):not(.mobile-cta):not(.tab-cta),
    section a.btn-white:not(.site-header-cta):not(.mobile-cta):not(.tab-cta) {
        min-width: 240px;
        max-width: calc(100vw - 3rem);
        padding: 0.95rem 1.75rem !important;
        font-size: 0.95rem !important;
        text-align: center !important;
        display: inline-block;
    }

    /* Form submit button — 1.5rem below the privacy checkbox row */
    form input[type="checkbox"] + label,
    form .privacy-row,
    form .form-group:has(input[type="checkbox"]) {
        margin-bottom: 1.5rem !important;
    }
    form button[type="submit"],
    .form-submit,
    .btn-submit,
    [data-wayrent-form] button[type="submit"] {
        margin-top: 1.5rem !important;
        width: 100%;
    }
    /* Privacy checkbox row → submit button gap on contact form */
    .form-group + button[type="submit"],
    .form-field + button[type="submit"] {
        margin-top: 1.5rem !important;
    }

    /* ── 7. I nostri servizi — uniform card spacing ──────────── */
    section#servizi > div > div.grid {
        gap: 1.25rem !important;
    }
    section#servizi > div > div.grid > div {
        padding: 1.5rem !important;
    }
    section#servizi > div > div.grid > div h3 {
        margin-top: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    section#servizi > div > div.grid > div ul > li {
        margin-bottom: 0.5rem !important;
    }

    /* ── 8. Contact form fields tighter ──────────────────────── */
    .form-field,
    [data-wayrent-form] .form-row,
    form .form-row,
    form .form-group {
        margin-bottom: 0.875rem !important;
    }
    .form-row > div,
    [data-wayrent-form] .form-row > div {
        margin-bottom: 0 !important;
    }
    .form-row label,
    [data-wayrent-form] label,
    form label {
        margin-bottom: 0.3rem !important;
        font-size: 0.875rem !important;
    }
    .form-input,
    [data-wayrent-form] input:not([type="checkbox"]):not([type="radio"]),
    [data-wayrent-form] select,
    [data-wayrent-form] textarea,
    form input:not([type="checkbox"]):not([type="radio"]),
    form select,
    form textarea {
        padding: 0.7rem 0.85rem !important;
        font-size: 0.95rem !important;
    }

    /* ── 9. Blog post template polish ────────────────────────── */
    .article-body {
        padding: 0 1rem !important;
        font-size: 1rem !important;
        line-height: 1.7 !important;
    }
    .article-body h2 {
        font-size: 1.35rem !important;
        margin-top: 2rem !important;
        margin-bottom: 0.75rem !important;
    }
    .article-body h3 {
        font-size: 1.1rem !important;
        margin-top: 1.5rem !important;
    }
    .article-body p,
    .article-body li {
        font-size: 0.98rem !important;
    }
    .article-body .compare-table {
        font-size: 0.85rem !important;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .article-body .article-callout,
    .article-body .article-pullquote {
        padding: 1.25rem !important;
        font-size: 0.95rem !important;
        margin: 1.5rem 0 !important;
    }
    .article-hero {
        padding: 2.5rem 0 2rem !important;
    }
    .article-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        line-height: 1.2 !important;
    }
    .article-meta {
        font-size: 0.78rem !important;
        gap: 0.5rem !important;
    }

    /* ── 11. Chi siamo — blue stats box smaller + step layout tidier ── */
    body[data-page="chi-siamo"] .story-visual-inner {
        min-height: auto !important;
        padding: 1.75rem 1.25rem !important;
        gap: 0.875rem !important;
    }
    body[data-page="chi-siamo"] .story-visual-inner > div > div:first-child {
        font-size: 1.65rem !important;
        margin-bottom: 0.2rem !important;
    }
    body[data-page="chi-siamo"] .story-visual-inner > div > div:last-child {
        font-size: 0.65rem !important;
    }
    body[data-page="chi-siamo"] .story-badge {
        margin-top: 0.875rem !important;
        font-size: 0.85rem !important;
        padding: 0.5rem 1rem !important;
    }

    /* Step card: number + icon SIDE BY SIDE (not stacked) on mobile */
    body[data-page="chi-siamo"] .step-card {
        padding: 1.5rem !important;
        position: relative;
    }
    body[data-page="chi-siamo"] .step-num {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        font-size: 2rem !important;
        margin-bottom: 0 !important;
        color: rgba(27,110,194,0.22) !important;
    }
    body[data-page="chi-siamo"] .step-icon-wrap {
        margin-bottom: 0.875rem !important;
        width: 40px !important;
        height: 40px !important;
    }
    body[data-page="chi-siamo"] .step-title {
        margin-bottom: 0.5rem !important;
        padding-right: 2.5rem; /* leave room for the corner number */
    }
    body[data-page="chi-siamo"] .step-desc {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }
    body[data-page="chi-siamo"] .steps-grid {
        gap: 1.25rem !important;
    }

    /* Chi siamo H1 + hero spacing */
    body[data-page="chi-siamo"] h1 {
        font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
    }
    body[data-page="chi-siamo"] h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
        line-height: 1.2 !important;
    }

    /* ── 10. Academy page polish ─────────────────────────────── */
    body[data-page="academy"] .hero-grid,
    body[data-page="academy"] .steps-grid,
    body[data-page="academy"] .audience-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    body[data-page="academy"] section {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    body[data-page="academy"] .steps-grid > div,
    body[data-page="academy"] .audience-grid > div {
        padding: 1.5rem !important;
    }
    body[data-page="academy"] h1 {
        font-size: clamp(1.85rem, 7vw, 2.4rem) !important;
        line-height: 1.15 !important;
    }
    body[data-page="academy"] h2 {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
        line-height: 1.2 !important;
    }
    body[data-page="academy"] .academy-metrics {
        gap: 1rem !important;
    }
    body[data-page="academy"] .academy-metric-value {
        font-size: 1.4rem !important;
    }
}

/* ── HEADER DEFENSIVE RESETS ───────────────────────────────────
   Constrain logo + kill list styles in case a cloned site has
   custom_logo or wp_nav_menu output we don't fully control. */
.site-header-logo img,
.site-header-logo .custom-logo {
    max-height: 48px;
    width: auto;
    height: auto;
    display: block;
}
.site-header-nav ul,
.site-header-nav ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    align-items: center;
}
.site-header-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-header-nav li::before,
.site-header-nav li::marker {
    content: none;
    display: none;
}

/* ── SKIP LINK (a11y) ──────────────────────────────────────────── */
.skip-link.screen-reader-text {
    position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link.screen-reader-text:focus {
    position: fixed; left: 1rem; top: 1rem; width: auto; height: auto;
    background: #1B6EC2; color: #fff; padding: 0.75rem 1.25rem; z-index: 9999;
    border-radius: 0.375rem; font-weight: 600;
}

/* ── HERO SECTION (homepage) ─────────────────────────────────── */
.hero-section { position: relative; min-height: 80vh; overflow: hidden; display: flex; align-items: center; padding: 6rem 0 4rem; }
.hero-bg { position: absolute; inset: 0; z-index: 1; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,30,55,0.85) 0%, rgba(15,30,55,0.55) 55%, rgba(15,30,55,0.2) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 1.5rem; max-width: 1280px; margin: 0 auto; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: center; }
.hero-copy { color: #FFFFFF; }
.hero-chip { display: inline-block; padding: 0.4rem 0.875rem; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.2); border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.hero-h1 { font-size: clamp(2.5rem, 4.5vw, 3.75rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.035em; color: #FFFFFF; margin-bottom: 1.5rem; }
.hero-h1-accent { color: #4DA3E0; }
.hero-sub { font-size: 1.05rem; line-height: 1.55; color: rgba(255,255,255,0.86); margin-bottom: 2rem; max-width: 36rem; }
.hero-cta-row { display: flex; gap: 0.875rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats { display: flex; gap: 2rem; color: rgba(255,255,255,0.82); font-size: 0.9rem; flex-wrap: wrap; }
.hero-stats li { display: flex; flex-direction: column; gap: 0.25rem; list-style: none; }
.hero-stats strong { font-size: 1.5rem; color: #FFFFFF; font-weight: 700; }

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-widget { display: none; }
}

/* ── LANDING-STYLE HERO (privati/aziende/furgoni/contatti) ──── */
.landing-hero { background: #FFFFFF; border-bottom: 1px solid #E2E6EA; padding: 1rem 0; }
.landing-hero .section-label { color: #1B6EC2; }
.landing-hero h1 { font-size: clamp(2.25rem, 4vw, 3rem); }
.landing-lead { font-size: 1.15rem; color: #5C6370; max-width: 56rem; margin-top: 1.5rem; line-height: 1.55; }

/* ── ARCHIVE HEADER ──────────────────────────────────────────── */
.archive-hero { background: #FFFFFF; border-bottom: 1px solid #E2E6EA; }
.archive-h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; color: #1A1D23; margin: 1rem 0 0.75rem; }
.archive-sub { color: #5C6370; max-width: 56rem; }
.breadcrumb { font-size: 0.875rem; color: #5C6370; }
.breadcrumb a { color: #1B6EC2; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── CATALOG LAYOUT ──────────────────────────────────────────── */
.archive-body { background: #F7F8FA; }
.archive-body .container { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; padding-top: 2rem; padding-bottom: 4rem; }

@media (max-width: 768px) {
    .archive-body .container { grid-template-columns: 1fr; }
    .catalog-filters { order: 2; }
}

.catalog-filters { background: #FFFFFF; border: 1px solid #E2E6EA; border-radius: 0.75rem; padding: 1.5rem; height: fit-content; position: sticky; top: 5rem; }
.filter-group { margin-bottom: 1.25rem; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; color: #1A1D23; margin-bottom: 0.4rem; }
.filter-group select, .filter-group input { width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #E2E6EA; border-radius: 0.375rem; background: #FFFFFF; font-size: 0.9rem; }
.filter-apply { width: 100%; margin-top: 0.5rem; }
.filter-reset { display: block; text-align: center; margin-top: 0.75rem; color: #5C6370; font-size: 0.85rem; text-decoration: underline; }

.catalog-results-meta { margin-bottom: 1.5rem; color: #5C6370; font-size: 0.9rem; }

/* ── VEHICLE GRID + CARDS ────────────────────────────────────── */
.vehicle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.vehicle-grid__empty { grid-column: 1 / -1; padding: 3rem 1.5rem; text-align: center; background: #FFFFFF; border: 1px dashed #C8CDD5; border-radius: 0.75rem; color: #5C6370; }

.vehicle-card { background: #FFFFFF; border: 1px solid #E2E6EA; border-radius: 0.75rem; overflow: hidden; transition: box-shadow 0.25s var(--ease-out, cubic-bezier(0.16,1,0.3,1)), transform 0.25s var(--ease-out, cubic-bezier(0.16,1,0.3,1)); }
.vehicle-card:hover { box-shadow: 0 12px 36px -10px rgba(27,58,95,0.15); transform: translateY(-3px); }
.vehicle-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.vehicle-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #F7F8FA; }
.vehicle-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vehicle-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #F7F8FA 0%, #E2E6EA 100%); }
.vehicle-card__badge { position: absolute; top: 0.875rem; left: 0.875rem; padding: 0.25rem 0.625rem; background: rgba(27,110,194,0.95); color: #FFFFFF; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 0.25rem; }
.vehicle-card__body { padding: 1.25rem; }
.vehicle-card__title { font-size: 1.1rem; font-weight: 700; color: #1A1D23; margin-bottom: 0.25rem; line-height: 1.2; }
.vehicle-card__spec { font-size: 0.8rem; color: #5C6370; margin-bottom: 1rem; }
.vehicle-card__price-row { display: flex; align-items: flex-end; justify-content: space-between; padding-top: 1rem; border-top: 1px solid #E2E6EA; }
.vehicle-card__price-label { display: block; font-size: 0.7rem; color: #5C6370; text-transform: uppercase; letter-spacing: 0.06em; }
.vehicle-card__price { font-size: 1.5rem; font-weight: 800; color: #1B6EC2; letter-spacing: -0.02em; }
.vehicle-card__price-unit { font-size: 0.8rem; color: #5C6370; margin-left: 0.25rem; }
.vehicle-card__cta { font-size: 0.85rem; font-weight: 600; color: #1B6EC2; }
.vehicle-card__meta { list-style: none; display: flex; gap: 1rem; flex-wrap: wrap; padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px dashed #E2E6EA; font-size: 0.75rem; color: #5C6370; }

/* ── POST OFFERS (in-article [wayrent_offerte] embed) ─────────── */
.post-offers { margin: 2.5rem 0; padding: 1.75rem; background: #F7F8FA; border: 1px solid #E2E6EA; border-radius: 0.75rem; }
.post-offers__title { margin: 0 0 0.25rem !important; }
.post-offers__sub { font-size: 0.9rem !important; color: #5C6370; margin: 0 0 1.25rem !important; }
.post-offers__grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.post-offers__all { text-align: center; margin: 1.5rem 0 0 !important; }
/* Neutralize article link styling inside the cards + CTA. */
body[data-page="blog-post"] .article-body .post-offers a { text-decoration: none; }
body[data-page="blog-post"] .article-body .post-offers .vehicle-card__link { color: inherit; }
body[data-page="blog-post"] .article-body .post-offers .post-offers__cta { color: #FFFFFF; }
.post-offers .vehicle-card__meta { margin-bottom: 0 !important; }

/* ── VEHICLE SINGLE ─────────────────────────────────────────── */
.vehicle-single-hero { background: #FFFFFF; }
.vehicle-single-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; margin-top: 1.5rem; }
@media (max-width: 768px) { .vehicle-single-grid { grid-template-columns: 1fr; } }
.vehicle-single-media img { width: 100%; height: auto; border-radius: 0.75rem; box-shadow: 0 12px 36px -12px rgba(27,58,95,0.18); }
.vehicle-single-badge { display: inline-block; padding: 0.25rem 0.625rem; background: rgba(27,110,194,0.1); color: #1B6EC2; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border-radius: 0.25rem; margin-bottom: 1rem; }
.vehicle-single-title { font-size: clamp(2rem, 3.5vw, 2.75rem); font-weight: 800; letter-spacing: -0.03em; color: #1A1D23; line-height: 1.05; margin-bottom: 0.5rem; }
.vehicle-single-spec { font-size: 1.1rem; color: #5C6370; margin-bottom: 2rem; }
.vehicle-single-price { padding: 1.25rem 1.5rem; background: #F7F8FA; border-radius: 0.5rem; margin-bottom: 1.5rem; }
.vehicle-single-price-label { display: block; font-size: 0.75rem; color: #5C6370; margin-bottom: 0.25rem; }
.vehicle-single-price-value { font-size: 2.5rem; font-weight: 800; color: #1B6EC2; letter-spacing: -0.025em; }
.vehicle-single-price-unit { font-size: 1rem; color: #5C6370; margin-left: 0.5rem; }
.vehicle-single-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-bottom: 2rem; }
.vehicle-single-meta div { display: flex; flex-direction: column; gap: 0.25rem; }
.vehicle-single-meta dt { font-size: 0.75rem; color: #5C6370; text-transform: uppercase; letter-spacing: 0.06em; }
.vehicle-single-meta dd { font-size: 1rem; font-weight: 700; color: #1A1D23; margin: 0; }
.vehicle-single-cta-row { display: flex; gap: 0.875rem; flex-wrap: wrap; }
.includes-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.875rem; }
.includes-grid li { padding: 1rem 1.25rem; background: #FFFFFF; border: 1px solid #E2E6EA; border-radius: 0.5rem; color: #5C6370; font-size: 0.9rem; }
.includes-grid strong { color: #1A1D23; }

/* ── PROSE (blog body) ───────────────────────────────────────── */
.prose { font-size: 1.0625rem; line-height: 1.75; color: #1A1D23; }
.prose h2 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1rem; color: #1A1D23; letter-spacing: -0.02em; }
.prose h3 { font-size: 1.3rem; font-weight: 700; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1.25rem; }
.prose ul, .prose ol { margin: 1.25rem 0 1.5rem 1.5rem; }
.prose ul li, .prose ol li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose strong { color: #1A1D23; font-weight: 700; }
.prose a { color: #1B6EC2; text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: #155FA0; }
.prose blockquote { border-left: 4px solid #1B6EC2; padding-left: 1.25rem; margin: 1.5rem 0; color: #5C6370; font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; }
.prose code { background: #F7F8FA; padding: 0.15rem 0.4rem; border-radius: 0.25rem; font-size: 0.9em; color: #1B6EC2; }

/* ── BLOG CARDS ─────────────────────────────────────────────── */
.blog-teaser-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-card { background: #FFFFFF; border: 1px solid #E2E6EA; border-radius: 0.75rem; overflow: hidden; transition: box-shadow 0.25s, transform 0.25s; }
.blog-card:hover { box-shadow: 0 12px 36px -10px rgba(27,58,95,0.15); transform: translateY(-3px); }
.blog-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.blog-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-card__body { padding: 1.25rem 1.5rem 1.5rem; }
.blog-card__meta { font-size: 0.75rem; color: #5C6370; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; }
.blog-card__title { font-size: 1.15rem; font-weight: 700; color: #1A1D23; margin-bottom: 0.5rem; line-height: 1.3; }
.blog-card__excerpt { color: #5C6370; font-size: 0.875rem; line-height: 1.55; margin-bottom: 0.875rem; }
.blog-card__more { font-size: 0.85rem; font-weight: 600; color: #1B6EC2; }

/* ── BLOG SINGLE ────────────────────────────────────────────── */
.blog-single-hero { background: #FFFFFF; border-bottom: 1px solid #E2E6EA; }
.blog-single-meta { font-size: 0.85rem; color: #5C6370; text-transform: uppercase; letter-spacing: 0.06em; margin: 1rem 0 0.5rem; }
.blog-single-title { font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: #1A1D23; margin-bottom: 1rem; }
.blog-single-excerpt { font-size: 1.15rem; color: #5C6370; line-height: 1.55; margin-bottom: 2rem; }
.blog-single-featured { margin: 2rem 0 0; }
.blog-single-featured img { width: 100%; border-radius: 0.75rem; }

/* ── LEAD FORM ──────────────────────────────────────────────── */
.wayrent-lead-form { background: #FFFFFF; padding: 2rem; border-radius: 0.75rem; box-shadow: 0 8px 24px -8px rgba(27,58,95,0.1); border: 1px solid #E2E6EA; }
.form-row { margin-bottom: 1.25rem; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; color: #1A1D23; margin-bottom: 0.4rem; }
.form-row .required { color: #D43E3E; }
.form-row input, .form-row select, .form-row textarea {
    width: 100%; padding: 0.75rem 0.875rem; background: #FFFFFF; color: #1A1D23;
    border: 1px solid #E2E6EA; border-radius: 0.375rem; font-size: 0.95rem; font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none; border-color: #1B6EC2; box-shadow: 0 0 0 3px rgba(27,110,194,0.1);
}
.form-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row--split { grid-template-columns: 1fr; } }
.form-row--checkbox label { display: flex; gap: 0.625rem; align-items: flex-start; cursor: pointer; font-weight: 400; }
.form-row--checkbox input { width: auto; margin-top: 0.2rem; flex-shrink: 0; }
.wayrent-lead-form__submit { display: block; width: 100%; padding: 0.95rem 1.5rem; background: #1B6EC2; color: #FFFFFF; border: none; border-radius: 0.375rem; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s, transform 0.15s; }
.wayrent-lead-form__submit:hover { background: #155FA0; transform: translateY(-1px); }
.wayrent-lead-form__submit:disabled { background: #9CA3AF; cursor: wait; transform: none; }
.wayrent-lead-form__status { margin-top: 1rem; font-size: 0.875rem; color: #5C6370; min-height: 1.5em; }
.wayrent-lead-form__status.is-error { color: #D43E3E; font-weight: 600; }

/* ── CONTATTI LAYOUT ────────────────────────────────────────── */
.contatti-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
@media (max-width: 900px) { .contatti-grid { grid-template-columns: 1fr; } }
.contatti-list { list-style: none; padding: 0; }
.contatti-list li { padding: 1.25rem 0; border-bottom: 1px solid #E2E6EA; display: flex; flex-direction: column; gap: 0.25rem; }
.contatti-list strong { font-size: 0.75rem; color: #5C6370; text-transform: uppercase; letter-spacing: 0.06em; }
.contatti-list a { color: #1B6EC2; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.contatti-list-note { font-size: 0.85rem; color: #5C6370; }

/* ── FAQ LIST ───────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid #E2E6EA; padding: 1.25rem 0; }
.faq-item summary { cursor: pointer; font-size: 1.05rem; font-weight: 600; color: #1A1D23; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: #1B6EC2; transition: transform 0.2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0.75rem 0 0.5rem; color: #5C6370; line-height: 1.7; }

/* ── STEPS ──────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }
.step { background: #FFFFFF; padding: 2rem; border-radius: 0.75rem; border: 1px solid #E2E6EA; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #1B6EC2; color: #fff; font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; font-weight: 700; color: #1A1D23; margin-bottom: 0.5rem; }
.step p { color: #5C6370; line-height: 1.6; font-size: 0.95rem; }

/* ── SERVICES GRID ──────────────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.service-card { display: block; padding: 1.75rem; background: #F7F8FA; border: 1px solid #E2E6EA; border-radius: 0.75rem; text-decoration: none; color: inherit; transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s; }
.service-card:not(.service-card--static):hover { box-shadow: 0 12px 36px -10px rgba(27,58,95,0.15); transform: translateY(-3px); border-color: #1B6EC2; }
.service-card h3 { font-size: 1.15rem; font-weight: 700; color: #1A1D23; margin-bottom: 0.5rem; }
.service-card p { color: #5C6370; font-size: 0.9rem; line-height: 1.55; margin-bottom: 0.875rem; }
.service-card__more { font-size: 0.85rem; font-weight: 600; color: #1B6EC2; }

/* ── PERCHÉ WAYRENT ─────────────────────────────────────────── */
.perche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .perche-grid { grid-template-columns: 1fr; } .perche-visual { order: -1; } }
.perche-lead { font-size: 1.05rem; color: #5C6370; line-height: 1.6; margin: 1.5rem 0 2rem; }
.perche-points { list-style: none; padding: 0; }
.perche-points li { padding: 1rem 0 1rem 1.75rem; position: relative; color: #5C6370; line-height: 1.55; border-bottom: 1px solid #E2E6EA; }
.perche-points li:last-child { border-bottom: 0; }
.perche-points li::before { content: '✓'; position: absolute; left: 0; top: 1rem; color: #1B6EC2; font-weight: 800; }
.perche-points li strong { color: #1A1D23; }
.perche-visual img { width: 100%; border-radius: 0.75rem; box-shadow: 0 16px 48px -16px rgba(27,58,95,0.25); }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 3rem; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; background: #FFFFFF; border: 1px solid #E2E6EA; border-radius: 0.375rem; color: #1A1D23; text-decoration: none; font-weight: 500; transition: background 0.2s, border-color 0.2s; }
.pagination .page-numbers:hover { background: #F7F8FA; border-color: #1B6EC2; }
.pagination .page-numbers.current { background: #1B6EC2; color: #FFFFFF; border-color: #1B6EC2; }

/* ── SITE FOOTER ────────────────────────────────────────────── */
.site-footer { background: #1A1D23; color: rgba(255,255,255,0.7); padding: 4rem 0 2rem; margin-top: 0; }
.site-footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.site-footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 768px) { .site-footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer-cols { grid-template-columns: 1fr; } }
.site-footer-col--brand { max-width: 24rem; }
.site-footer-logo img { filter: brightness(0) invert(1); margin-bottom: 1.25rem; }
.site-footer-tagline { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.25rem; }
.site-footer-contact { font-size: 0.9rem; line-height: 1.6; }
.site-footer-contact a { color: #FFFFFF; text-decoration: none; font-weight: 600; }
.site-footer-contact a:hover { color: #4DA3E0; }
.site-footer-heading { color: #FFFFFF; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1.25rem; }
.site-footer-list { list-style: none; padding: 0; }
.site-footer-list li { margin-bottom: 0.75rem; }
.site-footer-list a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.9rem; }
.site-footer-list a:hover { color: #FFFFFF; }
.site-footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: rgba(255,255,255,0.5); }
