/* servizi.css - Professional & Elegant Redesign with Images */

/* ===== GLOBAL VARIABLES ===== */
:root {
  --primary-color: rgb(32, 55, 61);
  --primary-light: rgb(52, 75, 81);
  --primary-dark: rgb(22, 45, 51);
  --secondary-color: #bca454;
  --secondary-light: #d4b96a;
  --secondary-dark: #8f7630;
  --accent-color: rgb(32, 55, 61);
  --dark-color: #222222;
  --light-color: #f8f9fa;
  --gray-light: #e9ecef;
  --gray-color: #6c757d;
  --gray-dark: #495057;
  --white-color: #ffffff;
  --overlay-color: rgba(0, 0, 0, 0.7);
  --font-main: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 15px 40px rgba(0, 0, 0, 0.18);
  --border-radius: 12px;
  --border-radius-lg: 16px;
  --container-width: 1280px;
  --section-spacing: 60px;
  /* CONSISTENT FONT SIZES - MATCHING OTHER PAGES */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px - MAIN BODY TEXT */
  --text-lg: 1.125rem;     /* 18px - SUBTITLES & IMPORTANT TEXT */
  --text-xl: 1.25rem;      /* 20px - SMALL HEADINGS */
  --text-2xl: 1.5rem;      /* 24px - MEDIUM HEADINGS */
  --text-3xl: 1.875rem;    /* 30px - LARGE HEADINGS */
  --text-4xl: 2.25rem;     /* 36px - MAIN SECTION HEADINGS */
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  font-size: 16px; /* Consistent base */
}

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background-color: var(--white-color);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--text-base); /* Consistent body text */
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SERVICES PAGE SPECIFIC STYLES ===== */

/* Services Overview Section */
.services-overview {
  padding: var(--section-spacing) 0;
  background: linear-gradient(135deg, rgba(32, 55, 61, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  margin-bottom: 0;
  position: relative;
}

/* Section divider */
.services-overview::before,
.collaboration-section::before,
.approach-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* SECTION HEADERS and SUBTITLE Styling - MUST MATCH INDEX.HTML EXACTLY */
.section-header-wide {
  text-align: center;
  margin-bottom: 60px;
}

.section-header-wide h2 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--primary-color);
  margin-bottom: 18px;
  position: relative;
  display: inline-block;
  font-weight: 600;
}

.section-header-wide h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* FORCE THESE STYLES TO MATCH INDEX.HTML EXACTLY */
.section-header {
  text-align: center !important;
  margin-bottom: 50px !important;
}

.section-header h2 {
  font-family: var(--font-heading) !important;
  font-size: var(--text-3xl) !important; /* 30px */
  color: var(--primary-color) !important;
  margin-bottom: 12px !important;
  position: relative !important;
  display: inline-block !important;
  font-weight: 600 !important;
  max-width: 90% !important;
}

.section-header h2::after {
  content: '' !important;
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 70px !important;
  height: 2px !important;
  background-color: var(--secondary-color) !important;
  border-radius: 2px !important;
}

.section-subtitle {
  font-size: var(--text-lg);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* CRITICAL FIX: Make section-subtitle-wide EXACTLY match index.html */
.section-subtitle-wide {
  font-size: 1.2rem !important;
  color: var(--secondary-color) !important;
  max-width: 700px !important;
  margin: 0 auto !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
  font-family: var(--font-main) !important;
  text-align: center !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  display: block !important;
}

/* Service Feature Layout */
.service-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}

.service-feature:last-child {
  margin-bottom: 0;
}

.service-feature-content {
  padding: 20px 0;
}

.service-badge {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--primary-dark);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: var(--text-sm); /* 14px */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
}

.service-feature-content h3 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl); /* 30px */
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 12px;
  line-height: 1.2;
}

.service-professional {
  color: var(--secondary-color);
  font-size: var(--text-lg); /* 18px */
  font-weight: 600;
  margin-bottom: 25px;
  letter-spacing: 0.5px;
}

.service-description {
  color: var(--gray-dark);
  font-size: var(--text-base); /* 16px - Consistent with body text */
  line-height: 1.7;
  margin-bottom: 30px;
}

