/* ===========================
   NAVBAR - struttura base
   =========================== */

.navbar-fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 15007;
}

nav {
    padding: 10px;
}

nav,
.navbar-trigger {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.navbar {
    position: fixed;
    background-color: #2C6DA2;
}

.navbar a {
    color: #fff;
}

.navbar.active {
    background-color: rgba(0, 0, 0, 0.6);
    transition: all 0.2s;
}

/* ===========================
   BRAND / LOGO
   =========================== */

#logo_cgn_2019 {
    position: fixed;
    top: 5px;
}

.navbar-brand {
    display: block;
    float: left;
    padding: 0px 15px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

.navbar-brand img {
    display: block;
    padding-top: 10px;
    width: 120px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

/* ===========================
   MENU PRINCIPALE
   =========================== */

#menu_cgn_2019 {
    width: 100%;
}

#menu_principale {
    display: inline-block;
    height: 40px;
    line-height: 40px;
    margin-left: 170px;
}

#menu_principale button {
    display: none;
}

#menu_principale a {
    margin-left: 20px;
    color: #ffffff;
}

#menu_principale a:focus {
    margin-left: 20px;
    color: rgba(255, 255, 255, 0.85);
}

/* Pulsante "Associati" */
.btn_menu_associati_ora {
    float: right;
    margin-left: 20px;
    background-color: #FFFFFF;
    color: #767676 !important;
    border-radius: 3px;
    border: 1px solid #767676;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 20px;
    padding-right: 20px;
    line-height: 30px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
}

.btn_menu_associati_ora:hover {
    background-color: #eeeeee;
    border-radius: 3px;
}

/* Hamburger / Close buttons */
.menu-btn-wrapper {
    width: 100%;
}

.menu-btn {
    padding: 10px;
    float: right;
    cursor: pointer;
}

.hamburger-btn,
.close-btn {
    position: inherit;
    cursor: pointer;
    width: 18px;
    top: 25px;
    right: 35px;
    padding-bottom: 5px;
    margin-right: 15px;
    max-width: 22px;
    height: 22px;
    z-index: 99999;
}

.close-btn {
    position: inherit;
    cursor: pointer;
    top: 25px;
    right: 35px;
    padding-bottom: 5px;
    max-width: 22px;
    max-height: 22px;
    z-index: 99999;
}

/* ===========================
   MEGAMENU
   =========================== */

.content {
    clear: both;
    margin-top: 1em;
}

#megamenu {
    position: fixed;
    top: 58px !important;
    height: auto;
    width: 100% !important;
    margin: 0 auto;
    z-index: 15006;
}

#megamenu ul {
    list-style: none !important;
    display: table;
}

#megamenu li {
    list-style: none !important;
}

#megamenu a:link,
#megamenu a:visited {
    color: #333333;
}

#megamenu a:hover {
    color: #f4822a;
}

#menu_professionisti,
#menu_gruppo,
#menu_privati {
    width: 100% !important;
    color: #2C6DA2;
    border-radius: 20px;
}

.titolo_sezione {
    display: none !important;
}

/* ===========================
   BLOCCHI / LAYOUT MENU
   =========================== */

.bgbianco {
    background-color: #ffffff;
}

.separatore_menu {
    display: block;
    clear: both;
}

