/*! HTML5 Boilerplate v5.2.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}



::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

html, body {
    /*height: 100%;*/
    font-size: 16px !important;

}

#wrapper{
    min-height: 100%;
    height: 100%;
}

header{
    background:#002244;
    height:60px;
    margin-bottom: 40px;
}

header .container .row > div {
    color:white;
    text-align: left;
    line-height:50px;
}

/* =========================================
   Headings
   ====================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DeutscheBank', sans-serif;
    color: #002244;
}

h1 {
    font-size: 40px;
    line-height: 50px;
}

h2 {
    font-size: 20px;
    line-height: 30px;
}

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

#fb_login, #linkedin_login {
    margin-top: 20px;
}

.blue {
    color: #002244;
}

.bright-blue {
    color: #0098db;
}

/*
 * db header-text.
 */
.header-text-gruppo-deutsche-bank {
    background: url("../img/Gruppo-M.png") no-repeat;
}

.header-text.db {
    background: url("../img/Clienti-M.png") no-repeat;
}

.header-text.pbb-partnershipbanking {
    background: url("../img/Partnership-M.png") no-repeat;
}

.header-text.dbe {
    background: url("../img/DBEasy-M.png") no-repeat;
}

.header-text.ff {
    background: url("../img/DBFA-M.png") no-repeat;
}

.header-text.db-private-banking {
    background: url("../img/PB-M.png") no-repeat;
}

.header-text.db-small-business-banking {
    background: url("../img/SBB-M.png") no-repeat;
}

.header-text.db-business-banking {
    background: url("../img/BB-M.png") no-repeat;
}

.header-text.db-ff {
    background: url("../img/Gruppo-M.png") no-repeat;
}

.header-text.db-dbe {
    background: url("../img/Gruppo-M.png") no-repeat;
}

.header-text.gruppo-db {
    background: url("../img/Gruppo-M.png") no-repeat;
}

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

    .header-text-gruppo-deutsche-bank {
        background: url("../img/Gruppo.png") no-repeat;
    }

    .header-text.db {
        background: url("../img/Clienti.png") no-repeat;
    }

    .header-text.pbb-partnershipbanking {
        background: url("../img/Partnership.png") no-repeat;
    }

    .header-text.dbe {
        background: url("../img/DBEasy.png") no-repeat;
    }

    .header-text.ff {
        background: url("../img/DBFA.png") no-repeat;
    }

    .header-text.db-private-banking {
        background: url("../img/PB.png") no-repeat;
    }

    .header-text.db-small-business-banking {
        background: url("../img/SBB.png") no-repeat;
    }

    .header-text.db-business-banking {
        background: url("../img/BB.png") no-repeat;
    }

    .header-text.db-ff {
        background: url("../img/Gruppo.png") no-repeat;
    }

    .header-text.db-dbe {
        background: url("../img/Gruppo.png") no-repeat;
    }

    .header-text.gruppo-db {
        background: url("../img/Gruppo.png") no-repeat;
    }

}

.header-text-gruppo-deutsche-bank{
    display: block;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 150px;
    height: 29px;
    background-size: contain;
}

/* loghi */
a .header-text{
    width: 300px;
    height: 62px;
}

.img_editable{
    border: 3px #002244;
    border-style: dotted;
}
.img_editable:hover{
    cursor: crosshair;
}

.editable{
    border: 1px dotted #cccccc;
}

[contenteditable=true]:empty:before{
    color: #cccccc;
    font-style: italic;
    font-weight: bold;
  content: "Testo di esempio";
  display: block; /* For Firefox */
}


.editable:focus{
    /*-moz-appearance: textfield-multiline;
    -webkit-appearance: textarea;*/
    border: 1px red;
    border-style: dotted;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
-moz-box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
  /*  font: medium -moz-fixed;
    font: -webkit-small-control;
    height: 28px;
    overflow: auto;
    padding: 2px;
    resize: both;
    width: 400px;*/
}


