/*
 * CORNALBA - HOME v0.3
 * Fonte primaria: preview desktop 1920 px del 22/09/2026.
 * Obiettivo di questa iterazione: fedelta desktop + responsive strutturale.
 */

.page-home {
    --home-green: #445b44;
    --home-olive: #8b9271;
    --home-blue: #313280;
    --home-surface: #dfe1ea;
    --home-light: #f2f3f6;
    --home-sand: #f2e5ac;
    --home-orange: #ca511b;
    --home-red: #ff0000;
}

.page-home main { overflow: hidden; }
.page-home h1,
.page-home h2,
.page-home h3,
.page-home p { margin-bottom: 0; }

.home-pill {
    display: inline-flex;
    min-height: 42px;
    padding: 10px 19px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    text-decoration: none;
    white-space: nowrap;
}
.home-pill--sand { color: #111; background: var(--home-sand); }
.home-pill--orange { color: #fff; background: var(--home-orange); }
.home-pill:hover,
.home-pill:focus-visible { filter: brightness(1.045); }

/* HERO -------------------------------------------------------------------- */
.home-hero {
    position: relative;
    height: 674px;
    color: var(--home-sand);
    background: #28381f;
}
.home-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-hero__content { position: relative; z-index: 1; height: 100%; }
.home-hero__title {
    width: 450px;
    margin: 0;
    padding-top: 196px;
    font-size: 89px;
    font-weight: 400;
    line-height: .85;
    letter-spacing: -.045em;
}
.home-hero__title span { display: block; }

/* INTRO ------------------------------------------------------------------- */
.home-intro { height: 834px; background: #fff; }
.home-intro__inner { padding-top: 55px; }
.home-intro__topline {
    min-height: 154px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.home-intro__lead {
    width: 585px;
    margin: 0;
    color: var(--home-blue);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-intro__lead span { display: block; }
.home-intro__lead .is-strong { font-weight: 800; }
.home-intro__topline .home-pill { margin-top: 23px; }
.home-intro__image-wrap {
    position: relative;
    width: 836px;
    height: 337px;
    margin-left: 4px;
}
.home-intro__image { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
.home-intro__image-logo {
    position: absolute;
    left: 47px;
    top: 50px;
    width: 137px;
    height: auto;
}
.home-intro__copy-grid {
    margin: 35px 0 0 4px;
    display: grid;
    grid-template-columns: 304px 398px;
    gap: 122px;
    font-size: 13px;
    line-height: 1.38;
}
.home-intro__copy-grid p:first-child { font-size: 18px; line-height: 1.33; }

/* EXPERIENCE -------------------------------------------------------------- */
.home-experience {
    height: 685px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--home-green);
}
.home-experience__copy { position: relative; min-width: 0; background: var(--home-green); }
.home-experience__copy::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 7px;
    height: 100%;
    background: #fff;
}
.home-experience__inner {
    width: 426px;
    margin-left: auto;
    padding-top: 109px;
}
.home-experience__title {
    width: 330px;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-experience__title span,
.home-experience__title strong { display: block; }
.home-experience__title strong { color: var(--home-sand); font-weight: 800; }
.home-experience__text {
    width: 315px;
    margin-top: 28px;
    color: #fff;
    font-size: 18px;
    line-height: 1.34;
}
.home-experience__inner .home-pill { margin-top: 30px; }
.home-experience__media { min-width: 0; }
.home-experience__media img { width: 100%; height: 100%; object-fit: cover; }

/* PATHWAYS ---------------------------------------------------------------- */
.home-pathways {
    position: relative;
    height: 846px;
    color: #fff;
    background: var(--home-olive);
}
.home-pathways::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: #fff;
}
.home-pathways::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -49px;
    width: 112px;
    height: 50px;
    background: var(--home-olive);
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: translateX(-50%);
    z-index: 2;
}
.home-pathways__content {
    width: 1040px;
    margin: 0 auto;
    padding-top: 206px;
}
.home-pathways__title {
    width: 760px;
    margin: 0 0 54px 86px;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-pathways__title strong { font-weight: 800; }
.home-pathways__title span { color: var(--home-sand); font-weight: 800; }
.home-pathways__grid {
    display: grid;
    grid-template-columns: repeat(4, 248px);
    gap: 16px;
}
.home-path-card {
    position: relative;
    height: 392px;
    overflow: hidden;
    border-radius: 21px;
    color: #fff;
    text-decoration: none;
}
.home-path-card__image { width: 100%; height: 100%; object-fit: cover; }
.home-path-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(8,12,9,.04) 20%, rgba(7,14,9,.12) 44%, rgba(7,14,9,.78) 100%);
}
.home-path-card__content {
    position: absolute;
    inset: auto 12px 19px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
}
.home-path-card__title {
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.08;
    text-align: center;
}
.home-path-card__title span { display: block; }
.home-path-card__arrow { width: 52px; height: 52px; }

/* COMPETENCES ------------------------------------------------------------- */
.home-competences { height: 1000px; background: #fff; }
.home-competences__inner {
    width: 1028px;
    margin: 0 auto;
    padding-top: 178px;
    display: grid;
    grid-template-columns: 350px 612px;
    gap: 66px;
}
.home-competences__copy { padding-top: 5px; }
.home-competences__title {
    color: var(--home-blue);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
}
.home-competences__title span { display: block; }
.home-competences__title span:nth-child(n+3) { font-weight: 800; }
.home-competences__text {
    width: 276px;
    margin-top: 54px;
    font-size: 22px;
    line-height: 1.32;
}
.home-competences__logo { width: 158px; height: auto; margin-top: 66px; }
.home-competences__copy .home-pill { margin-top: 34px; }
.home-competences__grid {
    display: grid;
    grid-template-columns: repeat(3, 188px);
    grid-auto-rows: 186px;
    gap: 18px 18px;
}
.home-competence-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    background: var(--home-light);
    text-align: center;
}
.home-competence-card img {
    width: 112px;
    height: 105px;
    object-fit: contain;
}
.home-competence-card h3 {
    margin: -4px 8px 0;
    color: var(--home-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.06;
}
.home-competence-card h3 span { display: block; }

/* FENCES ------------------------------------------------------------------ */
.home-fences {
    height: 682px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 2px solid #fff;
    border-bottom: 2px solid #fff;
    background: var(--home-blue);
}
.home-fences__media { min-width: 0; background: var(--home-light); }
.home-fences__media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-fences__copy { min-width: 0; background: var(--home-blue); }
.home-fences__inner {
    width: 428px;
    padding-top: 104px;
    padding-left: 72px;
}
.home-fences__title {
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-fences__title strong,
.home-fences__title span { display: block; }
.home-fences__title strong { color: var(--home-sand); font-weight: 800; }
.home-fences__text {
    width: 292px;
    margin-top: 28px;
    color: #fff;
    font-size: 18px;
    line-height: 1.34;
}
.home-fences__inner .home-pill { margin-top: 28px; }

/* SAFETY ------------------------------------------------------------------ */
.home-safety { height: 685px; background: var(--home-light); }
.home-safety__inner {
    position: relative;
    width: 1028px;
    height: 100%;
    margin: 0 auto;
    overflow: hidden;
}
.home-safety__copy { padding: 105px 0 0 150px; }
.home-safety__title {
    width: 420px;
    color: var(--home-blue);
    font-size: 48px;
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -.035em;
}
.home-safety__title span { display: block; }
.home-safety__title span:nth-child(2),
.home-safety__title span:nth-child(4),
.home-safety__title span:nth-child(5) { font-weight: 800; }
.home-safety__logo { width: 172px; height: auto; margin-top: 77px; }
.home-safety__illustration {
    position: absolute;
    right: 86px;
    bottom: 0;
    width: 324px;
    max-width: none;
    height: auto;
}

/* KAPRIOL ----------------------------------------------------------------- */
.home-kapriol {
    position: relative;
    height: 693px;
    border-top: 2px solid #fff;
    background: #6e6650;
    overflow: hidden;
}
.home-kapriol__stage {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.home-kapriol__stage-picture,
.home-kapriol__stage-image {
    display: block;
    width: 100%;
    height: 100%;
}
.home-kapriol__stage-image {
    object-fit: cover;
    object-position: center;
}
.home-kapriol__grid { display: none; }
.home-kapriol__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 25%;
    color: #fff;
    background: linear-gradient(90deg, rgba(22,28,20,.78), rgba(20,25,20,.72));
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 1;
}
.home-kapriol__panel-inner { padding: 78px 46px 0 72px; }
.home-kapriol__brand { color: #fff; line-height: 1; }
.home-kapriol__brand strong {
    display: block;
    font-size: 55px;
    font-weight: 800;
    letter-spacing: -.045em;
}
.home-kapriol__brand span { display: block; margin-top: 3px; font-size: 31px; font-weight: 300; }
.home-kapriol__title {
    margin-top: 34px;
    font-size: 40px;
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}
.home-kapriol__title span { display: block; }
.home-kapriol__text { margin-top: 27px; font-size: 18px; line-height: 1.33; }
.home-kapriol__links { margin-top: 27px; }
.home-kapriol__links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid rgba(255,255,255,.6);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.home-kapriol__links a:last-child { border-bottom: 1px solid rgba(255,255,255,.6); }
.home-kapriol__links a span:last-child { color: var(--home-orange); font-size: 20px; font-weight: 800; }

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .home-kapriol__panel {
        background: linear-gradient(90deg, rgba(18,22,17,.92), rgba(18,22,17,.82));
    }
}

/* DUNLOP ------------------------------------------------------------------ */
.home-dunlop { position: relative; height: 685px; background: var(--home-light); }
.home-dunlop__background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-dunlop__content { position: relative; z-index: 1; padding-top: 88px; }
.home-dunlop__brand { color: var(--home-red); font-size: 43px; font-weight: 800; line-height: 1; }
.home-dunlop__title {
    margin-top: 25px;
    color: var(--home-green);
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-dunlop__title span { display: block; }
.home-dunlop__text { width: 320px; margin-top: 30px; font-size: 15px; line-height: 1.2; }
.home-dunlop__link {
    width: 300px;
    margin-top: 31px;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--home-green);
    color: var(--home-green);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
}
.home-dunlop__link span { color: var(--home-red); font-size: 20px; }
.home-dunlop__logo { width: 236px; height: auto; margin-top: 49px; }

/* B2B --------------------------------------------------------------------- */
.home-b2b {
    height: 686px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--home-blue);
}
.home-b2b__copy { min-width: 0; background: var(--home-blue); }
.home-b2b__inner {
    width: 426px;
    margin-left: auto;
    padding-top: 92px;
}
.home-b2b__brand {
    color: var(--home-sand);
    font-size: 43px;
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -.03em;
}
.home-b2b__brand span { display: block; }
.home-b2b__title {
    width: 330px;
    margin-top: 28px;
    color: #fff;
    font-size: 40px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -.035em;
}
.home-b2b__title span { display: block; }
.home-b2b__text { width: 290px; margin-top: 31px; color: #fff; font-size: 18px; line-height: 1.34; }
.home-b2b__inner .home-pill { margin-top: 38px; }
.home-b2b__media { min-width: 0; }
.home-b2b__media img { width: 100%; height: 100%; object-fit: cover; }

/* RESPONSIVE -------------------------------------------------------------- */
@media (max-width: 1179px) {
    .home-hero__title { padding-top: 180px; }
}

@media (max-width: 1023px) {
    .page-home main { overflow: hidden; }
    .home-pill { min-height: 42px; font-size: 14px; padding: 10px 18px; }

    .home-hero { height: min(760px, 100svh); min-height: 590px; }
    .home-hero__image { object-position: 50% center; }
    .home-hero::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(20,28,15,.50), rgba(20,28,15,.08));
    }
    .home-hero__content { z-index: 2; display: flex; align-items: center; }
    .home-hero__title {
        width: min(82vw, 520px);
        padding-top: 18px;
        font-size: clamp(54px, 11vw, 78px);
        line-height: .9;
    }

    .home-intro { height: auto; }
    .home-intro__inner { padding-top: 64px; padding-bottom: 74px; }
    .home-intro__topline { min-height: 0; display: block; }
    .home-intro__lead { width: auto; font-size: clamp(31px, 7vw, 42px); }
    .home-intro__topline .home-pill { margin-top: 28px; }
    .home-intro__image-wrap { width: 100%; height: auto; aspect-ratio: 836 / 337; margin: 42px 0 0; }
    .home-intro__image { border-radius: 16px; }
    .home-intro__image-logo { left: 5.5%; top: 14%; width: clamp(90px, 18vw, 130px); }
    .home-intro__copy-grid { margin: 34px 0 0; display: grid; grid-template-columns: 1fr; gap: 24px; font-size: 15px; line-height: 1.5; }
    .home-intro__copy-grid p:first-child { font-size: 18px; line-height: 1.45; }

    .home-experience { height: auto; grid-template-columns: 1fr; }
    .home-experience__copy::after { display: none; }
    .home-experience__copy { order: 2; }
    .home-experience__media { order: 1; aspect-ratio: 950 / 686; }
    .home-experience__inner { width: auto; margin: 0; padding: 64px var(--page-gutter) 74px; }
    .home-experience__title { width: auto; font-size: clamp(34px, 8vw, 45px); }
    .home-experience__text { width: auto; max-width: 560px; font-size: 17px; line-height: 1.45; }

    .home-pathways { height: auto; padding: 68px var(--page-gutter) 84px; }
    .home-pathways::before { height: 8px; }
    .home-pathways::after { width: 82px; height: 38px; bottom: -37px; }
    .home-pathways__content { width: auto; margin: 0; padding: 0; }
    .home-pathways__title { width: auto; margin: 0 0 32px; font-size: clamp(33px, 7.5vw, 44px); }
    .home-pathways__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .home-path-card { height: auto; aspect-ratio: 248 / 392; }
    .home-path-card__title { font-size: clamp(15px, 3.6vw, 21px); }
    .home-path-card__arrow { width: 46px; height: 46px; }

    .home-competences { height: auto; }
    .home-competences__inner { width: auto; padding: 110px var(--page-gutter) 90px; display: block; }
    .home-competences__copy { padding: 0; }
    .home-competences__title { font-size: clamp(39px, 9vw, 50px); }
    .home-competences__text { width: auto; max-width: 460px; margin-top: 30px; font-size: 19px; line-height: 1.45; }
    .home-competences__logo { margin-top: 40px; }
    .home-competences__copy .home-pill { margin-top: 28px; }
    .home-competences__grid { margin-top: 52px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
    .home-competence-card { min-height: 170px; padding: 15px 8px; border-radius: 16px; }
    .home-competence-card img { width: 88px; height: 83px; }
    .home-competence-card h3 { font-size: 14px; }

    .home-fences { height: auto; grid-template-columns: 1fr; border-width: 6px; }
    .home-fences__media { aspect-ratio: 944 / 682; }
    .home-fences__copy { padding: 56px var(--page-gutter) 66px; }
    .home-fences__inner { width: auto; padding: 0; }
    .home-fences__title { font-size: clamp(34px, 8vw, 44px); }
    .home-fences__text { width: auto; max-width: 520px; font-size: 17px; line-height: 1.45; }

    .home-safety { height: auto; }
    .home-safety__inner { width: auto; min-height: 650px; margin: 0; padding: 72px var(--page-gutter) 0; overflow: hidden; }
    .home-safety__copy { padding: 0; position: relative; z-index: 2; }
    .home-safety__title { width: min(76vw, 480px); font-size: clamp(37px, 8vw, 48px); }
    .home-safety__logo { margin-top: 46px; }
    .home-safety__illustration {
        left: auto;
        right: 0;
        bottom: 0;
        width: min(78vw, 360px);
        opacity: .98;
        -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 18%, rgba(0,0,0,1) 42%, rgba(0,0,0,1) 100%);
        mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 18%, rgba(0,0,0,1) 42%, rgba(0,0,0,1) 100%);
    }

    .home-kapriol { height: auto; min-height: 760px; }
    .home-kapriol__grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); }
    .home-kapriol__panel { position: relative; inset: auto; width: 100%; min-height: 760px; background: rgba(20,25,20,.68); }
    .home-kapriol__panel-inner { max-width: 560px; padding: 70px var(--page-gutter) 76px; }
    .home-kapriol__brand strong { font-size: 50px; }
    .home-kapriol__brand span { font-size: 26px; }
    .home-kapriol__title { font-size: clamp(34px, 8vw, 44px); }
    .home-kapriol__text { font-size: 17px; }

    .home-dunlop { height: auto; min-height: 650px; }
    .home-dunlop__background { object-position: 72% center; }
    .home-dunlop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(242,243,246,.98) 0 48%, rgba(242,243,246,.56) 70%, rgba(242,243,246,0) 100%); }
    .home-dunlop__content { z-index: 2; padding-top: 72px; padding-bottom: 72px; }
    .home-dunlop__brand { font-size: 38px; }
    .home-dunlop__title { font-size: clamp(34px, 7.5vw, 42px); }
    .home-dunlop__text { width: min(70vw, 340px); font-size: 15px; line-height: 1.35; }
    .home-dunlop__link { width: min(72vw, 320px); }

    .home-b2b { height: auto; grid-template-columns: 1fr; }
    .home-b2b__copy { order: 2; }
    .home-b2b__media { order: 1; aspect-ratio: 960 / 686; }
    .home-b2b__inner { width: auto; margin: 0; padding: 66px var(--page-gutter) 76px; }
    .home-b2b__brand { font-size: 38px; }
    .home-b2b__title { width: auto; font-size: clamp(34px, 8vw, 44px); }
    .home-b2b__text { width: auto; max-width: 520px; font-size: 17px; line-height: 1.45; }
}

