/* Header Navigation Styling */
.header {
  padding: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Logo styling - keep on the left */
.header__logo {
  display: flex;
  align-items: center;
}

.header__img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.header__title {
  font-size:16px;
  font-weight: 00;
  margin: 0;
  line-height: 1.2;
}

/* Navigation Menu Styling - position on the right */
.header__menu {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to the right */
}

.header__nav {
  display: block;
}

/* Make navigation items horizontal */
.header__elenco {
  display: flex;
  flex-direction: row; /* Explicitly set horizontal layout */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header__el {
  margin: 0 10px;
}

.header__link {
  font-size: 0.9rem;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header__link:hover {
  color: #478ac9;
}

/* Fix the collapse class */
.header__nav.collapse {
  display: block !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    align-items: center;
  }
  
  .header__menu {
    margin-top: 15px;
    margin-left: 0; /* Reset the auto margin on mobile */
  }
  
  .header__elenco {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header__el {
    margin: 5px;
  }
}



.u-section-1 {
    background-image: none;
    min-height: 975px;
  }
  
  .u-section-1 .u-shape-1 {
    height: 563px;
    margin-top: 0;
    margin-bottom: 0;
    --animation-custom_in-translate_x: 300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-1 .u-image-1 {
    width: 1140px;
    height: 657px;
    margin: -481px auto 0;
  }
  
  .u-section-1 .u-group-1 {
    width: 727px;
    min-height: 318px;
    background-image: none;
    height: auto;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    margin: -82px auto 0;
  }
  
  .u-section-1 .u-container-layout-1 {
    padding: 30px 45px;
  }
  
  .u-section-1 .u-text-1 {
    width: auto;
    margin: 0;
  }
  
  .u-section-1 .u-text-2 {
    margin: 27px auto 0;
  }
  
  .u-section-1 .u-btn-1 {
    border-style: solid;
    font-weight: 400;
    padding: 0;
  }
  
  .u-section-1 .u-btn-2 {
    background-image: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 300px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    border-style: solid;
    margin: 20px auto 0;
    padding: 16px 46px 17px;
  }
  
  @media (max-width: 1199px) {
     .u-section-1 {
      min-height: 848px;
    }
  
    .u-section-1 .u-image-1 {
      width: 940px;
      height: 542px;
    }
  
    .u-section-1 .u-group-1 {
      margin-top: -94px;
      height: auto;
    }
  }
  
  @media (max-width: 991px) {
     .u-section-1 {
      min-height: 721px;
    }
  
    .u-section-1 .u-image-1 {
      width: 720px;
      height: 415px;
    }
  
    .u-section-1 .u-group-1 {
      width: 720px;
      margin-top: 33px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding-left: 30px;
      padding-right: 30px;
    }
  }
  
  @media (max-width: 767px) {
     .u-section-1 {
      min-height: 617px;
    }
  
    .u-section-1 .u-image-1 {
      width: 540px;
      height: 311px;
    }
  
    .u-section-1 .u-group-1 {
      width: 540px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding: 25px;
    }
  }
  
  @media (max-width: 575px) {
     .u-section-1 {
      min-height: 594px;
    }
  
    .u-section-1 .u-shape-1 {
      height: 391px;
    }
  
    .u-section-1 .u-image-1 {
      width: 340px;
      height: 196px;
      margin-top: -309px;
    }
  
    .u-section-1 .u-group-1 {
      width: 340px;
      min-height: 283px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding-left: 30px;
      padding-right: 30px;
    }
  }.u-section-2 .u-sheet-1 {
    min-height: 658px;
  }
  
  .u-section-2 .u-layout-wrap-1 {
    margin-top: 60px;
    margin-bottom: 59px;
  }
  
  .u-section-2 .u-layout-cell-1 {
    min-height: 559px;
    --animation-custom_in-translate_x: -300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-2 .u-container-layout-1 {
    padding: 30px 30px 30px 0;
  }
  
  .u-section-2 .u-text-1 {
    margin: 0 auto 0 0;
  }
  
  .u-section-2 .u-text-2 {
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0;
  }
  
  .u-section-2 .u-btn-1 {
    border-style: solid;
    text-transform: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 20px auto 0 0;
    padding: 0;
  }
  
  .u-section-2 .u-layout-cell-2 {
    min-height: 559px;
    --animation-custom_in-translate_x: 300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-2 .u-container-layout-2 {
    padding: 30px;
  }
  
  .u-section-2 .u-form-1 {
    height: 299px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .u-section-2 .u-form-group-4 {
    margin-left: 0;
  }
  
  .u-section-2 .u-btn-2 {
    border-style: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-image: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  @media (max-width: 1199px) {
    .u-section-2 .u-sheet-1 {
      min-height: 560px;
    }
  
    .u-section-2 .u-layout-cell-1 {
      min-height: 461px;
    }
  
    .u-section-2 .u-layout-cell-2 {
      min-height: 461px;
    }
  }
  
  @media (max-width: 991px) {
    .u-section-2 .u-sheet-1 {
      min-height: 199px;
    }
  
    .u-section-2 .u-layout-cell-1 {
      min-height: 100px;
    }
  
    .u-section-2 .u-container-layout-1 {
      padding-left: 30px;
    }
  
    .u-section-2 .u-text-1 {
      margin-left: auto;
    }
  
    .u-section-2 .u-text-2 {
      margin-right: 0;
      width: auto;
    }
  
    .u-section-2 .u-btn-1 {
      margin-left: auto;
    }
  
    .u-section-2 .u-layout-cell-2 {
      min-height: 100px;
    }
  }
  
  @media (max-width: 767px) {
    .u-section-2 .u-sheet-1 {
      min-height: 299px;
    }
  
    .u-section-2 .u-container-layout-1 {
      padding-left: 10px;
      padding-right: 10px;
    }
  
    .u-section-2 .u-container-layout-2 {
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  
  /* Header Navigation Styling */
.header {
  padding: 10px 0;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Logo styling - keep on the left */
.header__logo {
  display: flex;
  align-items: center;
}

.header__img {
  width: 40px;
  height: auto;
  margin-right: 10px;
}

.header__title {
  font-size:16px;
  font-weight: 00;
  margin: 0;
  line-height: 1.2;
}

/* Navigation Menu Styling - position on the right */
.header__menu {
  display: flex;
  align-items: center;
  margin-left: auto; /* Push to the right */
}

.header__nav {
  display: block;
}

/* Make navigation items horizontal */
.header__elenco {
  display: flex;
  flex-direction: row; /* Explicitly set horizontal layout */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

.header__el {
  margin: 0 10px;
}

.header__link {
  font-size: 0.9rem;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
}

.header__link:hover {
  color: #478ac9;
}

/* Fix the collapse class */
.header__nav.collapse {
  display: block !important;
}

/* Responsive styles */
@media (max-width: 768px) {
  .header__container {
    flex-direction: column;
    align-items: center;
  }
  
  .header__menu {
    margin-top: 15px;
    margin-left: 0; /* Reset the auto margin on mobile */
  }
  
  .header__elenco {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header__el {
    margin: 5px;
  }
}



.u-section-1 {
    background-image: none;
    min-height: 975px;
  }
  
  .u-section-1 .u-shape-1 {
    height: 563px;
    margin-top: 0;
    margin-bottom: 0;
    --animation-custom_in-translate_x: 300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-1 .u-image-1 {
    width: 1040px;
    height: 647px;
    margin: -481px auto 0;
  }
  
  .u-section-1 .u-group-1 {
    width: 727px;
    min-height: 318px;
    background-image: none;
    height: auto;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    margin: -82px auto 0;
  }
  
  .u-section-1 .u-container-layout-1 {
    padding: 30px 45px;
  }
  
  .u-section-1 .u-text-1 {
    width: auto;
    margin: 0;
  }
  
  .u-section-1 .u-text-2 {
    margin: 27px auto 0;
  }
  
  .u-section-1 .u-btn-1 {
    border-style: solid;
    font-weight: 400;
    padding: 0;
  }
  
  .u-section-1 .u-btn-2 {
    background-image: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    --animation-custom_in-translate_x: 0px;
    --animation-custom_in-translate_y: 300px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 0.3;
    border-style: solid;
    margin: 20px auto 0;
    padding: 16px 46px 17px;
  }
  
  @media (max-width: 1199px) {
     .u-section-1 {
      min-height: 848px;
    }
  
    .u-section-1 .u-image-1 {
      width: 940px;
      height: 542px;
    }
  
    .u-section-1 .u-group-1 {
      margin-top: -94px;
      height: auto;
    }
  }
  
  @media (max-width: 991px) {
     .u-section-1 {
      min-height: 721px;
    }
  
    .u-section-1 .u-image-1 {
      width: 720px;
      height: 415px;
    }
  
    .u-section-1 .u-group-1 {
      width: 720px;
      margin-top: 33px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding-left: 30px;
      padding-right: 30px;
    }
  }
  
  @media (max-width: 767px) {
     .u-section-1 {
      min-height: 617px;
    }
  
    .u-section-1 .u-image-1 {
      width: 540px;
      height: 311px;
    }
  
    .u-section-1 .u-group-1 {
      width: 540px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding: 25px;
    }
  }
  
  @media (max-width: 575px) {
     .u-section-1 {
      min-height: 594px;
    }
  
    .u-section-1 .u-shape-1 {
      height: 391px;
    }
  
    .u-section-1 .u-image-1 {
      width: 340px;
      height: 196px;
      margin-top: -309px;
    }
  
    .u-section-1 .u-group-1 {
      width: 340px;
      min-height: 283px;
    }
  
    .u-section-1 .u-container-layout-1 {
      padding-left: 30px;
      padding-right: 30px;
    }
  }.u-section-2 .u-sheet-1 {
    min-height: 658px;
  }
  
  .u-section-2 .u-layout-wrap-1 {
    margin-top: 60px;
    margin-bottom: 59px;
  }
  
  .u-section-2 .u-layout-cell-1 {
    min-height: 559px;
    --animation-custom_in-translate_x: -300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-2 .u-container-layout-1 {
    padding: 30px 30px 30px 0;
  }
  
  .u-section-2 .u-text-1 {
    margin: 0 auto 0 0;
  }
  
  .u-section-2 .u-text-2 {
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 0;
  }
  
  .u-section-2 .u-btn-1 {
    border-style: solid;
    text-transform: none;
    font-size: 1.5rem;
    letter-spacing: 1px;
    margin: 20px auto 0 0;
    padding: 0;
  }
  
  .u-section-2 .u-layout-cell-2 {
    min-height: 559px;
    --animation-custom_in-translate_x: 300px;
    --animation-custom_in-translate_y: 0px;
    --animation-custom_in-opacity: 0;
    --animation-custom_in-rotate: 0deg;
    --animation-custom_in-scale: 1;
  }
  
  .u-section-2 .u-container-layout-2 {
    padding: 30px;
  }
  
  .u-section-2 .u-form-1 {
    height: 299px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .u-section-2 .u-form-group-4 {
    margin-left: 0;
  }
  
  .u-section-2 .u-btn-2 {
    border-style: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-image: none;
    padding-left: 0;
    padding-right: 0;
    width: 100%;
  }
  
  @media (max-width: 1199px) {
    .u-section-2 .u-sheet-1 {
      min-height: 560px;
    }
  
    .u-section-2 .u-layout-cell-1 {
      min-height: 461px;
    }
  
    .u-section-2 .u-layout-cell-2 {
      min-height: 461px;
    }
  }
  
  @media (max-width: 991px) {
    .u-section-2 .u-sheet-1 {
      min-height: 199px;
    }
  
    .u-section-2 .u-layout-cell-1 {
      min-height: 100px;
    }
  
    .u-section-2 .u-container-layout-1 {
      padding-left: 30px;
    }
  
    .u-section-2 .u-text-1 {
      margin-left: auto;
    }
  
    .u-section-2 .u-text-2 {
      margin-right: 0;
      width: auto;
    }
  
    .u-section-2 .u-btn-1 {
      margin-left: auto;
    }
  
    .u-section-2 .u-layout-cell-2 {
      min-height: 100px;
    }
  }
  
  @media (max-width: 767px) {
    .u-section-2 .u-sheet-1 {
      min-height: 299px;
    }
  
    .u-section-2 .u-container-layout-1 {
      padding-left: 10px;
      padding-right: 10px;
    }
  
    .u-section-2 .u-container-layout-2 {
      padding-left: 10px;
      padding-right: 10px;
    }
  }

  /* Add these styles to your existing CSS or create a new file */

/* Base transitions for all animated elements */
[data-animation-name] {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

/* Smooth transition for elements appearing from the sides */
[data-animation-name="customAnimationIn"] {
  transition-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1) !important;
}

/* Smooth transition for flip animations */
[data-animation-name="flipIn"] {
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1) !important;
}

/* Add easing to the image animation */
.u-section-1 .u-image-1 {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Make the group animation slightly bouncy */
.u-section-1 .u-group-1 {
  transition-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Ensure animations complete properly on mobile devices */
@media (max-width: 767px) {
  [data-animation-name] {
    transition-duration: 1s !important;
  }
}

/* Prevent Firefox glitches during transitions */
@-moz-document url-prefix() {
  [data-animation-name] {
    transform-style: preserve-3d;
  }
}


        [data-animation-name] {
            will-change: transform, opacity;
            backface-visibility: hidden;
            transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        }

        /* Smooth entrance animations */
        [data-animation-name="customAnimationIn"] {
            opacity: 0;
            transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
        }

        [data-animation-name="customAnimationIn"].animate-in {
            opacity: 1;
            transform: translate(0, 0) !important;
        }

        /* Smooth flip animation for image */
        [data-animation-name="flipIn"] {
            opacity: 0;
            transform: perspective(400px) rotateY(-90deg);
            transition: all 1.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        }

        [data-animation-name="flipIn"].animate-in {
            opacity: 1;
            transform: perspective(400px) rotateY(0deg);
        }

        /* Smooth scale animation for the group */
        .u-section-1 .u-group-1 {
            opacity: 0;
            transform: scale(0.8) !important;
            transition: all 1.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
        }

        .u-section-1 .u-group-1.animate-in {
            opacity: 1;
            transform: scale(1) !important;
        }

        /* Smooth shape animation */
        .u-section-1 .u-shape-1 {
            transform: translateX(100px);
            opacity: 0;
            transition: all 1.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        }

        .u-section-1 .u-shape-1.animate-in {
            transform: translateX(0);
            opacity: 1;
        }

        /* Form section animations */
        .u-section-2 .u-layout-cell-1 {
            opacity: 0;
            transform: translateX(-50px);
            transition: all 1.1s cubic-bezier(0.23, 1, 0.32, 1) !important;
        }

        .u-section-2 .u-layout-cell-1.animate-in {
            opacity: 1;
            transform: translateX(0);
        }

        .u-section-2 .u-layout-cell-2 {
            opacity: 0;
            transform: translateX(50px);
            transition: all 1.1s cubic-bezier(0.23, 1, 0.32, 1) !important;
        }

        .u-section-2 .u-layout-cell-2.animate-in {
            opacity: 1;
            transform: translateX(0);
        }

        /* Enhanced form interactions */
        .u-form input:focus, 
        .u-form textarea:focus {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2) !important;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        }

        .u-form input, 
        .u-form textarea {
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
        }

        /* Enhanced button animations */
        .u-btn-2 {
            transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
            position: relative;
            overflow: hidden;
        }

        .u-btn-2::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
            transition: left 0.6s;
        }

        .u-btn-2:hover::before {
            left: 100%;
        }

        .u-btn-2:hover {
            transform: translateY(-3px) !important;
            box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4) !important;
        }

        .u-btn-2:active {
            transform: translateY(-1px) !important;
        }

        /* Email link smooth animation */
        .u-btn-1 {
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
            position: relative;
        }

        .u-btn-1:hover {
            transform: translateY(-2px);
            text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
        }

        /* Smooth gold glow animation */
        @keyframes smoothGoldGlow {
            0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
            50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 30px rgba(212, 175, 55, 0.3); }
            100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.3); }
        }
        
        .u-section-1 .u-group-1.animate-in {
            animation: smoothGoldGlow 4s infinite ease-in-out;
        }

        /* Form validation states */
        .u-form input:valid,
        .u-form textarea:valid {
            border-color: rgba(34, 197, 94, 0.5) !important;
        }

        .u-form input:invalid:not(:placeholder-shown),
        .u-form textarea:invalid:not(:placeholder-shown) {
            border-color: rgba(239, 68, 68, 0.5) !important;
        }

        /* Success/Error message animations */
        .u-form-send-message {
            opacity: 0;
            transform: translateY(-10px);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .u-form-send-message.show {
            opacity: 1;
            transform: translateY(0);
        }

        /* Loading animation for submit button */
        .loading-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(0,0,0,0.3);
            border-radius: 50%;
            border-top-color: #000;
            animation: spin 1s ease-in-out infinite;
            margin-right: 8px;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Disable harsh custom animations */
        .u-section-1 .u-shape-1[style*="--animation-custom_in"],
        .u-section-1 .u-group-1[style*="--animation-custom_in"],
        .u-section-2 .u-layout-cell-1[style*="--animation-custom_in"],
        .u-section-2 .u-layout-cell-2[style*="--animation-custom_in"] {
            animation: none !important;
        }

        /* Responsive animation adjustments */
        @media (max-width: 767px) {
            [data-animation-name] {
                transition-duration: 0.8s !important;
            }
            
            .u-section-1 .u-group-1.animate-in {
                animation: none;
            }
        }

        /* Preload optimization */
        @media (prefers-reduced-motion: reduce) {
            [data-animation-name],
            .u-section-1 .u-group-1,
            .u-section-1 .u-shape-1,
            .u-section-2 .u-layout-cell-1,
            .u-section-2 .u-layout-cell-2 {
                animation: none !important;
                transition: none !important;
            }
        }


  