
/* =========================================================
   PET NUTRITION PRO STARTER KIT
   B2.4.3 - FOOTER.CSS

   Footer e-commerce riutilizzabile
   Base: Storefront + WooCommerce

   Desktop / Tablet / Mobile
   ========================================================= */


/* =========================================================
   1. STOREFRONT FOOTER RESET
   ========================================================= */

.site-footer {
    padding: 0 !important;
    border-top: 0 !important;
}

.site-footer > .col-full {
    max-width: none !important;

    padding-left: 0 !important;
    padding-right: 0 !important;
}


/* =========================================================
   2. FOOTER BASE
   ========================================================= */

.pnp-starter-footer {
    margin: 0 !important;

    background: #f4f0e8 !important;
    color: #233127;

    border-top: 0 !important;
}

.pnp-starter-footer__inner {
    max-width: 1380px;

    margin: 0 auto;

    padding:
        38px
        32px
        18px;
}


/* =========================================================
   3. FOOTER GRID - DESKTOP

   4 colonne:
   Brand | Shop by Category | Quick Links | Customer Area

   La colonna brand è leggermente più larga.
   ========================================================= */

.pnp-starter-footer__top {
    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(0, .75fr)
        minmax(0, .9fr)
        minmax(0, .75fr);

    column-gap: 34px;
    row-gap: 26px;

    align-items: start;
}


/* =========================================================
   4. BRAND
   ========================================================= */

.pnp-starter-footer__brand {
    min-width: 0;

    display: flex;
    flex-direction: column;

    align-items: flex-start;
}


/* =========================================================
   5. LOGO
   ========================================================= */

.pnp-starter-footer__logo {
    display: inline-block;

    max-width: 100%;

    margin: 0 0 12px;

    line-height: 0;

    text-decoration: none !important;
}

.pnp-starter-footer__logo img {
    display: block;

    width: auto;
    max-width: 280px;

    height: auto;
    max-height: 96px;

    margin: 0;

    object-fit: contain;
    object-position: left center;
}


/* =========================================================
   6. SITE NAME FALLBACK

   Visibile quando non esiste un logo.
   ========================================================= */

.pnp-starter-footer__site-name {
    display: inline-block;

    margin-bottom: 12px;

    color: #1e2820;

    font-size: 22px;
    font-weight: 700;

    line-height: 1.2;

    text-decoration: none !important;
}


/* =========================================================
   7. BRAND DESCRIPTION
   ========================================================= */

.pnp-starter-footer__brand-text {
    max-width: 315px;

    margin: 0 0 17px !important;

    color: #5f6a63;

    font-size: 14px;
    line-height: 1.55;
}


/* =========================================================
   8. MAIN CTA
   ========================================================= */

.pnp-starter-footer .pnp-footer-main-cta {
    box-sizing: border-box;

    display: inline-flex !important;

    align-items: center;
    justify-content: center;

    width: auto;
    min-height: 44px;

    margin: 0;

    padding:
        0
        18px;

    background: #315f35 !important;
    color: #ffffff !important;

    border: 0;
    border-radius: 9px;

    box-shadow: none;

    text-decoration: none !important;
    text-align: center;

    font-size: 14px;
    font-weight: 700;

    line-height: 1.2;

    transition:
        background .2s ease,
        transform .2s ease;
}

.pnp-starter-footer .pnp-footer-main-cta:hover,
.pnp-starter-footer .pnp-footer-main-cta:focus {
    background: #1f4426 !important;
    color: #ffffff !important;

    transform: translateY(-1px);
}


/* =========================================================
   9. LINK COLUMNS
   ========================================================= */

.pnp-starter-footer__column {
    min-width: 0;

    margin: 0;
    padding: 0;
}


/* =========================================================
   10. COLUMN HEADINGS
   ========================================================= */

.pnp-starter-footer__column h3 {
    margin: 0 0 12px !important;

    padding: 0;

    color: #1e2820;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 19px;
    font-weight: 600;

    line-height: 1.2;
}


/* =========================================================
   11. LINK LISTS
   ========================================================= */

