:root {
  --primary-color: #021b35; /* Dark Blue */
  --secondary-color: #ffe600; /* Yellow */
  --text-color: #333;
  --light-text: #f4f4f4;
  --gray-bg: #f9f9f9;
  --transition: all 0.3s ease;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Open Sans", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #e6cf00;
  transform: translateY(-2px);
}

/* Header */
header {
  background-color: var(--primary-color);
  color: #fff;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.logo-text-side {
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.language-switcher {
  display: flex;
  gap: 15px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0.6;
  filter: grayscale(30%);
  padding: 0;
  line-height: 0;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.2);
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

.btn-contact {
  background-color: var(--secondary-color);
  color: var(--primary-color) !important;
  padding: 10px 20px;
  border-radius: 4px;
}

.btn-contact:hover {
  background-color: #fff !important;
}

.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* Hero Section */
.hero {
  height: 100vh;
  background-color: var(--primary-color); /* Fallback */
  background-image: url("images/immagine_hero_section.png");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  margin-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 27, 53, 0.85);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h2 {
  font-size: 4rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hero-content h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 40px;
  color: #ccc;
}

/* Sections Common */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 0 auto;
}

/* Services Section */
.services {
  background-color: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--gray-bg);
  padding: 40px 30px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 4px solid var(--secondary-color);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.service-card p {
  font-size: 0.95rem;
  color: #666;
}

/* Highlighted Service Card */
.service-card-highlight {
  background-color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.service-card-highlight h3 {
  color: var(--secondary-color) !important;
}

.service-card-highlight p {
  color: var(--light-text) !important;
}

.service-card-highlight i {
  color: var(--secondary-color) !important;
}

/* About Section */
.about {
  background-color: var(--gray-bg);
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 20px;
  color: #555;
}

.features-list {
  margin-top: 30px;
}

.features-list li {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-weight: 600;
  color: var(--primary-color);
}

.features-list li i {
  color: var(--secondary-color);
  margin-right: 15px;
  font-size: 1.2rem;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  width: 100%;
  height: auto;
  background-color: var(--primary-color);
  border-radius: 8px;
  border: 5px solid var(--primary-color);
  box-shadow: 20px 20px 0 var(--secondary-color);
  overflow: hidden;
  display: flex;
}

.about-img-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* Detailed Services Section */
.detailed-services {
  background-color: #fff;
  padding-bottom: 40px;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 100px;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-row:last-child {
  margin-bottom: 0;
}

.service-text-col {
  flex: 1;
}

.service-text-col h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.service-text-col h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.service-text-col p {
  margin-bottom: 20px;
  color: #555;
  font-size: 1.05rem;
}

.service-media-col {
  flex: 1;
}

/* Image Slider */
.image-slider {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-placeholder-slide {
  width: 100%;
  height: 100%;
  background-color: #e0e0e0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #aaa;
}

.img-placeholder-slide i {
  font-size: 5rem;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(2, 27, 53, 0.7);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
  display: flex;
  justify-content: center;
  align-items: center;
}

.slider-btn:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.slider-btn.prev {
  left: 20px;
}

.slider-btn.next {
  right: 20px;
}

/* Contact Info Banner */
.contact-banner {
  background-color: var(--primary-color);
  color: #fff;
  padding: 60px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.contact-item i {
  font-size: 2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.contact-item a,
.contact-item p {
  color: #ddd;
  font-size: 1.1rem;
}

.contact-item a:hover {
  color: var(--secondary-color);
}

/* Contact Form Section */
.contact-form-section {
  background-color: #fff;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #fff;
  padding: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(2, 27, 53, 0.2);
}

/* Footer */
footer {
  background-color: #011224;
  color: #fff;
  padding: 50px 0 20px;
  text-align: center;
}

.footer-logo h2 {
  color: var(--secondary-color);
  margin-bottom: 5px;
}

.footer-logo p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.social-links {
  margin-bottom: 30px;
}

.social-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin: 0 10px;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  font-size: 0.9rem;
  color: #666;
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-only {
    display: flex;
  }

  .desktop-only {
    display: none;
  }

  .logo-text-side {
    font-size: 1.2rem;
  }

  .logo img {
    max-height: 50px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 20px 0;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-content h2 {
    font-size: 2.5rem;
  }

  .hero {
    height: 60vh;
    min-height: 500px;
    background-position: center;
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .service-row,
  .service-row:nth-child(even) {
    flex-direction: column;
    gap: 30px;
  }

  .service-text-col,
  .service-media-col {
    width: 100%;
  }

  .image-slider {
    height: 300px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .img-placeholder {
    height: 300px;
  }
}

/* WhatsApp Float Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
}
