/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.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,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 1em;
    line-height: 1.4;
    text-align: center;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * 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 images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}
a {
    color: #333333;
    text-decoration: none;
}
/* ==========================================================================
   Browse Happy prompt
   ========================================================================== */

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

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333333;
    font-size: 14px;
}
header {
    position:absolute;
    top: 25px;
    z-index: 40;
}
#wrapper {
    width: 980px;
    margin: auto;
    text-align: left;
}
aside {
    float: left;
    width: 210px;
    padding: 0px 20px 20px 20px;
    text-align: center;
}
nav a {
    display: block;
    height: 40px;
    border-bottom: #cccccc solid 1px;
    line-height: 40px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: bold;
}
nav a:hover {
    color: #004899;
}
nav a:last-child {
    border-bottom: none;
}
section {
    margin-left: 250px;
    margin-bottom: 40px;
}
article {
}
footer {
    clear: both;
}
footer img{
    margin-right: 7px;

}
h1 {
    color: #004899;
    font-size: 18px;
    margin: 15px 0px 15px 0px;
    text-transform: uppercase;
}
h2 {
    color: #333333;
    font-size: 16px;
    margin: 10px 0px 10px 0px;
    text-transform: uppercase;
}
h3 {
    color: #333333;
    font-size: 14px;
    margin: 5px 0px 5px 0px;
    text-transform: uppercase;
}
h4 {
    color: #FFBA00;
    font-size: 14px;
    margin: 5px 0px 5px 0px;
    text-transform: uppercase;
}

.colonna{
    width: 48%;
}

.sx{
    float: left;
}

.dx{
    float:right;
}

.banner_home{
    width: 100%;
    height: 70px;
    line-height: 70px;
    color: #FFFFFF;
    background-color: #004899;
    font-size: 35px;
    text-align: center;
    font-weight: lighter;
    margin-bottom: 10px;
}

.menu_home a{
    width:100%;
    height: 40px;
    line-height: 40px;
    display: block;
    background-color: #ebebe9;
    color: #333;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 2px;
    text-align: center;
    font-size: 16px;
}

.menu_home a:hover{
    background-color: #d8d7d3;
}

.corso_container{
    margin: 20px 0;
    display: block;
}

.corso_container span {
    font-weight: bold;
}

.table_corso{
    width: 520px;
    background-color: #e2e2e2;
    font-size: 12px;
    float:left;
    margin-bottom: 10px;
    height:120px;
}

.table_corso td{
    padding: 5px 5px 0 5px;
    vertical-align: top;
}

.table_corso_titolo{
    text-transform: uppercase;
    font-weight: bold;
    margin: 5px 0;
    display: inline-block;
    white-space: nowrap;
}

.date_corso{
    float:right;
    width: 209px;
    height: 120px;
    background-color: #FFBA00;
    font-size: 12px;
    text-align: center;
}

.date_corso_titolo{
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    display: inline-block;
    width: 100%;
    margin: 10px 0;
}

.data_corso_container{
    display: inline-block;
    height: 54px;
    background-color: white;
}

.data_corso_container div{
    padding: 0 5px;
}

.data_corso_container:hover{
    opacity: 0.8;
}

.data_corso_container span{
    height: 20px;
    width: 100%;
    display: block;
    background-color: #333;
    color:white;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 20px;
}

.form_generico span{
    text-transform: uppercase;
    font-weight: bold;
}

.form_generico input[type="text"]{
    border: 1px solid #ccc;
    background: none;
    border-radius: 0;
    padding: 2px 3px;
    width: 160px;
    margin-right: 5px;
}

.form_generico input[type="radio"]{
    margin-left: 5px;
    vertical-align: sub;
}

.form_generico input[type="submit"]{
    border: none;
    background-color: #FFBA00;
    color:#333;
    padding: 15px 30px;
    float: right;
    margin: 10px 0;
    text-transform: uppercase;
    font-weight: bold;
}

.form_generico input[type="submit"]:hover {
    opacity: 0.8;
}

#loaderBig {
    background-color: rgba(0, 0, 0, 0.8);
    background-image: url("../img/loadingBig.gif");
    background-position: center center;
    background-repeat: no-repeat;
    display: none;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100000;
}

.calendario_container{
    float:left;
    width:160px;
    margin-left:30px;
    margin-top: 20px;
}

