@import url("wp-fixes.css");
@import url("animations.css");
@import url("wiki-iframe.css");
@import url("page-loading.css");

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/*! HTML5 Boilerplate v6.0.1 | 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
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * 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
   ========================================================================== */

*:focus {outline:none}

html{
font-size: 16px;
font-family: Arial;
min-height: 100%;
height: 100%;
}
html.noscroll{
overflow: hidden;
}

body{
background-color: rgb(0,255,80);
display: flex;
flex-direction: column;
min-height: 100vh;
}

/* Paragraph size */

h1{
  font-size: 3rem;
  line-height: 1;
}

h2{
  font-size: 2.5rem;
  line-height: 1.1;
}

h3{
  font-size: 1.5rem;
  line-height: 1.1;
}

p{
  font-size: 1rem;
  line-height: 1.4;
}

/* Paragraph style */
h1{
font-weight: normal;
font-family: Georgia;
margin: 0;
}

h2{
  font-weight: normal;
  font-family: Georgia;
  margin: 0;
}

h3{
font-weight: normal;
margin: 0;
}

h3.flag{
background: linear-gradient(rgb(0, 255, 80), white);
margin-bottom: .5rem;
padding: 0 .5rem;
display: inline-block;
}

h3.col.footer{
  display: inline-block;
}

h3 p{
  font-size: inherit;
}

p{
  margin: 0;
}

p.author{
  margin-top: .7em;
}

/* link style */
a{
  color: inherit;
}

h1 a{
text-decoration: inherit;
}

#content h1 a:hover{
color: rgb(0,255,80);
}

h1 a:hover span{
color: transparent;
}

h3 a{
text-decoration: underline;
}

#index h3 a, .row.footer a, .row.header a{
text-decoration: none;
}

.archive a{
  text-decoration: none;
}

.wiki-box a{
  text-decoration: none;
}

/* paragraph helper */
.grey{
color: #cccccc;
}

.serif{
margin-top: 0 !important;
font-family: Georgia;
}

/* input default */

input[type=text]:focus{
    outline:none;
}
input[type=text]::-webkit-input-placeholder {
    color: inherit;
}

/*
group .aside
*/
 .aside ul.menu{
    padding: 0;
    margin: 0;
    list-style-type: none;
}
 .aside ul li{
  margin: 0;
}
 .aside ul.menu li a{
    text-decoration: none;
}
 .aside ul.menu ul.sub-menu{
    padding-left: .5rem;
}
 .aside ul.menu ul.sub-menu li{
    padding: 0;
    list-style-type: none;
}
 .aside ul.menu ul.sub-menu img{
    display: none;
}
 .aside ul.menu ul.sub-menu li a{
    text-decoration: underline;
}
 .aside ul.menu .menu-item-type-custom, .aside ul.menu .menu-item-type-post_type{
    padding: 0;
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0;
}
 .aside .menu-item-has-children{
  margin: 1rem 0;
}

/*
NEW row structure
*/

.row{
  display: flex;
  flex-wrap: wrap;
}

.row.header{
  margin: 0;
  padding: .5rem;
}

.row.footer{
  width: 100%;
  box-sizing: border-box;
  margin: auto auto 0 auto;
  background: linear-gradient(rgb(0, 255, 80), white);

  padding: 2rem 0;
}

.section .row{
  padding: .5rem;
}

/*
NEW col structure
*/

/*global*/

.col img{
    width: 100%;
}

/* content layout */
#content>.col{
  padding: 0;
}

#content>.col.aside{
  padding-right: 2rem;
  box-sizing: border-box;
}

.section .col{
  padding: .5rem;
}

.col{
    padding: .5rem;
}
.col.col-1{ width: 10rem; }
.col.col-2{ flex: 2; }
.col.col-3{ flex: 3; }
.col.col-4{ flex: 4; }
.col.col-5{ flex: 5; }

.col.section .col.col-2, .col.section .col.col-3, .col.section .col.col-4, .col.section .col.col-5, .col.col-full{
  width: 100%;
}

/*
NEW col helper
*/

.col.section{
    border-top: 1px solid black;
    background-color: white;
    padding: .5rem 1.5rem .5rem .5rem;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.col.section.paginable{
  flex-direction: column-reverse;
}

.col.right{
    text-align: right
}

.row.footer .col.content{
  min-width: 100%;
  box-sizing: border-box;
}

.col#title{
  margin-right: auto;
}

/*
NEW row helper
*/

.row.right{
    justify-content: flex-end;
}

.row.bottom{
    align-items: flex-end;
}

/*
NEW special blocks
*/

/* homepage */

#tags ul.post-categories{
  margin: 0;
}

/*
home special effects
*/
h1 a:hover{
    position: relative;
    z-index: 999;
}
h1 a:hover + .hoverCover{
    opacity: 1;
    z-index: 10;
}

.hoverCover{
    opacity: 0;
    top: 0;
    left: 0;
    position: fixed;
    height: 100vh;
    width: 100vw;
    transition: opacity .6s; /* era .2 */
    z-index: -1;
}
.hoverCover img{
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* standard pages */

#content .formatted ul{
  padding-left: 1rem;
  margin: 0;
}

#content .formatted ul li{
  margin-top: .5rem;
}

/* tagList */

.tagList ul{
    margin: 0;
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    margin-top: .5rem;
}
.tagList a{
    text-decoration: underline;
}
.tagList ul li{
    padding-right: 1rem;
}

/* page index */

#index .col{
    background: linear-gradient(rgb(0, 255, 80), white);
    padding-right: 2rem;
}

/*
NEW dsktop helper
*/

.desktop{
  display: none;
}

