@font-face{
	font-family: 'OpenSans';
	src: url('OpenSans-Regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face{
	font-family: 'OpenSansI';
	src: url('OpenSans-Italic-webfont.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@font-face{
	font-family: 'OpenSansB';
	src: url('OpenSans-ExtraBold-webfont.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

@font-face{
	font-family: 'OpenSansBI';
	src: url('OpenSans-ExtraBoldItalic-webfont.woff') format('woff');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-family: 'Silkscreen';
    src: url('slkscr-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'LovedByTheKing';
    src: url('lovedbytheking-regular-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root,
::backdrop {
  --fontN: OpenSans, sans-serif;
  --fontI: OpenSansI, sans-serif;
  --fontB: OpenSansB, sans-serif;
  --fontBI: OpenSansBI, sans-serif;
  --fontSE: Silkscreen, sans-serif;
  --font2B: LovedByTheKing, sans-serif;


  /* Default (light) theme */
  --bg: #f1f1f1;
  --text: #2f2b2c;
  --textinverse: #fff;
  --textspan: #f6e7ff;
  --title: #343a40;
  --line: #aaa;
  --accent: #FF9200;
  --grey: #aaaaaa;
}

@media (prefers-color-scheme: dark) {
  :root,
  ::backdrop {
    color-scheme: dark;
    --bg: #212121;
    --text: #dcdcdc;
    --textinverse: #222;
    --textspan: #f6e7ff;
    --title: #cecece;
    --line: #666;
    --accent: #ffb300;
    --grey: #666666;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg);
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  font-family: var(--fontN);
  background-color: var(--bg);
  position: relative;
}

@media (min-width: 780px) {
  body {
    padding-top: 0;
    padding-left: 17rem;
  }
}

::selection {
  color: #555;
  background: #ff0;
}

em,
i {
  font-family: var(--fontI)
}

strong,
b {
  font-family: var(--fontB)
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--fontB);
  color: var(--title);
}

h1, h2{
  text-transform: uppercase;
}

h1 {
  font-size: 6rem;
}

@media (max-width: 779px) {
  h1 {
    font-size: 4rem;
l   line-height: 1.2;
  }
}

h1 span {
  color: var(--textspan);
}

h2 {
  font-size: 3.5rem;
  line-height: 1;
}

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

@media (max-width: 779px) {
  h3 {
    font-size: 1.5rem;
  }
}

h4 {
  margin: 0;
}

p {
  margin: 0 0 0.5rem 0;
  text-indent: 1rem;
}

@media (max-width: 779px) {
  p {
    text-indent: 0;
  }
}

ul p, ol p {
  text-indent: 0;
}

hr {
  height: 1px;
  border: 0;
  border-bottom: 1px dashed var(--line);
}

dl {
  padding: 1rem 1rem 0.1rem 1rem;
  background: #fff;
}

dt {
  font-family: var(--fontB);
  border-bottom: var(--line) 1px solid;
  padding-bottom: 0.2rem;
  margin-bottom: 0.2rem;
}

dd {
  margin: 0 0 1rem 0;
}

del {
  color: var(--grey);
}

ins {
  text-decoration: none;
  font-family: var(--fontI);
}

code {
  font-size: 1rem;
  opacity: 0.6;
}

blockquote {
  margin-left: 1rem;
  padding: 0 1rem;
  border-left: 1px solid var(--line);
  opacity: 0.6;
}

blockquote p {
  text-indent: 0;
}

a,
a:link {
  color: var(--accent);
  text-decoration: none;
  transition: all 300ms ease-out;
  border-bottom: 2px solid transparent;
}

a:hover,
a:focus,
a:active {
  color: var(--text);
  transition: all 300ms ease-in;
  border-bottom: 2px solid var(--accent);
}

img,
video {
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
  display: block;
  overflow-x: auto;
}

figcaption {
  font-family: var(--fontI);
  font-size: 0.9rem;
  color: var(--text-light);
}

figcaption h4 {
  text-align: left;
  margin: 0.5rem 0 2rem 0;
  font-family: var(--fontI);
  font-weight: 400;
}

figure img {
  width: 100%;
  height: auto;
}

figure.centrale {
  text-align: center;
}

figure.centrale img {
  max-width: 65%;
  width: auto;
  height: auto;
}

@media (max-width: 640px) {
  figure.centrale img {
    max-width: 75%;
    height: auto;
  }
}

video.video-shortcode {
  max-width: 100%;
  height: auto;
}

/* sezioni home - generale/in comune */

section {
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 640px) {
  section {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

section h1 {
  margin:0;
  padding: 3rem 0 0 0;
}

.section-about {
  background: url(../img/home.jpg) center left no-repeat;
  background-size: cover;
  color: var(--textinverse);
}

section.section-about h1 {
  color: var(--accent);
  padding-bottom: 1rem;
  text-shadow:
      0 0.15ch 15px rgba(58, 16, 54, 0.8),
      0 -1px 0 rgba(255, 255, 255, 0.8);
}

@media (max-width: 779px) {
  section {
    padding-bottom: 2rem;
  }
}

@media (min-width: 780px) {
  section.section-about h1 {
    padding-top: 18rem;
  }
}

section.section-about h1 {
  line-height: 1
}

section.section-about .pres p {
  background: rgba(235,161,110,0.4);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border-radius: 2px;
  padding: 1rem 1.5rem;
  margin-bottom: 4rem;
  text-shadow: 0 0 5px var(--text);
  text-indent:0;
  box-shadow: 0 0 20px 0 rgb(58, 16, 54, 0.4);
}

@media (min-width: 780px) {
  section.section-about .pres p {
    max-width: 50%;
    margin-right: 4rem;
  }
}

section {
  border-bottom: 1px solid var(--text);
}

section:last-of-type {
  border-bottom: 0;
}

@media (min-width: 768px) {
  section {
    min-height: 100vh;
  }
  section header h2 {
    padding-top: 5rem;
  }
}

@media (min-width: 1280px) {
  section[class^="section"] article {
    max-width: 820px;
  }
}

article + p {
  text-indent: 0;
}

/* sezioni home - skills */

h3.skills-heading {
  margin-bottom: 0.5rem;
}

ul.skills-list,
ul.skills-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.skills-list {
  padding-left: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

ul.skills-list li {
  display: inline-block;
  margin-right: 2rem;
}

@media (max-width: 779px) {
  ul.skills-list li {
    width: calc(40% - 2rem);
    white-space: nowrap;
  }
}

ul.skills-list .ico {
  width: 1.8rem;
  height: 1.8rem;
}

ul.skills-list img.ico {
  cursor: pointer;
  transform: translateY(0.5rem);
}

ul.skills-list img.ico:hover {
  opacity: 0.5;
}

/* sezioni home - elenco progetti/blog */

section.section-list {
  margin-bottom: 2rem;
}

section.section-list h1 {
  margin-bottom: 2rem;
}

@media (min-width: 780px) {
  section.section-list article {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
  }
}
section.section-list article:first-of-type {
  margin-top: 0;
}

@media (min-width: 780px) {
  section.section-list .summary {
    width: 60%;
    padding-right: 1.8rem;
  }
}

section.section-list .summary h3 {
  font-size: 1.8rem;
}

@media (max-width: 779px) {
  section.section-list h3{
    font-size: 1.2rem;
  }

  section.section-list ul.tags {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.25rem;
  }
}

section.section-list .summary h3,
section.section-list .summary p {
  margin: 0 0 0.5rem 0;
  text-indent: 0;
}

section.section-list .summary a.link-cont {
  display: block;
  float: right;
  text-align: right;
}

@media (min-width: 780px) {
  section.section-list .image {
    width: 40%;
    display: block;
    line-height: 0.1;
    margin-bottom: 0.5rem;
  }
}

section.section-list .date,
section.section-list .tags {
  width: 100%;
  text-align: right;
}

section.section-list .date {
  padding-bottom: 0.25rem;
}

/* sezioni home - contatti */

@media (min-width: 780px) {
  section.section-contact article {
    display: flex;
    align-items: center;
  }
}

section.section-contact h2 {
  margin-bottom: 0;
}

section.section-contact .box-social {
  text-align: center;
}

@media (min-width: 780px) {
  section.section-contact .box-form {
    width: 50%;
  }

  section.section-contact .box-social {
    width: 50%;
    text-align: right;
  }
}

ul.ico-social,
ul.ico-social li {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.ico-social li,
.box-rss {
  display: inline-block;
}

ul.ico-social li a,
.box-rss a {
  display: block;
  border-radius: 2px;
}

ul.ico-social li a img,
.box-rss a img {
  display: block;
}

ul.ico-social li a:hover,
ul.ico.social li a:focus,
.box-rss a:hover,
.box-rss a:focus {
  border-bottom: 2px solid transparent;
  background-color: var(--accent);
}

/* navigazione principale */

#sideNav {
  background: var(--accent);
}

a.link-home {
  display: block;
  line-height: 0;
}

a.link-home:hover,
a.link-home:focus,
a.link-home:active {
  opacity: 0.5;
}

ul.topnav,
ul.topnav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.topnav {
  border-top: 1px solid var(--text)
}

ul.topnav a {
  display: block;
  background-color: var(--bg);
  text-transform: uppercase;
  font-family: var(--fontB);
  padding: 0.5rem 1rem 0.5rem 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--text)
}

ul.topnav a:hover,
ul.topnav a:focus,
ul.topnav a:active {
  color: var(--accent);
}

ul.topnav a.nav-link.active {
  color: var(--textinverse);
  background-color: var(--accent);
}

@media (max-width: 779px) {
  #sideNav img {
    max-width: 100px;
    display: block;
  }
}

@media (min-width: 780px) {
  #sideNav {
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    width: 17rem;
    height: 100vh;
    border-right: 1px solid var(--text);
    border-left: 1px solid var(--text);
    box-shadow: 0 0 20px 0 rgb(58, 16, 54, 0.4);
  }
}

/* navigazione breadcrumb */

.breadcrumb ol{
  padding: 2rem 2rem 0 4rem;
  margin: 0;
  list-style: none;
}

.breadcrumb li {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 779px) {
	.breadcrumb ol {
	  padding-left: 2rem;
	}
}

@media (min-width: 780px) {

  .breadcrumb li {
    display: inline-block;
    margin-right: 0.5rem;
  }

  .breadcrumb li:after {
    content:"/";
    margin-left: 0.5rem;
  }

  .breadcrumb li:last-of-type:after {
    content:"";
  }
}

.breadcrumb-item.active a {
  color: #555;
}

/* pagina tassonomie */

ul.taxa-list,
ul.taxa-list li {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

ul.taxa-list ul {
  padding-left: 1rem;
}

ul.taxa-list > li {
  border-top: 1px solid #aaa;
}

ul.tags,
ul.tags li {
  padding: 0;
  list-style-type: none;
  display: inline-block;
}

@media (max-width: 779px) {
	ul.tags,
	ul.tags li {
	  margin: 0 0 0.5rem 0;
	}
}

/* pagina progetto/blog */

@media (min-width: 1280px) {
  section.page-progetto header,
  section.page-progetto article,
  section.page-blog header,
  section.page-blog article,
  section.page-blog .article-comments  {
    max-width: 820px;
  }

  section.page-blog .article-comments article {
    max-width: inherit;
  }
}

section.page-progetto h2,
section.page-blog h2 {
  padding-top: 0;
 	margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 779px) {
	  section.page-progetto h2,
		section.page-blog h2 {
	  font-size: 2rem;
	  word-wrap: break-word;
	}

}

section.page-progetto p.info,
section.page-blog p.info {
  font-size: 0.85rem;
  font-family: var(--fontI);
  text-indent: 0;
}

@media (min-width: 780px) {
  section.page-progetto aside,
  section.page-blog aside {
    width: 40%;
    float: right;
    margin-left: 1rem;
  }

  section.page-progetto aside img,
  section.page-blog aside img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
}

.blog-image,
.progetto-image {
  background: var(--bg);
  line-height: 0;
  border-bottom: 1px solid var(--line);
}

.blog-image img,
.progetto-image img {
  mix-blend-mode: multiply;
  filter: grayscale(100%) contrast(200%);
  opacity: 0.2;
  height: 18rem;
  width: 100%;
  object-fit: cover;
}

@media (max-width: 779px) {
	.blog-image img,
	.progetto-image img {
	  height: 6rem;
	}
}

.licenza-cc {
  font-size: 0.86rem;
  text-align: center;
  background: var(--textinverse);
  padding: 0.5rem;
  margin-top: 2rem;
}

.licenza-cc img {
  width: 100px;
  vertical-align: bottom;
}

.footnotes {
  margin: 2rem 0 0 0;
  padding-left: 0;
  padding-right: 0;
  min-height: auto;
  font-size: 0.86rem;
}

.blog-date {
  text-align: right;
  margin-bottom: 0.5rem;
}

.blog-intro {
	text-indent: 0;
	font-size: 0.86rem;
	font-family: var(--fontI);
	padding: 1rem 0;
	margin-bottom: 1rem;
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.links p {
  padding: 0.5rem 0;
  margin-top: 1.5rem;
  text-indent: 0;
  border-top: 1px solid var(--line)
}

section.page-progetto ul.tags,
section.page-blog ul.tags {
  width: 100%;
  text-align: right;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 779px) {
	section.page-progetto ul.tags,
	section.page-blog ul.tags {
	  text-align: left;
	  border-bottom: 0;
	}
}

a.tag {
  color: #555;
  background: #fff;
  display: inline-block;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border: 1px solid #555;
}

a.tag:hover,
a.tag:focus,
a.tag:active {
  background: #ddd;
  text-shadow: 0 0 0 transparent;
}

section.page-blog footer {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

section.page-blog footer a.link.next {

}

/* css tooltip per elenco skills */

[data-tooltip] {
  cursor: pointer;
  display: inline-block;
  position: relative;
}

[data-tooltip]::after {
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--text);
  content: attr(data-tooltip);
  width: 18rem;
  opacity: 0;
  padding: 0.5rem 1rem;
  position: absolute;
  text-align: left;
  text-transform: none;
  transition: opacity 0.2s;
  visibility: hidden;
  z-index: 1;
}

[data-tooltip].tooltip-top::before {
  border-style: solid;
  border-width: 0.3rem;
  content: "";
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s;
  visibility: hidden;
  border-color: rgba(51, 51, 51, 0.9) transparent transparent transparent;
  top: 0;
  left: 50%;
  margin-left: -0.3rem;
}

[data-tooltip].tooltip-top::after {
  bottom: 100%;
  left: 50%;
  transform: translate(-50%);
}

@media (max-width: 767px) {
  [data-tooltip].tooltip-mobile::before {
    display: none;
  }
  [data-tooltip].tooltip-mobile:after {
    font-size: 1rem;
    max-width: 20rem;
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    text-align: left;
    transform: translate(-50%);
    white-space: normal;
  }
}

[data-tooltip]:hover::after,
[data-tooltip][class*=tooltip-]:hover::before {
  visibility: visible;
  opacity: 1;
}

/* barra cookie */

.cookies-infobar {
  background: rgba(0, 0, 0, 0.9);
  color: var(--textinverse);
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 2rem;
}

.cookies-infobar p {
  text-indent: 0;
  margin:0;
}

.cookies-infobar a:hover,
.cookies-infobar a:focus {
  color: var(--textinverse)
}

.cookies-infobar.cookies-infobar_accepted {
  display: none;
}

.cookies-infobar_wrapper {
  margin: 1rem;
  text-align: center;
}

.cookies-infobar_btn {
  display: inline-block;
  padding: 5px 10px;
  background: var(--accent);
  text-decoration: none;
  color: var(--textinverse);
  text-transform: uppercase;
  font-family: var(--fontB);
  width: 8rem;
  text-align: center;
  margin: 0 1rem;
}

a.cookies-infobar_btn,
a.cookies-infobar_btn:link {
  color: var(--textinverse)
}

a.cookies-infobar_btn:hover,
a.cookies-infobar_btn:focus,
a.cookies-infobar_btn:active {
  color: var(--text);
}

/* navigazione responsive */

.topnav {
  zoom: 1;
}
.topnav:before, .topnav:after {
  content: " ";
  display: block;
  height: 0;
  overflow: hidden;
}
.topnav:after {
  clear: both;
}

.btn,
.toggle {
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 0.5rem 1rem;
}

.topnav {
  display: none;
}
@media only screen and (min-width: 640px) {
  .topnav {
    display: block;
  }
}

.toggle {
  font-family: var(--fontB);
  text-transform: uppercase;
  background-color: var(--textinverse);
  color: var(--text);
  position: absolute;
  right: 1em;
  top: 50px;
}

.toggle:hover {
  color: var(accent);
}

.attivo {
  display: block;
}

@media only screen and (min-width: 640px) {
  .toggle {
    display: none;
  }
}

/* landing matita2b */

section.section-matita2b {
  background: url(../img/banner2b.png) top left repeat-x #fff;
}

@media only screen and (min-width: 920px) {
    section.section-matita2b article {
      max-width: 580px;
    }
  section.section-matita2b h1 {
    padding-top: 5rem;
    text-align: right;
    width: 360px;
  }
  section.section-matita2b article figure:first-of-type {
    float: right;
    width: 420px;
    margin-top: -200px;
    margin-right: -240px;
  }
}

section.section-matita2b h1,
section.section-matita2b h2 {
  font-family: var(--font2B);
  font-weight: 400;
  text-transform: none;
}

section.section-matita2b ul,
section.section-matita2b li {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

section.section-matita2b li a {
  display: inline-block;
  margin: 2rem 0;
  padding: 1rem 2rem;
  font-family: var(--fontB)
}

section.section-matita2b li a,
section.section-matita2b li a:link {
  color: var(--textinverse);
  background-color: var(--accent);
  text-decoration: none;
  transition: all 300ms ease-out;
  border: 2px solid transparent;
}

section.section-matita2b li a:hover,
section.section-matita2b li a:focus,
section.section-matita2b li a:active {
  color: var(--text);
  transition: all 300ms ease-in;
  border: 2px solid var(--text);
}

/* landing settantahertz */

section.section-settantahertz {
  background: top left no-repeat #444;
  color: #faf;
  font-family: var(--fontSE);
}
section.section-settantahertz article figure {
  opacity: 0.2;
}

@media only screen and (min-width: 920px) {
  section.section-settantahertz article {
    max-width: 920px;
  }
  section.section-settantahertz h1 {
    padding-top: 2rem;
  }
}

section.section-settantahertz h1,
section.section-settantahertz h2,
section.section-settantahertz h3 {
  font-weight: 400;
  text-transform: none;
  font-family: var(--fontSE);
  color: #faf;
}

section.section-settantahertz ul,
section.section-settantahertz li {
  margin: 0;
  padding: 0;
  list-style: none;
}

section.section-settantahertz ul {
  display: flex;
  justify-content: center;
  align-items: center;
}

section.section-settantahertz li {
  padding: 1rem;
}

section.section-settantahertz li a {
  display: block;
  margin: 0 0 1rem 0;
  padding: 0.5rem;
  font-family: var(--fontSE);
  min-width: 12rem;
}

section.section-settantahertz li a,
section.section-settantahertz li a:link {
  color: var(--text);
  background-color: #faf;
  text-decoration: none;
  transition: all 300ms ease-out;
  border: 2px solid transparent;
}

section.section-settantahertz li a:hover,
section.section-settantahertz li a:focus,
section.section-settantahertz li a:active {
  color: var(--textinverse);
  transition: all 300ms ease-in;
  border: 2px solid var(--textinverse);
}

/* pulsantone commenti Mastodon */

.button-loadcomment {
  border-radius: 0;
  border: 1px solid var(--text);
  color: var(--text);
  font-family: var(--fontB);
  font-size: 1rem;
  padding: 0.5rem 2rem;
  text-transform: uppercase;
  cursor: pointer;
}

.button-loadcomment:hover,
.button-loadcomment:focus {
  color: var(--accent);
}

/* commenti Mastodon */

.article-comments {
  margin-bottom: 2rem;
}

.article-comments p {
  text-indent: 0;
  max-width: auto;
}

.comment {
  padding: 0.5rem;
  background: var(--textinverse);
  margin: 0 0 0.5rem 0;
  border: 1px dashed var(--line);
  width: 100%;
}

.comment.op {
  padding: 0.5rem;
}

.comment:first-of-type {
}

.comment-reply {
  margin-left: 1rem;
  width: calc(100% - 1rem);
}

.comment-reply + .comment-reply {
  margin-left: 2rem;
  width: calc(100% - 2rem);
}

.comment-reply + .comment-reply + .comment-reply {
  margin-left: 3rem;
  width: calc(100% - 3rem);
}

.comment-reply + .comment-reply + .comment-reply + .comment-reply {
  margin-left: 4rem;
  width: calc(100% - 4rem);
}

.comment-reply + .comment-reply + .comment-reply + .comment-reply + .comment.reply {
  margin-left: 5rem;
  width: calc(100% - 5rem);
}/* poi bòna */

.comment a.avatar-link {
  width: 50px;
  height: 50px;
  margin-right: 0.5rem;
  border-radius: 5px;
  float: left;
}

.comment a.avatar-link img {
  border-radius: 5px;
}

.comment header {
  font-family: var(--fontB);
  font-size: 0.86rem;
}

.comment header span.display {
  margin-right: 0.5rem;
}

.comment header span.display:after {
  content: "-";
  margin-left: 0.5rem;
}

.comment time a {
  font-size: 0.86rem;
}

.comment main {
  width: 100%;
  clear: left;
}

.comment main p {
  text-indent: 0;
}

.comment footer {
  display: flex;
  justify-content: flex-end;
}
