/* GENERAL */
@media all and (max-width: 992px){
    html.oldie {
        background-image: none;
    }
    .show-tablet {
        display: block !important;
    }
    .hide-tablet {
        display: none !important;
    }
    #main {
        margin-bottom: 0;
    }
    #contenuti, #contenuti1, #contenuti2, #main-content {
        float: none;
        width: 100%;
        margin: 0;
        min-height: auto;
    }
    #main-content {
        margin-top: 10px !important;
    }
    .footer_top ul {
        display: block;
        width: 100%;
        float: none;
    }
    .footer_top ul:first-child {
        border-bottom: 1px solid #fff;
    }
}
@media all and (min-width: 768px) and (max-width: 992px){
    html.text-big {
        font-size: 20px;
    }
    .hide-tablet-only {
        display: none !important;
    }
    .header_img_cont > img {
        height: 100%;
    }
    #container {
        width: 700px;
    }
    #mainImg .box-login-mobile.container {
        padding: 0;
    }
    .owl-carousel.owl-mysi {
        height: 382px;
    }
}
@media all and (max-width: 767px){
    html.text-big {
        font-size: 18px;
    }
    .show-mobile {
        display: block !important;
    }
    .section_istituzionale .btn-open-menu,
    .hide-mobile {
        display: none !important;
    }
    .mobile-scrollable {
        overflow: auto;
    }
    #container {
        width: 320px;
    }
    #main-content {
        margin-top: 4px;
    }
    .header_img_cont {
        padding: 0;
        -webkit-background-size: auto;
        -moz-background-size: auto;
        background-size: auto;
        height: 475px;
    }
    .header_txt {
        min-height: 240px;
        padding: 30px;
    }
    .header_txt br {
        display: none;
    }
    .header_txt,
    .header_img_cont > img {
        position: relative;
    }
    .header_img_cont > img {
        margin: 0 auto;
    }
    .header_img_cont .img-full-mobile {
        width: 100%;
        padding-top: 0;
    }
    .header_img_cont .img-full {
        float: right;
    }
    .header_img_cont .img-full.img-left {
        float: left;
    }
    .header_img_cont .img-full.img-center {
        float: none;
        right: auto;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    .owl-carousel.owl-mysi {
        height: 167px;
    }
    .owl-item-img {
        border-right: 0 none;
    }
    .owl-item-txt {
        border-top: 10px solid #f0f0f0;
    }
    .ui-tabs .tabs-panel {
        padding: 10px;
    }
    #mainImg, #contenuti, #contenuti1, #contenuti2, #main-content,
    div#schedaCarta div.snapshot div.col_sx,
    div#schedaCarta div.snapshot div.col_dx,
    .footer_top ul {
        display: block;
        width: 100%;
        float: none !important;
    }
    table.specifCarta th,
    table.specifCarta td {
        display: block;
        width: 100%;
    }
    table.specifCarta th {
        margin: 0;
    }
    table.specifCarta td {
        margin-bottom: 8px;
        border-bottom: 0;
    }
    .video-container {
        padding: 0 !important;
    }
    .video-container .video-box {
        width: 100%;
    }
    .accordion-table.table-cols-5.table-with-arrow .table-header > .table-cell,
    .accordion-table.table-cols-5.table-with-arrow .accordion-header > .table-cell {
        width: 16%;
    }
    .accordion-table.table-cols-5.table-with-arrow .table-header > .table-cell.image,
    .accordion-table.table-cols-5.table-with-arrow .accordion-header > .table-cell.image {
        width: 36%;
    }
    .accordion-header .image.image-lg img {
        width: 100%;
        height: auto;
    }
    .table-dem-border .table-cell {
        display: block;
        width: 100%;
        border: 0 none;
    }
    .table-dem-border .table-row .table-cell {
        border-top: 8px solid #e1e1e1 !important;
    }
    .table-dem-border .table-row:first-child .table-cell:first-child {
        border-top: 0 none !important;
    }
    .table-dem-border .table-row .table-cell:first-child {
        border-right: 0 none !important;
    }
    .table-dem-border .table-row .table-cell,
    .table-dem-border .table-row .table-cell:first-child {
        border-left: 0 none !important;
        border-right: 0 none !important;
    }
     {
        border-left: 0 none;
        border-right: 4px solid #e1e1e1;
    }
    #bottom_footer .footer_top ul {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

/* CARTE */
@media all and (min-width: 768px) and (max-width: 992px){
    .tabs-vertical-nav.ui-tabs .tabs-panel {
        width: 539px;
    }
}
@media all and (max-width: 767px){
    .box_carta {
        margin-bottom: 60px;
    }
    .card-spec .card-spec-row {
        border-top: 0 none;
        padding-top: 8px;
    }
    .card-spec .card-spec-row:first-child {
        padding-top: 0;
    }
    .card-spec .card-spec-row > div:first-child {
        border-bottom: 1px solid #f0f0f0;
    }
    .box_approf_premium_img {
        margin-bottom: 16px;
    }
    .tabs-vertical-nav.ui-tabs .tabs-panel,
    .tabs-vertical-nav .tabs-nav {
        width: 100%;
        margin: 0 !important;
    }
    .tabs-vertical-nav .tabs-nav li {
        float: left;
        width: 50%;
        height: 115px;
        border: 1px solid transparent;
        border-top: 0;
        border-left: 0;
        margin: 0;
        padding: 0 !important;
    }
    .tabs-vertical-nav .tabs-nav li a {
        height: 100%;
    }
    .tabs-vertical-nav .testa {
        border: 0 none;
        margin: 0;
        padding: 0;
    }
    .tabella_ricarica tr {
        display: block;
    }
    .tabella_ricarica tr:first-child {
        padding-top: 0;
    }
    .tabella_ricarica td[colspan]{
        display: block;
        width: 100%;
    }
    .tabella_ricarica .colonna_importo {
        display: none;
    }
    .tabella_ricarica .dove_ricaricare {
        display: block;
        width: 100%;
        padding: 0;
    }
    .tabella_ricarica .dove_ricaricare .btn {
        display: block;
    }
    .tabella_ricarica .valore_importo {
        padding: 46px 0 24px 0;
        width: 90px;
        position: relative;
    }
    .tabella_ricarica .valore_importo:before {
        display: block;
        position: absolute;
        top: 10px;
        left: 0;
        width: 100%;
    }
    .tabella_ricarica .valore_importo:nth-child(2):before {
        content: 'Importo minimo';
    }
    .tabella_ricarica .valore_importo:nth-child(3):before {
        content: 'Importo massimo';
    }
    .tabella_ricarica .valore_importo:nth-child(4):before {
        content: 'Commissione';
    }
    #tabs-andsi .tabella_ricarica .valore_importo {
        padding-top: 60px;
    }
    #tabs-andsi .tabella_ricarica .valore_importo:nth-child(4):before {
        content: 'Commissione massima applicabile';
    }
}