.zoom {
    zoom: .6;
    -moz-transform: scale(.6);
    -moz-transform-origin: 0 0;
    -o-transform: scale(.6);
    -o-transform-origin: 0 0;
    -webkit-transform: scale(.6);
    -webkit-transform-origin: 0 0;
    transform: scale(.6); /* Standard Property */
    transform-origin: 0 0;  /* Standard Property */
}

/*
 *  head-img
 */

.head-img {
    color: #ffffff;
    position: relative;
}

#header_image{
    width: 100%;
}

#header_image_text {
    font-size: 20px;
    position: absolute;
    top:20px;
    left:20px;
    color:black;
}

/* template 3 */

#header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background-color: #0098db;
}

#header-overlay:after {
    content: "";
    position: absolute;
    width: 20%;
    left: 100%;
    top: 0;
    bottom: 0;
    background: linear-gradient(to right bottom, #0098db 50%, transparent 50%);
}

/*dbe color*/

#header-overlay.dbe {
    background-color: #e00034;
}

#header-overlay.dbe:after {
    background: linear-gradient(to right bottom, #e00034 50%, transparent 50%);
}

#header-overlay.transparent {
    opacity: 0.5;
}

#header-caption {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(10%, -50%);
}

#header_image_title {
    font-size: 20px;
    line-height: 25px;
    color: #FFFFFF;
}

#header_image_subtitle {
    font-size: 13px;
    color: #FFFFFF;
}

/* template 4 */
.header-box {
    padding: 20px 30px;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.header-box .header-box-title {
    font-size: 25px;
}

#header-box-left {
    background-color: #0098db;
}

#header-box-left.dbe {
    background-color: #e00034;
}

#header-box-right {
    background-color: #002244;
}

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

.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;
}

.btn-to-top {
    position: absolute;
    top: 0;
    right: 0;
}

.footer-socials {
    padding-left: 0;
    list-style-type: none;
}

.footer-socials li {
    display: inline-block;
    margin-right: 20px;
}

.footer-socials .fa {
    font-size: 30px;
}

.fa-youtube-play {
    color: #FF2500;
}

.fa-linkedin-square {
    color: #0077B5;
}

.footer-nav {
    padding-left: 0;
    list-style-type: none;
}

.footer-nav li {
    display: inline-block;
    position: relative;
    font-size: 14px;
    padding-left: 10px;
    padding-right: 10px;
}

.footer-nav li a:link,
.footer-nav li a:active,
.footer-nav li a:visited {
    color: #000000 !important;
}

.footer-nav li:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 29px;
    background-color: #000000;
    transform: translate(0, -50%);
}

.copyright {
    font-size: 12px;
    line-height: 16px;
    color: #000E28;
}


/*
 *  head-titles
 */

#header_subtitle {
    margin-top: 0;
}


.modal-content a {
    color: #666!important;
}

.alert, #thankyou, #invite_friend, .invite-success{
    display: none;
}

.form-group-provincia_evento, .form-group-comune_evento{
    width: 50% !important;
    padding-top: 10px;
    background: #0098db;
    height:100px !important;
    /*background-color:rgba(142, 142, 142, 0.2);*/
}

.dbe  .form-group-provincia_evento, .dbe .form-group-comune_evento{
    background: #e00034;
}

@media (max-width: 768px) {

    .form-group-provincia_evento, .form-group-comune_evento{
        width: 100% !important;
    }

}


/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {

    .head-img {
        
       /* padding: 40px 10px 0 35px;*/
    }

    .head-img > .head-img-txt {
        font-size: 28px;
        line-height: 30px;
    }

    #header_image_title {
        font-size: 28px;
        line-height: 30px;
        margin-bottom: 25px;
    }

    #header_image_subtitle {
        font-size: 16px;
    }



}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {

    .head-img {
        
      /*  padding: 50px 10px 0 45px;*/
    }

    .head-img > .head-img-txt {
        font-size: 36px;
        line-height: 40px;
    }

    #header_image_title {
        font-size: 36px;
        line-height: 40px;
        margin-bottom: 25px;
    }

    #header_image_subtitle {
        font-size: 16px;
    }

}

