.page-template-custom-page header {
    background-color: #f2f5f6;
}

.custom-page__title {
    margin-top: 5rem;
}

.custom-page__title h1 {
    font-size: 6rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: none;
    text-transform: uppercase;
    text-shadow: 2px 2px 7px rgba(6, 9, 19, 0.6);
}

.custom-page__title h2 {
    text-align: left;
    font-weight: bold;
    color: white;
    font-size: 2.2rem;
    margin: 0 0 5rem 0;
    max-width: 740px;
    text-shadow: 2px 2px 7px rgba(6, 9, 19, 0.6);
}

.custom-page__description .copy {
    font-size: 2.2rem;
    text-align: center;
    text-shadow: 0px 0px 10px black;
}

.custom-page__description .copy p {
    color: white;
}

.custom-page__description img {
    transform: skewY(5deg) translateY(-50%);
    z-index: -1;
    mix-blend-mode: overlay;
    opacity: .2;
    position: absolute;
    top: 40%;
    left: 0px;
    height: 100%;
    width: 100%;
}

.custom-page__list {
    margin: 4rem 0;
}

.custom-page__list a {
    text-decoration: none;
}

.custom-page__list .card-body {
    background: #e8edf0;
    padding: 2rem;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.custom-page__list .card-body h3 {
    text-align: left;
    color: #343a40;
    font-size: 2.2rem;
    font-weight: bold;
}

.custom-page__list .card-footer {
    background: linear-gradient(0deg, var(--green-color), var(--green-color) 90%, var(--green-color) 45%) #fff;
    position: relative;
    overflow: hidden;
}

.custom-page__list .card-footer:before {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, var(--green-color) 0%, var(--cyan-color) 100%);
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    transform: skewX(20deg) scale(1.2) translateX(-3rem) rotate(-15deg);
    transform-origin: top left;
    box-shadow: 0px 10px 15px var(--cyan-color);
    border-radius: 50px;

    transition: .8s cubic-bezier(0.5, 0.3, 0.25, 1);
}

.custom-page__list a:hover .card-footer:before {
    transform: skewX(0deg) scale(1.2) translateX(-3rem);
    width: 100%;
}

.custom-page__list .card-footer small {
    position: relative;
    z-index: 10;
}

.custom-page__list .card {
    border: none;
}

.custom-page__list .card-footer {
    color: white;
    font-size: 2rem;
    text-decoration: none!important;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top: 0;
}

/* === Service page === */
.skewed-bg {
    position: absolute;
    top: 40%;
    left: 0px;
    height: 100%;
    width: 100%;
    z-index: 0;
    z-index: -1;
    transform: skewY(3deg) translateY(-50%);
    box-shadow: inset 0px 0px 200px 200px rgba(7, 27, 31, 0.4);
}


.page .custom-page-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.custom-page-link {
    color: white!important;
    text-decoration: none!important;
}

.custom-page-item__title {
    text-align: left;
    font-size: 2.5rem;
    font-weight: bold;
    position: relative;
    z-index: 10;
}

.custom-page-item__copy {
    z-index: 10;
}

.custom-page-item__copy {
    color: white!important;
    font-size: 2rem;
    margin-top: 2rem;
}

.custom-page-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(120deg, rgba(140,192,75,0.7) 0%, rgba(59,176,201,0.65) 100%);
    width: 0%;
    pointer-events: none;
    transform: skewX(20deg) scale(2) translate(-2rem, 0px);
    opacity: 0;
    transition: .8s cubic-bezier(0.45, 0.15, 0.03, 1.00);
}

.custom-page-item:hover:before {
    width: 100%;
    opacity: 1;
    transform: skewX(0deg) translate(0rem, 0px);
}

/* Carousel */
.page-template-custom-page .carousel {
    margin-top: -20rem;
}


/* === Contact page === */
.pagina-contatti .top {
    color: white;
}

.pagina-contatti hgroup h1 {
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 0px 5px 10px rgba(4, 28, 29, 0.7);
}