/* HOME */
@media all and (max-width: 992px){
    .fullbanner, .fullbanner img {
        width: 100%;
        height: auto;
    }
    #mainImg {
        float: none;
    }
}
@media all and (min-width: 768px) and (max-width: 992px){
    #mainImg {
        padding: 0 10px;
    }
    .halfbanner {
        width: 338px;
        height: 253px;
    }
}
@media all and (max-width: 767px){
    .fullbanner {
        overflow: hidden;
    }
    .owl-carousel .owl-text,
    .fullbanner .owl-text {
        margin: 0;
        padding: 32px 32px 0;
        height: 240px;
        position: static;
    }
    .fullbanner .owl-text h1 {
        font-size: 1.7rem;
        margin-right: 0;
    }
    .fullbanner .owl-text + img {
        float: right;
        height: auto;
        width: auto;
    }
    .halfbanner_container,
    .halfbanner {
        margin-left: 0;
        margin-right: 0;
    }
    .halfbanner {
        width: 100%;
        height: 240px;
    }
    .halfbanner_container .halfbanner:last-child {
        margin-bottom: 0;
    }
    .halfbanner .etichetta {
        visibility: hidden;
    }
}

/* ISTITUZIONALI */
@media all and (max-width: 992px){
    .section_istituzionale #main-content {
        margin-left: 0 !important;
    }
    .section_istituzionale #menu_ricerca {
        background-color: transparent;
    }
    #contenuti #navIst,
    #contenuti1 #navIst,
    #contenuti2 #navIst {
        display: none;
    }
    #container div#contenuti1 div.lavoraCartasi {
        margin: 0;
        width: 100%;
    }
    #navIst {
        float: none;
        margin: 0;
        padding: 24px 0;
        position: static;
        width: 100%;
    }
    .istSide {
        margin: 0;
        padding: 0 10px;
        position: static;
        width: 100%;
    }
}
@media all and (max-width: 767px){
    .tabella_numeriverdi .sfondo_alternato,
    .tabella_numeriverdi > tbody > tr > td {
        display: block;
    }
    .tabella_numeriverdi > tbody > tr > td {
        padding: 10px !important;
        width: 100%;
    }
}