/*
 *  form
 */

.form-group {
    height: 70px;
}

.form-container{
    min-height:500px; 
    padding:0 !important;
}

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

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

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

/*
 *  typeahead
 */

.twitter-typeahead {
    width: 100%;
}

.typeahead,
.tt-query,
.tt-hint {
    width: 100%;
    height: 43px;
}

.typeahead {
    background-color: #fff;
}

.tt-menu {
    width: 100%;
    padding: 8px;
    background-color: #eaf1f7;;

    max-height: 500px;
    overflow-y: scroll;
}

.tt-suggestion {
    padding: 5px 10px;
    font-size: 18px;
}

.tt-suggestion:hover {
    cursor: pointer;
    color: #fff;
    background-color: #0098db;
}

.tt-suggestion.tt-cursor {
    color: #fff;
    background-color: #0098db;

}

.tt-suggestion p {
    margin: 0;
}


/*
 *  buttons
 */


.btn-custom.pbb {
    background-color: #002244;
    border: 1px solid #002244!important;
}
.btn-custom.pbb:hover {
    background-color: #0098db;
    border: 1px solid #0098db!important;
}

.btn-primary.dbe {
    background-color: #e00034;
    border: 1px solid #e00034!important;
}
.btn-primary.dbe:hover {
    background-color: #ff6666;
    border: 1px solid #ff6666!important;
}

.btn-custom.ff {
    background-color: #0098db;
    border: 1px solid #0098db!important;
}
.btn-custom.ff:hover {
    background-color: #002244;
    border: 1px solid #002244!important;
}

.btn-remove-friend {
    display: block;
    width: 44px;
    height: 44px;
}

.btn-remove-friend img {
    margin-top: 26px;
}

#submit-invite {
    margin-bottom: 30px;
}

/* =============================================================================
   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;
}

/* ==========================================================================
   BlockUI
   ========================================================================== */

.blockUI h1 {
    display: none;
}

/* ==========================================================================
   unsubscribe
   ========================================================================== */

#show-unsubscribe-options {
    cursor: pointer;
}

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

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

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

.logo-text .title {
    color: #0018a8;
}

.logo-text .subtitle {
}

/* ==============================
   Codice fiscale
   ============================= */

#close-modal-btn{
    cursor: pointer;
}

#modalCF .modal-dialog{
    width: 90% !important;
}

#show-cf-tooltip {
    position: absolute;
    top: 0;
    right: 15px;
    content: "i";
    color: #0018a8;
    font-size: 16px;
    line-height: 20px;
    width: 20px;
    height: 20px;
    border: 1px solid #0018a8;
    border-radius: 50%;
    text-align: center;
    cursor: pointer;
}

.cf-tooltip {
    position: absolute;
    top: -80px;
    right: 25px;
    border: 1px solid #cccccc;
    border-radius: 7px;
    padding: 20px;
    font-size: 14px;
    line-height: 19px;
    background-color: #FFFFFF;
}

.cf-tooltip::before {
    content: "";
    display: block;
    position: absolute;
    border-bottom: 1px solid #cccccc;
    width: 20px;
    height: 15px;
    transform: rotate(45deg);
    bottom: -10px;
    right: -8px;
    background-color: #FFFFFF;
}

.cf-tooltip::after {
    content: "";
    display: block;
    position: absolute;
    border-left: 1px solid #cccccc;
    width: 1px;
    height: 20px;
    bottom: -15px;
    right: -1px;
    background-color: #FFFFFF;
}

.cf-tooltip span {
    cursor: pointer;
    color: #E4002B;
}

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

    .cf-tooltip {
        top: -100px;
    }

}


/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers:
 */

.hidden {
    display: none !important;
}

.text-small {
    font-size: 80%;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
