/*
 Fontface - Generated by Font Squirrel (http://www.fontsquirrel.com) on May 12, 2011 06:54:43 AM America/New_York
 **************************************************************************************************************************/
@font-face {
  font-family: "GoudyBookletter1911";
  src: url("fonts/goudy_bookletter_1911-webfont.eot");
  src: url("fonts/goudy_bookletter_1911-webfont.eot?#iefix")
      format("embedded-opentype"),
    url("fonts/goudy_bookletter_1911-webfont.woff") format("woff"),
    url("fonts/goudy_bookletter_1911-webfont.ttf") format("truetype"),
    url("fonts/goudy_bookletter_1911-webfont.svg#GoudyBookletter1911Regular")
      format("svg");
  font-weight: normal;
  font-style: normal;
}

/*
 IcoMoon
 **************************************************************************************************************************/
@font-face {
  font-family: "icomoon";
  src: url("fonts/icomoon.eot?o69zjo");
  src: url("fonts/icomoon.eot?o69zjo#iefix") format("embedded-opentype"),
    url("fonts/icomoon.ttf?o69zjo") format("truetype"),
    url("fonts/icomoon.woff?o69zjo") format("woff"),
    url("fonts/icomoon.svg?o69zjo#icomoon") format("svg");
  font-weight: normal;
  font-style: normal;
}

[class^="icon-"],
[class*=" icon-"] {
  /* use !important to prevent issues with browser extensions that change fonts */
  font-family: "icomoon" !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.icon-mail:before {
  content: "\e900";
}
.icon-facebook:before {
  content: "\e901";
}
.icon-twitter:before {
  content: "\e902";
}
.icon-whatsapp:before {
  content: "\e903";
}

/*
 Layout
 **************************************************************************************************************************/
html {
  background: url("images/sfondo.gif") fixed;
}

body {
  margin: 0 auto;
  font-family: Constantia, Georgia, "Century Schoolbook L", serif;
  line-height: 1.7;
}

/* Larger than desktop */
@media (min-width: 1000px) {
  body {
    margin: 2rem auto;
  }
}

.container {
  padding: 0;
}

/* Larger than mobile */
@media (min-width: 400px) {
  .container {
    width: 100%;
  }
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
  .container {
    width: 100%;
  }
}

h1,
h2 {
  /* Headline Serif */
  font-family: GoudyBookletter1911, Perpetua, Baskerville, "Big Caslon",
    "Palatino Linotype", Palatino, "URW Palladio L", "Nimbus Roman No9 L", serif;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

nav ul {
  list-style: none;
  padding: 0;
  position: static;
}

nav li {
  display: inline;
}

nav li a {
  display: inline-block;
}

header {
  background: rgb(40, 40, 35);
  background: rgba(17, 17, 17, 0.8);
  overflow: hidden;
  padding: 9px 2rem 24px;
}

/* Larger than desktop */
@media (min-width: 1000px) {
  header {
    padding-bottom: 54px;
  }
}

#main {
  background: rgb(250, 250, 246);
  background: rgba(255, 255, 252, 0.85);
  overflow: hidden;
  padding: 4rem 2rem 2rem;
  /*width: 35em;*/
}

/* Larger than phablet (also point when grid becomes active) */
@media (min-width: 550px) {
  #main {
    border: 2rem solid rgb(40, 40, 35);
    border: 2rem solid rgba(17, 17, 17, 0.8);
    border-top-width: 0;
    border-bottom-width: 0;
  }
}

#content {
  z-index: 1000;
}

@media (min-width: 550px) {
  aside {
    text-align: right;
  }
}

