/* =====================================================
   ANIOC SOCCORSO APS
   PAGINA: I NOSTRI MEZZI
   CSS DEDICATO - SOLO QUESTA PAGINA
   ===================================================== */

/* NASCONDE SOLO IL TITOLO AUTOMATICO WORDPRESS DELLA PAGINA 1671 */
body.page-id-1671 .entry-header,
body.page-id-1671 .entry-title,
body.page-id-1671 .page-title {
    display: none !important;
}

/* PALETTE E CONTENITORE */
.anioc-mezzi {
    --am-blue: #064879;
    --am-dark: #082f50;
    --am-cyan: #159bd0;
    --am-pale: #edf6fb;
    --am-gold: #f2bd16;
    --am-text: #18334a;

    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: block !important;
    width: min(1480px, calc(100vw - 80px)) !important;
    max-width: none !important;
    margin: 18px 0 40px !important;
    padding: 0 !important;
    color: var(--am-text);
    font-family: inherit;
    overflow: visible;
}

.anioc-mezzi *,
.anioc-mezzi *::before,
.anioc-mezzi *::after {
    box-sizing: border-box;
}

.anioc-mezzi h1,
.anioc-mezzi h2,
.anioc-mezzi h3,
.anioc-mezzi p {
    max-width: none !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

.anioc-mezzi p {
    margin: 0 0 9px;
    font-size: 15px;
    line-height: 1.5;
}

/* =====================================================
   TESTATA STANDARD DELLE PAGINE SECONDARIE
   ===================================================== */

.anioc-mezzi .as-hero {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 190px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 26px !important;
    width: 100% !important;
    min-height: 158px !important;
    margin: 0 0 24px !important;
    padding: 16px 28px !important;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(
        112deg,
        #082f50 0%,
        #075581 66%,
        #087eac 100%
    ) !important;
    border-radius: 0 0 18px 18px;
}

.anioc-mezzi .as-hero::before {
    content: "";
    display: block;
    grid-column: 1;
    grid-row: 1;
    width: 190px;
    height: 124px;
    background: url("https://www.vodae.it/wp-content/uploads/2025/05/Livrea2-1.jpg")
        center / cover no-repeat;
    border: 2px solid rgba(255,255,255,.8);
    border-radius: 9px;
}

.anioc-mezzi .as-hero::after {
    content: "+";
    position: absolute;
    right: 20px;
    bottom: -50px;
    color: rgba(255,255,255,.07);
    font-size: 150px;
    line-height: 1;
    pointer-events: none;
}

.anioc-mezzi .as-hero-content {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
}

.anioc-mezzi .as-eyebrow,
.anioc-mezzi .am-kicker {
    display: block;
    margin: 0 0 6px;
    color: var(--am-cyan);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    line-height: 1.35;
}

.anioc-mezzi .as-hero .as-eyebrow {
    color: #b9e8fa;
}

.anioc-mezzi .as-hero h1 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: clamp(34px, 3vw, 48px) !important;
    font-weight: 850;
    line-height: 1.05 !important;
    white-space: nowrap !important;
}

.anioc-mezzi .as-line {
    display: block;
    width: 44px;
    height: 4px;
    margin: 6px 0 7px;
    background: var(--am-gold);
}

.anioc-mezzi .as-hero p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
}

