/* =========================================
   Utils
   ====================================== */

.wrapper {
    width: 100%;
}

/* =========================================
   Headings
   ====================================== */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6{
    font-family: "DeutscheBank", sans-serif;
}

h1,
.h1 {
    font-size: 44px;
    line-height: 57px;
    color: var(--headings-color);
    margin: 0 0 34px;
}

h2,
.h2 {
    font-size: 26px;
    line-height: 31px;
    color: var(--headings-color);
    font-weight: 400;
}

/* =========================================
   Typography
   ====================================== */

p {
    font-size: 16px;
    line-height: normal;
}

/* ==============================
   Buttons
   ============================= */

.blue-box,
.white-box {
    padding: 14px 24px;
    display: flex;
    font-size: 16px;
    line-height: 21px;
    font-weight: 500;
    text-decoration: none;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.blue-box {
    background-color: var(--btn-primary-bg-color);
    color: #ffffff;
    border: 2px solid var(--btn-primary-bg-color);
}

.white-box {
    background-color: #ffffff;
    color: var(--btn-primary-bg-color);
    border: 2px solid var(--btn-primary-bg-color);
}


.btn-icon-arrow::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("../img/arrow_white.svg");
    background-repeat: no-repeat;
    background-position: center -1px;
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.link-icon-arrow::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("../img/arrow_blue.svg");
    background-repeat: no-repeat;
    background-position: center -5px;
    display: inline-block;
    margin-left: 5px;
    vertical-align: middle;
}

/* Pulsanti primari in stile DBEasy: rosso brand */
.btn-primary,
.btn-primary:focus {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #ff6666;
    border: 1px solid #ff6666;
    color: #ffffff;
}

.btn-primary.active,
.btn-primary:active {
    background-color: #ff6666;
    border: 1px solid #ff6666;
    color: #ffffff;
}

/* ==============================
   Thankyou
   ============================= */

#thankyou {
    min-height: auto;
}

.alert,
#thankyou {
    display: none;
}

#thankyou p {
    font-size: 26px;
    line-height: 36px;
}

/* =========================================
   Hero
   ====================================== */

/* The promo copy is baked into the image, so it is an <img> with alt text.
   Below 768px the mobile image (650x400) is used, never upscaled past its
   native width. */
.hero {
    margin-bottom: 28px;
}

/* The PAC common CSS pads every a:link by 1px, which would inset the image. */
.hero .hero-link {
    display: block;
    padding: 0;
}

/* The PAC common CSS gives every a:hover/focus/active a background, which
   would paint a box over the image. The focus outline stays. */
.hero-link:hover,
.hero-link:focus,
.hero-link:active {
    background-color: transparent;
}

.hero img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* In the desktop image (1920x450) the copy sits in a centered 1140px box
   (x 390-1530), the width of the Bootstrap lg container's content. The image
   is scaled so that box is --hero-scale times the container's content, with
   its left edge on the container's; the rest bleeds left and right, clipped
   by the viewport. At 1 the box spans the whole container. */
@media screen and (min-width: 768px) {

    :root {
        --hero-scale: 1;
    }

    /* Past 1920px the image runs out: extend its edge columns (beige on the
       left, grey on the right, the red bar from y 401 of 450). */
    .hero {
        overflow: hidden;
        background:
            linear-gradient(to bottom, transparent 89.11%, #e5002b 89.11%),
            linear-gradient(to bottom, #cec8bc 66.7%, #c0b6aa 88.9%) left / 50% 100% no-repeat,
            #cccbc7;
    }

    /* 1920 / 1140 and 390 / 1140, relative to the container's content. */
    .hero img {
        width: calc(168.4211% * var(--hero-scale));
        max-width: none;
        margin-left: calc(-34.2105% * var(--hero-scale));
        margin-right: 0;
    }

}

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

    .hero {
        margin-bottom: 38px;
    }

}

/* On large screens the full-width banner is too big: shrink it, keeping the
   copy's left edge on the container's. Smaller screens keep it full width so
   the baked-in copy stays readable. */
@media screen and (min-width: 1200px) {

    :root {
        --hero-scale: 0.8;
    }

}

/* =========================================
   Form intro
   ====================================== */

.form-intro {
    margin-bottom: 0;
}

/* =========================================
   Promo banner
   ====================================== */

.promo-banner {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* The mobile image is only 350px wide: center it instead of left-aligning. */
.promo-banner img {
    margin-left: auto;
    margin-right: auto;
}

/* Banner with a CTA baked into the image: a transparent link is laid over the
   drawn button. The wrapper shrinks to the image so the percentages below
   (measured on the image's red button) track it at every width. */
.cta-banner {
    position: relative;
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.cta-banner-link {
    position: absolute;
    left: 18%;
    top: 81.17%;
    width: 63.71%;
    height: 8.83%;
}

/* The PAC common CSS gives every a:hover/focus/active a background, which
   would paint a box over the drawn button. The focus outline stays. */
.cta-banner-link:hover,
.cta-banner-link:focus,
.cta-banner-link:active {
    background-color: transparent;
}

@media screen and (min-width: 768px) {
    /* The desktop image is 1216px wide, always wider than the column. */
    .cta-banner {
        max-width: none;
    }

    .cta-banner-link {
        left: 69.9%;
        top: 58%;
        width: 21.46%;
        height: 20.67%;
    }
}

/* =========================================
   Lists
   ====================================== */

.form-intro ul {
    list-style-type: none;
    padding-left: 46px;
}

.form-intro ul > li {
    position: relative;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 21px;
}

.form-intro ul > li:before {
    content: "";
    position: absolute;
    width: 30px;
    height: 12px;
    border-left: 1px solid #0550D1;
    border-bottom: 1px solid #0550D1;
    transform: rotate(-45deg);
    left: -45px;
    top: 0;
}

ol {
    padding-left: 15px;
}

/* =========================================
   Cards
   ====================================== */

.cards-container {
    margin-bottom: 56px;
}

.card.margin-bottom-mobile {
    margin-bottom: 40px;
}

.card-content {
    padding: 24px 0;
}

.card-content.bg-light-blue {
    background-color: #6EC7E0;
    color: #16184E;
}

.card-content.bg-blue {
    background-color: #16184E;
    color: #ffffff;
}

.card-title {
    font-size: 26px;
    line-height: 31px;
    font-weight: 500;
}

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

    .cards-container {
        margin-bottom: 80px;
    }

    .card.margin-bottom-mobile {
        margin-bottom: 0;
    }

}

/* =========================================
    Table
   ====================================== */

.entra-in-contatto-link-container {
    padding: 24px;
    background-color: #E7F4FE;
}

/* =========================================
    Table
   ====================================== */

.table-container {
    border-top: 1px solid #8A8A8A;
    border-bottom: 1px solid #8A8A8A;
    margin-bottom: 51px;
}

.table-container h2 {
    margin-top: 0;
}

.table-container .table {
    margin-top: 55px;
}

.table-container .collapsed h2 {
    margin-bottom: 0;
}


.table > tbody > tr > td {
    font-size: 12px;
    line-height: 18px;
    padding: 23px 10px;
    color: #16184E;
    vertical-align: middle;
    width: 50%;
    border-color: #C2C6CD;
}

.table > tbody > tr:first-of-type td {
    border-top: 0;
}

.table > tbody > tr > td:first-of-type {
    background-color: #F0F0F0;
}

.table > tbody > tr > td:nth-of-type(2) {
    font-weight: 500;
}

.table > tbody > tr > td:nth-of-type(2) strong {
    font-weight: 700;
}

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

    .table-container {
        margin-bottom: 67px;
    }

    .table > tbody > tr > td {
        font-size: 16px;
        line-height: 28px;
        padding: 24px 16px;
    }

}


/* =========================================
   Form
   ====================================== */

.form-container {
    margin-bottom: 56px;
}

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

    .form-container {
        margin-bottom: 71px;
    }

}