figure {
  margin-bottom: 1rem;
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

figcaption {
  font-size: small;
}

footer {
  background: rgb(40, 40, 35);
  background: rgba(17, 17, 17, 0.8);
  overflow: hidden;
  padding: 18px 2rem;
}

/*
 Header
 **************************************************************************************************************************/
header h1 {
  color: #f5f5ed;
  font-size: 30px;
  font-weight: normal;
  line-height: 30px;
  text-align: center;
  padding-top: 24px;
  margin: 0 0 1.5rem 0;
}

header nav {
  text-align: center;
  line-height: 2;
}

/* Larger than desktop */
@media (min-width: 1000px) {
  header h1 {
    float: left;
  }

  header nav {
    float: right;
    margin-top: 30px;
  }
}

header nav ul {
  margin-bottom: 0;
}

header nav li {
  margin-left: 20px;
  padding-bottom: 5px;
}

header nav li.current {
  border-bottom: 2px solid #d0d0c9;
}

header nav li a,
header nav li a:visited {
  color: #cdcdc6;
  text-decoration: none;
}

header nav li a:hover,
header nav li.current a {
  color: #f5f5ed;
  text-decoration: none;
}

/*
 Content
 **************************************************************************************************************************/
a,
a:visited {
  color: #c44;
  text-decoration: none;
}

a:hover {
  color: #e55;
  text-decoration: none;
}

p + p {
  text-indent: 1.5em;
  margin-top: -2.5rem;
}

ul {
  list-style: disc outside;
}

ol {
  list-style: decimal outside;
}

li {
  margin-bottom: 0;
}

h3 {
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0;
}

.u-text-center {
  text-align: center;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Styles an introductory paragraph, similar to newspapers */
#content > p:first-child:first-line,
article h1 + p:first-line,
article h2 + p:first-line {
  font-variant: small-caps;
  font-weight: bold;
}

/* Styles a drop cap on each paragraph with this class.
   To be verified with specific font settings!!! */
#content > p:first-child:first-letter,
article h1 + p:first-letter,
article h2 + p:first-letter {
  font-size: 52px;
  line-height: 40px;
  letter-spacing: 5px;
  margin-bottom: -9px;
  float: left;
  padding-top: 6px;
  color: #222;
  font-weight: normal;
}

.annuncio {
  margin-bottom: 2em;
  margin-top: -1em;
  padding: 0.5em 1em 0;
  border: 1px solid #c44;
}

.annuncio p {
  margin-bottom: 0.6em;
}

p.annuncio-head {
  text-align: center;
  font-size: 16px;
}

p.text-center {
  text-align: center;
}

#home p,
#testi p.saggi,
article.abstract p,
blockquote p {
  text-indent: 0;
}

#home p,
#testi p.saggi,
aside p {
  margin-top: 0;
}

#content > h2,
#error h2,
article h1 {
  font-size: 24px;
  font-weight: normal;
  line-height: 26px;
}

article h1 a,
article h1 a:visited {
  color: #333;
}

article h1 a:hover {
  color: #666662;
  text-decoration: none;
}

article h1 a:active,
article h1 a:focus {
  top: 0;
}

article h2 {
  font-size: 16px;
}

article.abstract h1 {
  font-size: 18px;
  line-height: 20px;
  margin-bottom: 5px;
}

article.abstract h2 {
  color: #666;
  font-size: 14px;
  font-style: italic;
  font-weight: normal;
}

#testi article + article {
  border-top: 1px dotted #444;
  padding-top: 20px;
}

p.torna-su {
  margin-top: 0;
  text-indent: 0;
}

p.continua {
  text-align: right;
  text-indent: 0;
}

blockquote {
  color: #666;
  font-style: italic;
}

pre {
  color: #000;
  background: #f5f5f0;
  padding: 20px 10px;
}

pre.en {
  font-style: italic;
}

pre.en i {
  font-style: normal;
}

aside p {
  color: #777;
  font-size: 13.5px;
  line-height: 17px;
}

aside p.fonte {
  font-style: italic;
}

aside p.condividi a {
  display: inline-block;
  margin-left: 2px;
  margin-top: 5px;
  padding: 3px;
  font-size: 18px;
  color: #444;
}

aside nav li {
  display: list-item;
  font-size: 13.5px;
}

ol.unstyled {
  list-style: none;
}

/* image hr */
hr {
  background: url(images/hr.svg) no-repeat top center;
  background-size: 47px 12px;
  border: none !important;
  height: 12px;
  margin: 0 0 1em;
  opacity: 0.75;
}

.ie7 hr {
  display: list-item;
  list-style: url(images/hr.png) inside;
  filter: alpha(opacity=0); /* gets rid of horizontal bar to right of image */
  width: 0; /* prevents tiling */
  margin-top: -7px;
}

/* 1px hr of given color */
.footnotes hr {
  background-color: #666561;
  border: none;
  clear: both; /* FF doesn't display it if after floated elements and not cleared */
  color: #666561; /* IE 6/7 */
  display: block; /* IE 6/7 */
  height: 1px;
  margin: 0 0 1em;
}

.ie7 .footnotes hr {
  margin: -7px 0 1em;
  filter: alpha(opacity=100);
  width: 100%;
}

/*
 Footer
 **************************************************************************************************************************/
footer p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

footer p:first-child {
  font-size: 12px;
}

footer a,
footer a:visited {
  color: #aeaea5;
}

footer a:hover {
  color: #e55;
}

/*
 Form
 **************************************************************************************************************************/
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="search"],
input[type="text"],
select,
textarea {
  border-radius: 0;
}

textarea {
  height: 12rem;
}

.button,
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  border-radius: 2px;
}

.button.button-primary,
button.button-primary,
input[type="submit"].button-primary,
input[type="reset"].button-primary,
input[type="button"].button-primary {
  background-color: #888;
  border-color: #888;
}

.button.button-primary:focus,
.button.button-primary:hover,
button.button-primary:focus,
button.button-primary:hover,
input[type="submit"].button-primary:focus,
input[type="submit"].button-primary:hover,
input[type="reset"].button-primary:focus,
input[type="reset"].button-primary:hover,
input[type="button"].button-primary:focus,
input[type="button"].button-primary:hover {
  background-color: #666;
  border-color: #666;
}

.button-primary[disabled] {
  background-color: #aaa !important;
  border-color: #aaa !important;
}

input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #888;
}

input[type="checkbox"],
input[type="radio"] {
  cursor: pointer;
}

label,
legend {
  margin-bottom: 0.2rem;
  font-weight: normal;
}