.anioc-mezzi .as-hero-label {
    position: absolute;
    right: 13px;
    bottom: 7px;
    z-index: 2;
    color: #d9f3ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* =====================================================
   INTRODUZIONE
   ===================================================== */

.anioc-mezzi .am-intro {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
    gap: 18px !important;
    align-items: start;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 0 6px !important;
}

.anioc-mezzi .am-intro-content {
    width: 100% !important;
    min-width: 0 !important;
}

.anioc-mezzi .am-intro-number {
    color: var(--am-cyan);
    font-size: 30px;
    font-weight: 850;
    line-height: 1;
}

.anioc-mezzi .am-intro-number::after {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin-top: 10px;
    background: var(--am-gold);
}

.anioc-mezzi .am-intro h2,
.anioc-mezzi .am-section-heading h2 {
    margin: 2px 0 8px !important;
    color: var(--am-blue) !important;
    font-size: 26px !important;
    font-weight: 850;
    line-height: 1.15 !important;
}

/* =====================================================
   LE DUE SCHEDE - DESKTOP AFFIANCATE AL 50%
   ===================================================== */

.anioc-mezzi .am-vehicles {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 24px !important;
    padding: 0 !important;
}

.anioc-mezzi .am-vehicles > .am-vehicle {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    float: none !important;
}

.anioc-mezzi .am-vehicle {
    overflow: hidden;
    border: 1px solid #dce9f1;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(5,50,80,.06);
}

/* INTESTAZIONE DELLE SCHEDE */

.anioc-mezzi .am-vehicle-head {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 15px !important;
    min-height: 84px !important;
    padding: 13px 18px !important;
    background: #e6f4fb;
}

.anioc-mezzi .am-vehicle-medical .am-vehicle-head {
    background: #fff5df;
}

.anioc-mezzi .am-vehicle-icon {
    flex: 0 0 82px !important;
    width: 82px !important;
    min-width: 82px !important;
    color: var(--am-cyan);
}

.anioc-mezzi .am-vehicle-medical .am-vehicle-icon {
    color: #a47712;
}

.anioc-mezzi .am-vehicle-icon svg {
    display: block;
    width: 100%;
    height: auto;
}

.anioc-mezzi .am-vehicle-title {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

.anioc-mezzi .am-vehicle-title .am-kicker {
    margin-bottom: 4px;
}

.anioc-mezzi .am-vehicle h2 {
    margin: 0 !important;
    color: var(--am-blue) !important;
    font-size: 21px !important;
    font-weight: 850;
    line-height: 1.15 !important;
}

/* FOTOGRAFIE */

.anioc-mezzi .am-vehicle-photo {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px 0 !important;
}

.anioc-mezzi .am-vehicle-photo img {
    display: block !important;
    width: 100% !important;
    height: 225px !important;
    max-height: 225px !important;
    object-fit: contain !important;
    object-position: center;
    border-radius: 8px;
    background: #eef3f6;
}

.anioc-mezzi .am-vehicle-photo figcaption {
    padding: 6px 2px 0;
    color: #647b8c;
    font-size: 11px;
    line-height: 1.35;
}

/* TESTI DELLE SCHEDE */

.anioc-mezzi .am-vehicle-body {
    flex: 1 1 auto;
    width: 100% !important;
    min-width: 0 !important;
    padding: 15px 18px 18px !important;
}

.anioc-mezzi .am-vehicle-body h3 {
    margin: 12px 0 6px !important;
    color: var(--am-blue) !important;
    font-size: 16px !important;
    line-height: 1.25 !important;
}

.anioc-mezzi .am-vehicle-body p {
    width: 100% !important;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    line-height: 1.48 !important;
}

.anioc-mezzi .am-vehicle-body ul {
    width: 100% !important;
    margin: 6px 0 10px !important;
    padding-left: 19px !important;
}

.anioc-mezzi .am-vehicle-body li {
    margin: 0 0 6px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

/* SPECIFICA VANO AMBULANZA */

.anioc-mezzi .am-spec {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 10px 0 13px;
    padding: 11px 13px;
    border-left: 4px solid var(--am-gold);
    border-radius: 7px;
    background: #fff8e8;
}

.anioc-mezzi .am-spec strong {
    color: var(--am-blue);
    font-size: 21px;
    white-space: nowrap;
}

.anioc-mezzi .am-spec span {
    flex: 1 1 170px;
    font-size: 13px;
    line-height: 1.4;
}

/* =====================================================
   TRE FUNZIONI COMPLEMENTARI
   ===================================================== */

.anioc-mezzi .am-functions {
    width: 100% !important;
    margin: 0 0 20px !important;
    padding: 20px 23px !important;
    border-radius: 14px;
    background: #f1f7fb;
}

.anioc-mezzi .am-section-heading {
    margin: 0 0 12px !important;
}

.anioc-mezzi .am-function-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
}

.anioc-mezzi .am-function {
    min-width: 0;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    border-top: 3px solid var(--am-cyan);
}

.anioc-mezzi .am-function:nth-child(2) {
    border-top-color: var(--am-gold);
}

.anioc-mezzi .am-function:nth-child(3) {
    border-top-color: var(--am-blue);
}

.anioc-mezzi .am-function h3 {
    margin: 0 0 5px !important;
    color: var(--am-blue) !important;
    font-size: 16px !important;
}

.anioc-mezzi .am-function p {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* =====================================================
   RINVIO ALLE PAGINE DI SERVIZIO
   ===================================================== */

.anioc-mezzi .am-note {
    display: grid !important;
    grid-template-columns: 45px minmax(0, 1fr) !important;
    align-items: center;
    gap: 13px;
    margin: 0 0 25px;
    padding: 16px 20px;
    color: #fff;
    border-radius: 12px;
    background: linear-gradient(110deg, #082f50, #087eac);
}

.anioc-mezzi .am-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255,255,255,.75);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
}

.anioc-mezzi .am-note h2 {
    margin: 0 0 4px !important;
    color: #fff !important;
    font-size: 18px !important;
}

.anioc-mezzi .am-note p {
    margin: 0 !important;
    color: #fff !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
}

.anioc-mezzi a {
    color: #075b8c;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.anioc-mezzi .am-note a {
    color: #fff;
}

/* =====================================================
   TABLET
   Mantiene le due schede affiancate.
   ===================================================== */

@media (max-width: 1050px) and (min-width: 701px) {

    .anioc-mezzi {
        width: calc(100vw - 48px) !important;
    }

    .anioc-mezzi .am-vehicles {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 13px !important;
    }

    .anioc-mezzi .am-vehicle-head {
        gap: 9px !important;
        padding: 12px !important;
    }

    .anioc-mezzi .am-vehicle-icon {
        flex-basis: 58px !important;
        width: 58px !important;
        min-width: 58px !important;
    }

    .anioc-mezzi .am-vehicle h2 {
        font-size: 18px !important;
    }
}

/* =====================================================
   SMARTPHONE
   Una scheda sotto l'altra.
   ===================================================== */

@media (max-width: 700px) {

    .anioc-mezzi {
        width: calc(100vw - 28px) !important;
        margin-top: 12px !important;
    }

    .anioc-mezzi .as-hero {
        grid-template-columns: 95px minmax(0, 1fr) !important;
        gap: 13px !important;
        min-height: 118px !important;
        padding: 13px !important;
        margin-bottom: 20px !important;
    }

    .anioc-mezzi .as-hero::before {
        width: 95px;
        height: 78px;
    }

    .anioc-mezzi .as-hero h1 {
        font-size: clamp(19px, 5vw, 29px) !important;
        white-space: normal !important;
    }

    .anioc-mezzi .as-hero p {
        font-size: 12px !important;
    }

    .anioc-mezzi .as-hero-label {
        display: none;
    }

    .anioc-mezzi .am-intro {
        grid-template-columns: 45px minmax(0, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }

    .anioc-mezzi .am-intro h2,
    .anioc-mezzi .am-section-heading h2 {
        font-size: 22px !important;
    }

    .anioc-mezzi .am-vehicles {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .anioc-mezzi .am-function-grid {
        grid-template-columns: 1fr !important;
    }

    .anioc-mezzi .am-vehicle-head {
        min-height: 78px !important;
        padding: 12px 14px !important;
    }

    .anioc-mezzi .am-vehicle-icon {
        flex-basis: 70px !important;
        width: 70px !important;
        min-width: 70px !important;
    }

    .anioc-mezzi .am-vehicle h2 {
        font-size: 20px !important;
    }

    .anioc-mezzi .am-vehicle-photo img {
        height: 205px !important;
        max-height: 205px !important;
    }

    .anioc-mezzi .am-functions {
        padding: 17px 14px !important;
    }

    .anioc-mezzi .am-note {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
}