body {
    font-size: 18px;
    line-height: 1.3em;
    font-family: WorkSansRegular;
    color: #232323;
}
html {
    scroll-behavior: smooth;
}
h1, h2, h3, h4, p, ul {
    margin-top: 20px;
    margin-bottom: 0;
}

/* margin sopra e sotto */
.entry-header {
    margin-bottom: 0;
}
article.item {
    margin-bottom: 0;
}
#sp-main-body {
    padding: 0;
}

/* fonts */
@font-face {
    font-family: WorkSansRegular;
    src: url(fonts/WorkSans-Regular.ttf);
}
@font-face {
    font-family: WorkSansSemiBold;
    src: url(fonts/WorkSans-SemiBold.ttf);
}
h1 {
    font-size: 68px;
    font-family: WorkSansSemiBold;
    line-height: 1em;
}
h2 {
    font-size: 36px;
    font-family: WorkSansSemiBold;
    line-height: 1.2em;
}
.udi-smallh2 {
    font-size: 30px;
    line-height: 1em;
    font-family: WorkSansSemibold;
}
.udi-subtitle {
    font-size: 36px;
    line-height: 1em;
}
.udi-benefits {
    font-size: 23px;
    line-height: 1.3em;
    padding: 0;
    list-style: none;
}
.udi-benefits > li {
    display: grid;
    grid-template-columns: 1em auto;
    grid-gap: 10px;
}
.udi-benefits > li > i {
    line-height: 1.3;
}
.udi-benefits li + li {
    margin-top: 10px;
}
.udi-bold {
    font-family: WorkSansSemiBold;
}
.udi-redtext {
    color: #D62B2A;
}
.udi-link {
    color: #aaa;
    border-bottom: 2px solid #d62b2a;
}
.udi-link:hover {
    color: #000;
}

/* list */
.udi-listredpoint {
    padding: 0;
    list-style: none;
}
.udi-listredpoint > li::before {
    content: "•";
    color: #d62b2a;
    line-height: 20px;
    margin-right: 5px;
    font-size: 2em;
    height: 23px;
    display: inline-block;
    vertical-align: middle;
}

/* header */
#sp-header {
    background: #232323;
    box-shadow: none;
}
.sp-megamenu-parent > li > a, .sp-megamenu-parent > li > span {
    color: #fff;
    font-size: 18px;
    padding: 0 20px;
}
.udi-contattimenu {
    background: rgba(255, 255, 255, .1);
}
.udi-contattimenu:hover {
    background: none;
}
.sp-megamenu-parent > li.active > a, .sp-megamenu-parent > li:hover > a {
    color: #d62b2a;
}
#sp-logo > div > div > a > img {
    height: 50px;
    width: auto;
}

/* offcanvas */
#offcanvas-toggler > i {
    color: #fff;
}
.full-screen-ftop .offcanvas-menu .offcanvas-inner .sp-module ul li.active a {
    color: #d62b2a;
}
.full-screen-ftop .offcanvas-menu {
    background-color: #232323;
}
.full-screen-off-canvas-ftop.ltr .offcanvas-menu .sp-module ul > li {
    border: none;
}
.full-screen-ftop .offcanvas-menu .close-offcanvas {
    border: none;
    padding: 0;
    line-height: 87px;
    height: 87px;
    width: auto;
    top: 0;
    right: 15px;
}
.full-screen-off-canvas-ftop.ltr .offcanvas-menu .sp-module {
    margin: 0;
    padding: 50px;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    align-content: center;
}

/* atf */
.udi-atf {
    position: relative;
    background: #232323;
    color: #fff;
}
.udi-atf-content {
    position: absolute;
    top: 0;
    right: 0;
    left: 50%;
    height: 62vh;
    display: grid;
    align-content: center;
    padding-right: calc((100% - 1270px)/2 + 65px);
}
.udi-atfimg {
    height: calc(100vh - 90px);
    object-fit: cover;
}
.udi-arrowbot {
    position: absolute;
    bottom: 30px;
    text-align: center;
    width: 50px;
    left: calc(50% - 25px);
    color: #fff;
    font-size: 23px;
    transition: ease-out 0.1s;
}
.udi-arrowbot:hover {
    color: #fff;
    transform: scale(1.2);
}

