/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&display=swap');

/* CSS Variables for Colors */
:root {
  --primary: #da5bff; /* Main accent color */
  --secondary: #5e4d6c; /* Secondary accent */
  --blue: #c9acf5; /* Link */
  --dark: #3b3b3b; /* Navbar and sections */
  --text-dark: #333333; /* Default text */
  --text-light: #ffffff; /* Light text */
  --gradient-start: #2caab3; /* Gradient start */
  --gradient-end: #2c8cb3; /* Gradient end */
  --gray: #696969; /* Borders */
  --light-gray: #eeeeee; /* Backgrounds */
}

/* General Styles */
body {
  font-family: 'Raleway', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--text-light);
  margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  color: var(--dark);
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.3s, background-color 0.3s;
}

a:hover, a:focus {
  color: var(--primary);
}

hr {
  border: 0;
  border-top: 1px solid var(--gray);
  border-bottom: 1px solid var(--text-light);
}

.btn {
  border: 0;
  border-radius: 0;
  padding: 8px 16px;
  transition: background-color 0.3s;
}

.form-control {
  border-radius: 0;
  box-shadow: none;
  padding: 6px 12px;
}

/* Typography and Utilities */
.section-header {
  text-align: center;
}

.section-header .section-title {
  font-size: 2.75rem;
  color: var(--dark);
  padding-bottom: 20px;
  margin-bottom: 20px;
  position: relative;
}

.section-header .section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--primary);
}

.section-header p {
  color: var(--text-dark);
}

.column-title {
  color: var(--text-light);
  margin: 15px 0;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--gray);
  position: relative;
}

ul.nostyle, .listarrow {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

ul.nostyle i, .listarrow li i {
  color: var(--blue);
  padding-right: 17px;
}

.listarrow li {
  color: var(--text-light);
}

/* Animations */
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scaleIn {
  animation-name: scaleIn;
}

/* Navbar */
.navbar {
  background: var(--dark);
  transition: background 0.3s;
}

.navbar.navbar-scrolled {
  background: var(--dark);
}

.navbar-brand img {
  max-height: 60px;
  transition: max-height 0.3s;
}

.navbar-nav {
  margin: 0;
}

.navbar-nav .nav-link {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
  background: var(--primary);
  color: var(--text-light);
  border-radius: 4px;
  border-top: 4px solid var(--text-light);
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  box-shadow: none!important;
  position: relative;
  width: 40px;
  height: 38px;
  z-index: 1000;
  border: none;
  padding-right: 60px;
}

.navbar-toggler .navbar-toggler-icon {
  background-image: none;
  position: relative;
  width: 30px;
  height: 3px;
  background-color: white;
  display: block;
  margin: auto;
  transition: transform 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before,
.navbar-toggler .navbar-toggler-icon::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background-color: white;
  transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.navbar-toggler .navbar-toggler-icon::before {
  top: -10px;
}

.navbar-toggler .navbar-toggler-icon::after {
  top: 10px;
}

/* Stato attivo: trasforma in "X" */
.navbar-toggler.active .navbar-toggler-icon {
  transform: rotate(45deg);
}

.navbar-toggler.active .navbar-toggler-icon::before {
  top: 0;
  transform: rotate(90deg);
}

.navbar-toggler.active .navbar-toggler-icon::after {
  top: 0;
  opacity: 0;
}

.navbar-collapse {
  padding: 1rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 32 32' stroke='white' stroke-width='2'%3e%3cpath d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

@media (min-width: 768px) {
  .navbar-nav > li > a {
    color: var(--primary);
  }
  .navbar-nav > li.active > a, .navbar-nav > li:hover > a {
    background: var(--primary);
    color: var(--text-light);
    border-top: 4px solid var(--text-light);
  }
  .dropdown-menu {
    background: rgba(26, 28, 40, 0.9);
    border: 0;
    border-radius: 0;
    min-width: 220px;
    padding: 0 20px;
    box-shadow: none;
  }
  .dropdown-menu > li {
    border-left: 3px solid transparent;
    margin-left: -20px;
    padding-left: 17px;
    transition: border-color 0.3s;
  }
  .dropdown-menu > li.active, .dropdown-menu > li:hover {
    border-left-color: var(--blue);
  }
  .dropdown-menu > li > a {
    color: var(--blue);
    background: transparent;
  }
}

@media (max-width: 768px) {
  .navbar-brand img {
    max-height: 40px;
  }
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
    font-size: 1.1rem;
    text-align: center;
  }
  .navbar-collapse {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
  }
  .navbar-nav > li > a {
    color: var(--primary);
    padding: 8px 0;
    border-top: 4px solid transparent;
  }
}

@media (max-width: 576px) {
  .navbar-nav .nav-link {
    font-size: 1rem;
  }
}

/* Hero Slider (Bootstrap Carousel) */
.hero-slider {
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

.carousel-inner {
  width: 100%;
  overflow: hidden;
}

.bg-img {
  width: 100%;
  height: 80vh;
  min-height: 300px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-control-prev, .carousel-control-next {
  width: 5%;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.carousel-control-prev:hover, .carousel-control-next:hover {
  opacity: 1;
}

.carousel-indicators {
  bottom: 20px;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-light);
  opacity: 0.6;
  margin: 0 6px;
}

.carousel-indicators .active {
  opacity: 1;
}

@media (max-width: 768px) {
  .hero-slider {
    margin-top: 60px;
  }
  .bg-img {
    height: 60vh;
  }
}

@media (max-width: 576px) {
  .bg-img {
    height: 50vh;
  }
}

#hero-banner h2 {
  margin-top: 299px;
  font-size: 39px;
  line-height: 49px;
  text-align: right;
  color: var(--text-light);
}

#hero-banner h2 b, #hero-banner h2 > span {
  color: var(--secondary);
}

#hero-banner p {
  font-size: 22px;
  line-height: 35px;
  margin-bottom: 20px;
  text-align: right;
}

#hero-banner a {
  display: block;
  width: 150px;
  border: 2px solid var(--text-light);
  background: transparent;
  color: var(--text-light);
  text-align: center;
  float: right;
  transition: all 0.3s;
}