.pagina-contatti hgroup h2 {
    font-size: 2.6rem;
    color: white;
    margin-top: 1rem;
    text-shadow: 0px 2px 3px rgb(4, 28, 29);
}

.pagina-contatti div.wpforms-container-full .wpforms-form input.wpforms-field-medium, div.wpforms-container-full .wpforms-form select.wpforms-field-medium, div.wpforms-container-full .wpforms-form .wpforms-field-row.wpforms-field-medium {
    max-width: 100%;
}

.internal__title #breadcrumbs a {
    color: white;
}

.main-contact-box {
    margin-top: -18rem;
    background: white;
    box-shadow: 0px 4px 20px rgba(31, 48, 68, 0.07);
    margin-bottom: 8rem;
    border-radius: 15px;
}

.main-contact-box .wp-block-column:first-child {
    padding: 4rem
}

.main-contact-box .wp-block-cover {
    height: 100%;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;

    border-top-left-radius: 500px;
    border-bottom-left-radius: 500px;
}

.main-contact-box .wp-block-column {
    margin-bottom: 0;
}

.main-contact-box h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 4rem;
}

.main-contact-box .wpforms-field-container input,
.main-contact-box .wpforms-field-container textarea {
    background: #E8EDF0!important;
    border: none!important;
    border-radius: 5px!important;
}

.main-contact-box .wpforms-submit-container button {
    background: var(--green-color)!important;
    color: white!important;
    border: none!important;
    width: 135px;
    border-radius: 5px;
}

.main-contact-box + h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 4rem;
}

.map-section h4 {
    text-transform: lowercase;
    font-variant: small-caps;
    font-size: 2.5rem;
    color: var(--cyan-color);
    margin-bottom: 1rem;
}

/* Internal pages children */
.page-child .top {
    position: relative;
    overflow: hidden;
}

.page-child .top:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(112deg, var(--cyan-color), var(--green-color)); */
    background:linear-gradient(112deg, #1d5864, #466025);
    left: 0;
    opacity: .65;
}

.page-child .top h1 {
    font-size: 5rem;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    text-shadow: 0px 2px 5px rgba(4, 28, 29, 0.7);
}

.page-child .top h2 {
    font-size: 2.6rem;
    color: white;
    margin-top: 1rem;
    text-shadow: 0px 2px 3px rgb(4, 28, 29);
}

.after-top {
    padding: 1.2rem;
    font-size: 2rem;
    border-bottom: 1px solid rgba(211, 211, 211, 0.4);
}

.after-top #breadcrumbs {
    margin: 0;
    font-size: 1.6rem;
}

.after-top #breadcrumbs a {
    color: var(--green-color);
}

.page-child .internal__description {
    font-size: 2rem;
    margin: 3rem 0;
}

.page-child .internal__description h2,
.page-child .internal__description h3 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 3rem;
    margin-top: 6rem;
}

.page-child .internal__description h2:first-child,
.page-child .internal__description h3:first-child {
    margin-top: 0rem;
}

.related-posts {
    border-top: 1px solid rgba(211, 211, 211, 0.4);
    margin-bottom: 6rem;
}

.page-child .related-posts h4 {
    font-size: 2.8rem;
    font-weight: bold;
    margin-top: 6rem;
    margin-bottom: 6rem;
}

.partners {
    margin-top: 0;
}

.counter {
    border-bottom: 0;
}

.related-posts {
    border-top: 0;
    margin-bottom: 0;
    border-top: 1px solid rgba(211, 211, 211, 0.4);
}