/*
NEW mobile helper
*/

.mobileFix{
  padding-left: 1rem;
  margin-top: 0;
}

/*
NEW info table style
*/

.infoTable{
    min-width: 15rem;
}

.infoTable .table{
    border: 1px solid rgb(0, 255, 80);
}

.infoTable .tableHeader{
    text-align: center;
    padding: .3rem;
    background-color: rgb(0, 255, 80);
}

.infoTable .tableTitle{
    margin: .5rem .3rem;
    padding: .1rem .3rem;
    background: linear-gradient(rgb(0, 255, 80), white);
}

.infoTable .tableContent{
    margin: .5rem .3rem;
    padding: .1rem .3rem;
}

/*
NEW slideshow block
*/

#wiki-lightbox{
  display: flex;
  flex-wrap: wrap;
  margin: -.5rem;
  align-items: flex-start;
}

.wiki-box{
  flex-basis: calc(33.33% - 1rem);
  margin: .5rem;
}

.wiki-box img{
  height: 100%;
  width: 100%;
  object-fit: contain;
  object-position: center;
}

/* Mobile menu TO BE CHECKED */

#mobile-header .row.bottom{
  margin-bottom: 0px;
}

#mobile-header{
  position: fixed;
  width: 100%;
  background-color: rgb(0, 255, 80);
  z-index: 100;

  /* Force Hardware Acceleration */
  -webkit-transform: translateZ(0);
          transform: translateZ(0);
  will-change: transform;
  -webkit-transition: -webkit-transform .5s;
  transition: -webkit-transform .5s;
  transition: transform .5s;
  transition: transform .5s, -webkit-transform .5s;
}

#mobile-header #title h1{
  font-size: 6vw;
}

#menu-mobile{
  width: 100%;
  margin: 0 0 0 0;
  background: white;
  z-index: 50;
  position: fixed;
}

#menu-mobile-content{
  width: 100%;
  padding: .5rem 1rem .5rem 1rem;
  background: white;
  border-bottom: 1px solid black;
}

#menu-mobile-label{
  cursor: pointer;
  width: 100%;
  padding: .3rem 1rem .3rem 1rem;
  background: white;
  border-bottom: 1px solid black;
}

#menu-mobile-label span{
  font-size: 1rem;
  line-height: 1;
  vertical-align: top;
  display: inline-block;
}

#mobile-header.is-hidden {
  -webkit-transform: translateY(-100%);
      -ms-transform: translateY(-100%);
          transform: translateY(-100%);
}

#mobile-int{
  background-color: rgb(0, 255, 80);
  z-index: 200;
  border-bottom: 1px solid black;
position: relative;
}

#mobile-int .row.header.bottom{
  padding-top: 0;
}

#mobile-int .row.header.right, #mobile-int .row.header.right .col{
  padding-top: 0;
}

/*
=========================================================
*/


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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * 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;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * 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.
   ========================================================================== */

/*
=============================================
BIG PHONES STARTS HERE
============================================
*/

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

  .mobileFix{
    padding-left: 1rem;
    margin-top: 0;
  }

}

/*
=============================================
IPAD STARTS HERE
============================================
*/

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

  .col.section input[type=text]{
      font-size: 4rem;
  }

  h3{
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .col.section{
    flex-direction: row;
  }

  .col.section.paginable{
    flex-direction: row;
  }

  .infoTable{
    max-width: 20rem;
  }

  .wiki-box{
    flex-basis: calc(25% - 1rem);
    margin: .5rem;
  }

  .row.footer .col.content{
    min-width: 0;
  }

  .col.col-3{
    min-width: 350px;
  }

}

/*
=============================================
DESKTOP COLONNA SINGOLA STARTS HERE
============================================
*/

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

  body{
    padding-top: .5rem;
  }

  .col.footer{
    padding: 0 1rem .5rem 0;
  }

  .desktop{
    display: block;
  }

  #mobile-header{
    display: none;
  }

  .row.header.intestazione{
    margin-top: 0;
  }

  .row.header{
    padding: .5rem 1.5rem;
  }
  .row.footer{
    padding: .5rem 1.5rem 2rem 1.5rem;
  }

  .row#content{
    padding-left: 2rem;
  }

  .col.section{
    flex-direction: column;
  }

  .col.section.paginable{
    flex-direction: column-reverse;
  }

  .col.section .col.col-2, .col.section .col.col-3, .col.section .col.col-4, .col.section .col.col-5{
    width: 100%;
  }

  .infoTable{
    max-width: none;
  }

  .wiki-box{
    flex-basis: calc(33.33% - 1rem);
    margin: .5rem;
  }

  #content .formatted .col{
    width: 80%;
    max-width: 800px;
  }

  #iframe{
    display: block;
  }

  .col.col-3{
    min-width: 0;
  }

}

/*
=============================================
DESKTOP COLONNA DOPPIA STARTS HERE
============================================
*/

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

  .col.section{
    flex-direction: row;
  }

  .col.section.paginable{
    flex-direction: row;
  }

  .infoTable{
    max-width: 20rem;
  }

  .wiki-box{
    flex-basis: calc(25% - 1rem);
    margin: .5rem;
  }

  .col.col-3{
    min-width: 350px;
  }

}

/*
=============================================
DESKTOP ENORMI STARTS HERE
============================================
*/

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

html{
font-size: 18px;
}

}

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

html{
font-size: 20px;
}

}

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

  html{
  font-size: 22px;
  }

.wiki-box{
  flex-basis: calc(20% - 1rem);
  margin: .5rem;
}

}

@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 {
        white-space: pre-wrap !important;
    }
    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;
    }

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

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