.service-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 35px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.service-highlights li {
  color: var(--gray-dark);
  font-size: var(--text-base); /* 16px - Consistent with body text */
  padding: 1px 0;
  padding-left: 24px;
  position: relative;
}

.service-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--secondary-color);
  border-radius: 50%;
}

.service-explore-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: var(--primary-color);
  color: var(--white-color);
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  font-weight: 600;
  font-size: var(--text-base); /* 16px - Consistent button text */
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.service-explore-btn:hover {
  background: transparent;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Service Feature Images */
.service-feature-image {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px; /* Reduced from 500px */
}

.service-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.service-feature:hover .service-feature-image img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(32, 55, 61, 0.1) 0%, rgba(188, 164, 84, 0.05) 100%);
  pointer-events: none;
}

/* Collaboration Section */
.collaboration-section {
  background: linear-gradient(135deg, rgba(32, 55, 61, 0.03) 0%, rgba(188, 164, 84, 0.03) 100%);
  padding: 40px 0; /* Reduced padding */
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
}

.collaboration-banner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
  padding: 40px 30px; /* Reduced padding */
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(32, 55, 61, 0.08);
  background: linear-gradient(135deg, var(--white-color) 0%, var(--light-color) 100%);
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--secondary-color);
}

.collaboration-banner h3 {
  font-size: var(--text-2xl);
  color: var(--primary-color);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  font-family: var(--font-heading);
}

.collaboration-banner h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary-color);
}

.collaboration-banner p {
  font-size: var(--text-base); /* 16px - Consistent body text */
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray-dark);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 42px;
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--primary-dark);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  font-size: var(--text-base); /* 16px - Consistent button text */
  box-shadow: var(--shadow-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.cta-button:hover {
  color: var(--white-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-button:hover::before {
  transform: translateX(0);
}

/* Approach Section - FIXED FONT SIZES */
.approach-section {
  background: linear-gradient(135deg, rgba(32, 55, 61, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
  padding: var(--section-spacing) 0;
  margin-top: 3%;
  margin-bottom: 3%;
  position: relative;
}

.approach-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.approach-item {
  text-align: center;
  padding: 40px 25px;
  background: var(--white-color);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(32, 55, 61, 0.08);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.approach-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  opacity: 0;
  transition: var(--transition);
}

.approach-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(188, 164, 84, 0.2);
}

.approach-item:hover::before {
  opacity: 1;
}

.approach-item h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl); /* 20px - Consistent with other small headings */
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 18px;
}

.approach-item p {
  color: var(--gray-dark);
  line-height: 1.6;
  font-size: var(--text-base); /* 16px - Consistent body text */
  margin: 0;
}

/* ===== RESPONSIVE MEDIA QUERIES (OPTIMIZED) ===== */

/* Large tablets and small laptops (991px and below) */
@media screen and (max-width: 991px) {
  .service-feature {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 60px;
  }
  
  .service-feature-image {
    height: 350px;
    order: -1;
  }

  .service-feature-right .service-feature-image {
    order: -1;
  }
  
  .approach-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-3xl) !important; /* 30px - Consistent with index page */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-lg) !important; /* 18px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 87% !important;
  }
  
  /* Collaboration banner adjustments */
  .collaboration-banner {
    padding: 30px 25px;
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-2xl); /* 24px - Consistent medium headings */
  }
}

/* Tablets (768px and below) */
@media screen and (max-width: 768px) {
  .service-highlights {
    grid-template-columns: 1fr;
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-2xl) !important; /* 24px - Medium headings on tablet */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-base) !important; /* 16px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 95% !important;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-2xl); /* 24px - Consistent medium headings */
  }
  
  .collaboration-banner {
    padding: 30px 20px;
  }
  
  .approach-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile devices (600px and below) */
@media screen and (max-width: 600px) {
  .service-feature {
    margin-bottom: 40px;
    gap: 30px;
  }
  
  .service-feature-image {
    height: 280px;
  }
  
  .service-feature-content {
    padding: 10px 0;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-xl); /* 20px - Small headings on mobile */
  }
  
  .collaboration-banner {
    padding: 25px 20px;
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-xl); /* 20px - Small headings */
  }
  
  .service-explore-btn,
  .cta-button {
    width: 100%;
    justify-content: center;
  }
}

