/*
CV - Lorenzo Malferrari
Fogli di stile principali
*/

/*------------------------------------------------------------------
[Table of contents]
	+ General
	    - Miscellaneous
		- Light Body
		- Buttons
		- Page Title
	+ Header
		- Desktop Navigation
		- Mobile Navigation
	+ Pages
		- Homepage
		+ About
		    - Personal Info List
			- Box Stats
			- Resume
			- Skills
		+ Portfolio
		    - Grid
		    + Slideshow
                - Embedded Videos
                - Carousel
                - Navigation
        + Contact
            - Left Side
            - Contact Form
		+ Blog
            - Latest Posts
            - Pagination
	- Responsive Design Styles
-------------------------------------------------------------------*/

/* [ GENERAL ] */
/*================================================== */

/*** Miscellaneous ***/

html {
  overflow-x: hidden;
  height: 100%;
}

body {
  font-family: var(--lm-font-body);
  font-size: 15px;
  color: var(--lm-text);
  font-weight: 500;
  line-height: 1.6;
  position: relative;
  background-size: cover;
  background-position: center;
  width: 100%;
  background-color: var(--lm-bg);
  /* Sticky-footer pattern via flex: footer in fondo se contenuto corto,
     fluido in coda se contenuto lungo. Niente piu' position: fixed che
     sovrasta il contenuto su mobile. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Wrap content prima del footer per consentire al footer di andare in fondo. */
body > .footer {
  margin-top: auto;
}

.poppins-font {
  font-family: var(--lm-font-ui);
}

.open-sans-font {
  font-family: var(--lm-font-body);
}

hr.separator {
  border-top: 1px solid var(--lm-border);
  margin: 70px auto 55px;
  max-width: 40%;
}

.ft-wt-600 {
  font-weight: 600;
}

.mb-30 {
  margin-bottom: 30px;
}

.no-transform {
  transform: none !important;
}

.custom-title {
  padding-bottom: 22px;
  font-size: 26px;
}

/* Light Body — tutte le regole body.light rimosse.
   Le variabili --lm-* da lm-brand.css switchano automaticamente
   quando body ha classe .light */

/*** Buttons ***/

.button {
  overflow: hidden;
  display: inline-block;
  line-height: 1.4;
  border-radius: 35px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: center;
  cursor: pointer;
  vertical-align: middle;
  user-select: none;
  transition: 250ms all ease-in-out;
  text-transform: uppercase;
  text-decoration: none !important;
  position: relative;
  z-index: 1;
  padding: 16px 70px 16px 35px;
  font-size: 15px;
  font-weight: 600;
  color: var(--lm-text);
  background-color: transparent;
  outline: none !important;
}

.button .button-text {
  position: relative;
  z-index: 2;
  color: var(--lm-text);
  transition: .3s ease-out all;
}

.button::before {
  z-index: -1;
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateX(100%);
  transition: .3s ease-out all;
}

.button:hover .button-text {
  color: var(--lm-text);
}

.button:hover::before {
  transform: translateX(0);
}

.button-icon {
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: 0;
  width: 55px;
  height: 55px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 19px;
  color: var(--lm-text);
  border-radius: 50%;
}

/*** Page Title ***/

.title-section {
  margin: 0 auto;
  width: 100%;
  position: relative;
  padding: 80px 0;
}

.title-section h1 {
  font-size: 56px;
  font-weight: 900;
  color: var(--lm-text);
  text-transform: uppercase;
  margin: 0;
}

.title-bg {
  font-size: 110px;
  left: 0;
  letter-spacing: 10px;
  line-height: 0.7;
  position: absolute;
  right: 0;
  top: 50%;
  text-transform: uppercase;
  font-weight: 800;
  transform: translateY(-50%);
  color: rgb(255 255 255 / 7%);
}

/* [ HEADER ] */
/*================================================== */

/*** Desktop Navigation ***/

@media (width >= 992px) {

  /*** Navigation ***/

  .header {
    position: fixed;
    right: 30px;
    bottom: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    height: calc(100vh - 200px);
    top: 100px;
    opacity: 1;
    transition: opacity 0.3s;
  }

  .header.hide-header {
    z-index: 0 !important;
    opacity: 0;
  }

  .header ul.icon-menu {
    margin: 0;
    padding: 0;
  }

  .header ul.icon-menu li.icon-box {
    width: 50px;
    height: 50px;
    list-style: none;
    position: relative;
    display: flex;
    align-items: center;
    transition: .3s;
    margin: 20px 0;
    border-radius: 50%;
    background: var(--lm-surface);
  }

  .header ul.icon-menu li.icon-box i {
    color: var(--lm-text-muted);
    font-size: 19px;
    transition: .3s;
  }

  .header ul.icon-menu li.icon-box.active,
  .header ul.icon-menu li.icon-box:hover,
  .header ul.icon-menu li.icon-box.active i,
  .header ul.icon-menu li.icon-box:hover i {
    color: var(--lm-text);
  }

  .header .icon-box h2 {
    font-size: 15px;
    font-weight: 500;
  }

  .header .icon-box a {
    display: block;
    padding: 0;
    width: 50px;
    height: 50px;
  }

  .header .icon-box i.fa {
    position: absolute;
    pointer-events: none;
  }

  .header .icon-menu i {
    left: 0;
    right: 0;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-size: 35px;
    top: 15px;
  }

  .header .icon-box h2 {
    z-index: -1;
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    color: var(--lm-text);
    line-height: 50px;
    font-weight: 500;
    transition: all .3s;
    border-radius: 30px;
    text-transform: uppercase;
    padding: 0 25px 0 30px;
    height: 50px;
  }

  .header .icon-box a:hover h2 {
    opacity: 1;
    right: 27px;
    margin: 0;
    text-align: center;
    border-radius: 30px 0 0 30px;
  }
}

/* [ Pages ] */
/*================================================== */

/*** Homepage ***/

.home .color-block {
  position: fixed;
  height: 200%;
  width: 100%;
  transform: rotate(-15deg);
  left: -83%;
  top: -50%;
}

.home .bg {
  background-image: url("http://via.placeholder.com/610x1020");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  height: calc(100vh - 80px);
  z-index: 111;
  border-radius: 30px;
  left: 40px;
  top: 40px;
  box-shadow: 0 0 7px rgb(0 0 0 / 90%);
}

.home .container-home {
  display: flex;
  align-items: center;
  min-height: 100%;
}

.home .home-details > div {
  max-width: 550px;
  margin: 0 auto;
}

.home .home-details h1 {
  font-size: 51px;
  line-height: 62px;
  font-weight: 700;
  margin: 18px 0 10px;
  position: relative;
  padding-left: 70px;
}

.home .home-details h1::before {
  content: '';
  position: absolute;
  left: 0;
  top: 29px;
  height: 4px;
  width: 40px;
  border-radius: 10px;
}

.home .home-details h1 span {
  color: var(--lm-text);
  display: block;
}

.home .home-details h6 {
  color: var(--lm-text-muted);
  font-size: 22px;
  font-weight: 400;
  display: block;
}

.home .home-details p {
  margin: 15px 0 28px;
  font-size: 16px;
  line-height: 35px;
}

/*** About ***/

.about .main-content {
  padding-bottom: 20px;
}

/* Personal Info List */

.about .about-list li:not(:last-child) {
  padding-bottom: 20px;
}

.about .about-list .title {
  opacity: .8;
  text-transform: capitalize;
}

.about .about-list .value {
  font-weight: 600;
}

/* Box Stats */

.about .box-stats {
  padding: 20px 30px 25px 40px;
  border-radius: 5px;
  border: 1px solid var(--lm-border);
}

.about .box-stats.with-margin {
  margin-bottom: 30px;
}

.about .box-stats h3 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: 50px;
  font-weight: 700;
}