label > .label-body {
  margin-left: -0.5rem;
  padding-left: 1rem;
  cursor: pointer;
}

.spam {
  display: none;
  visibility: hidden;
}

div.message {
  border: 1px solid #ccc;
  margin-bottom: 20px; /* = line-height */
  padding: 9px 10px 9px 40px; /* = (line-height / 2) */
}

div.message p:last-child {
  margin-bottom: 0;
}

div.notice {
  background: url(images/icons/notice.png) 10px center no-repeat #fef8c4;
  border-color: #d8d566;
}

div.error {
  background: url(images/icons/error.png) 10px center no-repeat #fab;
  border-color: #fb5766;
}

div.success {
  background: url(images/icons/success.png) 10px center no-repeat #d1feba;
  border-color: #e1f6ca;
}

input.notice,
textarea.notice {
  -moz-box-shadow: #fa0 0 0 6px;
  -webkit-box-shadow: #fa0 0 0 6px;
  box-shadow: #fa0 0 0 6px;
  outline: none;
}

input.error,
textarea.error {
  -moz-box-shadow: #e44 0 0 6px;
  -webkit-box-shadow: #e44 0 0 6px;
  box-shadow: #e44 0 0 6px;
}

/* -------------------------------------------------------------------------------------------------------------------------
  PRINT

  Let's make sure that our pages print nicely.
------------------------------------------------------------------------------------------------------------------------- */

/* inlined to avoid required HTTP connection
   www.phpied.com/delay-loading-your-print-css/ */
@media print {
  * {
    background: transparent !important;
    text-shadow: none;
  }

  body {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  /* Here go sections of the site that you do not want to be printed */
  header nav,
  p.torna-su {
    display: none !important;
  }

  header {
    padding: 18px 0;
  }

  #main {
    border: none;
    overflow: visible;
    padding: 1em 0;
    width: 100%;
  }

  aside,
  #content {
    clear: both;
    float: none;
    margin: 0;
    width: auto;
  }

  aside {
    margin-bottom: 1em;
    text-align: left;
  }

  a[rel],
  a[href] {
    padding: 0;
    margin: 0;
  }

  /* If the URL starts with a double slash, insert the 'http:' part */
  a[href^="//"]:after
  {
    content: " (http:" attr(href) ")";
    font-size: 90%;
  }

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

  abbr {
    border: none !important;
    letter-spacing: 0 !important;
  }

  abbr[title]:after {
    content: " (" attr(title) ")";
    font-size: 90%;
  }

  pre,
  blockquote {
    page-break-inside: avoid;
  }

  blockquote p {
    margin: 10pt 18pt;
  }

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

  ul,
  ol {
    margin-left: 2em;
  }

  @page {
    margin: 2cm;
  }

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

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

/* -------------------------------------------------------------------------------------------------------------------------
  MEDIA

  Media queries for responsive design. The grid adapts itself down to mobile phones!
------------------------------------------------------------------------------------------------------------------------- */

/* #Tablets (Portrait)
@media only screen and (min-width: 768px) and (max-width: 800px)  */ /* max-width = regular body width + 20px {
  body {
    width: 38em;
  }

  header,
  footer {
    padding-left: 10px;
    padding-right: 10px;
  }

  #main {
    border-width: 0 10px;
  }
}
*/

/* #Mobile (320px)
@media only screen and (max-width: 767px) {
  body {
    width: 15.5em;
  }

  header {
    padding: 18px 0.25em;
  }

  header h1,
  header nav {
    float: none;
  }

  header nav li {
    margin-left: 0;
    margin-right: 5px;
  }

  footer {
    padding-left: 0.25em;
    padding-right: 0.25em;
  }

  #main {
    border-width: 0 5px;
    padding: 0.75em 0.5em;
    width: 14em;
  }

  aside,
  #content {
    float: none;
    margin: 0;
    width: 14em;
  }

  aside {
    margin-bottom: 1em;
    text-align: left;
  }

  img {
    max-width: 280px;
  }

  input[type='text'],
  input[type='email'],
  textarea {
    width: 270px;
  }
}
*/

/* #Mobile (480px)
@media only screen and (min-width: 480px) and (max-width: 767px) {
  body {
    width: 23em;
  }

  header {
    padding: 18px 0.5em;
  }

  header h1,
  header nav {
    float: none;
  }

  header nav li {
    margin-left: 0;
    margin-right: 20px;
  }

  footer {
    padding-left: 0.5em;
    padding-right: 0.5em;
  }

  #main {
    border-width: 0 0.5em;
    padding: 2em 1em;
    width: 20em;
  }

  aside,
  #content {
    float: none;
    margin: 0;
    width: 20em;
  }

  aside {
    margin-bottom: 1em;
    text-align: left;
  }

  img {
    max-width: 400px;
  }

  textarea {
    width: 390px;
  }
}
 */

/* Grade-A Mobile Browsers (Opera Mobile, iPhone Safari, Android Chrome)
   Consider this:www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/ */
@media screen and (max-width: 720px) {
  /* Prevent iOS, WinMobile from adjusting font size */
  html {
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
  }
}
