* {
    margin: 0;
    padding: 0;
    font-size: 16px;
}

body {
    height: 100%;
    background-image: url('/images/bgframe.png');
}

#footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45px;
    background-color: #303030;
    z-index: 100;
}

#fbody div {
    width: 200px;
    text-align: center;
}

#fbody span {
    background-color: #046687;
    color: #FFF;
    border-radius: 5px;
    padding: 2px 5px 2px 5px;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 2px;
    margin-left: 10px;    
    margin-right: 10px;
    transition: background-color 200ms ease;
}

#fbody span:hover {
    background-color: #0356c1;
    cursor: pointer;
}

#fbody .country {
    font-size: 14px;
}

.country a:link, .country a:visited {
    color: #FFF;
    font-size: 14px;
    text-decoration: none;
}

#container_success {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(22, 22, 22, 0.8);
}

#container_success .btn {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.placeholder {
    width: 100%;
    margin: auto;
    height: 10px;
}

#admin_area {
    position: absolute;
    width: 50px;
    height: 50px;
    left: 15px;
    top: 10px;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

#admin_area:hover {
    cursor: pointer;
    background-color: rgba(93, 155, 235, 0.4);
}

#admin_area img {
    width: 70%;
    height: 70%;
    margin-left: 6px;
}

.path_nav {
    position: relative;
    display: block;
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    font-size: 16px;
    padding: 15px 0 0 15px;
}

.path_nav span a:link {
    color: #53A5ED;
}

.path_nav span a:visited {
    color: #C363FF;
}

/* ====== MOBILE ====== */

