/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /* --first-color: hsl(228, 66%, 53%); */
  --first-color-alt: hsl(228, 66%, 47%);
  --first-color-light: hsl(228, 62%, 59%);
  --first-color-lighten: hsl(228, 100%, 97%);
  --second-color: hsl(25, 83%, 53%);
  --title-color: hsl(228, 57%, 28%);
  --text-color: hsl(228, 15%, 50%);
  --text-color-light: hsl(228, 12%, 75%);
  --border-color: hsl(228, 99%, 98%);
  --body-color: #fff;
  --container-color: #fff;

  --hue: 162;
  --first-color: hsl(var(--hue), 100%, 40%);
  --first-color-alt: hsl(var(--hue), 56%, 35%);
  --title-color: hsl(228, 8%, 95%);
  --text-color: hsl(228, 8%, 65%);
  --body-color: hsl(228, 15%, 18%);
  --container-color: hsl(228, 15%, 15%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}


/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

input,
textarea,
button,
body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
}

input,
textarea,
button {
  outline: none;
  border: none;
}

h1, h2, h3, h4 {
  color: var(--title-color);
  font-weight: var(--font-medium);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

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


/*========== Variables Dark theme ==========*/
.change-theme{
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

body.dark-theme{
  --hue: 0;
  --first-color: hsl(var(--hue), 90%, 50%);
  --first-color-alt: hsl(var(--hue), 66%, 47%);
  --title-color: hsl(228, 15%, 15%);
  --text-color: hsl(0, 0%, 7%);
  --text-color-light: hsl(0, 37%, 15%);
  --body-color: #7F8D90;
  --container-color: hsl(var(--hue), 0%, 85%);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 2rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
  color: var(--title-color);
  font-weight: var(--font-semi-bold);
}

.section__title {
  font-size: var(--h1-font-size);
  margin-bottom: 1.5rem;
}

.section__subtitle {
  font-size: var(--small-font-size);
  margin-bottom: .25rem;
}

.section__subtitle span {
  color: var(--first-color);
}

.main {
  overflow: hidden; /* For animation ScrollReveal */
}

/*=============== HEADER & NAV ===============*/
.header{
  position: fixed;
  width: 100%;
  /* background-color: var(--container-color); */
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
}

.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo{
  color: var(--title-color);
  font-weight: var(--font-medium);
}

.nav__logo span{
  color: var(--first-color);
}

.nav__toggle, 
.nav__close{
  display: flex;
  font-size: 1.25rem;
  color: var(--title-color);
  cursor: pointer;
}

/* Navigation for mobile devices */
@media screen and (max-width: 1023px) {
  .nav__menu{
    position: fixed;
    top: 0;
    right: -100%;
    background-color: hsla(0, 0%, 10%, .3);
    width: 75%;
    height: 100%;
    padding: 4.5rem 0 0 3rem;
    backdrop-filter: blur(24px);
    transition: right .4s;
  }
}

.nav__list{
  display: flex;
  flex-direction: column;
  row-gap: 3rem;
}

.nav__link{
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: color .4s;
}

.nav__link:hover{
  color: var(--first-color);
}

.nav__close{
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu{
  right: 0;
}

/* Add blur to header */
.blur-header{
  background-color: transparent;
}

.blur-header::after{
  content: '';
  position: absolute;
  width: 1000%;
  height: 100%;
  background-color: hsla(0, 0%, 10%, .3);
  backdrop-filter: blur(24px);
  top: 0;
  left: 0;
  z-index: -1;
}

/* Active link */
.active-link{
  color: var(--first-color);
}

/*=============== HOME ===============*/
.home{
  background: linear-gradient(170deg,
              hsl(0,0%,22%) 0%,
              hsl(0,0%,6%) 30%);
  padding-bottom: 0;
}

.dark-theme .home{
  background: linear-gradient(-135deg,
            hsl(0,20%,50%) 0%,
            hsl(0,0%,100%) 75%);
  padding-bottom: 0;
}

.home__container{
  padding-top: 4rem;
  row-gap: 3.5rem;
  align-items: center;
}

.home__data{
  text-align: center;
}

.home__subtitle{
  font-size: var(--normal-font-size);
}

.home__subtitle span, .home__title{
  color: var(--first-color);
}

.home__title{
  font-size: var(--biggest-font-size);
  font-weight: var(--font-semi-bold);
}
.home__description{
  color: var(--text-color-light);
  margin-block: 1rem 1.5rem;
}

.home__social{
  display: flex;
  justify-content: center;
  column-gap: 1.25;
}

.home__social-link{
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s;
}

.home__social-link:hover{
  transform: translateY(-.25rem);
}

.home__image{
  justify-self: center;
  height: 550px;
}

.home__blob{
  width: 300px;
  fill: var(--first-color);
  filter: drop-shadow(0 12px 12px hsla(var(--hue), 100%, 40%, .2));
}

/*=============== BUTTON ===============*/
.button{
  display: inline-block;
  background:  var(--first-color);
  color: #fff;
  padding: 14px 28px;
  border-radius: .5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  box-shadow:  0 4px 8px hsla(228, 66%,45%,.25);
  transition: .3s;
  cursor: pointer;
}

.button:hover{
  box-shadow: 0 8px 24px hsla(var(--hue), 100%, 40%, .25);
  background-color: var(--first-color-alt);
}

/*=============== ABOUT ===============*/
.about__container{
  row-gap: 5rem;
}

.about__data{
  text-align: center;
}

.about__description{
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about__subtitle{
  text-align: left;
}

.about__image{
  justify-self: center;
}

.about__blob{
  width: 320px;
  margin-left: 8%;
}

.about__blob path{
  stroke: var(--first-color);
}

.about__info {
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 2.5rem;
}

.about__info-title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.about__info-name {
  font-size: var(--smaller-font-size);
}

.about__info-title,
.about__info-name {
  display: block;
  text-align: center;
}

.about__buttons {
  display: flex;
  justify-content: center;
}

/*=============== Certificates===============*/
.certificates{
  background-color: var(--container-color);
}

.certificates__container{
  padding-bottom: 2rem;
  row-gap: 3.5rem;
}

.certificates__title, .certificates__subtitle{
  text-align: left;
}

.certificates__data{
  text-align: center;
}

.certificates__description{
  margin-bottom: 2rem;
}

/* .certificates__description{
  text-align: justify;
  margin-right: 55px;
} */

.certificates__content, 
.certificates__group{
  display: grid;
}

.certificates__content{
  grid-template-columns: repeat(2, max-content);
  column-gap: 4rem;
  justify-content: center;
  align-items: baseline;
}

.certificates__group{
  row-gap: 1rem;
  list-style: decimal-leading-zero;
}

.certificates__item{
  font-weight: var(--font-medium);
  color: var(--title-color);
}

.certificates__item::marker{
  color: var(--first-color);
}

/*=============== skills ===============*/
.skills__container{
  row-gap: 2rem;
  padding-block: 1rem;
}

.skills__card{
  text-align: center;
  background-color: var(--container-color);
  padding: 3rem 1.25rem;
  border-radius: 1rem;
  border: 2px solid var(--container-color);
  transition: border .4s;
}

.skills__icon{
  display: block;
  font-size: 4rem;
  color: var(--first-color);
  margin-bottom: .75rem;
}

.skills__title{
  font-size: var(--h2-font-size);
  margin-bottom: 1.5rem;
}

.skills__card:hover{
  border: 2px solid var(--first-color);
}

/*=============== PROJECTS ===============*/
.projects{
  background-color: var(--container-color);
}

.projects__container{
  row-gap: 2rem;
  justify-content: center;
  padding-block: 1rem;
}

.projects__card{
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
}

.projects__img{
  width: 100%;
  height: 100%;
}

.projects__modal{
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;  
  height: 100%;
  background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%, hsla(var(--hue), 70%, 40%, .8) 120%);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: bottom .4s;
}

.projects__subtitle, .projects__button{
  color: var(--title-color);
  font-size: var(--small-font-size);
}

.projects__subtitle{
  display: block;
  margin-bottom: .25rem;
  color: var(--first-color);
}

.projects__title{
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: .75rem;
}

.projects__button{
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-weight: var(--font-medium);
}

.projects__button i{
  font-size: 1.25rem;
}

.projects__card:hover .projects__modal{
  bottom: 0; 
}


/*=============== Experience ===============*/
.experience{
  background-color: var(--container-color);
}
.experience__tabs{
  display: flex;
  justify-content: space-evenly;
  margin-bottom: 2rem;
}

.experience__button{
  font-size: var(--h3-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
}

.experience__button:hover{
  color: var(--first-color);
}

.experience__icon{
  font-size: 1.8rem;
  margin-right: .25rem;
}

.experience__data{
  display: grid;
  grid-template-columns: 1fr max-content 1fr;
  column-gap: 1.5rem;
}

.experience__title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.experience__subtitle{
  display: inline-block;
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
}

.experience__calendar{
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

.experience__rounder{
  display: inline-block;
  width: 13px;
  height: 13px;
  background-color: var(--first-color);
  border-radius: 50%;
}

.experience__line{
  display: block;
  width: 1px;
  height: 100%;
  background-color: var(--first-color);
  transform: translate(6px,-7px);
}

.experience [data-content] {
  display: none;
}

.experience__active[data-content] {
  display: block;
}

.experience__button.experience__active{
  color: var(--first-color);
}


/*==================== PORTFOLIO ====================*/
.portfolio__container {
  max-width: 768px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.portfolio_container{
  overflow: initial;
}

.portfolio__content {
  padding: 0 1.5rem;
}

.portfolio__img {
  width: 265px;
  border-radius: .5rem;
  justify-self: center;
}

.portfolio__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.portfolio__description {
  margin-bottom: var(--mb-0-75);
}

.portfolio__button:hover .button__icon {
  transform: translateX(.25rem);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  content: "";
}

.swiper-portfolio-icon {
  font-size: 2rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: -.5rem;
}

.swiper-button-next {
  right: -.5rem;
}

.swiper-horizontal>.swiper-pagination-bullets {
  bottom: -2.5rem;
}

.swiper-pagination-bullet-active {
  background-color: var(--first-color);
}

.swiper-button-prev,
.swiper-button-next,
.swiper-pagination-bullet {
  outline: none;
}

/*=============== CONTACT ===============*/
.contact__container{
  padding-top: 1rem;
}

.contact__form,.contact__group{
  display: grid;
  row-gap: 1rem;
}

.contact__form{
  position: relative;
}

.contact__input{
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  background-color: var(--container-color);
  color: var(--title-color);
}

.contact__input::placeholder{
  color: var(--text-color);
}

.contact__form textarea{
  height: 11rem;
  resize: none;
  margin-bottom: 2rem;
}

.contact__button{
  justify-self: center;
  cursor: pointer;
}

.captcha__button{
  justify-self: center;
  cursor: pointer;
}

.contact__message{
  position: absolute;
  left: 0;
  bottom: 10rem;
  font-size: var(--small-font-size);
  color: var(--title-color);
}

/*=============== FOOTER ===============*/
.footer{
  background-color: var(--container-color);
  padding-block: 3.5rem 2rem;
}

.footer__container{
  row-gap: 2rem;
  text-align: center;
}

.footer__title{
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: .25rem;
}

.footer__title span{
  color: var(--first-color);
}

.footer__education{
  font-size: var(--normal-font-size);
}

.footer__social{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
  margin-top: 1.5rem;
}

.footer__social-link{
  display: flex;
  background-color: var(--first-color-alt);
  padding: .5rem;
  color: var(--title-color);
  font-size: 1.5rem;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  transition: transform .4s;
}

.footer__social-link:hover{
  transform: translateY(-.25rem);
}

.footer__copy{
  font-size: var(--smaller-font-size);
  margin-top: 2rem;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: .6rem;
  border-radius: .5rem;
  background-color: hsl(228, 12%, 25%);
}

::-webkit-scrollbar-thumb{
  background-color: hsl(228, 8%, 35%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover{
  background-color: hsl(228, 8%, 45%);
}

/*=============== SCROLL UP ===============*/
.scrollup{
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  padding: 6px;
  border-radius: .25rem;
  color: var(--first-color);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px hsla(228, 15%, 8%, .4);
  z-index: var(--z-tooltip);
  transition: bottom .4s, transform .4s;
  display: inline-flex;
}

.scrollup:hover{
  transform: translateY(-.25rem);
}

/* Show Scroll Up */
.show-scroll{
  bottom: 3rem;
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (min-width: 320px) {
  .container {
    margin-inline: 1rem;
  }
  
  .certificates__content{
    grid-template-columns: max-content;
    row-gap: 1rem;
  }

  .skills__card{
    padding-block: 1.5rem;
  }

  .about__subtitle,
  .certificates__subtitle, 
  .certificates__title{
    text-align: center;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .certificates__container,
  .skills__container,
  .projects__container,
  .contact__container{
    grid-template-columns: 360px;
    justify-content: center;
  }
}

@media screen and (min-width: 768px) {
  .nav__menu{
    width: 55%;
  }

  .home__container,
  .about__container,
  .certificates__container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .home__data,
  .about__data,
  .certificates__data
  :is(.about__data, .certificates__data) :is(.section__subtitle, .section__title){
    text-align: initial;
  }

  .home__social{
    justify-content: initial;
  }

  .home__blob,
  .about__blob{
    width: 400px;
  }

  .about__data{
    order: 1;
  }

  .skills__container,
  .projects__container{
    grid-template-columns: repeat(2, 352px);
    justify-content: center;
  }

  .certificates__content{
    grid-template-columns: repeat(2, max-content);
    row-gap: 1rem;
  }

  .about__subtitle
  /* ,.certificates__title,.certificates__subtitle */
  {
    text-align: left;
  }
}

/* For large devices */
@media screen and (min-width: 1023px){
  .section{
    padding-block: 7rem 2rem;
  }

  .section__subtitle{
    font-size: var(--normal-font-size);
  }

  .nav{
    height: calc(var(--header-height) + 1.5rem);
  }

  .nav__close,
  .nav__toggle{
    display: none;
  }

  .nav__list{
    flex-direction: row;
    column-gap: 3rem;
  }

  .nav__menu{
    width: initial;
  }

  .blur-header::after{
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
  }

  
  .portfolio__content {
    column-gap: 5rem;
  }

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }

  .swiper-button-prev {
    left: -3.5rem;
  }

  .swiper-button-next {
    right: -3.5rem;
  }

  .swiper-horizontal>.swiper-pagination-bullets {
    bottom: -4.5rem;
  }
}

@media screen and (min-width: 1152px) {
  .container{
    margin-inline: auto;
  }

  .home__container{
    grid-template-columns: 455px 550px;
    column-count: 7rem;
    padding-block: 2rem 3rem;
  }

  .home__bloc{
    width: 550px;
  }

  .home__content{
    row-gap: 4.5rem;
  }

  .home__description{
    margin-block: 1.5rem 2.5rem;
  }

  .home__social{
    column-gap: 1.5rem;
  }

  .about__container{
    grid-template-columns: 550px 460px;
    column-gap: 4.5rem;
    padding-bottom: 1rem;
  }

  .about__blob{
    width: 550px;
  }

  .about__description{
    margin-bottom: 3rem;
  }

  .certificates__container{
    grid-template-columns: 340px 425px;
    column-gap: 10rem;
    padding-bottom: 4rem;
  }

  .skills__container{
    grid-template-columns: repeat(3, 352px);
    padding-block: 2.5rem 4rem;
  }

  .skills__card{
    padding: 3.5rem 2rem;
  }

  .projects__container{
    grid-template-columns: repeat(3, 350px);
    row-gap: 3rem;
    padding-block: 2.5rem 4rem;
  }

  .projects__button{
    font-size: var(--normal-font-size);
  }

  .contact__container{
    grid-template-columns: 680px;
    padding-block: 2.5rem 2rem;
  }

  .contact__form{
    row-gap: 1.5rem;
  }

  .contact__group{
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }

  .contact__input{
    padding: 1.5rem;
  }

  .contact__form textarea{
    height: 20rem;
  }

  .footer{
    padding-block: 4.5rem 4rem;
  }

  .footer__container{
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: initial;
  }

  .footer__title{
    font-size: var(--bigger-font-size);
  }

  .footer__social{
    column-gap: 1.5rem;
  }

  .footer__copy{
    margin: 0;
    justify-self: flex-end;
  }

  .scrollup{
    right: 3rem
  }

  
  .portfolio__content {
    column-gap: 5rem;
  }

  .swiper-portfolio-icon {
    font-size: 3.5rem;
  }

  .swiper-button-prev {
    left: -3.5rem;
  }

  .swiper-button-next {
    right: -3.5rem;
  }

  .swiper-horizontal>.swiper-pagination-bullets {
    bottom: -4.5rem;
  }
}

#lampadario {
  position: fixed;
  left: 90%;
  top: 0;
}
#filo {
  position: relative;
  background-color: #000000;
  width: 2px;
  height: 150px;
  left: 50%;
  margin-left: -1px;
  z-index: 1;
  -webkit-transform-origin: 0% 0%;
     -moz-transform-origin: 0% 0%;
      -ms-transform-origin: 0% 0%;
       -o-transform-origin: 0% 0%;
          transform-origin: 0% 0%;
  -webkit-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
     -moz-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
      -ms-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
       -o-animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
          animation: oscillaFilo .9s ease-in-out 0s infinite alternate;
}
#filo:after {
  content: " ";
  left: -5px;
  top: 100%;
  position: absolute;
  border-bottom: 15px solid #000000;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  height: 0;
  width: 4px;
}
#lampadina {
  position:relative;
}
input[value="off"]:checked ~
#filo {
  -webkit-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
     -moz-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
      -ms-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
       -o-box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
          box-shadow: -80px -10px 7px 0 rgba(0,0,0,0.1);
}
input[value="off"]:checked ~
#filo:after {
  -webkit-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
     -moz-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
      -ms-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
       -o-box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
          box-shadow: -80px -10px 10px -2px rgba(0,0,0,0.1);
}

.home input {
  position: absolute;
  width: 90px;
  height: 70px;
  top: 150px;
  margin-left:-45px;
  opacity: 0;
  z-index: 1;
  cursor: pointer;
}

input[value="on"] {
  top: 150px;
}
input[value="off"] {
  top: -100px;
}
input[value="on"]:checked {
  top: -100px;
}
input[value="on"]:checked + input[value="off"] {
  top: 150px;
}

label {
  width: 51px;
  height: 51px;
  top: 164px;
  position: absolute;
  left: 0;
  margin-left: -24px;
  -webkit-border-radius: 100%;
     -moz-border-radius: 100%;
      -ms-border-radius: 100%;
       -o-border-radius: 100%;
          border-radius: 100%;
  -webkit-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
     -moz-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
      -ms-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
       -o-animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
          animation: oscillaLampadina .9s ease-in-out 0s infinite alternate;
}           
input[value="off"]:checked ~
label {
  background: rgba(255,255,255,0.03);
  -webkit-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
     -moz-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
      -ms-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
       -o-box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
          box-shadow: inset 0px 1px 5px rgba(255,255,255,0.1), inset 0px 2px 20px rgba(255,255,255,0.07), -80px -15px 15px -5px rgba(0,0,0,0.1);
}
input[value="on"]:checked ~
label {
  background: rgba(255,255,255,1);
  -webkit-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
     -moz-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
      -ms-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
       -o-box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
          box-shadow: 0px 0px 10px rgba(255,255,255,0.8), 0px 0px 30px rgba(255,255,255,0.8), 0px 0px 50px rgba(255,255,255,0.6), 0px 0px 70px rgba(255,255,255,0.6), -80px -15px 120px 0px rgba(255,255,255,0.4);
}

input[value="off"]:checked ~
label:after {
  content: " ";
  width: 15px;
  height: 15px;
  top: 0;
  position: absolute;
  left: 0;
  margin-left: 15px;
  -webkit-border-radius: 100%;
     -moz-border-radius: 100%;
      -ms-border-radius: 100%;
       -o-border-radius: 100%;
          border-radius: 100%;
  border: 2px solid rgba(255,255,255,0.03);
}
#sorpresa {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}
input[value="off"]:checked ~
#lampadina #sorpresa {
  opacity: 0;
}
input[value="on"]:checked ~
#lampadina #sorpresa {
  opacity: 1;
}
#footer {
  position: fixed;
  width: 94%;
  text-align: center;
  bottom: 30%;
  padding: 0 3%;
  z-index:1;
}
#shadow {
  position: fixed;
  width: 94%;
  text-align: center;
  bottom: 29%;
  padding: 0 3%;
  color:rgba(0,0,0,0);
  -webkit-text-shadow: 0px 0px 4px rgba(0,0,0,0.3);
     -moz-text-shadow: 0px 0px 4px rgba(0,0,0,0.3);
      -ms-text-shadow: 0px 0px 4px rgba(0,0,0,0.3);
       -o-text-shadow: 0px 0px 4px rgba(0,0,0,0.3);
          text-shadow: 0px 0px 4px rgba(0,0,0,0.3);
  -webkit-transform-origin: 50% 0px;
     -moz-transform-origin: 50% 0px;
      -ms-transform-origin: 50% 0px;
       -o-transform-origin: 50% 0px;
          transform-origin: 50% 0px;
  -webkit-animation: ombraTesto .9s ease-in-out 0s infinite alternate;
     -moz-animation: ombraTesto .9s ease-in-out 0s infinite alternate;
      -ms-animation: ombraTesto .9s ease-in-out 0s infinite alternate;
       -o-animation: ombraTesto .9s ease-in-out 0s infinite alternate;
          animation: ombraTesto .9s ease-in-out 0s infinite alternate;
}
@-webkit-keyframes oscillaFilo {
  from {
      -webkit-transform:rotate(5deg);
  } to {
      -webkit-transform:rotate(-5deg);
  }
}
@-moz-keyframes oscillaFilo {
  from {
      -moz-transform:rotate(5deg);
  } to {
      -moz-transform:rotate(-5deg);
  }
}
@-ms-keyframes oscillaFilo {
  from {
      -ms-transform:rotate(5deg);
  } to {
      -ms-transform:rotate(-5deg);
  }
}
@-o-keyframes oscillaFilo {
  from {
      -o-transform:rotate(5deg);
  } to {
      -o-transform:rotate(-5deg);
  }
}
@keyframes oscillaFilo {
  from {
      transform:rotate(5deg);
  } to {
      transform:rotate(-5deg);
  }
}