@media (max-width: 620px) {
    .home-pathways__grid { grid-template-columns: 1fr; }
    .home-path-card { width: min(100%, 300px); justify-self: center; }
    .home-competences__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-competence-card { min-height: 158px; }
    .home-safety__inner { min-height: 600px; }
    .home-safety__illustration { width: 84vw; max-width: 320px; right: 0; bottom: 0; }
}

@media (max-width: 390px) {
    .home-hero__title { font-size: 51px; }
    .home-pathways { padding-top: 62px; }
    .home-competence-card h3 { font-size: 13px; }
    .home-safety__title { width: 86vw; font-size: 36px; }
    .home-safety__illustration { width: 88vw; max-width: 305px; }
}

/* HOME v0.3 - sistemazioni custom 22/09/2026
   Sovrascritture volutamente isolate: K-FARM non viene modificato in questo giro. */

@media (min-width: 1024px) {
    /* CTA intro: dimensione della preview 1920 */
    .home-intro__topline .home-pill {
        min-width: 143px;
        min-height: 63px;
        padding: 0 22px;
        font-size: 17px;
    }

    /* Filetti tra testo/foto e tra moduli: stessa misura */
    .home-experience__copy::after { width: 10px; }
    .home-pathways::before { height: 10px; }

    /* Affidati: titolo più alto, maggiore respiro prima delle card,
       ma modulo complessivamente più compatto come da preview. */
    .home-pathways { height: 836px; }
    .home-pathways__content { padding-top: 100px; }
    .home-pathways__title { margin-bottom: 112px; }
    .home-path-card__title { font-size: 21px; }

    /* Aree di competenza: card 210px e interspazio ridotto come preview. */
    .home-competences__inner {
        grid-template-columns: 350px 644px;
        gap: 50px;
    }
    .home-competences__grid {
        grid-template-columns: repeat(3, 210px);
        grid-auto-rows: 209px;
        gap: 8px 7px;
    }

    /* Recinzioni: riduzione chiaramente percepibile ma contenuta. */
    .home-fences { height: 655px; }
    .home-fences__inner { padding-top: 90px; }
    .home-fences__text { margin-top: 27px; }
    .home-fences__inner .home-pill { margin-top: 27px; }
}