/* SPALLE */
@media all and (max-width: 992px){
    #pannelloMoveOn,
    #pannelloMoveOnHP {
        float: none;
        width: auto;
        margin: 0 10px;
        padding: 10px 0 46px;
        position: relative;
        clear: both;
    }
    #pannelloMoveOn:before,
    #pannelloMoveOn:after,
    #pannelloMoveOnHP:before,
    #pannelloMoveOnHP:after {
        content: " ";
        display: table;
    }
    #pannelloMoveOn:after,
    #pannelloMoveOnHP:after {
        clear: both;
    }
    #pannelloMoveOn #accesso,
    #pannelloMoveOnHP #accesso,
    #pannelloMoveOn .spalle-container-top,
    #pannelloMoveOnHP .spalle-container-top {
        display: none;
    }
    .spalle-container-top .spalla_basic {
        margin-bottom: 0;
        margin-top: 4px;
    }
    .spalle-container-top {
        z-index: 1 !important;
    }
    .spalla_basic.spalla_gtw {
        min-height: 0 !important;
    }
    .spalla_basic.spalla_social {
        position: absolute;
        bottom: 10px;
        width: 100%;
        margin: 0;
    }
    #pannelloMoveOn .spalla_gtw:not(.spalla_social),
    #pannelloMoveOnHP .spalla_gtw:not(.spalla_social){
        display: none !important;
    }
    .panel-push-login {
        width: 100% !important;
        margin-right: 0 !important;
    }
}
@media all and (min-width: 768px) and (max-width: 992px){
    .spalla_basic {
        float: left;
        width: 338px;
        min-height: 184px;
    }
    .h_min {
        min-height:0;
    }
    .spalle-container {
        margin-left: -2px;
        margin-right: -2px;
    }
    #pannelloMoveOn > .spalla_basic,
    #pannelloMoveOnHP > .spalla_basic,
    .spalle-container .spalla_basic {
        margin-left: 2px;
        margin-right: 2px;
    }
    .spalla_basic.spalla_gtw {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .spalla_social .spalla-txt {
        width: 13%;
    }
    
    .spalla_basic.spalla_social {
        position: static;
    }
    
}
@media all and (max-width: 767px){    
    #pannelloMoveOn .spalla_basic,
    #pannelloMoveOnHP .spalla_basic {
        min-height: auto;
    }
    .spalle-container .spalla_basic {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .spalla-img img {
        width: 100%;
    }
    .spalla-img.img-bottom img {
        position: static;
        padding: 0;
    }
    .spalla_basic > a > img {
        height: 100%;
        width: auto;
        position: relative;
        left: 50%;
        -webkit-transform: translateX(-50%);
        -moz-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
        -o-transform: translateX(-50%);
        transform: translateX(-50%);
    }
    #contenuti + div .spalle-container,
    #contenuti1 + div .spalle-container,
    #contenuti2 + div .spalle-container {
        display: none;
    }
    .spalla_social .spalla-txt {
        width: 33%;
    }
    
    .spalla_basic.spalla_social {
        position: static;
    }
    
}