/* Small mobile devices (480px and below) */
@media screen and (max-width: 480px) {
  .service-feature-image {
    height: 250px;
  }
  
  .service-badge {
    font-size: var(--text-xs); /* 12px */
    padding: 6px 16px;
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-2xl) !important; /* 20px - Small headings */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-base) !important; /* 16px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 95% !important;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-xl); /* 20px - Medium text */
  }
  
  .collaboration-banner {
    padding: 20px 15px;
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-2xl); /* 18px - Medium text */
  }
  
  .approach-item h3 {
    font-size: var(--text-xl); /* 16px - Body text */
  }
  
  /* Ensure all containers have proper padding */
  .services-overview,
  .collaboration-section,
  .approach-section {
    padding: 40px 0;
  }
  
  .section-header {
    margin-bottom: 2rem !important;
  }
}

/* Extra small mobile devices (below 320px) */
@media screen and (max-width: 319px) {
  .service-feature-image {
    height: 200px;
  }
  
  .service-feature-content {
    padding: 5px 0;
  }
  
  .collaboration-banner {
    padding: 15px 12px;
  }
  
  .section-header h2 {
    font-size: var(--text-lg) !important; /* 18px - Medium text */
  }
  
  .service-feature-content h3 {
    font-size: var(--text-base); /* 16px - Body text */
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-base); /* 16px - Body text */
  }
  
  .approach-item {
    padding: 20px 15px;
  }
  
  .approach-item h3 {
    font-size: var(--text-base); /* 16px - Body text */
    margin-bottom: 12px;
  }
  
  .approach-item p {
    font-size: var(--text-base); /* 16px - Body text */
    line-height: 1.5;
  }
}

/* ===== LANDSCAPE/HORIZONTAL ORIENTATION STYLES ===== */

/* General landscape mode adjustments */
@media (max-width: 991px) and (orientation: landscape) {
  .service-feature {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
  }
  
  .service-feature-image {
    order: 0;
    height: 320px;
  }
  
  .service-feature-right .service-feature-image {
    order: 0;
  }
  
  .service-feature-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
  }
  
  .approach-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-2xl) !important; /* 24px - Medium headings */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-lg) !important; /* 18px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 80% !important;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-xl); /* 20px - Small headings */
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-xl); /* 20px - Small headings */
  }
}

/* Small landscape devices (767px and below landscape) */
@media (max-width: 767px) and (orientation: landscape) {
  .service-feature {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .service-feature-image {
    order: -1;
    height: 280px;
  }
  
  .service-highlights {
    grid-template-columns: 1fr 1fr;
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-xl) !important; /* 20px - Small headings */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-base) !important; /* 16px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 95% !important;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-lg); /* 18px - Medium text */
  }
  
  .collaboration-banner {
    padding: 25px 20px;
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-lg); /* 18px - Medium text */
  }
}

/* Very small landscape devices (600px and below landscape) */
@media (max-width: 600px) and (orientation: landscape) {
  .service-feature-image {
    height: 220px;
  }
  
  .service-highlights {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  /* SECTION HEADERS - EXACT match with index.html */
  .section-header h2 {
    font-size: var(--text-lg) !important; /* 18px - Medium text */
  }
  
  .section-subtitle-wide {
    font-size: var(--text-base) !important; /* 16px - EXACT match with index.html */
    color: var(--secondary-color) !important;
    max-width: 95% !important;
  }
  
  .service-feature-content h3 {
    font-size: var(--text-base); /* 16px - Body text */
  }
  
  .collaboration-banner {
    padding: 20px 15px;
  }
  
  .collaboration-banner h3 {
    font-size: var(--text-base); /* 16px - Body text */
  }
  
  .approach-container {
    gap: 20px;
  }
  
  .approach-item {
    padding: 20px 15px;
  }
  
  .approach-item h3 {
    font-size: var(--text-base); /* 16px - Body text */
  }
  
  .approach-item p {
    font-size: var(--text-base); /* 16px - Body text */
    line-height: 1.5;
  }
}