@media (max-width: 1023px) {
    /* Sul mobile il bottone intro resta proporzionato al contenuto. */
    .home-intro__topline .home-pill {
        min-width: 0;
        min-height: 50px;
        padding: 0 20px;
        font-size: 15px;
    }

    /* Affidati: meno vuoto sopra/sotto e titolo più controllato. */
    .home-pathways { padding-top: 50px; padding-bottom: 60px; }
    .home-pathways__title {
        margin-bottom: 48px;
        font-size: clamp(30px, 6.5vw, 38px);
        line-height: 1.07;
    }
    .home-path-card__title { font-size: clamp(15px, 3.4vw, 20px); }

    /* Dunlop: stessa soluzione in trasparenza, ma immagine molto più piccola
       e interamente leggibile invece del crop verticale da object-fit: cover. */
    .home-dunlop__background {
        top: 60px;
        right: auto;
        bottom: auto;
        left: -50vw;
        width: 180vw;
        max-width: none;
        height: auto;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 620px) {
    .home-pathways { padding-top: 46px; padding-bottom: 56px; }
    .home-pathways__title { margin-bottom: 44px; }
}

@media (max-width: 390px) {
    .home-pathways { padding-top: 42px; }
    .home-pathways__title { font-size: 29px; }
    .home-dunlop__background { top: 70px; }
}

/* HOME v0.4 - rifiniture custom 22/09/2026
   K-FARM volutamente escluso da questo giro. */

/* Filetti: stessa misura del separatore usato in Logistica (.gallery-pair = 2px). */
.home-experience__copy::after { width: 2px; }
.home-pathways::before { height: 2px; }

@media (min-width: 1024px) {
    /* Affidati: il titolo e le card diventano due righe esplicite della stessa
       griglia. In questo modo lo spazio sotto al titolo non dipende dai margin
       dell'h2 (azzerati globalmente dalla pagina) e rimane sempre costante. */
    .home-pathways__content {
        padding-top: 190px;
        display: grid;
        grid-template-rows: auto auto;
        row-gap: 30px;
    }

    .page-home .home-pathways__title {
        width: 760px;
        margin: 0 auto;
    }
}

@media (max-width: 1023px) {
    /* Stesso criterio sul mobile: blocco testo centrato nel contenitore,
       allineamento del testo a sinistra e spazio reale prima delle card. */
    .home-pathways__content {
        display: grid;
        grid-template-rows: auto auto;
        row-gap: 34px;
    }

    .page-home .home-pathways__title {
        width: min(100%, 440px);
        margin: 0 auto;
    }

    /* Dunlop: via di mezzo tra la prima soluzione (troppo grande/croppata)
       e la v0.3 (troppo piccola). */
    .home-dunlop__background {
        top: 45px;
        left: -82vw;
        width: 245vw;
    }
}

@media (max-width: 390px) {
    .home-dunlop__background {
        top: 48px;
        left: -82vw;
        width: 245vw;
    }
}

/* K-FARM wide alignment v0.9 --------------------------------------------
   L'immagine destra del composito 1920 inizia a x=1460 (76.0417%).
   Il pannello resta largo il 25% ma termina esattamente su quel punto. */
@media (min-width: 1920px) {
    .home-kapriol__panel {
        left: 51.0417%;
        right: auto;
        width: 25%;
    }
}

/* K-FARM responsive override v0.9 ---------------------------------------- */
@media (max-width: 1919px) {
    .home-kapriol {
        height: 686px;
        min-height: 0;
    }

    .home-kapriol__panel {
        top: 0;
        bottom: 0;
        left: 26%;
        width: 40%;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: none;
        overflow: visible;
    }

    .home-kapriol__panel::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: -58px;
        background: linear-gradient(90deg,
            rgba(17, 22, 17, .88) 0%,
            rgba(17, 22, 17, .82) 72%,
            rgba(17, 22, 17, .62) 88%,
            rgba(17, 22, 17, 0) 100%);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0,0,0,.55) 93%, transparent 100%);
        mask-image: linear-gradient(90deg, #000 0%, #000 84%, rgba(0,0,0,.55) 93%, transparent 100%);
        pointer-events: none;
    }

    .home-kapriol__panel-inner {
        position: relative;
        z-index: 1;
        height: 100%;
        padding: 72px clamp(24px, 2.15vw, 34px) 44px clamp(34px, 3.1vw, 58px);
        display: flex;
        flex-direction: column;
    }

    .home-kapriol__brand strong {
        font-size: clamp(46px, 4.2vw, 55px);
    }

    .home-kapriol__brand span {
        font-size: clamp(24px, 2.15vw, 31px);
    }

    .home-kapriol__title {
        margin-top: 32px;
        font-size: clamp(35px, 2.85vw, 40px);
    }

    .home-kapriol__text {
        max-width: 26ch;
        margin-top: 24px;
        font-size: clamp(16px, 1.08vw, 18px);
    }

    .home-kapriol__links {
        margin-top: auto;
        padding-top: 24px;
    }
}