/* About page
-------------------------------------------------------------- */
.page-template-about .about-title {
    font-size: 5rem;
    text-transform: uppercase;
    font-weight: bold;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-template-about .middle {
    margin-top: 6rem;
}

.page-template-about .middle p {
    font-size: 2.2rem;
}

.page-template-about .wide-1 {
    background: linear-gradient(112deg, rgba(59, 175, 201, 1), rgba(17, 52, 60, 1));
    color: white;
    padding: 6rem 0;
    font-size: 2.2rem;
    text-align: center;
    margin-top: 6rem;
}


.page-template-about .wide-1 h3 {
    text-align: center;
    font-size: 5rem;
    font-weight: bold;
}

.page-template-about .wide-1 ul {
    list-style: none;
    display: flex;
    margin-top: 6rem;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0;
}

.page-template-about .wide-1 ul li {
    margin-bottom: 5rem;
    width: 33%;
}

.page-template-about .wide-1 ul li strong {
    display: block;
}

.page-template-about .wide-2 {
    padding: 6rem 0;
    font-size: 2.2rem;
    text-align: center;
    overflow: hidden;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
}

.page-template-about .wide-2:before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../img/xview-parallax.jpg');
    background-size: cover;
    background-position: center center;
    z-index: -1;
    top: 0;
    left: 0;
    opacity: .4;
}

.page-template-about .wide-2 .heading h3 {
    font-size: 3rem;
    font-weight: bold;
}

.page-template-about .wide-2 ul {
    list-style: none;
    background: rgba(255, 255, 255, 0.7);
    margin: 4rem auto;
    padding: 2rem;
    max-width: 700px;
}

.page-template-about .partners {
    margin-top: 0;
}



/* Gutemberg page
-------------------------------------------------------------- */
.page-template-gutemberg article .thumbnail-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.page-template-gutemberg article .thumbnail-container img {
    position: absolute;
    top: -50%;
}

.page-template-gutemberg h1 {
    font-size: 5rem;
}

.page-template-gutemberg h2 {
    font-size: 3rem;
}

.gutemberg-title {
    text-transform: uppercase;
    font-weight: bold;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.page-template-gutemberg .cta-block {
    text-align: center;
    margin: 3.5rem;
}

.page-template-gutemberg figure {
    margin: 0;
    width: 100%;
}

.page-template-gutemberg figure img {
    width: 100%;
}

.page-template-gutemberg h3 {
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.page-template-gutemberg .cta-block a {
    display: inline-block;
    background: var(--green-color);
    padding: 1rem;
    color: white;
    border-radius: 5px;
    font-size: 2rem;
    text-decoration: none;
}

.page-template-gutemberg .wp-block-column iframe {
    max-width: 100%;
}

/* Other Pages */
.page-template-default article h2 {
    font-size: 3rem;
    margin: 4rem 0 2rem 0;
    font-weight: bold;
    text-transform: uppercase;
}

.page-template-default article h3 {
    font-weight: bold;
    font-size: 3rem;
    margin: 4rem 0 2rem 0;
}

.page-template-default article p {
    margin: 2rem 0;
    font-size: 2rem;
}

.page-template-default article ol,
.page-template-default article ul {
    font-size: 2rem;
}

.page-template-default .main-content {
    padding-bottom: 6rem;
}

.privacy-policy .wp-post-image {
    display: block;
    margin: auto;
    max-width: 150px;
}

@media (max-width: 992px) {
    .main-contact-box .wp-block-cover {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}


@media (max-width: 767px) {
    .custom-page__list {
        margin: 5rem 1rem 0rem 1rem!important;
    }

    .custom-page__title h1 {
        font-size: 4rem;
    }

    .custom-page__title h2 {
        font-size: 2.2rem;
        font-weight: lighter;
    }

    .page-child .top h1 {
        font-size: 3rem;
    }

    .page-child .top h2 {
        font-size: 2rem;
    }

    .page-template-about .middle {
        margin-top: 0;
    }

    .page-template-about .wide-1 ul {
        flex-direction: column;
    }

    .page-template-about .wide-1 ul li {
        width: 100%;
    }

    /* Contact page */
    .main-contact-box .wp-block-column:first-child {
        padding-bottom: 0;
    }

    .main-contact-box .wp-block-cover {
        height: 100%;
        border-top-right-radius: 0px;
        border-top-left-radius: 500px;
        border-bottom-left-radius: 15px;
        box-shadow: inset 0px 0px 20px rgba(0, 0, 0, 0.5);
    }

    .main-contact-box {
        margin-top: -8rem;
    }

    /* Gutemberg */
    .page-template-gutemberg h1 {
        font-size: 4rem;
    }

    .mini-divider {
        margin: 2rem 0;
    }
}