.about .box-stats h3::after {
  content: '+';
  position: absolute;
  right: -24px;
  font-size: 33px;
  font-weight: 300;
  top: 2px;
}

.about .box-stats p {
  padding-left: 45px;
}

.about .box-stats p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 30px;
  height: 1px;
  background: var(--lm-text-muted);
}

/* Resume */

.about .resume-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about .resume-box li {
  position: relative;
  padding: 0 20px 0 60px;
  margin: 0 0 50px;
}

.about .resume-box li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  bottom: 0;
  border-left: 1px solid var(--lm-border);
}

.about .resume-box .icon {
  width: 40px;
  height: 40px;
  position: absolute;
  left: 0;
  right: 0;
  line-height: 40px;
  text-align: center;
  z-index: 1;
  border-radius: 50%;
  color: var(--lm-text);
  background-color: var(--lm-surface);
}

.about .resume-box .time {
  color: var(--lm-text);
  font-size: 12px;
  padding: 1px 10px;
  display: inline-block;
  margin-bottom: 12px;
  border-radius: 20px;
  font-weight: 600;
  background-color: var(--lm-surface);
  opacity: .8;
}

.about .resume-box h5 {
  font-size: 18px;
  margin: 7px 0 10px;
}

.about .resume-box p {
  margin: 0;
  color: var(--lm-text-muted);
  font-size: 14px;
}