@media (max-width: 1024px) {
    .home-kapriol__panel {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 22%;
        width: 50%;
        min-height: 0;
    }

    .home-kapriol__panel::before {
        right: -46px;
    }

    .home-kapriol__panel-inner {
        max-width: none;
        padding: 62px 28px 40px 42px;
    }

    .home-kapriol__brand strong {
        font-size: 48px;
    }

    .home-kapriol__brand span {
        font-size: 25px;
    }

    .home-kapriol__title {
        margin-top: 28px;
        font-size: 34px;
    }

    .home-kapriol__text {
        max-width: none;
        font-size: 17px;
        line-height: 1.4;
    }
}

@media (max-width: 767px) {
    .home-kapriol {
        height: auto;
        min-height: 686px;
    }

    .home-kapriol__panel {
        position: relative;
        left: 0;
        top: auto;
        bottom: auto;
        width: 100%;
        min-height: 686px;
        overflow: hidden;
    }

    .home-kapriol__panel::before {
        inset: 0;
        background: linear-gradient(90deg,
            rgba(17, 22, 17, .86) 0%,
            rgba(17, 22, 17, .77) 54%,
            rgba(17, 22, 17, .65) 100%);
        -webkit-mask-image: none;
        mask-image: none;
    }

    .home-kapriol__panel-inner {
        min-height: 686px;
        padding: 54px 24px 34px;
    }

    .home-kapriol__brand strong {
        font-size: 58px;
    }

    .home-kapriol__brand span {
        font-size: 24px;
    }

    .home-kapriol__title {
        margin-top: 34px;
        font-size: 32px;
        line-height: 1.02;
    }

    .home-kapriol__text {
        margin-top: 26px;
        font-size: 15px;
        line-height: 1.32;
    }

    .home-kapriol__links {
        margin-top: auto;
        padding-top: 22px;
    }

    .home-kapriol__links a {
        min-height: 46px;
        font-size: 14px;
    }
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    @media (max-width: 1919px) {
        .home-kapriol__panel::before {
            background: linear-gradient(90deg,
                rgba(17, 22, 17, .95) 0%,
                rgba(17, 22, 17, .90) 78%,
                rgba(17, 22, 17, 0) 100%);
        }
    }
}

