/* Hide pagination dots on desktop */
.bannr-main-slider .swiper-pagination {
  display: none;
}

@media screen and (max-width: 1500px) {}

@media screen and (max-width: 1400px) {}

@media screen and (max-width: 1300px) {}

@media screen and (max-width: 1200px) {


  .magazine-box-grid>div img {
    height: auto;
  }

  .magazine-box-grid div>a>div>button>svg {
    display: none;
  }

  .casi-studio0-card h3 {
    font-size: 20px;
  }

  .casi-studio0-card p {
    font-size: 14px;
  }

  .casi-studio0-card>a>button>svg {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  .logo-side {
    z-index: 999999;
  }

  .mobile-toggle {
    display: flex !important;
  }

  .home-gradient-mobile {
    background: linear-gradient(180deg,
        #736e34 2.81%,
        #a97132 33.88%,
        #5f502f 64.31%,
        #1d3932 99.65%);
  }

  .mobile-toggle.is-hidden {
    display: none !important;
    color: transparent;
  }

  .nav-side ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: rgba(24, 24, 24, 0.98);
    backdrop-filter: blur(15px);
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: flex-start;
    transition: left 0.4s ease;
    z-index: 1000;
    padding: 100px 50px 50px 50px !important;
    box-shadow: none;
    border: none;

    /* ✅ NO SCROLL nel menu */
    overflow: hidden !important;
    -webkit-overflow-scrolling: auto !important;
  }

  .nav-side ul.active {
    left: 0;
  }

  /* Overlay */
  .nav-side ul::before {
    content: '';
    position: fixed;
    top: 0;
    left: -100%;
    width: 100vw;
    height: 100vh;
    background: var(--bs-body-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: -1;
  }

  .nav-side ul.active::before {
    left: 0;
    opacity: 1;
    visibility: visible;
  }

  /* Colore menu mobile: bianco */
  .nav-side ul li a,
  .nav-side ul.active li a {
    color: #fff !important;
  }

  .main-header .nav-side ul li:hover>a {
    color: #fff !important;
  }

  .nav-side ul li a:hover {
    color: #fff !important;
    padding-left: 0px;
  }

  /* Arancione solo attivi */
  .nav-side ul li.current-menu-item>a,
  .nav-side ul li.current_page_item>a,
  .nav-side ul li.current-menu-ancestor>a,
  .nav-side ul li.current_page_ancestor>a,
  .nav-side ul li.active>a {
    color: #ee7d34 !important;
  }

  /* Spegni dot/after globali su mobile */
  .nav-side ul li>a::after {
    background: none !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .nav-side ul li {
    margin: 0;
    width: 100%;
    text-align: left;
  }

  .nav-side ul li a {
    font-size: 24px;
    font-weight: 500;
    padding: 15px 0;
    border-radius: 8px;
    transition: color 0.2s ease;
    display: block;
    position: relative;
    text-align: left;
    width: 100%;
  }

  /* submenu */
  .nav-side ul li.has-submenu {
    position: relative;
  }

  .nav-side ul li.has-submenu .submenu {
    position: static !important;
    width: 100%;
    display: none;
    margin-top: 8px;

    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-top: none !important;
    padding: 0 !important;
    height: auto !important;
  }

  .nav-side ul li.has-submenu.open .submenu {
    display: block;
    animation: slideDown 0.3s ease;
  }

  .nav-side ul li.has-submenu>a {
    padding-right: 56px !important;
  }

  /* freccia triangolo */
  .nav-side ul li.has-submenu>a::after {
    content: "" !important;
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    bottom: auto !important;
    left: auto !important;

    transform: translateY(-50%) rotate(0deg) !important;

    width: 12px !important;
    height: 7.5px !important;

    background: transparent !important;
    background-color: transparent !important;
    border-radius: 0 !important;

    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="8" viewBox="0 0 9 8" fill="none"><path d="M4.5 8L9 0L0 0L4.5 8Z" fill="white"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-size: contain !important;

    opacity: 1 !important;
    pointer-events: none;
    transition: transform 0.25s ease, background-image 0.25s ease;
    display: inline-block !important;
  }

  .nav-side ul li.has-submenu.open>a::after {
    transform: translateY(-50%) rotate(180deg) !important;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="8" viewBox="0 0 9 8" fill="none"><path d="M4.5 8L9 0L0 0L4.5 8Z" fill="%23ee7d34"/></svg>') !important;
  }

  .nav-side ul li .submenu li {
    margin: 4px 0;
  }

  .nav-side ul li .submenu li a {
    padding: 10px 0 10px 18px;
    font-size: 18px;
    color: #fff !important;
    border-left: 3px solid transparent;
  }

  .nav-side ul li .submenu li a:hover {
    background: rgba(238, 125, 52, 0.05);
    color: #fff !important;
    border-left-color: transparent;
    padding-left: 18px;
  }

  .nav-side ul li .submenu li.current-menu-item>a,
  .nav-side ul li .submenu li.current_page_item>a,
  .nav-side ul li .submenu li.active>a {
    color: #ee7d34 !important;
    border-left-color: #ee7d34;
  }

  .mobile-close {
    position: absolute;
    top: 0px;
    right: 0px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: none;
    color: #fff;
    font-size: 32px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
  }
.magazine-details-data div h1{
  font-size: 35px;
}
  .mobile-close:hover {
    background: rgba(238, 125, 52, 0.2);
    transform: scale(1.1);
  }

  .nav-side ul.active .mobile-close {
    display: flex;
  }

  .slider-home-img-desk {
    display: none;
  }

  .slider-home-img-mobile {
    display: block;
  }

}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 40px);
  }

  .main-header {
    padding: 15px 0;
  }

  .main-center-txt h1 {
    font-size: 38px;
    margin-bottom: 20px;
  }

  .main-center-txt p {
    font-size: 16px;
  }

  .bnnr-top-txt ul {
    padding: 0;
  }

  .bnnr-top-txt ul li {
    font-size: 13px;
  }

  .bannr-main-slider .swiper-slide {
    width: 300px;
    height: 300px;
  }

  .bnnr-top-slider .owl-stage-outer {
    overflow: visible;
  }

  .casi-studio0-card {
    padding: 40px 20px;
  }

  .casi-studio0-card h3 {
    font-size: 24px;
  }

  .casi-studio0-card p {
    font-size: 16px;
    font-weight: 300;
  }

  .insight-card {
    flex-direction: column;
    text-align: center;
    padding-right: 0;
  }

  .insight-card>img {
    min-width: 100px !important;
    width: 100px !important;
  }

  .recensioni-slider .swiper-slide {
    padding: 20px;
  }

  .bottom-img-carousel .owl-stage-outer {
    overflow: visible;
  }

  .business-sec>div {
    padding: 90px 20px;
    box-sizing: border-box;
    height: 350px;
  }

  .business-sec {
    grid-template-columns: auto;
    flex-direction: column;
    display: flex;
  }

  .Beautiful-Insight {
    flex-direction: column;
    display: flex;
  }

  .casi-studio-header>button {
    display: none;
  }

  .casi-studio-header {
    justify-content: center;
  }

  .casi-studio-header h2 {
    font-size: 38px;
  }

  .beautiful-insight-content {
    width: 100%;
    text-align: center;
  }

  .beautiful-insight-slide .insight-card {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .footer-midale {
    grid-template-columns: 1fr 1fr;
  }

  .contattaci-search {
    position: relative;
  }
}

@media screen and (max-width: 768px) {
  .nav-side ul {
    width: 100%;
  }

  .footer-midale>div h3 {
    font-size: 12px;
  }

  .bannr-main-slider {
    overflow: hidden;
  }

  .bannr-main-slider .swiper-slide {
    width: 100% !important;
    height: 250px;
  }

  .bannr-main-slider .swiper-pagination {
    display: block !important;
    position: relative;
    margin-top: 30px;
  }

  .bottom-img-carousel .owl-stage {
    display: flex !important;
    width: 100% !important;
  }

  .bottom-img-carousel .owl-item {
    width: 100% !important;
    flex: 0 0 100% !important;
  }

  .main-center-txt h1 {
    font-size: 35px;
  }

  .casi-studio0-card {
    padding: 30px;
  }

  .casi-studio0-card h3 {
    font-size: 25px;
  }

  .beautiful-insight-zigzak {
    flex-direction: column;
    gap: 40px;
  }

  .beautiful-insight-zigzak>div {
    padding: 60px 20px;
    height: auto;
  }

  .magazine-box-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 40px;
  }

  .contattaci-search {
    width: 100%;
  }

  .business-sec>div>div h2 {
    font-size: 28px;
  }

  .beautiful-insight-content h2 {
    font-size: 38px;
  }

  .beautiful-insight-slide .owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 10px;

    top: auto !important;
  }

  .beautiful-insight-slide {
    margin-top: 10px;
  }

  .casi-studio-main h2 {
    font-size: 38px;
  }

  .recensioni-sec h2 {
    font-size: 38px;
    margin-bottom: 10px !important;
  }

  /* .beautiful-insight-slide .owl-theme .owl-nav.disabled+.owl-dots {
    width: calc(100% - 140px);
  } */


  .beautiful-insight-zigzak div:nth-child(2) {
    margin-top: 0px !important;
  }

  .beautiful-insight-zigzak div:after {
    display: none;
  }

  .beautiful-insight-zigzak div:nth-child(4) {
    margin: 0 !important;
  }

  .beautiful-insight-zigzak {
    margin-bottom: 0px !important;
  }

  .main-header .nav-side ul {
    gap: 10px !important;
  }

  .magazine-heading {
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }

  .magazine-cate li {
    white-space: nowrap;
  }

  .magazine-cate {
    overflow: scroll;
  }

  .magazine-main-sec {
    padding-top: 20px;
  }

  .teans-gallery-carousal {
    display: block;
    margin-bottom: 0 !important;
  }

  .magazine-heading>div h1 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 38px;
  }

  .magazine-heading>div p {
    font-size: 16px;
    text-align: center;
  }

  .magazine-heading svg {
    width: 65px;
    height: 65px;
  }

  .ho-bisogno-main {
    grid-template-columns: auto !important;
  }

  .ho-bisogno-left h2 {
    font-size: 35px !important;
    text-align: center !important;
    margin-bottom: 30px !important;
  }

  .ho-bisogno-left {
    padding-right: 0 !important;
  }

  .ho-bisogno-left h3 {
    font-size: 30px !important;
    font-weight: 500 !important;
  }

  .teams-heading h2 {
    font-size: 38px !important;
    margin-top: 20px !important;
  }

  .teams-heading p br {
    display: none;
  }

  .teams-heading p {
    font-size: 16px !important;
  }

  .teans-gallery {
    display: none !important;
  }

  .teans-gallery-carousal {
    display: block;
    padding-bottom: 40px;
  }

  .contattaci-search button {
    font-size: 14px !important;
  }

  .main-header .nav-side ul li:last-child a:after {
    margin-left: 0 !important;
  }

  .beautiful-insight-zigzak {
    display: none;
  }

  .beautiful-insight-carousel-box {
    display: block;
  }

  .beautiful-insight-carousel-box {
    border-bottom: 2px solid #ed7d35;
    padding-bottom: 80px;
    position: relative;
  }

  .beautiful-insight {
    border-bottom: 0px;
  }

  .beautiful-insight-carousel-box::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 90px;
    background-color: #ed7d35;
    bottom: -2px;
  }

  .recensioni-slider p {
    font-size: 16px !important;
  }

  .beautiful-insight-carousel-box .owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 0px;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -140px;
  }

  .recensioni-slider .swiper-slide.swiper-slide-active>div {
    margin-right: 0px !important;
    padding-left: 20px;
    padding-right: 20px;
  }

  .recensioni-slider .swiper-slide {
    margin-right: 30px !important;
  }

  .bnnr-top-slider>div img {
    width: auto !important;
    height: auto !important;
    max-height: 60px !important;
    margin: auto !important;
    max-width: 100%;
  }

  .magazine-details-data {
    grid-template-columns: auto;
  }

  .magazine-details-data>div:first-child {
    display: none;
  }

  .magazine-details-data div h2 {
    font-size: 28px;
  }

  .flex-direction-initial {
    flex-direction: inherit !important;
  }

  .casi-studio-main>button {
    margin-top: 30px !important;
  }

  .magazine-details-data div p {
    font-size: 18px;
  }

  .main-center-txt p br {
    display: none;
  }

  .magazine-main-sec {
    padding-top: 90px;
    background: linear-gradient(153deg, #633416 2.81%, #184239 39.85%, #633416 99.7%);
  }

  .ho-bisogno-sec {
    margin-top: 0 !important;
  }

  .magazine-details-data {
    margin-top: 30px;
  }

  .magazine-gradient {
    padding-bottom: 80px;
    background: linear-gradient(153deg, #633416 2.81%, #184239 39.85%, #633416 99.7%) !important;
  }

  .magazine-main-sec {
    padding-top: 90px;
    background: linear-gradient(153deg, #633416 2.81%, #184239 39.85%, #633416 99.7%);
  }


  .business-right-shape {
    background: linear-gradient(134deg, #6e6448 -19.68%, #2b4b46 101.2%);
  }

  .main-header .logo-side img {
    height: 25px;
  }

  .main-banner {
    padding-top: 80px !important;
  }

  .desk-top-none {
    display: block !important;
  }

  .main-desk-view {
    display: none !important;
  }

  .business-left-shape .main-desk-view,
  h2.main-desk-view {
    display: block !important;
  }

  .main-center-txt button {
    padding: 16px 30px;
    width: 200px;
    padding-right: 50px;
  }

  .main-center-txt button:hover {
    padding: 15px 30px;
    padding-right: 50px;
  }

  .new-mobile-business {
    height: auto !important;
    padding: 10px !important;
  }

  .new-mobile-business .business-right-shape {
    width: 100% !important;
    height: 350px;
  }

  .new-mobile-business .business-right-shape h3 {
    display: none;
  }

  .business-sec>div {

    box-sizing: border-box;
    height: auto;
    padding: 40px 15px !important;

  }

  .new-mobile-business>h2 {
    color: #fff;
    font-family: Commissioner;
    font-size: 28px;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 20px;
    margin-top: 0;
    margin-top: 20px !important;
  }

  .Beautiful-Insight>div:first-child {
    background: #29292900 !important;
  }

  .Beautiful-Insight>div:first-child .business-right-shape {
    background: #292929 !important;
  }

  .bottom-img-slider .owl-theme .owl-nav.disabled+.owl-dots {
    bottom: -50px;
  }

  .footer-top {
    align-items: self-start;
  }

  .second-social ul {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 30px 0px;
  }

  .second-social ul li img {
    height: 20px;
  }

  .contattaci-search input {
    display: none;
  }

  .contattaci-search {
    border: 0;
    padding: 0;
  }

  .contattaci-search button {
    position: static;
    width: 100%;
    padding: 20px;
  }

  .contattaci-search p {
    color: #fff;
    font-family: Commissioner;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    display: block;
    text-decoration: none;
    margin-bottom: 30px;
    text-align: center;
  }

  .footer-midale {
    padding-bottom: 10px !important;
  }

  .teans-gallery-carousal .owl-theme .owl-nav.disabled+.owl-dots {
    margin-top: 30px !important;
  }

  .dots-in-mobile .owl-nav.disabled+.owl-dots {
    display: block !important;
  }

  .recensioni-slider .swiper-horizontal>.swiper-pagination-bullets,
  .swiper-pagination-bullets.swiper-pagination-horizontal,
  .swiper-pagination-custom,
  .swiper-pagination-fraction {
    bottom: var(--swiper-pagination-bottom, 5px) !important;
    display: block;
  }

  .recensioni-slider .mySlider {
    padding: 0px !important;
  }

  .teans-gallery-carousal .owl-carousel .owl-item img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .teans-gallery-carousal {
    margin: 60px 40px !important;
  }

  .casi-studio-sec {
    padding: 50px 0px !important;
  }

  .beautiful-insight-carousek {
    height: 380px !important;
    margin: 10px 20px !important;
  }

  .casi-studio-header {
    margin-bottom: 30px !important;
  }

  #chart-1-home {
    display: none !important;
  }

  .container.service .main-center-txt h1 {
    font-size: 35px !important;
  }

  .seo-acc-content p,
  .seo-acc-content h2,
  .seo-acc-content h3,
  .seo-acc-content ul,
  .seo-acc-content li {
    text-align: left !important;
  }
}