.pnp-starter-footer__column ul {
    display: flex;
    flex-direction: column;

    gap: 3px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.pnp-starter-footer__column li {
    display: block;

    margin: 0;
    padding: 0;
}


/* =========================================================
   12. LINKS
   ========================================================= */

.pnp-starter-footer__column a {
    display: block;

    padding: 3px 0;

    color: #344139;

    text-decoration: none !important;

    font-size: 14px;
    font-weight: 400;

    line-height: 1.4;

    transition: color .2s ease;
}

.pnp-starter-footer__column a:hover,
.pnp-starter-footer__column a:focus {
    color: #315f35;
}


/* =========================================================
   13. FOOTER DIVIDER
   ========================================================= */

.pnp-starter-footer__divider {
    height: 0;

    margin:
        26px
        0
        16px;

    padding: 0;

    border: 0;
    border-top: 1px solid #d9d3c8;
}


/* =========================================================
   14. FOOTER BOTTOM
   ========================================================= */

.pnp-starter-footer__bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;
}


/* =========================================================
   15. COPYRIGHT / LEGAL
   ========================================================= */

.pnp-starter-footer__copyright,
.pnp-starter-footer__legal a {
    color: #657068;

    font-size: 13px;
    line-height: 1.45;
}

.pnp-starter-footer__legal a,
.pnp-starter-footer__credit a {
    color: #344139;

    text-decoration: none !important;
}

.pnp-starter-footer__legal a:hover,
.pnp-starter-footer__credit a:hover {
    color: #315f35;
}


/* =========================================================
   16. CREDIT
   ========================================================= */

.pnp-starter-footer__credit {
    color: #657068;

    font-size: 13px;
    line-height: 1.45;

    text-align: right;
}


/* =========================================================
   17. TABLET
   768px - 1050px

   Brand a tutta larghezza.
   Tre colonne sottostanti.
   ========================================================= */

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

    .pnp-starter-footer__inner {
        padding:
            36px
            28px
            18px;
    }

    .pnp-starter-footer__top {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        column-gap: 28px;
        row-gap: 24px;
    }

    .pnp-starter-footer__brand {
        grid-column: 1 / -1;
    }

    .pnp-starter-footer__logo img {
        max-width: 260px;
        max-height: 90px;
    }

    .pnp-starter-footer__brand-text {
        max-width: 520px;

        font-size: 14px;
        line-height: 1.55;
    }

    .pnp-starter-footer__column h3 {
        font-size: 18px;
    }

    .pnp-starter-footer__column a {
        font-size: 14px;
    }

    .pnp-starter-footer__divider {
        margin:
            24px
            0
            15px;
    }

}


/* =========================================================
   18. MOBILE
   max-width: 767px

   Colonna singola.
   Mantiene spazio inferiore per eventuali
   barre WooCommerce / Storefront.
   ========================================================= */

@media (max-width: 767px) {

    .pnp-starter-footer__inner {
        padding:
            26px
            18px
            96px;
    }

    .pnp-starter-footer__top {
        grid-template-columns: 1fr;

        column-gap: 0;
        row-gap: 18px;
    }

    .pnp-starter-footer__brand {
        grid-column: auto;
    }

    /* LOGO */

    .pnp-starter-footer__logo {
        margin-bottom: 10px;
    }

    .pnp-starter-footer__logo img {
        max-width: 220px;
        max-height: 80px;
    }

    /* BRAND FALLBACK */

    .pnp-starter-footer__site-name {
        margin-bottom: 10px;

        font-size: 20px;
    }

    /* BRAND DESCRIPTION */

    .pnp-starter-footer__brand-text {
        max-width: 100%;

        margin-bottom: 14px !important;

        font-size: 14px;
        line-height: 1.45;
    }

    /* MAIN CTA */

    .pnp-starter-footer .pnp-footer-main-cta {
        min-height: 44px;

        padding:
            0
            16px;

        font-size: 14px;
    }

    /* COLUMNS */

    .pnp-starter-footer__column h3 {
        margin-bottom: 7px !important;

        font-size: 18px;
    }

    .pnp-starter-footer__column ul {
        gap: 0;
    }

    .pnp-starter-footer__column a {
        padding: 2px 0;

        font-size: 14px;
        line-height: 1.3;
    }

    /* DIVIDER */

    .pnp-starter-footer__divider {
        margin:
            20px
            0
            12px;
    }

    /* BOTTOM */

    .pnp-starter-footer__bottom {
        flex-direction: column;

        align-items: flex-start;
        justify-content: flex-start;

        gap: 8px;
    }

    .pnp-starter-footer__copyright,
    .pnp-starter-footer__legal a,
    .pnp-starter-footer__credit {
        font-size: 13px;
    }

    .pnp-starter-footer__credit {
        text-align: left;
    }

}