/* Fase 2 — 08/10/2026: immagini dedicate alle card e sicurezza mobile. */
.home-path-card__picture { display:block; width:100%; height:100%; }
@media (max-width:620px) {
    .home-pathways { padding-inline:0; }
    .page-home .home-pathways__title {
        width:min(calc(100% - (var(--page-gutter) * 2)), 440px);
        margin-inline:auto;
    }
    .home-pathways__grid { grid-template-columns:minmax(0,1fr); gap:16px; }
    .home-path-card { width:100%; height:auto; aspect-ratio:1 / 1; border-radius:0; }
    .home-path-card__title { font-size:clamp(24px,6vw,32px); line-height:1.12; }
    .home-path-card__content { inset:auto 20px 24px; gap:20px; }
    .home-path-card__arrow { width:52px; height:52px; }

    /* Il ritaglio inferiore accorcia soltanto i manici, senza deformare
       le teste degli attrezzi. Lo spazio in flusso evita ogni sovrapposizione. */
    .home-safety__inner { min-height:0; padding-bottom:0; }
    .home-safety__picture {
        display:block;
        position:relative;
        width:min(100%,300px);
        height:250px;
        margin:24px calc(-1 * var(--page-gutter)) 0 auto;
        overflow:hidden;
    }
    .home-safety__illustration {
        width:100%;
        height:auto;
        right:0;
        bottom:auto;
        top:0;
        opacity:1;
        -webkit-mask-image:none;
        mask-image:none;
    }
}