.about .resume-box .place {
  opacity: .8;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding-left: 26px;
}

.about .resume-box .place::before {
  position: absolute;
  content: '';
  width: 10px;
  height: 2px;
  background-color: var(--lm-text);
  left: 7px;
  top: 9px;
  opacity: .8;
}

/* Skills */

.about .c100 {
  float: none !important;
  margin: 0 auto;
  background-color: var(--lm-surface);
}

.about .c100 > span {
  color: var(--lm-text);
}

.about .c100::after {
  background-color: var(--lm-bg);
}

/*** Portfolio ***/

.portfolio .main-content {
  padding-bottom: 60px;
  margin-top: -15px;
}

/* Grid */

.portfolio .grid-gallery ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portfolio .grid-gallery figure {
  margin: 0;
}

.portfolio .grid-gallery figure img {
  display: block;
  width: 100%;
  border-radius: 5px;
  transition: .3s;
}

.portfolio .grid-wrap {
  margin: 0 auto;
}

.portfolio .grid {
  margin: 0 auto;
}

.portfolio .grid li {
  width: 33.3333%;
  float: left;
  cursor: pointer;
  padding: 15px;
}

.portfolio .grid figure {
  transition: 0.3s;
  border-radius: 5px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.portfolio .grid figure img {
  display: block;
  position: relative;
}

.portfolio .grid li a {
  overflow: hidden;
}

.portfolio .grid li figure div {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.portfolio .grid li figure div span {
  margin: 0;
  text-transform: uppercase;
  color: var(--lm-text);
  font-size: 18px;
}

/* Slideshow */

.portfolio .slideshow {
  position: fixed;
  background: rgb(0 0 0 / 85%);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1111;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  perspective: 1000px;
  transition: opacity 0.5s, visibility 0s 0.5s;
  text-align: left;
}

.portfolio .slideshow-open .slideshow {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s;
}

.portfolio .slideshow ul {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translate3d(0,0,150px);
  transition: transform 0.5s;
}

.portfolio .slideshow ul.animatable > li {
  transition: transform 0.5s;
}

.portfolio .slideshow-open .slideshow ul {
  transform: translate3d(0,0,0);
}

.portfolio .slideshow ul > li {
  width: 660px;
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -280px 0 0 -330px;
  visibility: hidden;
}

.portfolio .slideshow ul > li.show {
  visibility: visible;
}

.portfolio .slideshow ul > li::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgb(0 0 0 / 70%);
  transition: opacity 0.3s;
  z-index: 111;
  border-radius: 10px;
}

.portfolio .slideshow ul > li.current::after {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0s 0.3s;
}

.portfolio .slideshow figure {
  width: 100%;
  height: 100%;
  background: var(--lm-surface);
  padding: 30px;
  overflow: auto;
  border-radius: 10px;
}

.portfolio .slideshow a {
  text-decoration: underline;
}

.portfolio .slideshow figcaption {
  margin-bottom: 15px;
}

.portfolio .slideshow figcaption h3 {
  text-transform: uppercase;
  padding: 10px 0 20px;
  font-weight: 700;
  text-align: center;
  font-size: 33px;
}

/* Embedded Videos */

.portfolio .slideshow .videocontainer,
.portfolio .slideshow .responsive-video {
  max-width: 100%;
  border-radius: 4px;
  display: block;
  object-fit: cover;
}

.portfolio .slideshow .videocontainer {
  position: relative;
  padding-bottom: 56.20%;
  padding-top: 0;
  height: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  display: block;
  margin: 0;
  border-radius: 4px;
}

.portfolio .slideshow .videocontainer iframe,
.portfolio .slideshow .videocontainer object,
.portfolio .slideshow .videocontainer embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Carousel */

.portfolio .slideshow .carousel-indicators {
  bottom: 0;
  background: rgb(0 0 0 / 40%);
  padding: 10px 0;
  margin: 0;
}

.portfolio .slideshow .carousel-indicators li {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 7px;
  background-color: var(--lm-text);
  opacity: 1;
}

/* Navigation */

.portfolio .slideshow nav span {
  position: fixed;
  z-index: 1000;
  text-align: center;
  cursor: pointer;
  padding: 200px 30px;
  color: var(--lm-text);
}

.portfolio .slideshow nav span.nav-prev,
.portfolio .slideshow nav span.nav-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 41px;
  line-height: 58px;
}