/* metodo uditalia */
#metodo {
    margin: -90px 0 90px;
}
.udi-metodo {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    grid-gap: 60px;
    margin-top: 60px;
}
.udi-metodon {
    color: #fff;
    background: #d62b2a;
    border-radius: 50%;
    height: 70px;
    width: 70px;
    line-height: 70px;
    font-size: 40px;
    font-family: WorkSansSemiBold;
    margin: auto;
}
.udi-metodo > div:nth-child(1) .udi-metodon {
    background: #232323;
}
.udi-metodo > div:nth-child(2) .udi-metodon {
    background: #412524;
}
.udi-metodo > div:nth-child(3) .udi-metodon {
    background: #7D2726;
}
.udi-metodo > div:nth-child(4) .udi-metodon {
    background: #B52929;
}

/* metafore home */
.udi-metasection {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    grid-gap: 50px;
    align-items: center;
    padding: 50px;
}
.udi-metasection + .udi-metasection {
    padding-top: 0;
}
.udi-metacontent {
    padding-bottom: 90%;
    position: relative;
    overflow: hidden;
}
.udi-metacontent > * {
    position: absolute;
}
.udi-metatext:first-child {
    padding-left: calc((100% - 570px) + 25px);
}
.udi-metatext:last-child {
    padding-right: calc((100% - 570px) + 25px);
}

/* metafora - le parole muoiono quando non si possono sentire */
#udi-metaparole {
    background: #f3604c;
    color: #fff;
    text-align: justify;
    padding: 5px 8px;
    font-family: WorkSansSemiBold;
    font-size: 25px;
    line-height: 30px;
}

/* tab servizi */
.udi-servizitab {
    display: grid;
    grid-template-columns: auto;
    margin-top: 60px;
    grid-gap: 60px;
}
.udi-servizitab h2::before {
    content: "•";
    color: #d62b2a;
    line-height: 20px;
    margin-right: 5px;
    height: 23px;
    display: inline-block;
    vertical-align: middle;
}

/* apparecchi acustici */
.udi-apparecchiphonak {
    display: flex;
    flex-wrap: wrap;
    margin-top: 50px;
    justify-content: space-between;
}

/* footer */
#sp-footer {
    background: #fff;
    color: #232323;
    border-top: 3px solid #d62b2a;
    padding: 50px 0;
    text-align: left;
}
.udi-logo {
    height: 50px;
}
.udi-footer {
    padding: 0/* 0 50px*/;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    grid-gap: 50px;
    font-size: 16px;
}
.udi-footerbot {
    padding: 30px 0;
    display: grid;
    grid-template-columns: repeat(2,auto);
    justify-content: space-between;
    font-size: 14px;
    border-top: 1px solid;
}

/* essential */
.udi-sectionwhite {
    padding: 60px;
    padding-right: calc((100% - 1270px)/2 + 65px);
    padding-left: calc((100% - 1270px)/2 + 65px);
    background: #fff;
}
.udi-sectiongrey {
    padding: 60px;
    padding-right: calc((100% - 1270px)/2 + 65px);
    padding-left: calc((100% - 1270px)/2 + 65px);
    background: #C5C5C5;
    text-align: center;
}
*:first-child {
    margin-top: 0;
}

@media only screen and (max-width: 992px) {

    body {
        font-size: 16px;
    }

    h1, h2, h3, h4, p, ul {
        margin-top: 15px;
    }

    /* fonts */
    h1 {
        font-size: 40px;
    }
    h2 {
        font-size: 25px;
    }
    .udi-subtitle {
        font-size: 25px;
    }
    .udi-benefits {
        font-size: 18px;
    }

    /* atf */
    .udi-atfimg {
        height: auto;
    }
    .udi-atf-content {
        position: relative;
        left: 0;
        padding: 50px 15px;
        height: auto;
        background: #fff;
        color: #232323;
    }
    .udi-arrowbot {
        display: none;
    }

    /* metodo uditalia */
    .udi-metodo {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        grid-gap: 50px 0;
    }
    .udi-metodo > div {
        width: 50%;
    }
    .udi-metodon {
        height: 40px;
        width: 40px;
        line-height: 40px;
        font-size: 25px;
    }

    /* metafore home */
    .udi-metasection {
        padding: 50px 15px;
        grid-template-columns: auto;
    }
    .udi-metasection .udi-metacontent + .udi-metatext,
    .udi-metasection .udi-metacontent + .udi-metatext {
        order: -1;
    }

    /* footer */
    .udi-footer {
        grid-template-columns: auto;
    }

    /* sezioni */
    .udi-sectionwhite,
    .udi-sectiongrey {
        padding: 50px 15px;
    }
    .udi-servizitab {
        margin-top: 50px;
        grid-gap: 50px;
    }
    .udi-apparecchiphonak > img {
        width: 150px;
    }

}

:first-child {
    margin-top: 0;
}