/* HEADER ORANGE */
@media all and (max-width: 992px){
    .section_istituzionale .first ul {
        display: table;
        float: left;
        margin: 0;
        padding: 0;
    }
    .section_istituzionale .first ul li {
        display: table-cell;
        float: none;
        height: 60px;
        width: 1%;
    }
}
@media all and (min-width: 768px) and (max-width: 992px){
    #logo {
        overflow: hidden;
        position: relative;
        width: 135px;
        z-index: 10;
    }
    #logo img,
    #logo_icbpi img {
        height: 60px;
        width: auto;
        display: block;
    }
    .first {
        padding: 0 102px 0 135px;
        position: relative;
        z-index: 5;
    }
    .first ul {
        display: table;
        float: left;
        margin: 0;
        padding: 0;
    }
    .first ul li {
        display: table-cell;
        float: none;
        height: 60px;
        width: 1%;
    }
    .first ul li a {
        line-height: 60px;
        width: auto;
        font-size: 1.1rem;
    }
    #logo_icbpi {
        height: 60px;
        overflow: hidden;
        position: absolute;
        right: 0;
        top: 0;
    }
    .section_istituzionale .first {
        padding: 0 102px 0 135px;
        position: relative;
        z-index: 5;
    }
    .section_istituzionale .first ul li a {
        line-height: 60px;
        width: auto;
        font-size: 1.1rem;
    }
}
@media all and (max-width: 767px){
    #logo,
    #logo img,
    #logo_icbpi img {
        height: 40px;
    }
    #logo {
        overflow: hidden;
        position: relative;
        width: 100%;
        z-index: 10;
        background-color: #ff6e28;
        padding-left: 5px;
    }
    #logo > a {
        float: left;
        display: block;
    }
    #logo_icbpi {
        position: absolute;
        bottom: 100%;
        right: 0;
        margin-bottom: 1px;
        overflow: hidden;
        height: 40px;
    }
    #logo_icbpi img {
        height: 64px !important;
        margin-top: -1px;
        position: relative;
        top: 50%;
        -webkit-transform: translateY(-50%);
        -moz-transform: translateY(-50%);
        -ms-transform: translateY(-50%);
        -o-transform: translateY(-50%);
        transform: translateY(-50%);
    }
    body:not(.section_istituzionale) .first ul {
        display: none;
    }
    body:not(.section_istituzionale) .first ul,
    body:not(.section_istituzionale) .first ul li,
    .second > ul {
        float: none;
        position: static;
        width: 100%;
        border: 0;
    }
    .btn-mobile-cont {
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    body:not(.section_istituzionale) .first ul li,
    .second ul li {
        position: relative;
        background-color: #fff !important;
        height: auto !important;
        border: 0 none;
    }
    body:not(.section_istituzionale) .first ul li,
    .second ul li,
    .thirdUl li a,
    .third ul li a {
        padding: 0 10px;
    }
    body:not(.section_istituzionale) .first ul li:first-child {
        border-left: 0 none;
        border-right: 0 none;
    }
    body:not(.section_istituzionale) .first ul li a,
    .second ul li a,
    .thirdUl li a,
    .third ul li a {
        position: relative;
        line-height: 1.1;
        font-size: 1rem;
        text-align: left;
        text-indent: 23px;
        background-color: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        color: #646464;
        width: 100%;
        height: auto !important;
        padding: 12px;
    }
    .thirdUl li a,
    .third ul li a {
        background-color: #f0f0f0 !important;
    }
    .second ul li a {
        text-indent: 0;
    }
    .section_privati .first ul li.privati a,
    .section_aziende .first ul li.aziende a,
    .section_esercenti .first ul li.esercenti a,
    .section_banche .first ul li.banche a,
    body:not(.section_istituzionale) .first ul li.active a {
        display: none;
    }
    body:not(.section_istituzionale) .first ul li a:hover,
    .second ul li a:hover,
    .second ul li.att > a,
    .third ul li a:hover,
    .third ul li.active a,
    .third ul li.active a:hover,
    .third ul li.last a:hover {
        color: #FF6E28;
    }
    .section_privati .first ul li.privati a:before,
    .section_aziende .first ul li.aziende a:before,
    .section_esercenti .first ul li.esercenti a:before,
    .section_banche .first ul li.banche a:before,
    body:not(.section_istituzionale) .first ul li.active a:before,
    body:not(.section_istituzionale) .first ul li a:hover:before,
    .second ul li a:hover:before,
    .second > ul > li.att > a:not([href="#"]):before,
    .thirdUl li.active > a:before {
        content: '';
        position: absolute;
        right: 100%;
        top: 0;
        width: 10px;
        height: 100%;
        background-color: #FF6E28;
    }
    body:not(.section_istituzionale) .first {
        position: relative;
        clear: both;
        border-top: 1px solid #e26123;
        z-index: 99;
    }
    body:not(.section_istituzionale) .first .btn {
        width: 50%;
        text-align: center;
        float: left;
        text-decoration: none !important;
        height: 100%;
        padding: 0;
        line-height: 40px;
        height: 40px;
        font-family: "Frutiger Roman";
        font-size: 0.92rem;
        text-transform: uppercase;
    }
    body:not(.section_istituzionale) .first .btn .icon {
        margin-left: 2px;
    }
    .btn-open-menu .icon {
        line-height: inherit;
    }
    .btn-choose-gtw {
        border-right: 1px solid #e26123;
    }
    body:not(.section_istituzionale) .first .btn.bottone_switch > span {
        display: none;
    }
    body:not(.section_istituzionale) .first .btn.bottone_switch > span:first-child {
        display: inline-block;
    }
    body:not(.section_istituzionale) .first .btn.bottone_switch.active > span {
        display: inline-block;
    }
    body:not(.section_istituzionale) .first .btn.bottone_switch.active > span:first-child {
        display: none;
    }
    .section_istituzionale .first {
        position: relative;
        clear: both;
        border-top: 1px solid #e26123;
        z-index: 20;
    }
    .section_istituzionale .first ul {
        float: none;
    }
    .section_istituzionale .first ul li {
        border-right: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.1);
        height: 40px;
        padding: 0;
    }
    .section_istituzionale .first ul li:first-child {
        border-left: 0 none;
    }
    .section_istituzionale .first ul li a {
        line-height: 40px;
        font-size: 0.92rem;
        width: auto;
        text-indent: 0;
    }
    .section_istituzionale .first ul li.active a:before,
    .section_istituzionale .first ul li a:hover:before {
        display: none !important;
    }
}

