/*
Theme Name:     Archi Child
Theme URI:      https://themeforest.net/
Description:    Tema Child per il tema Archi
Author:         Cristina
Author URI:     #
Template:       archi
Version:        0.2.0
*/

#main-top-mm{
  min-height: 150px;
  padding: 40px 40px 20px;
  text-align: left;
  border-bottom: 2px solid #A7A3A4;
}
#main-top-mm .logo, #main-top-mm h1{
  display: inline-flex;
}
#main-top-mm .logo{
  width:160px
}
#main-top-mm h1{
  vertical-align: bottom;
  padding-left: 10px
}
#de-sidebar{
  top:150px !important;
  margin-top: 50px
}

#de-sidebar {
  width: 15% !important;
}
#de-sidebar .mainmenu li a{
  text-align: left
}
#de-sidebar .mainmenu li.current-menu-item > a{
  opacity:1
}
#de-sidebar #mainmenu > li > a, #de-sidebar .mainmenu > li > a{
  font-size:30px;
  letter-spacing: 0.5px;
}

#de-main {
  width: 83% !important;
  margin-left: 15% !important;
  /* margin-right: 10%; */
}

.de-navbar-left section, .de-navbar-left #content {
  padding: 0 !important;
}
.no-subpage {
  height: 0 !important;
}
.no-subheader header{
  box-shadow:none !important
}

/* Burger menu styles */
.mobile-menu-wrapper {
  position: relative;
  display:none;
}

#burger-menu {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  left: 0;  /* Changed to left alignment */
  top: 0;   /* Changed to specific top value */
  z-index: 1000;
}

#burger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Active state for burger menu */
#burger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#burger-menu.active span:nth-child(2) {
  opacity: 0;
}

#burger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu styles */
#mobile-menu {
  display: none;
  position: absolute;
  top: 20px;  /* Positioned below burger menu */
  left: 0;     /* Left aligned */
  background: white;
  min-width: 250px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 999;
  text-transform:uppercase;
}

#mobile-menu.active {
  display: block;
}

/* Mobile menu items styling */
#mobile-menu .mobile-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mobile-menu .mobile-nav li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

#mobile-menu .mobile-nav li:last-child {
  border-bottom: none;
}

#mobile-menu .mobile-nav a {
  color: #333;
  text-decoration: none;
  display: block;
}

/* Hide sidebar on mobile */
@media (max-width: 991px) {
  #de-sidebar {
    display: none;
  }
  .mobile-menu-wrapper {
    display: block;
  }
}


ul.portfolio-details-list{
  margin-top: 40px;
  list-style-type: none;
  padding-left: 4px;
  text-transform: uppercase;
  color: #6c6666;
}
ul.portfolio-details-list li {
  padding-bottom: 16px;
}

div.portfolio-description{
  margin-top: 40px;
  width:90%;
}

.single-portfolio-bottom {
  margin: 60px 100px;
}

.portfolio-navigation .portfolio-btn-prev a, .portfolio-navigation .portfolio-btn-next a, .portfolio-navigation .portfolio-btn-prev a:hover, .portfolio-navigation .portfolio-btn-next a:hover{
  background: none;
  border: 0;
}
.portfolio-navigation .portfolio-btn-prev a i.fa, .portfolio-navigation .portfolio-btn-next a i.fa{
  color: #888;
}

.project-overlay .project-name{
  color: #fff;
  font-size: 20px !important;
  font-weight: 300 !important;
}

.title_404{
  margin-top: 60px;
  font-size: 50px;
  font-weight: 400;
  margin-bottom: 20px;
}
.btn.btn-primary{
  color: #EAEAEA !important;
  border-color: #fff !important;
}

/* Container styles */
.vertical-box.vc_column_container {
  width: 31.33% !important; /* Slightly less than 33.33% to account for margins */
  margin-right: 1%;
  margin-left: 1%;
}

.vertical-box.vc_column_container .vc_column-inner {
  min-height: 600px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

/* Ensure the inner content div also stretches to full height */
.vertical-box.vc_column_container .vc_column-inner .wpb_wrapper {
  min-height: inherit;
  height: 100%;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Style the text container */
.vertical-box .wpb_text_column {
  width: 100%;
}

/* Style the h2 */
.vertical-box h2 {
  color: #000;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 15px 30px;
  margin: 0;
  text-transform: none;
}
.vertical-box h2 a:hover{
  text-decoration: none;
}

div.main-title{margin:40px 0 60px 0}
#projects_grid{margin:0 0 100px 0 !important;}


/* Extra small devices */
@media (max-width: 360px) {
    .projects-grid-wrapper {
        padding: 0 10px;
    }

    .project-overlay .project-name {
        font-size: 16px !important;
    }
    
    #de-main{
      width:94% !important;
    }
}

/* X-Small*/
@media (max-width: 575px){
  #de-main{
    margin-left:10px !important;
    width:94% !important;
  }
  #main-top-mm{
    text-align:center;
    padding: 40px 0px 20px;
  }
  #main-top-mm h1{
    font-size: 36px;
    line-height: 30px;
  }
  .page-content #contact_list ul{
    list-style-type: none;
    padding-left: 0;
  }
  .page-content #contact_map{
    text-align: center;
  }
}

@media (max-width: 767px) {
    /* Reset the absolute positioning for mobile */
    .projects-grid .project-item {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 25px;
    }

    /* Adjust the grid container */
    .projects-grid {
        height: auto !important;
        margin: 0 !important;
    }

    /* Adjust the project boxes */
    .projects-box {
        margin: 0 !important;
    }

    /* Make images responsive */
    .projects-thumbnail img {
        width: 100%;
        height: auto;
    }

    /* Adjust the grid wrapper */
    .projects-grid-wrapper {
        padding: 0 15px;
    }

    /* Ensure text overlay is readable */
    .project-overlay .project-name {
        font-size: 18px !important;
    }
}

/* Mobile menu styles */
@media (max-width: 991px) {
    /* Hide sidebar on mobile */
    #de-sidebar {
        display: none;
    }

    /* Show burger menu */
    .mobile-nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000;
        cursor: pointer;
        background: none;
        border: none;
        padding: 10px;
    }

    /* Burger icon */
    .mobile-nav-toggle span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: #000;
        margin: 5px 0;
        transition: all 0.3s ease;
    }

    /* Mobile menu container */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: #fff;
        z-index: 999;
        padding: 60px 20px 20px;
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    }

    /* Show menu when active */
    .mobile-menu.active {
        display: block;
    }

    /* Mobile menu items */
    .mobile-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-menu ul li {
        margin: 15px 0;
    }

    .mobile-menu ul li a {
        color: #000;
        font-size: 18px;
        text-decoration: none;
        display: block;
    }
    
  .vertical-box.vc_column_container {
    width: 100% !important;
    margin: 0 0 30px 0;
  }

  /* Remove margin from last box */
  .vertical-box.vc_column_container:last-child {
    margin-bottom: 0;
  }
}

@media (min-width: 1200px) {
  .container {
    width: 100%;
  }
}

/*LG - XL - XXL*/
@media (min-width: 992px){
  #home_height{
    min-height: 600px;
  }
}