.portfolio .slideshow nav span.nav-prev {
  left: 0;
}

.portfolio .slideshow nav span.nav-next {
  right: 0;
}

.portfolio .slideshow nav span.nav-close {
  top: 30px;
  right: 30px;
  padding: 0;
}

/*** Contact ***/

.contact .main-content {
  padding-bottom: 85px;
}

/* Contact Cards */

.contact .contact-card {
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: 12px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.3s;
}

.contact .contact-card:hover {
  border-color: var(--lm-website-primary, var(--lm-gold));
  transform: translateY(-4px);
}

.contact .contact-card-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--lm-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.contact .contact-card:hover .contact-card-icon {
  background: var(--lm-website-primary, var(--lm-gold));
}

.contact .contact-card-icon i {
  font-size: 24px;
  color: var(--lm-website-primary, var(--lm-gold));
  transition: color 0.3s;
}

.contact .contact-card:hover .contact-card-icon i {
  color: var(--lm-bg);
}

.contact .contact-card h4 {
  font-family: var(--lm-font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--lm-text);
  margin-bottom: 8px;
}

.contact .contact-card p {
  margin: 0;
}

.contact .contact-card a {
  color: var(--lm-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.contact .contact-card a:hover {
  color: var(--lm-website-primary, var(--lm-gold));
}

.contact ul.social {
  margin: 0;
  padding: 0;
}

.contact ul.social li {
  display: inline-block;
}

.contact ul.social li a {
  display: inline-block;
  height: 50px;
  width: 50px;
  line-height: 50px;
  text-align: center;
  color: var(--lm-text-muted);
  transition: all 0.3s;
  font-size: 20px;
  margin: 0 8px;
  background: var(--lm-surface);
  border: 1px solid var(--lm-border);
  border-radius: 50%;
}

.contact ul.social li a:hover {
  background: var(--lm-website-primary, var(--lm-gold));
  border-color: var(--lm-website-primary, var(--lm-gold));
  color: var(--lm-bg);
  transform: translateY(-3px);
}

/* Form */

.contact .contactform input[type="text"],
.contact .contactform input[type="email"] {
  border: 1px solid var(--lm-bg);
  width: 100%;
  background: var(--lm-surface);
  color: var(--lm-text);
  padding: 11px 26px;
  margin-bottom: 30px;
  border-radius: 30px;
  outline: none !important;
  transition: .3s;
}

.contact .contactform textarea {
  border: 1px solid var(--lm-bg);
  background: var(--lm-surface);
  color: var(--lm-text);
  width: 100%;
  padding: 12px 26px;
  margin-bottom: 20px;
  height: 160px;
  overflow: hidden;
  border-radius: 30px;
  outline: none !important;
  transition: .3s;
}

.contact .contactform .form-message {
  margin: 24px 0;
}

.contact .contactform .output_message {
  display: block;
  color: var(--lm-text);
  height: 46px;
  line-height: 46px;
  border-radius: 30px;
}

.contact .contactform .output_message.success {
  background: var(--lm-success);
}

.contact .contactform .output_message.success::before {
  font-family: FontAwesome;
  content: "\f14a";
  padding-right: 10px;
}

.contact .contactform .output_message.error {
  background: var(--lm-error);
}

.contact .contactform .output_message.error::before {
  font-family: FontAwesome;
  content: "\f071";
  padding-right: 10px;
}

/*** Blog ***/

.blog .main-content {
  padding-bottom: 85px;
}

/* Latest Posts */

.blog .post-container {
  display: block;
}

.blog .post-content {
  background-color: var(--lm-surface);
  padding: 20px 25px 25px;
  border-radius: 0 0 5px 5px;
}

.blog .post-content .entry-header h3 {
  line-height: 26px;
  cursor: pointer;
}

.blog .post-content .entry-header h3 a {
  text-decoration: none;
  transition: .5s;
}

.blog .post-thumb {
  border-radius: 5px 5px 0 0;
  cursor: pointer;
}

.blog .post-thumb a {
  border-radius: 5px 5px 0 0;
}

.blog .post-container:hover img {
  transform: scale(1.2);
}

.blog .post-thumb a img {
  border-radius: 5px 5px 0 0;
  transition: .3s;
}

.blog .post-content .entry-content p {
  margin: 15px 0 5px;
}

.blog .post-content .entry-header h3 a {
  color: var(--lm-text);
  font-size: 20px;
  font-weight: 600;
}

/* pagination */

.blog .pagination {
  margin-bottom: 30px;
}

.blog .page-link {
  color: var(--lm-text);
  background-color: var(--lm-surface);
  border: 1px solid var(--lm-surface);
  padding: 0;
  margin: 0 10px;
  border-radius: 50% !important;
  width: 43px;
  height: 43px;
  line-height: 43px;
  text-align: center;
  transition: .3s;

}

.blog .page-link:focus,
.blog .page-link:active{
  box-shadow: none !important;
}

.blog .page-link:hover {
  color: var(--lm-text) !important;
}

/* Blog Post */

.blog-post article {
  max-width: 700px;
  margin: 0 auto;
}

.blog-post article h1 {
  font-weight: 600;
  margin: 13px 0 20px;
}

.blog-post article img {
  border-radius: 5px;
  margin-bottom: 20px;
}

.blog-post .meta {
  color: var(--lm-text-muted);
  font-size: 13px;
}

.blog-post .meta span {
  padding-right: 15px;
}

.blog-post .meta i {
  padding-right: 3px;
}

/* [ RESPONSIVE DESIGN STYLES ] */

@media (width >= 1351px) {
  .portfolio .container-portfolio .grid {
    text-align: left;
  }
}

@media (992px <= width <= 1350px) {
  .container {
    max-width: calc(100% - 195px);
  }

  .portfolio .container-portfolio {
    max-width: calc(100% - 195px);
  }
}

@media (width <= 1200px) {
  .home .home-details h1 {
    padding-left: 0;
  }
  .home .home-details h1::before {
    display: none;
  }
}

@media (992px <= width <= 1200px) {
  .home .home-details h1 {
    font-size: 42px;
    line-height: 52px;
  }
}

@media (992px <= width <= 1100px) {
  .home .home-details > div {
    max-width: 450px;
  }
}

@media (width >= 1600px) {
  .home .home-details > div {
    max-width: 600px;
  }
}

@media (width >= 992px) {
  .home .home-details-container {
    width: 100%;
    height: 100vh;
  }

  body.home {
    overflow: hidden;
  }
}

/* Mobile  Navigation */

@media (width <= 991px) {

  body.home {
    padding: 25px;
  }

  body.home .main-container {
    padding: 30px 0 !important;
  }

  .home .home-details-container {
    margin: 0 auto;
  }

  .home .home-details {
    padding: 0;
  }

  .main-img-mobile {
    border-radius: 50%;
    width: 270px;
    height: 270px;
    border: 4px solid var(--lm-surface);
    margin: 0 auto 25px;
    display: block;
  }

  .home .home-details h1 {
    font-size: 38px;
    line-height: 48px;
    margin: 29px 0 13px;
  }

  .home .home-details p {
    margin: 10px 0 23px;
    font-size: 15px;
    line-height: 30px;
  }

  #menuToggle {
    display: inline-block;
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1111;
    user-select: none;
    padding: 19px 0 0 16px;
    width: 54px;
    height: 54px;
    border-radius: 5px;
    background: var(--lm-surface);
  }

  #menuToggle input {
    display: flex;
    width: 54px;
    height: 54px;
    position: absolute;
    cursor: pointer;
    opacity: 0;
    z-index: 2;
    top: 0;
    left: 0;
  }

  #menuToggle > span {
    display: flex;
    width: 23px;
    height: 2px;
    margin-bottom: 5px;
    position: relative;
    background: var(--lm-text);
    border-radius: 3px;
    z-index: 1;
    transform-origin: 5px 0;
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
    opacity 0.55s ease;
  }

  #menuToggle > span:first-child {
    transform-origin: 0 0;
  }

  #menuToggle > span:nth-last-child(2) {
    transform-origin: 0 100%;
  }

  #menuToggle input:checked ~ span {
    opacity: 1;
    transform: rotate(45deg) translate(4px, 0);
    background: var(--lm-text);
  }

  #menuToggle input:checked ~ span:nth-last-child(3) {
    opacity: 0;
    transform: rotate(0deg) scale(0.2, 0.2);
  }

  #menuToggle input:checked ~ span:nth-last-child(2) {
    transform: rotate(-45deg) translate(2px, 4px);
  }

  #menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 60px;
    background-color: var(--lm-surface);
    transform-origin: 0 0;
    transform: translate(-100%, 0);
    transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
  }

  #menuToggle input:checked ~ ul {
    transform: none;
  }

  #menu li {
    position: relative;
    padding-left: 30px;
  }

  #menu li::after {
    position: absolute;
    content: '';
    height: 1px;
    width: calc(100% - 60px);
    background: var(--lm-border);
    left: 30px;
  }

  #menu li:last-child::after {
    display: none;
  }

  #menu li.active a span {
    font-weight: 600;
  }

  #menu li a {
    color: var(--lm-text);
    text-transform: uppercase;
    transition-delay: 2s;
    font-size: 26px;
    display: block;
    text-decoration: none;
    padding: 14px 0;
    position: relative;
  }

  #menu li a span {
    position: absolute;
    left: 50px;
    font-weight: 400;
  }

  .portfolio .grid li {
    width: 50%;
  }

  .portfolio .grid li figure div {
    display: none !important;
  }

  .portfolio .slideshow {
    background: var(--lm-surface);
  }

  .portfolio .slideshow nav span {
    padding: 0;
  }

  .portfolio .slideshow ul > li {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
  }

  .portfolio .slideshow ul > li::after {
    display: none;
  }

  .portfolio .slideshow figure {
    padding: 125px 30px 30px;
    border-radius: 0;
    max-width: 720px;
    margin: 0 auto;
  }

  .portfolio .slideshow nav span.nav-prev,
  .portfolio .slideshow nav span.nav-next {
    top: 35px;
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav span.nav-next {
    right: 30px;
  }

  .portfolio .slideshow nav span.nav-prev {
    left: 30px;
  }

  .portfolio .slideshow nav span.nav-prev img,
  .portfolio .slideshow nav span.nav-next img {
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav span::before {
    display: none;
  }

  .portfolio .slideshow nav span.nav-close {
    top: 35px;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 32px;
    height: 32px;
    display: block;
    line-height: 0;
  }

  .portfolio .slideshow nav span.nav-close img {
    width: 32px;
    height: 32px;
  }

  .portfolio .slideshow nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 102px;
    background: var(--lm-surface);
    z-index: 1;
    border-bottom: 1px solid var(--lm-border);
  }

  .contact .main-content {
    padding-bottom: 0;
  }
}