/* Fase 2 — separatori di blocco: 2px bianchi, nessuno a contatto col blu. */
.home-experience__copy::after { width:2px; }
.home-pathways::before { height:2px; }
.home-fences { border:0; gap:0; }
.home-kapriol { border-top:2px solid #fff; }
.home-dunlop { border-top:2px solid #fff; }
.home-safety,.home-b2b { position:relative; }
.home-safety::before,.home-b2b::before {
    content:""; position:absolute; top:0; height:2px; background:#fff;
    pointer-events:none; z-index:3;
}
.home-safety::before { left:0; right:50%; }
.home-b2b::before { left:50%; right:0; }
@media (max-width:1023px) {
    .home-experience__copy { border-top:2px solid #fff; }
    .home-experience__copy::after { display:none; }
    .home-safety::before { display:none; }
    /* B2B mobile: prima la foto, poi il pannello blu. */
    .home-b2b::before { left:0; }
}

/* Regola corretta: il blu esclude solo i separatori VERTICALI. */
.home-fences { border-top:2px solid #fff; }
.home-safety::before { right:0; }
.home-b2b::before { left:0; }
.home-b2b { border-bottom:2px solid #fff; }
@media(max-width:1023px) {
    .home-safety::before { display:block; }
    .home-fences__copy,.home-b2b__copy { border-top:2px solid #fff; }
}

/* 17/10/2026: K-FARM e marchio Kapriol sempre sulla stessa riga. */
.home-kapriol__brand {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(10px, 1vw, 16px);
}
.home-kapriol__brand strong { flex: 0 1 auto; white-space: nowrap; }
.home-kapriol__brand .home-kapriol__partner {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    margin: 0;
    line-height: 1;
}
.home-kapriol__partner small { font-size: 16px; font-weight: 400; }
.home-kapriol__brand-logo {
    display: block;
    width: clamp(86px, 7vw, 112px);
    height: auto;
    flex: 0 0 auto;
}
@media (max-width: 767px) {
    .home-kapriol__brand strong { font-size: clamp(36px, 10vw, 58px); }
    .home-kapriol__partner small { font-size: 14px; }
}
