@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url("fonts/Inter-Regular.woff2") format("woff2"), url("fonts/Inter-Regular.woff") format("woff");
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 400;
    src: url("fonts/Inter-Italic.woff2") format("woff2"), url("fonts/Inter-Italic.woff") format("woff");
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    src: url("fonts/Inter-Bold.woff2") format("woff2"), url("fonts/Inter-Bold.woff") format("woff");
}

@font-face {
    font-family: 'Inter';
    font-style: italic;
    font-weight: 700;
    src: url("fonts/Inter-BoldItalic.woff2") format("woff2"), url("fonts/Inter-BoldItalic.woff") format("woff");
}

body {
    height: auto;
    overflow: auto;
    margin: 0px;
    padding: 0px;
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    line-height: 26px;
    font-weight: 400;
    color: #444;
}

* {
    outline: none;
    box-sizing: border-box;
}

a {
    color: #eb0254;
    text-decoration: none;
}

::placeholder {
    /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #CCC;
    opacity: 1;
    /* Firefox */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Inter', serif;
    font-weight: 700;
    color: #eb0254;
    margin: 0px;
}

div#container {
    margin-top: 48px;
}

#header {
    padding: 10px 20px;
    position: fixed;
    top: 0px;
    z-index: 100;
    width: 100%;
    background-color: #FFF;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.logo-title {
    font-size: 24px;
    display: inline-block;
    color: #222;
    line-height: 24px;
}

.logo-title a {
    color: #000;
    text-decoration: none;
}

.testata {
    color: #FFF;
    background: #f5f4f9;
    width: 100%;
    display: flex;
    align-items: stretch;
}

.testata .payoff {
    color: #000;
    font-size: 22px;
    width: 50vw;
    line-height: 34px;
    text-align: center;
    padding: 40px;

}

.testata::after {
    content: '';
    min-width: 30vw;
    min-height: 300px;
    display: inline-block;
    background-image: url('/images/testata-3.jpg');
    background-position: 65%;
    background-size: cover;
    flex: 1;
    align-items: stretch;
}

.testata .payoff h2 {
    margin-bottom: 20px;
    line-height: 44px;
}

.testata .payoff .telnum {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: #eb0053;
    margin: 10px 0px;
    text-decoration: none;
}

.testata .payoff .note {
    font-size: 14px;
    color: #666;
    display: block;
}

.bt-call {
    background-color: #eb0053;
    color: #FFF;
    text-decoration: none;
    padding: 10px 40px;
    border-radius: 35px;
    margin: 10px 0px;
    display: inline-block;
}

#container section h3 {
    font-size: 26px;
    line-height: 37px;
    text-align: center;
}

#container section {
    max-width: 900px;
    margin: 60px auto;
}

#container section picture {
    margin-top: 20px;
}

.full-width {
    width: 100%;
    max-width: 100% !important;
    margin: 0;
}

.flex {
    display: flex;
}

.full-width.flex>* {
    width: 50%;
    align-content: center;
}

.rounded-banner {
    background-color: #eb0052;
    width: 50%;
    height: 400px;
    display: flex;
    overflow: hidden;
    padding: 50px;
}

.rounded-banner-left-container>.rounded-banner {
    border-radius: 0 200px 200px 0;
    margin-right: 20px;
    justify-content: right;
    padding-right: 50px;
}

.rounded-banner-right-container>.rounded-banner {
    border-radius: 200px 0 0 200px;
    margin-left: 20px;
    justify-content: left;
    padding-left: 50px;
}

.rounded-banner-side-text {
    max-width: calc(900px / 2);
    padding: 20px;
}

.rounded-banner-side-text ul,
.rounded-banner-side-text ol {
    padding-inline-start: 20px;
}

.rounded-banner-left-container .rounded-banner-side-text-container {
    justify-items: left;
}

.rounded-banner-right-container .rounded-banner-side-text-container {
    justify-items: right;
}

.rounded-banner img {
    height: 300px;
    width: 300px;
    border-radius: 50%;
    object-fit: cover;
}

.rounded-banner-side-text h3 {
    text-align: left !important;
}

.image-container {
    margin: 0 auto 20px;
    width: 100%;
    /* Adjust as needed */
    max-width: 700px;
    aspect-ratio: 16 / 9;
    /* Defines the 16:9 aspect ratio */
    overflow: hidden;
    display: flex;
    /* Ensures child elements can be positioned */
    justify-content: center;
    /* Horizontally centers the image */
    align-items: center;
    /* Vertically centers the image */
}

.image-container img {
    width: auto;
    height: 100%;
    object-fit: cover;
    /* Ensures the image fills the container while preserving aspect ratio */
    object-position: top;
}

.fullscreen {
    background-color: #E2E8F0;
    color: #1A202C;
    padding: 80px 20px;
    width: 100%;
    max-width: 100% !important;
}