@media (max-width: 950px) { 
    
    #header {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: 200px;
        text-align: center;
        line-height: 200px;
        background-color: #222;
        background-repeat: no-repeat;
        background-position: center; 
    }
    
    #header img {
        margin: 25px auto 0 auto;
    }
    
    #bar {
        display: none;
        visibility: hidden;
    }
    
    #head_bar {
        position: absolute;
        z-index: 1000;
        top: -10%;
        height: 10%;
        left: 0;
        right: 0;
        background-color: rgba(22, 22, 22, 1);
    }
    
    #fullbar {
        position: fixed;
        z-index: 200;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: rgba(22, 22, 22, 1);
        display: none;
        visibility: hidden;
    }
    
    #close {
        position: absolute;
        height: 80%;
        right: 5%;
        top: 25%;
    }
    
    .section_close {
        position: relative;
        width: 100%;
        height: 8%;
    }
    
    .section {
        position: relative;
        width: 100%;
        height: 23%;
        color: #FFF;
        cursor: pointer;
    }
    
    .section .image {
        float: left;
        height: 100%;
        width: 30%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .image img {
        width: 45%;
        height: 45%;
    }
    
    .section .text {
        float: left;
        height: 100%;
        width: 70%;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 23px;
    }
    
    #hamburger {
        position: absolute;
        width: 32px;
        height: 50px;
        right: 15px;
        top: 10px;
        cursor: pointer;
        z-index: 300;
    }
    
    .line {
        width: 100%;
        background-color: #FFF;
        height: 5px;
        margin-top: 7px;
    }
    
    .lato {
        display: none;
        visibility: hidden;
    }
    
    #fbody {
        display: block;
        width: 100%;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #content {
        display: block;
        width: 90%;
        margin: 50px auto 50px auto;
    }
    
    #sidebar {
        display: block;
        width: 95%;
        margin: 50px auto 100px auto;
    }
    
    #container_success > div {
        width: 90%;
        background-color: #FFF;
        color: #222;
        border: 3px solid #4265F4;
        padding: 5px;
    }
    
    #container_success .msg {
        width: 100%;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 17px;
        text-align: center;
        margin-bottom: 20px;
        padding-top: 10px;
    }
    
    #container_success input[type="submit"] {
        width: 80px;
        height: 30px;
        color: #FFF;
        border: 0;
        background-color: #09C;
        font-size: 15px;
        text-align: center;
        cursor: pointer;
        transition: background-color 200ms linear;
    }
    
    #container_success .bottone {
        width: 80px;
        margin: 0 auto 15px auto;
    }
        
    #container_success input[type="submit"]:hover {
        background-color: #1f67ba;
    }
    
    /* articolo anteprima */
    
    .post_preview {
        position: relative;
        width: 95%;
        margin: 0 auto 50px auto;
        display: block;
        background-color: #FFF;
    }
    
    .post_confirm_preview {
        display: block;
        width: 100%;
        padding: 10px 0 20px 0;
        text-align: center;
    }
    
    .post_info_preview {
        display: block;
        width: 100%;
        background-color: #222;
        text-align: center;
    }
    
    .post_body_preview {
        display: block;
        width: 100%;
        background-color: #FFF;
        padding-bottom: 35px;
    }
    
    .post_contents_preview {
        position: relative;
        display: block;
        width: 90%;
        margin: 0 auto 20px auto;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    }
    
    .post_body_preview h1 {
        text-align: center;
        color: #6B6C6E;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 26px;
        padding: 25px 0 25px 0;
    }
    
    .post_info_preview > img {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 15px auto 15px auto;
        border-radius: 50%;
    }
    
    .post_info_preview p {
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        padding: 0 0 15px 0;
    }
    
    .post_info_preview a:link {
        color: #53A5ED;
        font-size: 20px;
    }
    
    .post_info_preview a:visited {
        color: #C363FF;
        font-size: 20px;
    }
    
    .div_half_preview {
        position: relative;
        width: 100%;
        color: #FFF;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        background-color: #222;
    }
    
    .readmore_preview {
        position: relative;
        width: 90%;
        margin: auto;
    }
    
    .greenbutton {
        position: relative;
        height: 30px;
        width: 95%;
        color: #FFF;
        line-height: 30px;
        border: 0px;
        border-radius: 6px;
        font-size: 15px;
        text-align: center;
        font-weight: bold;
        background-color: #22d825;
        cursor: pointer;
        transition: background-color 200ms linear;
    } 
    
    .greenbutton:hover {
        background-color: #009b02;
    }
    
    .welcome {
        position: relative;
        margin: 30px auto 30px auto;
        width: 95%;
        text-align: center;
        height: 50px;
    }
    
    .welcome .star {
        position: relative;   
        height: 50px;
        float: left;
        width: 15%;
    }
    
    .welcome .welcome_text {
        position: relative;    
        float: left;
        width: 70%;
        height: 50px;
        line-height: 50px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 22px;
    }
    
    .welcome img {
        width: 40px;
        height: 40px;
        margin-top: 5px;
    }
    .section_info {
        height: 40px;
        line-height: 40px;
        width: 95%;
        text-align: center;
        border-top: 2px solid #C8C8C8;
        border-bottom: 2px solid #C8C8C8;
        margin: 60px auto 30px auto;
        color: #222;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0.4);
    }
    
    .intro_text {
        position: relative;
        width: 90%;
        margin: 0 auto 30px auto;
        font-size: 20px;
    }
    
    .content_attivita {
        position: relative;
        width: 100%;
        margin: 30px 0 30px 0;
    }
    
    .activities_home {
        position: relative;
        display: block;
        margin: auto;
        width: 95%;
        height: 50px;
    }
    
    .sepbar {
        position: relative;
        margin: 20px auto 20px auto;
        width: 95%;
        height: 2px;
        background-color: #DDD;
    }
    
    .activities_home .icona_home {
        position: relative;
        width: 50%;
        height: 50px;
        float: left;
        text-align: center;
    }
    
    .data_azione_home {
        position: relative;
        height: 50px;
        line-height: 50px;
        text-align: center;
        width: 50%;
        float: right;
        padding: 10px 0 10px 0;
    }
    
    .icona_home img {
        width: 40px;
        height: 40px;
        margin-top: 5px;
    }
    
    p.what {
        position: relative;
        text-align: center;
        padding-top: 20px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 16px;
    }
    
    p.what a:link {
        color: #53A5ED;
    }
    
    p.what a:visited {
        color: #C363FF;
    }
    
    #back_to_top {
        position: fixed;
        display: none;
        z-index: 99999;
        width: 50px;
        height: 50px;
        top: 20px;
        right: 45%;
    }
    
    #back_to_top img {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
    
    .admin_contents_about {
        position: relative;
        display: block;
        width: 95%;
        margin: 10px auto 30px auto;
        text-align: center;
        height: 80px;
    }
    
    .admin_contents_about .image {
        width: 100%;
        height: 80px;
        line-height: 80px;
        text-align: center;
    }
    
    .admin_contents_about .image img {
        width: 70px;
        height: 70px;
        border: 2px solid #fff;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
    }
    
    .admin_contents_about .desc {
        width: 80%;
        margin: auto;
        text-align: left !important;
    }
    
    #container_error {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #container_error div {
        display: block;
        width: 50%;
        text-align: center;
    }
    
    #container_error div img {
        width: 150px;
        height: 150px;
    }
    
    #container_error div p {
        margin-top: 20px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 16px;
    }
    
}

/* ====== DESKTOP ====== */