#hero-banner a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: var(--text-light);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  background: var(--primary);
  color: var(--text-light);
  width: 55px;
  height: 55px;
  text-align: center;
  line-height: 60px;
  border-radius: 50%;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.back-to-top:hover {
  background: var(--secondary);
}

.back-to-top i {
  font-size: 29px;
}

/* Features and Services */
#features, #services {
  padding: 60px 0 75px;
}

#services.section-header .section-title::before {
  background: var(--text-light);
}

#services .section-header h2, #services h3, #services p {
  color: var(--text-light);
}

.service-card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  background-color: var(--secondary);
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .card-body {
  text-align: center;
  padding: 2rem;
}

.service-card .service-icon {
  margin-bottom: 1rem;
}

.service-card .service-icon img {
  width: 64px;
  height: auto;
  max-width: 100%;
  display: inline-block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.4;
}

#services {
  background: var(--primary);
}

.media-heading {
  font-size: 24px;
  margin: 0 0 5px;
}

.service-box img {
  max-width: 60px;
  height: auto;
}

/* Portfolio */
#portfolio {
  padding: 80px 0;
  background: var(--text-light);
}
#portfolio .row {
  --bs-gutter-x: 0;
}
#portfolio .mb-4 {
  margin-bottom: 0!important;
}

.portfolio-filter {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: center;
}

.portfolio-filter li {
  display: inline-block;
  margin: 5px;
}

.portfolio-filter a {
  display: block;
  padding: 8px 16px;
  color: var(--text-dark);
  border-radius: 4px;
  transition: all 0.3s;
}

.portfolio-filter a:hover, .portfolio-filter a.active {
  background: var(--primary);
  color: var(--text-light);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  margin: 7px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 10px;
}

.portfolio-item img {
  height: auto;
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.5);
}

.portfolio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-light);
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-info a {
  color: var(--text-light);
  font-size: 16px;
}

.portfolio-item:hover .portfolio-info {
  opacity: 1;
}

/* Isotope */
.isotope, .isotope .isotope-item {
  transition: all 0.8s;
}

.isotope {
  transition-property: height, width;
}

.isotope .isotope-item {
  transition-property: transform, opacity;
}

.isotope-hidden.isotope-item {
  pointer-events: none;
  z-index: 1;
}

.isotope.no-transition, .isotope.no-transition .isotope-item, .isotope .isotope-item.no-transition {
  transition: none;
}

