/* ===== FOOTER STYLES ===== */

/* FOOTER BASE */
footer#page-footer {
    position: absolute;
    width: 100vw;
    bottom: 0;
}

/* ===== FOOTER ===== */
div.upper-section {
    position: relative;
    height: 85%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

#page-footer img.logo {
    position: relative;
    height: 75%;
    margin-bottom: min(2vh, 4vw)
}

#page-footer h2 {
    text-align: right;
    line-height: 0.8;
    margin: 0;
    padding: 0;
    font-size: 2vw;
    margin-right: 1vw;
    margin-bottom: min(2vh, 4vw)
}

div.lower-section {
    position: relative;
    height: 15%;
    background: var(--color-accent);
    color: var(--color-black);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -ms-flex-line-pack: center;
        align-content: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

#page-footer .partners, #page-footer .legal {
    position: relative;
    float: left;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

#page-footer .legal { 
    float: right; 
}

#page-footer h5 {
    margin: 0;
    padding: 0;
    font-weight: 500;
    font-size: 0.8vw;
}

#page-footer .partners h5 { 
    padding-left: 1vw; 
}

#page-footer .legal h5 { 
    padding-right: 1vw; 
}

#page-footer a {
    text-decoration: none;
    color: inherit;
    font-weight: 900;
    -webkit-transition: all 0.15s;
    -o-transition: all 0.15s;
    transition: all 0.15s;
}

#page-footer a:hover {
    text-decoration: underline;
    color: var(--color-white);
    font-weight: 900;
    cursor: none;
    -webkit-transition: all 0.15s;
    -o-transition: all 0.15s;
    transition: all 0.15s;
}

#page-footer .legal h5 { 
    padding-left: 1vw; 
}

/* FOOTER ALTERNATIVE 1 */
#page-footer.footer_alt1 img.logo {
    height: 50%;
    margin-right: 5vw;
}

#page-footer.footer_alt1 div.upper-section {
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}

/* FOOTER ALT 2 // SCHEDA PRODOTTO */
footer#page-footer.footer_alt2 {
    position: fixed;
    width: 16vw;
    right: 0;
    bottom: 0;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -ms-flex-line-pack: start;
        align-content: flex-start;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    z-index: 5;
}

#page-footer.footer_alt2 div.upper-section {
    position: relative;
    width: 70%;
    margin-right: 20%;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -ms-flex-line-pack: end;
        align-content: flex-end;
}

#page-footer.footer_alt2 div.upper-section {
    position: relative;
    width: 73%;
    margin-right: 20%;
    height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
    -ms-flex-line-pack: end;
        align-content: flex-end;
}

#page-footer.footer_alt2 .lower-section {
    position: relative;
    height: 100vh;
    width: 7%;
    background: var(--color-accent);
    color: var(--accent-black);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: nowrap;
        flex-wrap: nowrap;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
#page-footer.footer_alt2 .lower-section h5 {
    -webkit-writing-mode: vertical-lr;
        -ms-writing-mode: vertical-lr;
            writing-mode: vertical-lr;
    font-size: 0.8vw;
    margin: 0;
    color: var(--color-black);
    padding-top: 3vh;
    padding-left: 0;
}
#page-footer.footer_alt2 .legal h5 {
    padding: 0;
    line-height: 1;
    color: var(--color-text);
}


#page-footer.footer_alt2 img.logo {
    width: 70%;
    height: auto;
}

#page-footer.footer_alt2 .legal {
    text-align: right;
    padding-bottom: 5vh;
}

#page-footer.footer_alt2 .legal h5 {
    padding: 0;
}