.calendario_titolo{
    background-color: #ccc;
    text-transform: uppercase;
    font-weight: bold;
    height:25px;
    line-height: 25px;
    text-align: center;
}

.calendario_container ul{
    list-style-type: none;
    margin: 10px 0 0 0;
    padding: 0;
}

.calendario_container ul li{
    margin: 0;
    padding: 6px;
    text-align: left;
    width: 150px;
}

.calendario_container ul li:hover{
    background-color: #e2e2e2;
}

.calendario_container ul li a{
    width:150px;
    display: block;
    text-transform: uppercase;
}

.calendario_container ul li a img{
    float:left;
    margin-top: 1px;
}

.calendario_container ul li a span.pallino{
    width:10px;
    height: 10px;
    border-radius: 5px;
    float:right;
    display: block;
    margin-top: 5px;
}

.riga_grigia{
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ccc;
}

.legenda td{
    padding: 1px 0;
    font-size: 12px;
    font-style: italic;
}

.legenda span{
    font-weight: bold;
    margin-right: 15px;
}

.legenda span.pallino{
    display: inline-block;
    height: 10px;
    width:10px;
    border-radius: 5px;
}

.evento_container h1{
    padding: 0 20px 10px 20px;
    color: #333;
    text-align: center;
    margin-top: 0;
}

.evento_container img{
    float: left;
    margin: 0 10px 10px 0;
    width: 250px;
}

.galleria_evento{
    margin: 20px 0;
}


.galleria_evento .fancybox:first-child{
    margin-left: 0;
}

.galleria_evento .fancybox{
    width: 140px;
    height: 100px;
    display: block;
    float:left;
    margin-left: 55px;
    background-size: cover;
    background-position: center;
}

.evento_location{
    width: 80%;
    padding: 10px 10%;
    text-align: center;
    font-weight: bold;
    font-style: italic;
    margin: 10px auto;
    background-color:#e2e2e2;
}

.button_registrazione{
    display: block;
    margin: 20px auto 0 auto;
    width:230px;
    height: 40px;
    line-height: 40px;
    color: #333;
    background-color: #FFBA00;
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 16px;
}

.button_registrazione:hover{
    opacity: 0.8;
}

.iscrizione_copertina{
    width:100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

#immagine_copertina{
    width:100%;
    height:380px;
    min-width: 980px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    margin-bottom: 40px;
}

.evento_archivio_container{
    padding: 20px 0;
    border-top:1px solid #ccc;
    display:block;
    cursor: pointer;
}

article .evento_archivio_container:first-child{
    border:none;
}

.evento_archivio_immagine {
    width: 150px;
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    float:left;
    margin-right: 15px;
}

.voce_attiva{
    color: #004899;
}

.immagine_corso{
    margin: 10px 15px 30px 0;
    max-width: 380px;
}

.reset_ul ul{
    margin: 0px;
    padding: 0px;
    list-style-position: inside;
}

.reset_ul ul li{
    margin-bottom: 5px;
}

.testo_giallo{
    padding: 5px 20px;
    background-color:  #FFBA00;
    font-weight: bold;
    margin-bottom: 10px;
}

#popup_overlay{
    position:fixed;
    z-index: 999997;
    top:0;
    bottom:0;
    left:0;
    right:0;
    background-color: rgba(0,0,0,0.4);
}

#popup_overlay:before{
    content: ' ';
    display: inline-block;
    vertical-align: middle;  /* vertical alignment of the inline element */
    height: 100%;
}

#popup_content{
    box-shadow: 0 0 4px 1px #666;
    max-width: 80%;
    margin: auto;
    display: inline-block;
    vertical-align: middle;
    position:relative;
}

#popup_content img{
    width:100%;
}

#popup_close{
    position:absolute;
    top: -18px;
    right: -18px;
    background-color: white;
    width:36px;
    height: 36px;
    border:1px solid #222;
    font-size: 24px;
    text-align: center;
    line-height: 36px;
    border-radius: 36px;
    box-shadow: 0 0 4px 1px #666;
    cursor: pointer;
}


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

/*
 * Image replacement
 */
.sx {
    float: left;
    margin-right: 10px;
}
.dx {
    float: right;
    margin-left: 10px;
}
.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   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,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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