.form-group {
    height: 70px;
}

.form-group-fullwidth {
    clear: both;
}

.form-control {
    height: 46px !important;
}

.errors-container{
    color:red;
    font-size: 11px;
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: 100%;
}

#branch_choice{
    display: none;
}

#map {
    width: 100%;
    height: 400px;
    margin-top: 20px;
}

#branch_container .radio-inline {
    display: block;
    width: 100%;
}

/* =============================================================================
   Tooltip
   ========================================================================== */

/* ICON */

label[data-toggle="tooltip"]:after {
    margin-left: 5px;
    font-family: 'FontAwesome';
    content: "\f05a";
    font-size: 18px;
    color: #0098db;
}

.dbe label[data-toggle="tooltip"]:after {
    color: #e00034;
}

label[data-toggle="tooltip"]:hover:after {
    color: #002244;
}

.tooltip {
    left: 0 !important;
}

/* ==========================================================================
   404
   ========================================================================== */

/* ==============================
   Logo
   ============================= */

.logo-text .title,
.logo-text .subtitle {
    font-family: 'DeutscheBank', sans-serif;
    font-size: 21px;
}

.logo-text .title {
    color: #0550D1;
}

/* ==============================
   Mask
   ============================= */

.mask {
    background-color: #EAF1F7;
}

.mask h2 {
    color: #00A3E0;
}

/* ==============================
   Collapse
   ============================= */

.collapse-row {
    position: relative;
    padding: 18px 0;
}

.collapse-row h2 {
    padding-right: 42px;
}

.collapse-btn {
    position: absolute;
    transform: translate(-50%, 0);
    width: 32px;
    height: 32px;
    background-color: #0550D1;
    right: -15px;
    top: 18px;
}

.collapse-btn:before {
    display: block;
    content: "";
    position: absolute;
    top: 55%;
    left: 50%;
    border-left: 1px solid #ffffff;
    border-bottom: 1px solid #ffffff;
    width: 10px;
    height: 10px;
    transform: translate(-50%, -50%) rotate(135deg);
}

.collapsed .collapse-btn:before {
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 45%;
}

.collapse-plus {
    display: none;
}

.collapsed .collapse-plus {
    display: block;
}

.collapsed .collapse-minus {
    display: none;
}

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

    .collapse-row {
        padding-bottom: 18px;
        padding-right: 0;
    }

}

/* ==============================
   Pre Footer
   ============================= */

.pre-footer {
    margin-bottom: 60px;
}

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

    .pre-footer {
        margin-bottom: 100px;
    }

}


/* ==============================
   Footer (disclaimer)
   ============================= */

.footer h1 {
    color: #0E1B34;
    font-family: "DeutscheBank", sans-serif;
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 24px;
}

.footer {
    padding-bottom: 0;
}

.footer ul {
    padding-left: 0;
}

.footer p,
.footer li {
    font-size: 12px;
    line-height: normal;
}

.footer ul li::before {
    display: none;
}

.footer li sup {
    top: -5px;
}

.footer li {
    margin-bottom: 15px;
}

.footer .strong {
    font-weight: bold;
}

.footer .big {
    font-size: 14px;
    line-height: normal;
}

.footer-grey {
    background-color: #F3F4F5;
}

.footer-grey .container {
    position: relative;
}