.img-thumbnail {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--gray);
  padding: 0;
  margin-bottom: 15px;
  transition: all 0.2s;
}

/* Testimonials */
#testimonial {
  padding: 80px 0;
  background: var(--primary) url('../images/img2.webp') center/cover no-repeat!important;
  color: var(--text-light);
}

.testimonial-area .section-header h2 {
  color: var(--text-light);
}

.single-testimonial {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-dark);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.single-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.single-testimonial blockquote {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 15px;
  padding: 15px;
  border-left: 4px solid var(--primary);
  position: relative;
}

.single-testimonial blockquote::before {
  content: '\201C';
  font-size: 40px;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-10px);
}

.single-testimonial h5 {
  font-size: 18px;
  color: var(--primary);
  text-align: right;
  font-weight: 600;
  margin: 0;
}

#testimonialCarousel .carousel-item {
  padding: 20px;
}

#testimonialCarousel .single-testimonial {
  max-width: 600px;
  margin: 0 auto;
}

/* About */
#about {
  padding: 60px 0;
  background: var(--dark);
  color: var(--text-light);
}

#about h2, #about p, #about .column-title, #about .listarrow li {
  color: var(--text-light);
}

/* Testimonial */
#testimonial {
  padding: 60px 0;
  background: var(--dark);
  color: var(--text-light);
}

#testimonial h2, #testimonial p, #testimonial .column-title, #testimonial .listarrow li {
  color: var(--text-light);
}

/* Team */
#our-team {
  padding: 60px 0;
  background: var(--text-light);
}

.team-member {
  padding: 0;
}

.team-member .team-img {
  margin: 0;
  border-radius: 40px;
  overflow: hidden;
  border: 5px solid var(--primary);
}

.team-member .team-info {
  background: var(--text-light);
  color: var(--dark);
  padding: 7px 0;
  border-top: 2px solid var(--text-light);
}

.team-member:hover .social-icons > li > a {
  color: var(--secondary);
}

.social-icons {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  display: flex;
  justify-content: center;
  background: var(--text-light);
  transition: height 1s;
}

.social-icons li {
  margin: 0 10px;
}

.social-icons > li > a {
  display: block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 50%;
  margin: 5px;
  transition: all 0.3s;
}

.social-icons > li > a:hover {
  color: var(--text-light);
  background: var(--primary);
}

.social-icons i {
  font-size: 24px;
  color: var(--text-dark);
}

/* Business Stats */
#business-stats {
  padding: 60px 0 70px;
  background: var(--text-light);
  color: var(--text-dark);
}

#business-stats h1, #business-stats h2, #business-stats h3, #business-stats h4 {
  color: var(--dark);
}

#business-stats strong {
  display: block;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.business-stats {
  display: inline-block;
  width: 140px;
  height: 140px;
  font-size: 24px;
  line-height: 140px;
  border: 4px solid var(--primary);
  border-radius: 50%;
  margin-bottom: 20px;
  color: var(--text-dark);
  position: relative;
}

.business-stats::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 17px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 1px solid currentColor;
}

/* Pricing */
#pricing {
  padding: 60px 0 70px;
  background: var(--dark);
}

#pricing h2, #pricing p {
  color: var(--gray);
}

#pricing ul.pricing {
  list-style: none;
  padding: 8px;
  margin: 70px 0 30px;
  background: var(--text-light);
  color: var(--dark);
  text-align: center;
}

#pricing ul.pricing li {
  padding: 10px;
}

#pricing ul.pricing li.plan-header {
  background: var(--text-light);
  padding: 15px 15px 30px;
  border-bottom: 4px solid var(--primary);
}

#pricing ul.pricing li.plan-header .price-duration {
  position: relative;
  margin-top: 15px;
  top: -16px;
  display: inline-block;
  width: 100%;
  height: 85px;
  color: var(--gray);
}

#pricing ul.pricing li.plan-header .price-duration > span {
  display: block;
  line-height: 1;
}

#pricing ul.pricing li.plan-header .price-duration > span.price {
  font-size: 24px;
  font-weight: 700;
  margin-top: 35px;
}

#pricing ul.pricing li.plan-header .price-duration > span.duration {
  margin-top: 5px;
}

#pricing ul.pricing li.plan-header .plan-name {
  margin-top: 10px;
  font-size: 24px;
  color: var(--gray);
  font-weight: bold;
  text-transform: uppercase;
}