@media screen and (min-width: 950px) { 
    
    #header {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        z-index: 100;
        height: 250px;
        text-align: center;
        line-height: 250px;
        background-color: #222;
        background-repeat: no-repeat;
        background-position: center; 
    }
    
    #header img {
        margin: 50px auto 0 auto;
    }
    
    #fullbar {
        display: none;
        visibility: hidden;
    }
    
    #bar {
        position: relative;
        top: 0;
        left: 0;
        right: 0;
        height: 50px;
        line-height: 50px;
    }

    #navbar {
        list-style-type: none;
        margin: 0;
        padding: 0;
        z-index: 50;
        overflow: hidden;
        background-color: #333;
    }
    
    #navbar li {
        float: left;
        width: 25%;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 16px;
    }
    
    #navbar li a {
        display: block;
        color: white;
        text-align: center;
        height: 50px;
        line-height: 50px;
        text-decoration: none;
    }
    
    #navbar li a:hover:not(.active) {
        background-color: #222;
    }
    
    #navbar li a.active {
        background-color: #53A5ED;
        color: #FFF;
    }
    
    #hamburger {
        display: none;
        visibility: hidden;
    }
    
    #content {
        float: left;
        width: 70%;
        margin-top: 30px;
        margin-bottom: 50px;
    }
    
    #sidebar {
        float: left;
        width: 30%;
        margin-top: 30px;
        margin-bottom: 100px;
    }
    
    .lato {
        float: left;
        width: 25%;
        height: 45px;
        text-align: center;
    }
    
    .lato img {
        margin-top: 7px;
    }
    
    #fbody {
        float: left;
        width: 50%;
        color: #09C;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #fbody span {
        color: #FFF;
    }
    
    #container_success > div {
        height: 120px;
        line-height: 90px;
        width: 700px;
        margin: auto;
        background-color: #FFF;
        color: #222;
        border: 3px solid #4265F4;
    }
    
    #container_success .msg {
        width: 100%;
        height: 30px;
        line-height: 30px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 17px;
        text-align: center;
        padding-top: 10px;
    }
    
    #container_success .bottone {
        width: 80px;
        height: 30px;
        margin: 0 auto 10px auto;
    }
    
    #container_success input[type="submit"] {
        width: 80px;
        height: 30px;
        color: #FFF;
        border: 0;
        background-color: #09C;
        font-size: 15px;
        text-align: center;
        cursor: pointer;
        transition: background-color 200ms linear;
    }
        
    #container_success input[type="submit"]:hover {
        background-color: #1f67ba;
    }
    
    /* articolo anteprima */
    
    .post_preview {
        position: relative;
        width: 90%;
        margin: 0 auto 50px auto;
        display: block;
        background-color: #FFF;
    }
    
    .post_confirm_preview {
        display: block;
        width: 100%;
        padding: 10px 0 20px 0;
        text-align: center;
    }
    
    .post_info_preview {
        display: block;
        width: 100%;
        background-color: #222;
        text-align: center;
    }
    
    .post_body_preview {
        display: block;
        width: 100%;
        background-color: #FFF;
        padding-bottom: 35px;
    }
    
    .post_contents_preview {
        position: relative;
        display: block;
        width: 90%;
        margin: auto;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
    }
    
    .post_body_preview h1 {
        text-align: center;
        color: #6B6C6E;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 26px;
        padding: 25px 10px 25px 10px;
    }
    
    .post_info_preview > img {
        position: relative;
        width: 100px;
        height: 100px;
        margin: 15px auto 15px auto;
        border-radius: 50%;
    }
    
    .post_info_preview p {
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        padding: 0 0 15px 0;
    }
    
    .post_info_preview a:link {
        color: #53A5ED;
        font-size: 20px;
    }
    
    .post_info_preview a:visited {
        color: #C363FF;
        font-size: 20px;
    }
    
    .div_half_preview {
        position: relative;
        width: 100%;
        color: #FFF;
        height: 30px;
        line-height: 30px;
        text-align: center;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        background-color: #222;
    }
    
    .readmore_preview {
        position: relative;
        width: 50%;
        margin: 20px auto 0 auto;
    }
    
    .greenbutton {
        position: relative;
        height: 30px;
        width: 95%;
        color: #FFF;
        line-height: 30px;
        border: 0px;
        border-radius: 6px;
        font-size: 15px;
        text-align: center;
        font-weight: bold;
        background-color: #22d825;
        cursor: pointer;
        transition: background-color 200ms linear;
    } 
    
    .greenbutton:hover {
        background-color: #009b02;
    }
    
    .welcome {
        position: relative;
        margin: 30px auto 30px auto;
        width: 70%;
        text-align: center;
        height: 60px;
    }
    
    .welcome .star {
        position: relative;    
        float: left;
        width: 20%;
    }
    
    .welcome .welcome_text {
        position: relative;    
        float: left;
        width: 60%;
        height: 60px;
        line-height: 60px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 26px;
    }
    
    .welcome img {
        width: 50px;
        height: 50px;
    }
    
    .intro_text {
        position: relative;
        width: 90%;
        margin: 0 auto 30px auto;
        font-size: 20px;
    }
    
    .section_info {
        height: 40px;
        line-height: 40px;
        width: 90%;
        text-align: center;
        border-top: 2px solid #C8C8C8;
        border-bottom: 2px solid #C8C8C8;
        margin: 60px auto 30px auto;
        color: #222;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 24px;
        background-color: rgba(255, 255, 255, 0.4);
    }
    
    .fix_margin {
        margin: 0 auto 40px auto;
    }
    
    .content_attivita {
        position: relative;
        width: 100%;
        margin: 30px 0 70px 0;
    }
    
    .activities_home {
        position: relative;
        display: block;
        margin: auto;
        width: 90%;
        height: 50px;
    }
    
    .sepbar {
        position: relative;
        margin: 20px auto 20px auto;
        width: 90%;
        height: 2px;
        background-color: #DDD;
    }
    
    .activities_home .icona_home {
        position: relative;
        width: 50%;
        height: 50px;
        float: left;
        text-align: center;
    }
    
    .data_azione_home {
        position: relative;
        height: 50px;
        line-height: 50px;
        text-align: center;
        width: 50%;
        float: right;
        padding: 10px 0 10px 0;
    }
    
    .icona_home img {
        width: 40px;
        height: 40px;
        margin-top: 5px;
    }
    
    p.what {
        position: relative;
        text-align: center;
        padding-top: 20px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 16px;
    }
    
    p.what a:link {
        color: #53A5ED;
        font-size: 17px;
    }
    
    p.what a:visited {
        color: #C363FF;
        font-size: 17px;
    }
    
    .error_text {
        position: relative;
        width: 100%;
        color: rgb(239, 72, 54);
        text-align: center;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 16px;
    }
    
    #back_to_top {
        position: fixed;
        display: none;
        z-index: 99999;
        width: 50px;
        height: 50px;
        bottom: 70px;
        right: 30px;
    }
    
    #back_to_top img {
        width: 100%;
        height: 100%;
        cursor: pointer;
    }
    
    .head_about {
        padding: 5px;
        text-align: center;
        background: #222;
        color: #DAA520;
        font-size: 35px;
    }
    
    .head_about p{
        color: #FFF;
    }
    
    .content{
        text-align: center;
        padding: 5px;
        margin-left: 10px;
        margin-right: 10px;
    }
    
    .admin_contents_about {
        position: relative;
        display: block;
        width: 80%;
        margin: 10px auto 30px auto;
        text-align: center;
        height: 80px;
    }
    
    .admin_contents_about .image {
        float: left;
        width: 35%;
        height: 80px;
        line-height: 80px;
        text-align: center;
    }
    
    .admin_contents_about .image img {
        width: 70px;
        height: 70px;
        border: 2px solid #fff;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
    }
    
    .admin_contents_about .desc {
        float: left;
        width: 65%;
        height: 80px;
        display: flex;
        align-items: center;
        text-align: left !important;
    }
    
    .admin_contents_about .desc span {
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 18px;
    }
    
    #container_error {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #container_error div {
        display: block;
        width: 50%;
        text-align: center;
    }
    
    #container_error div img {
        width: 250px;
        height: 250px;
    }
    
    #container_error div p {
        margin-top: 20px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 18px;
    }

}

/* ====== STAMPA ====== */

@media print {
    
    #header, 
    #bar, 
    #admin_area, 
    .readmore_preview, 
    #footer, 
    #back_to_top,
    #sidebar, 
    .star, 
    .post_info_preview img, 
    .icona_home, 
    #fullbar, 
    .admin_contents_about .image {
        display: none !important;
        visibility: hidden !important;
    }
    
    .welcome .welcome_text {
        position: relative;
        width: 100%;
        height: 60px;
        line-height: 60px;
        font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
        font-size: 26px;
        text-align: center;
    }
    
    .user_grid img {
        display: none;
        visibility: hidden;
    }
    
    .data_azione_home {
        position: relative;
        height: 40px;
        line-height: 40px;
        text-align: center;
        width: 100%;
    }
    
}