/* NAVIGATION MENU (GREY) */
@media all and (min-width: 768px) and (max-width: 992px){
    #main {
        position: relative;
    }
    .second {
        height: 35px;
        padding-right: 35px;
        border-bottom: 0 !important;
    }
    .second > ul {
        display: table;
        width: 100%;
        border: 0 !important;
    }
    .second ul li {
        display: table-cell;
        text-align: center
    }
    .second > ul > li > a {
        font-size: 0.88rem;
        padding: 0 9px;
    }
    .third ul li {
        display: block;
        text-align: left;
    }
    #menu_ricerca {
        background-color: #e1e1e1;
        top: 60px;
        width: 35px;
    }
}
@media all and (max-width: 767px){
    #main {
        display: none;
        clear: both;
        margin: 0;
    }
    #main.menuOpen {
        height: auto;
    }
    #main a {
        font-size: 1rem;
    }
    div.second {
        border: 0;
    }
    div.second > ul > li {
        float: none;
        display: block;
    }
    .primoLivelloLink {
        position:relative;
    }
    .primoLivelloLink[href="#"]:after{
        font-family: 'CartaSi-themify' !important;
        content: '\e90d';
        font-size: 1.2rem;
        line-height: 1;
        margin-top: -7px;
        position: absolute;
        top: 50%;
        right: 15px;
    }
    .primoLivello.att .primoLivelloLink[href="#"]:after{
        content: '\e910';
    }
    div.third {
        position: static;
        height: auto;
        margin: 0;
        padding: 0;
    }
    div.third ul {
        float: none;
        width: 100%;
        padding: 0;
    }
}

/* menu_ricerca - nascosto su mobile */
@media all and (max-width: 767px){
    #menu_ricerca {
        display: none;
    }
}

@media print {
    html, body, #container,
    #contenuti, #contenuti1, #contenuti2 {
        height: auto !important;
        min-height: 0 !important;
    }
    html {
        background: none !important;
        font-size: 16px !important;
    }
    #container {
        background-color: #fff;
        box-shadow: none;
    }
    #cl-banner,
    .first, #menu_ricerca, #main,
    #pannelloMoveOnHP,
    #pannelloMoveOn,
    .panel, .footer_top,
    .owl-controls,
    .box-login-mobile,
    .btn-arrow:after,
    .ui-accordion .accordion-header:after,
    .accordion-table.table-cols-5.table-with-arrow .accordion-header > .table-cell.image:after,
    .tabs-vertical-nav .tabs-nav li a:before {
        display: none !important;
    }
    .owl-wrapper-outer {
        height: auto !important;
        overflow: auto;
    }
    .owl-wrapper {
        -webkit-transform: none !important;
        -moz-transform: none !important;
        -ms-transform: none !important;
        -o-transform: none !important;
        transform: none !important;
        left: 0 !important;
    }
    #logo,
    #container, #contenuti, #contenuti1, #contenuti2, #main-content,
    .owl-wrapper,
    .owl-item {
        display: block !important;
        width: 100% !important;
        float: none !important;
    }
    .owl-mysi .owl-item-inner,
    .ui-accordion, .accordion-header, .accordion-content {
        border-style: solid !important;
        border-color: #f0f0f0 !important;
    }
    .owl-mysi .owl-item-inner {
        border: 0 !important;
        border-bottom-width: 10px !important;
    }
    .ui-accordion,
    .accordion-header,
    .accordion-content {
        border-width: 1px !important;
    }
    .ui-accordion {
        border-top-width: 0 !important;
        border-left-width: 0 !important;
        border-right-width: 0 !important;
    }
    .accordion-header {
        border-bottom-width: 0 !important;
    }
    .accordion-content {
        border-top-width: 0 !important;
    }
    .ui-tabs {
        border-left-width: 0 !important;
        border-right-width: 0 !important;
    }
    .tabs-nav li a,
    .tabs-nav li a > * {
        color: #000000 !important;
    }
    .tabs-nav li a.active,
    .tabs-nav li a.active > * {
        color: #ff6e28 !important;
    }
}