.fullscreen .payoff {
    color: #000;
    font-size: 22px;
    line-height: 34px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.fullscreen .payoff h2 {
    margin-bottom: 20px;
    line-height: 44px;
    /* color: rgb(237, 48, 99); */
    color: #1A202C;
}

.fullscreen .payoff .telnum {
    display: block;
    font-size: 40px;
    font-weight: 700;
    /* color: rgb(237, 48, 99); */
    color: #1A202C;
    margin: 10px 0px;
}

.fullscreen .payoff .note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    display: block;
}

.fullscreen .bt-call {
    /* background-color: #FFF; */
    /* color: #000; */
    background-color: #8795A1;
    color: #fff;
    font-weight: 700;
    padding: 20px 40px;
}

.fullscreen .bt-call:hover {
    background-color: #6B7886;
}

#footer {
    background-color: #222;
    color: #999;
    padding: 10px;
    text-align: center;
}

#sidebar {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
}

#header nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#header nav li {
    display: inline;
    margin: 0px 0px 0px 30px;
}

#header nav {
    float: right;
}

#header nav a {
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
}

#header nav a:hover {
    color: #222;
    text-decoration: underline;
}

.p-agb section {
    padding-top: 50px;
}

.regions-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 30px;
}
.region-contact {
    border: 1px solid rgb(197, 197, 197);
    background-color: rgb(248, 248, 248);
    border-radius: 15px;
    padding: 15px;
    gap: 15px;
    display: flex;
    align-content: space-between;
    flex-wrap: wrap;
}

.region-image {
    height: 70px;    
    align-self: center;
}

.region-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
}

.region-text {
    object-fit: fill;
    flex: 1;
    text-align: left;
    gap: 10px;
    display: flex
;
    flex-direction: column;
    justify-content: space-between;
}
a.region-cta {
    width: 100%;
    background-color: rgb(216, 68, 71);
    color: #fff;
    border-radius: 5px;
    padding: 7px;
    text-align: center;
    display: block;
}


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

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

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

@media only screen and (max-width: 768px) {
    .testata {
        flex-direction: column;
        background-color: rgb(251, 244, 238);
    }

    .testata .payoff {
        width: 100%;
        padding: 80px 40px 40px;
    }

    .testata::after {
        content: '';
        width: 100%;
        height: 300px;
        display: block;
        background: linear-gradient(to bottom, rgb(251, 244, 238) 0%, rgba(0, 0, 0, 0) 10%), url('/images/testata-3.jpg');
        /* background-image: url('/images/testata-3.jpg'); */
        background-position: 69%;
        background-size: cover;
    }

    section {
        padding: 20px 40px;
        margin: 20px auto;
    }

    section.full-width {
        padding: 0 !important;
    }

    .full-width.flex {
        flex-direction: column-reverse;
    }

    .full-width.flex.rounded-banner-left-container {
        flex-direction: column;
    }

    .full-width.flex>* {
        width: 80%;
        margin-top: 20px;
    }

    .rounded-banner-right-container>.rounded-banner {
        margin-left: 20%;
    }

    .rounded-banner-left-container .rounded-banner-side-text-container,
    .rounded-banner-right-container .rounded-banner-side-text-container {
        width: 100%;
        justify-items: center;
    }
}

@media only screen and (max-width: 600px) {
    #header {
        padding: 0px;
        border-bottom: 1px solid #c80047;
    }

    h1.logo-title {
        padding: 10px;
        text-align: center;
        margin: 0 auto;
        display: block;
    }

    #header nav {
        margin: 0px;
        float: none;
        overflow-x: auto;
        width: 100%;
    }

    picture img {
        width: 100%;
    }

    section {
        padding: 0px 40px;
    }

    ul {
        width: auto;
    }

    #header nav li {
        margin: 0px 15px;
    }

    #header nav ul {
        background-color: #ea0053;
        padding: 3px 0px;
    }

    #header nav a {
        color: #FFF;
    }

    /* .testata {
        height: 75vh;
        background-position: -260px bottom;
        background-size: 170%;
        background-color: #fbf4ee;
    }
    .testata .payoff {
        width: 100vw;
        font-size: 14px;
        line-height: 20px;
        top: 36px;
        left: 0px;
        padding: 20px;
    } */
    .testata .payoff h2 {
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .testata .payoff .note {
        font-size: 12px;
        line-height: 18px;
    }

    #container section h3 {
        font-size: 20px;
        line-height: 30px;
    }

    section p,
    section ul li,
    section ol li {
        font-size: 16px;
        line-height: 25px;
    }

    .fullscreen {
        padding: 50px 20px;
    }

    .fullscreen .payoff {
        font-size: 16px;
        line-height: 24px;
    }

    .fullscreen .payoff h2 {
        line-height: 36px;
        margin-bottom: 10px;
    }

    .fullscreen .payoff .note {
        font-size: 12px;
        line-height: 18px;
    }

    footer#footer {
        font-size: 12px;
        line-height: 18px;
    }

    h1.title1 {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 10px;
    }

    .p-agb .descrizione {
        font-size: 14px;
        line-height: 22px;
    }

    .p-agb ol {
        padding: 0px 0px 0px 15px;
    }

    .p-agb h3 {
        font-size: 18px !important;
        line-height: 26px !important;
        margin-bottom: 10px;
    }
}