@-webkit-keyframes oscillaLampadina {
  from {
      -webkit-transform: rotate(3deg) translate(-16.4px,-1px);
  } to {
      -webkit-transform: rotate(-3deg) translate(16.4px,-1px);
  }
}
@-moz-keyframes oscillaLampadina {
  from {
      -moz-transform: rotate(3deg) translate(-16.4px,-1px);
  } to {
      -moz-transform: rotate(-3deg) translate(16.4px,-1px);
  }
}
@-ms-keyframes oscillaLampadina {
  from {
      -ms-transform: rotate(3deg) translate(-16.4px,-1px);
  } to {
      -ms-transform: rotate(-3deg) translate(16.4px,-1px);
  }
}
@-o-keyframes oscillaLampadina {
  from {
      -o-transform: rotate(3deg) translate(-16.4px,-1px);
  } to {
      -o-transform: rotate(-3deg) translate(16.4px,-1px);
  }
}
@keyframes oscillaLampadina {
  from {
      transform: rotate(3deg) translate(-16.4px,-1px);
  } to {
      transform: rotate(-3deg) translate(16.4px,-1px);
  }
}

@-webkit-keyframes ombraTesto {
  from {
      -webkit-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
  } to {
      -webkit-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
  }
}
@-moz-keyframes ombraTesto {
  from {
      -moz-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
  } to {
      -moz-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
  }
}
@-ms-keyframes ombraTesto {
  from {
      -ms-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
  } to {
      -ms-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
  }
}
@-o-keyframes ombraTesto {
  from {
      -o-transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
  } to {
      -o-transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
  }
}
@keyframes ombraTesto {
  from {
      transform: translate(1px,0px) scale(1.01,1.06) skew(0.9deg, 0deg);
  } to {
      transform: translate(-1px,0px) scale(1.01,1.06) skew(-0.9deg, 0deg);
  }
}