@media (width <= 767px) {
  .home .home-details p {
    font-size: 14px;
    line-height: 28px;
  }
}

@media (width <= 576px) {

  body {
    font-size: 14px;
  }

  .title-section.revealator-delay1 {
    transform: none !important;
    opacity: 1 !important;
  }

  #menuToggle {
    right: 10px;
    top: 4px;
    padding: 19px 0 0 13px;
    width: 49px;
    height: 49px;
  }

  .home #menuToggle {
    right: 25px;
    top: 25px;
    padding: 17px 0 0 13px;
  }

  #menu li {
    padding-left: 25px;
  }

  #menu li a {
    font-size: 18px;
  }

  #menu li::after {
    width: calc(100% - 50px);
    left: 25px;
  }

  #menu li a span {
    left: 35px;
  }

  .main-content {
    padding-top: 85px;
  }

  .main-content > .container {
    padding: 0 25px;
  }

  .main-img-mobile {
    width: 230px;
    height: 230px;
  }

  .home .home-details h1 {
    font-size: 29px;
    line-height: 39px;
    margin: 18px 0 13px;
  }

  .home .home-details h6 {
    font-size: 19px;
  }

  .title-section {
    padding: 16px 25px 14px;
    background: var(--lm-surface);
    border-bottom: 1px solid var(--lm-border);
    margin-bottom: 36px;
    position: fixed;
    right: 0;
    left: 0;
    z-index: 11;
    top: 0;
  }

  .title-section h1 {
    font-size: 26px;
  }

  .title-bg {
    display: none;
  }

  .custom-title {
    font-size: 21px;
  }

  .about .main-content {
    padding-bottom: 0;
  }

  .about .resume-box h5 {
    font-size: 17px;
  }

  .about .box-stats {
    padding: 15px 20px 20px 25px;
  }

  .about .c100 {
    transform: scale(.8);
  }

  .about .box-stats.with-margin {
    margin-bottom: 25px;
  }

  .about .box-stats h3 {
    font-size: 40px;
  }

  .about .box-stats p {
    padding-left: 0;
  }

  .about .box-stats p::before {
    display: none;
  }

  .portfolio .main-content {
    padding-bottom: 10px;
    margin-top: -12px;
  }

  .portfolio .grid li {
    width: 100%;
  }

  .portfolio .main-content > .container {
    padding: 0 10px;
  }

  .portfolio .slideshow figure {
    padding: 85px 25px 25px;
  }

  .portfolio .slideshow figcaption h3 {
    font-size: 25px;
  }

  .portfolio .slideshow nav span.nav-prev,
  .portfolio .slideshow nav span.nav-next {
    top: 9px;
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-next {
    right: 20px;
  }

  .portfolio .slideshow nav span.nav-prev {
    left: 20px;
  }

  .portfolio .slideshow nav span.nav-prev img,
  .portfolio .slideshow nav span.nav-next img {
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-close {
    top: 21px;
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav span.nav-close img {
    width: 20px;
    height: 20px;
  }

  .portfolio .slideshow nav {
    height: 62px;
  }

  .blog .main-content {
    padding-bottom: 55px;
  }

  .blog-post article h1 {
    font-size: 25px;
  }

  .separator.mt-1 {
    margin-top: 35px !important;
  }
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  right: 0;
  bottom: 20px;
  z-index: 9999;
}

.theme-switcher-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px 0 0 4px;
  background-color: var(--lm-border);
  color: var(--lm-text);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.theme-switcher-toggle:hover {
  background-color: var(--lm-border);
}

.theme-switcher-panel {
  position: absolute;
  right: -200px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  background-color: var(--lm-border);
  border-radius: 4px 0 0 4px;
  transition: right 0.3s ease;
}

.theme-switcher.open .theme-switcher-panel {
  right: 0;
}

.theme-switcher.open .theme-switcher-toggle {
  right: 48px;
  bottom: 0;
}

.theme-switcher.open .theme-switcher-toggle i::before {
  content: "\f00d";
}

.theme-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.theme-option:hover {
  transform: scale(1.2);
}

.theme-option.active {
  border-color: var(--lm-text);
}


/* Footer — sticky bottom via flexbox (vedi body {display:flex}).
   margin-top:auto + flex-shrink:0 lo spingono a fondo viewport quando il
   contenuto e' corto, oppure lo lascia in coda quando si scrolla. */
.footer {
  padding: 12px 0;
  text-align: center;
  background-color: var(--lm-bg);
  border-top: 1px solid var(--lm-border);
  flex-shrink: 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.footer p {
  margin: 0;
  font-size: 13px;
  color: var(--lm-text-muted);
}

/* Override Bootstrap reset `strong { font-weight: bolder }` che a volte non rende
   peso 700 visibile sul testo footer (font-weight inherited 400 + bolder ambiguo). */
.footer strong {
  font-weight: 700;
  color: var(--lm-text);
}

.footer-separator {
  display: inline;
}

@media (width <= 576px) {
  .footer-separator {
    display: none;
  }

  .footer-item {
    display: block;
    line-height: 2;
  }

  /* (body padding-bottom non piu' necessario: footer ora flex sticky,
     non e' piu' position:fixed quindi non sovrasta il contenuto.) */
}

/* Skill Badges */
.badge-skill {
  display: inline-block;
  padding: 8px 16px;
  margin: 4px;
  border-radius: 20px;
  font-size: 13px;
  font-family: var(--lm-font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background-color: rgb(0 0 0 / 6%);
  color: var(--lm-text-muted);
  transition: all 0.3s ease;
}

.badge-skill:hover {
  background-color: var(--skin-color, var(--lm-website-primary, var(--lm-gold)));
  color: var(--lm-text);
}

.badge-skill-sm {
  font-size: 11px;
}

/*** Project Detail Page ***/

/*** Portfolio Cards ***/

.project-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border-color: var(--skin-color, var(--lm-website-primary, var(--lm-gold)));
}

.project-card-img {
  padding: 20px;
  text-align: center;
}

.project-card-img img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  border-radius: 8px;
}

.project-card-body {
  padding: 0 20px 20px;
  text-align: center;
}

.project-card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #fff;
}

.project-card-tech {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
}

.project-card-dismissed {
  opacity: 0.45;
  filter: grayscale(40%);
  pointer-events: auto;
}

.project-card-dismissed:hover {
  opacity: 0.65;
}

/*** Status Badges ***/

.badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-status i {
  margin-right: 4px;
}

.badge-status-active {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.badge-status-dev {
  background: rgba(23, 162, 184, 0.15);
  color: #17a2b8;
  border: 1px solid rgba(23, 162, 184, 0.3);
}

.badge-status-dismissed {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

/*** Project Detail Page ***/

.project-detail-img {
  border-radius: 12px;
  max-width: 100%;
}

.project-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.project-section {
  padding: 15px 0;
}

.project-section-title {
  text-transform: uppercase;
  font-weight: 600;
  color: var(--skin-color, var(--lm-website-primary, var(--lm-gold)));
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.project-section-title i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

.project-details-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.project-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-detail-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  text-transform: uppercase;
  min-width: 90px;
}

.project-detail-value {
  color: var(--skin-color, var(--lm-website-primary, var(--lm-gold)));
  font-weight: 600;
}

.project-actions {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ============================================================
   Kit (lm-website-kit) overrides specifici CV
   ============================================================ */

/* Centra orizzontalmente la lista ProfileSocials nel contesto contatti CV.
   Il kit lascia il default flex-start per dare flessibilita al consumer.
   Su pagina contatti CV vogliamo le icone centrate sotto al titolo "Seguimi". */
.lm-profile-socials {
  justify-content: center;
}

/* Centra orizzontalmente i numeri kit StatsCounter. Default kit usa griglia
   con valore + label allineati a sinistra; nel CV "About" vogliamo card
   centrate per coerenza visiva con il vecchio counter. */
.lm-stats {
  justify-content: center;
}
.lm-stats__item {
  text-align: center;
}