#pricing ul.pricing.featured {
  background: var(--primary);
  color: var(--dark);
}

#pricing ul.pricing.featured li.plan-header {
  background: transparent;
  border-bottom: 4px solid var(--text-light);
}

#pricing ul.pricing.featured li.plan-header .plan-name, #pricing ul.pricing.featured li.plan-header .price-duration {
  color: var(--gradient-end);
}

li.plan-purchase .btn {
  width: 100%;
}

/* Contact */
#contact-us {
  padding: 60px 0 50px;
  padding-bottom: 80px;
  background: var(--secondary) url('../images/map-image.webp') center/cover no-repeat;
}

#contact-us h1, #contact-us h2, #contact-us h3, #contact-us h4, #contact-us h5, #contact-us p {
  color: var(--text-light);
}
#contact-us h4 {
  margin-bottom: 1.5rem;
}

.contact-info {
  background: #3b3b3bb0;
  padding: 50px;
  color: var(--text-light);
  margin: 0 auto;
  border-radius: 10px;
}

.contact-info address {
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 27px;
}

.contact-item {
  display: flex;
  justify-content: center;
  align-items: baseline;
  text-align: center;
}

.social-links a {
  margin-right: 10px;
}

.social-links a i,
.social-links a svg {
  width: 34px;
  font-size: 25px;
  vertical-align: middle;
  fill: currentColor;
}

/* Footer */
#footer {
  background: var(--text-light);
  color: var(--text-dark);
  padding: 35px 0;
}

#footer a {
  color: var(--text-dark);
}

#footer a:hover {
  color: var(--secondary);
}

.footer-text {
  font-size: 0.9rem;
  color: var(--gray);
  text-align: center;
}

@media (min-width: 768px) {
  #footer .social-icons {
    float: right;
  }
}

/* Hero Action Section */
.hero-action-section {
  background: var(--primary) url('../images/img2.webp') center/cover no-repeat;
  text-align: center;
  color: var(--text-light);
  padding: 60px 0;
}

.hero-action-title {
  font-size: 38px;
  font-weight: 900;
}

.hero-action-subtitle {
  font-size: 16px;
  display: block;
}

.hero-action-description {
  font-size: 14px;
  width: 80%;
  margin: 20px auto 0;
  line-height: 1.4;
}

.get-started {
  display: inline-block;
  border: 1px solid var(--text-light);
  width: 154px;
  height: 49px;
  line-height: 49px;
  color: var(--text-light);
  font-size: 14px;
  border-radius: 3px;
  margin: 50px 10px;
  transition: all 0.3s;
}

.get-started:hover {
  background: var(--secondary);
  border: none;
  color: var(--text-light);
}

.call-us .get-started:hover {
  background: var(--text-dark);
}

/* Cookie Modal */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
}

.cookie-modal-content {
  background: #fff;
  color: #333;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  margin: 10% auto;
  position: relative;
}

.close-cookie-modal {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #999;
}

/* Whatsapp Float Button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  display: flex;  
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  text-decoration: none;
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #1ebd5a;
}

.whatsapp-icon {
  font-size: 30px;
}

/* Media Queries */
@media (max-width: 576px) {
  .section-title {
    font-size: 1.5rem;
  }
  .portfolio-filter li {
    display: block;
    margin: 5px 0;
  }
  .service-box {
    text-align: center;
    padding-left: 20px;
  }
  .service-box .pull-left {
    position: static;
    margin-bottom: 10px;
  }
  .social-icons {
    flex-direction: column;
  }
  .social-icons li {
    margin: 5px 0;
  }
  #testimonial {
    padding: 60px 0;
  }
  #testimonialCarousel .carousel-item {
    padding: 10px;
  }
  #hero-banner h2 {
    margin-top: 161px;
    font-size: 26px;
    line-height: 40px;
    padding: 10px;
  }
  #hero-banner p {
    font-size: 18px;
    padding: 5px;
  }
  .portfolio-filter li a {
    padding: 7px 15px;
    margin: 5px 2px;
  }
}

@media (max-width: 768px) {
  .single-testimonial {
    padding: 15px;
  }
  .single-testimonial blockquote {
    font-size: 14px;
  }
  .single-testimonial h5 {
    font-size: 16px;
  }
}