.prima-riga {
    font-family: roboto;
    margin-top: 10px;
    margin-right: 150px;
    margin-left: 150px;
    background-image: url("../cgn_images/bg-menu.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top;
    background-color: #ffffff;
    border: 1px solid #c7c7c7;
    border-radius: 10px 10px 10px 10px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
    height: auto;
    min-height: 0;
    padding: 0 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.prima-riga-privati {
    height: auto;
    min-height: 360px;
}

.prima-riga-gruppo {
    height: auto;
    min-height: 360px;
}

.seconda-riga {
    margin-right: 150px;
    margin-left: 150px;
    background-color: #ffead4 !important;
    height: 180px;
    padding: 0 20px;
    border: 1px solid #c7c7c7;
    border-radius: 10px 10px 10px 10px;
    margin-top: 10px;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 25px 50px -12px;
}

/* ===========================
   TITOLI E VOCI MENU
   =========================== */

.titolo_gruppo {
    font-family: 'Playfair Display', serif !important;
    font-size: 18px;
    font-weight: 500;
    padding-bottom: 10px;
}

.titolo_gruppo_vuoto {
    min-height: 45px;
}

.vocecgn {
    font-size: 16px;
    line-height: 20px !important;
    margin-bottom: 5px;
}

ul li.vocecgn {
    box-sizing: border-box;
    cursor: pointer;
    display: list-item;
    font-family: Roboto, sans-serif;
    font-size: 16px !important;
    font-weight: 300;
    height: auto;
    line-height: 20px;
    list-style-image: none;
    list-style-position: outside;
    list-style-type: none;
    text-decoration-color: rgb(51, 51, 51);
    text-decoration-line: none;
    text-decoration-style: solid;
    text-decoration-thickness: auto;
    text-size-adjust: 100%;
    width: auto;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#megamenu ul{
    margin-bottom: 0px;
}

.imgmenu {
    width: 100%;
    border: 3px solid #ffffff;
}

/* Colonne colorate */
.blk1 {
    border-left: 5px solid #ffead4;
    padding-left: 15px;
}

.blk2 {
    border-left: 5px solid #ecddff;
    padding-left: 15px;
}

.blk3 {
    border-left: 5px solid #cdfDCb;
    padding-left: 15px;
}

.blk4 {
    border-left: 5px solid #fcffc2;
    padding-left: 15px;
}

.blk5 {
    border-left: 5px solid #ceedff;
    padding-left: 15px;
}

/* ===========================
   Sezioni menù
   =========================== */

.menu-serp {
    border-radius: 6px;
}

.menu-serp p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 80% !important;
    text-align: left !important;
}

.menu-serp .titolo_gruppo {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.menu-serp li a {
    color: #2C6DA2 !important;
    font-weight: 400;
    font-size: 90%;
    text-decoration: none;
}

.menu-serp p {
    font-size: 16px;
    line-height: 23px;
    margin-bottom: 20px;
    color: rgb(59, 59, 59) !important;
    line-height: 27px !important;
}

.menu-serp ul {
    padding-left: 0 !important;
    margin-top: 5px;
}

/* ===========================
   Pulsante chiudi su menù aperto
   =========================== */

.variations {
        position: absolute;
        z-index: 9999;
        right: 20px;
}

.variations li {
    width: 70px;
    margin: 15px 20px;
    display: inline-block;
    vertical-align: top;
}

.close {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    overflow: hidden;
    opacity: 0.5;
    transition: all 0.5s;
    cursor: pointer;
}

.close:hover {
    -ms-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    transform: rotate(180deg);
    opacity: 0.9;
}

.close::before,
.close::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 100%;
    top: 50%;
    left: 0;
    margin-top: -1px;
    background: #000;
}

.close::before {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.close::after {
    -webkit-transform: rotate(-45deg);
    -moz-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    -o-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/* Sfocatura sfondo */
.sfocatura {
    -webkit-filter: blur(5px);
    -moz-filter: blur(5px);
    -o-filter: blur(5px);
    -ms-filter: blur(5px);
    filter: blur(5px);
}

/* Spacer usato nel menu */
.spacer10 {
    height: 10px;
    width: 100%;
    font-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
    display: block;
}

/* ===========================
   RESPONSIVE - max 767px (mobile)
   =========================== */

@media screen and (max-width: 767px) {

    #logo_cgn_2019 {
        position: fixed;
        top: 10px;
    }

    .menu-btn img {
        position: relative;
        top: 0px;
        right: 5px;
    }

    #contenitore-del-menu {
        margin-top: 20px;
    }

    #menu_principale button.btn:focus {
        border: 0px;
        box-shadow: none;
    }

    .variations {
        display: inline-block;
        margin-top: 0px !important;
        padding-bottom: 20px;
    }

    .close {
        display: none;
    }

    .variations li {
        display: inline-block;
    }

    #megamenu {
        position: fixed;
        top: 56px;
        width: 100% !important;
        background-color: transparent;
        border-bottom: 0px;
        z-index: 9000;
        height: auto;
        max-height: calc(100% - 56px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn_menu_associati_ora {
        position: absolute;
        top: 10px;
        right: 115px;
        border-radius: 3px;
        padding: 5px 10px;
        line-height: 30px;
        font-size: 0.8em;
    }

    #menu_principale .menu-btn {
        display: block;
        position: absolute;
        right: 25px;
        top: 10px;
        font-size: 0.8em;
    }

    .titolo_sezione {
        display: none;
    }

    .titolo_gruppo {
        font-family: 'Playfair Display', serif !important;
        font-size: 16px;
        font-weight: 500;
        min-height: 30px;
        padding-bottom: 10px;
        border-bottom: 0 !important;
    }

    #megamenu li {
        font-size: 18px !important;
        line-height: 26px !important;
    }

    .prima-riga {
        margin-top: 10px;
        margin-right: 10px;
        margin-left: 10px;
        height: auto;
        min-height: 0;
        padding: 0 20px;
    }

    .seconda-riga {
        margin-right: 10px;
        margin-left: 10px;
        background-color: #ffead4 !important;
        height: 450px;
        padding: 0 20px;
        margin-top: 10px;
    }

    .prima-riga-privati {
        height: auto;
        min-height: 0;
    }

    .prima-riga-gruppo {
        height: auto;
        min-height: 0;
    }

    .vocecgn {
        font-size: 10px !important;
        line-height: 20px !important;
    }

    .titolo_gruppo i {
        display: flex;
    }
}

/* ===========================
   RESPONSIVE - Tablet / Desktop medio (800px - 1220px)
   =========================== */

@media screen and (min-width: 768px) and (max-width: 1220px) {
    #megamenu {
        width: 100% !important;
    }

    .prima-riga,
    .seconda-riga {
        margin-left: 10px;
        margin-right: 20px;
        height: auto;
        min-height: 0;
    }

    .titolo_gruppo {
        font-size: 16px;
        min-height: 30px;
        border-bottom: 0;
    }

    .menu-serp p {
        font-size: 11px !important;
    }

    li.vocecgn a {
        font-size: 11px !important;
        line-height: 13px !important;
    }

    ul li.vocecgn {
        font-size: 11px !important;
        line-height: 13px !important;
    }

    .close {
        width: 30px;
        height: 30px;
    }
}

/* ===========================
   Regole per sistemare la spaziatura tra le voci del menù in range 768px - 950px (per evitare che si sovrappongano al logo)
   =========================== */

@media screen and (min-width: 768px) and (max-width: 950px) {
    #menu_principale {
        margin-left: 155px;
    }

    #menu_principale a {
        margin-left: 10px;
        font-size: 0.82em;
    }

    #menu_principale a:focus {
        margin-left: 10px;
    }

    .btn_menu_associati_ora {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 0.82em;
        margin-left: 10px;
    }
}