/* professional.css - ELEGANT & PRESTIGIOUS VERSION */
/* ===== ENHANCED GLOBAL VARIABLES ===== */
:root {
  --primary-color: #20373d;        /* Instead of #1a2a4a */
  --primary-light: #2c4a52;        /* Instead of #2c3e66 */
  --accent-color: #3a6370;
  --secondary-color: #bca454;
  --secondary-light: #e8c874;
  --secondary-dark: #9c8438;
  --accent-color: #4a6fa5;
  --accent-light: #6b8cbe;
  --dark-color: #2c3e50;
  --light-color: #f8f9fa;
  --gray-light: #e9ecef;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --cream-color: #faf9f6;
  --ivory-color: #fefefb;
  --section-light: #f5f7fa;
  --section-dark: #edf0f5;
  
  /* Enhanced professional palette */
  --card-bg-1: #ffffff;
  --card-bg-2: #fafbfc;
  --card-bg-3: #f5f7f9;
  --card-border-1: #e1e5e9;
  --card-border-2: #d1d9e2;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-gold: linear-gradient(135deg, #bca454 0%, #d4b773 100%);
  --gradient-blue: linear-gradient(135deg, #1a2a4a 0%, #2c3e66 100%);
  
  --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 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --border-radius: 8px;
  --container-width: 1320px;

  /* Text size variables for consistency */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.9rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--dark-color);
  background: var(--section-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: var(--text-base);
  font-weight: 400;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== ELEGANT SECTION DIVIDER ===== */
.content-block {
  position: relative;
  padding-top: 100px;
}

.content-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color) 20%, var(--secondary-color) 50%, var(--primary-color) 80%);
  z-index: 2;
}

.content-block:first-child::before,
.cta-block::before {
  display: none;
}

.content-block:first-child {
  padding-top: 80px;
}

/* ===== PROFESSIONAL SECTION (GLOBAL) ===== */
.andrea-maretto-page,
.maximiliano-lenzi-page, 
.alberto-cecolin-page {
  font-family: var(--font-main);
  color: var(--dark-color);
  font-size: var(--text-base);
  background: transparent;
}

.andrea-maretto-page .profile-text,
.maximiliano-lenzi-page .profile-text, 
.alberto-cecolin-page .profile-text {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-color);
}

.andrea-maretto-page .profile-text p,
.maximiliano-lenzi-page .profile-text p,
.alberto-cecolin-page .profile-text p {
  margin-bottom: 25px;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-color);
}

/* ===== ELEGANT CONTENT SECTIONS ===== */
.professional-content {
  background: transparent;
  position: relative;
  z-index: 3;
}

.content-block {
  max-width: 85%;
  margin: 0 auto;
  padding: 80px 50px;
  position: relative;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
  background: var(--section-light);
}

.content-block::after {
  display: none;
}

.block-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.block-header h2 {
  font-size: var(--text-3xl);
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.block-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.block-header p {
  max-width: 700px;
  margin: 25px auto 0;
  font-size: var(--text-lg);
  color: var(--gray-color);
  line-height: 1.7;
  font-weight: 400;
}

/* ===== ELEGANT PROFILE BLOCK ===== */
.profile-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
  margin-top: 40px;
  background: var(--section-light);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 50px;
  position: relative;
  z-index: 3;
  border: 1px solid var(--card-border-1);
}

.profile-text h2 {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  margin-bottom: 30px;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.profile-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.profile-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 450px;
  position: relative;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border: 2px solid var(--secondary-color);
  border-radius: var(--border-radius);
  z-index: -1;
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* ===== ELEGANT QUALIFICATIONS BLOCK ===== */
.qualifications-block {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.qualification-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 35px 25px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border-1);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.qualification-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-secondary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.qualification-card:hover::before {
  transform: scaleX(1);
}

.qualification-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary-light);
}

.qualification-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 25px;
  transition: var(--transition);
}

.qualification-card:hover .qualification-icon {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.qualification-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.qualification-card p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-color);
  font-weight: 400;
}

/* ===== ELEGANT SKILLS GRID ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-item {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border-1);
  border-top: 4px solid transparent;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary-color);
  border-color: var(--card-border-2);
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 25px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.8rem;
  transition: var(--transition);
}

.skill-item:hover .skill-icon {
  background: var(--secondary-color);
  transform: rotateY(180deg);
}

.skill-item h3 {
  font-size: var(--text-lg);
  margin-bottom: 20px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.skill-item p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-color);
  font-weight: 400;
}

/* ===== ELEGANT MISSION BLOCK ===== */
.mission-block {
  background: var(--white-color);
  width: 70%;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border-1);
}

.mission-block p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-color);
  margin-bottom: 20px;
  font-weight: 400;
}

.mission-block p:last-child {
  margin-bottom: 0;
}

/* ===== PROFESSIONAL TIMELINE ===== */
.timeline-section {
  position: relative;
  overflow: hidden;
}

.modern-timeline {
  position: relative;
  padding: 60px 0;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-path {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  z-index: 1;
}

.path-line {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(194, 154, 91, 0.2), 
    var(--secondary-color) 20%, 
    var(--secondary-color) 80%, 
    rgba(194, 154, 91, 0.2));
  border-radius: 2px;
}

.timeline-items {
  position: relative;
  z-index: 2;
}

.timeline-item {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
  position: relative;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
  width: 100%;
}

.timeline-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-marker {
  position: relative;
  flex: 0 0 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.marker-dot {
  width: 24px;
  height: 24px;
  background: var(--white-color);
  border: 4px solid var(--secondary-color);
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 8px rgba(194, 154, 91, 0.2);
  transition: all 0.3s ease;
}

.timeline-item:hover .marker-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 10px rgba(194, 154, 91, 0.3);
}

.marker-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary-color);
  font-size: 16px;
  z-index: 3;
}

.timeline-content {
  flex: 0 0 75%;
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  margin: 0 20px;
  transition: all 0.3s ease;
  border-top: 4px solid var(--secondary-color);
  border: 1px solid var(--card-border-1);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
}

.timeline-date {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  box-shadow: 0 4px 12px rgba(188, 164, 84, 0.3);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: var(--text-xl);
  line-height: 1.4;
  font-family: var(--font-heading);
  font-weight: 600;
}

.timeline-content p {
  color: var(--dark-color);
  line-height: 1.7;
  margin-bottom: 0;
  font-size: var(--text-base);
  font-weight: 400;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 40px;
  width: 30px;
  height: 3px;
  background: var(--secondary-color);
}

.timeline-item:nth-child(even) .timeline-content::before {
  right: 100%;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: 100%;
}

/* ===== ELEGANT SERVICES OVERVIEW ===== */
.services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
}

.service-overview-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 350px;
  border: 1px solid var(--card-border-1);
}

.service-overview-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-2);
}

.service-card-header {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 25px 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-card-header h3 {
  margin: 0;
  font-size: var(--text-xl);
  flex: 1;
  padding-right: 15px;
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.service-card-header i {
  font-size: 2.5rem;
  opacity: 0.2;
  color: var(--white-color);
  transition: var(--transition);
}

.service-overview-card:hover .service-card-header i {
  opacity: 0.3;
  transform: scale(1.1);
}

.service-card-body {
  padding: 30px 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: var(--white-color);
}

.service-card-body p {
  margin-bottom: 20px;
  color: var(--gray-color);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
}

.service-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.service-card-features li {
  margin-bottom: 12px;
  position: relative;
  font-size: var(--text-base);
  line-height: 1.6;
  font-family: var(--font-main);
  color: var(--dark-color);
  padding-left: 1.8rem;
  transition: var(--transition);
  font-weight: 400;
}

.service-card-features li:hover {
  color: var(--primary-color);
}

.service-card-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--secondary-color);
  background: rgba(188, 164, 84, 0.1);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  transition: var(--transition);
}

.service-card-features li:hover::before {
  background: var(--secondary-color);
  color: var(--white-color);
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--text-base);
  align-self: flex-start;
  padding: 8px 16px;
  background: rgba(188, 164, 84, 0.1);
  border-radius: 4px;
}

.service-card-link:hover {
  color: var(--primary-color);
  background: rgba(26, 42, 74, 0.05);
  transform: translateX(5px);
}

.service-card-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.service-card-link:hover i {
  transform: translateX(5px);
}

/* ===== ELEGANT MODALS ===== */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
}

.service-modal-content {
  background-color: var(--white-color);
  margin: 40px auto;
  max-width: 900px;
  border-radius: var(--border-radius);
  padding: 40px;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border-1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray-color);
  background: none;
  border: none;
  transition: var(--transition);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--secondary-color);
  background: rgba(188, 164, 84, 0.1);
}

.service-features {
  margin-top: 30px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 15px;
  background: var(--card-bg-2);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 3px solid var(--secondary-color);
}

.feature-item:hover {
  background: var(--white-color);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-top: 5px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  transform: scale(1.1);
}

.feature-text h5 {
  font-size: var(--text-lg);
  margin-bottom: 8px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.feature-text p {
  font-size: var(--text-base);
  color: var(--gray-color);
  line-height: 1.6;
  font-weight: 400;
}

/* ===== ELEGANT CTA BLOCK - PERFECTLY ATTACHED ===== */
.cta-block {
  text-align: center;
  margin: 0 auto;
  background: var(--section-light);
  padding: 60px 50px;
  position: relative;
  max-width: 85%;
  border-radius: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.cta-block::before {
  display: none;
}

.ctaButton {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--white-color);
  padding: 15px 35px;
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
  cursor: pointer;
  border: 1px solid var(--secondary-dark);
}

.ctaButton::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  z-index: -1;
}

.ctaButton:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--white-color);
}

.ctaButton:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* ===== PAGE-SPECIFIC STYLES ===== */

/* Andrea Maretto Page */
.andrea-maretto-page .qualifications-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.andrea-maretto-page .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.andrea-maretto-page .mission-block {
  background: var(--white-color);
  width: 70%;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.andrea-maretto-page .services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Alberto Cecolin Page */
.alberto-cecolin-page .skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.alberto-cecolin-page .mission-block {
  background: var(--white-color);
  width: 70%;
  margin: 0 auto;
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.alberto-cecolin-page .services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Maximiliano Lenzi Page */
.maximiliano-lenzi-page .hero-section {
  height: 70vh;
  min-height: 500px;
}

.maximiliano-lenzi-page .hero-decor {
  display: none !important;
}

.maximiliano-lenzi-page .hero-content {
  margin-top: 0;
}

.maximiliano-lenzi-page .qualifications-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.maximiliano-lenzi-page .qualification-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--card-border-1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.maximiliano-lenzi-page .qualification-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-2);
}

.maximiliano-lenzi-page .qualification-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.maximiliano-lenzi-page .qualification-card:hover .qualification-icon {
  transform: scale(1.1);
}

.maximiliano-lenzi-page .qualification-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 15px;
  color: var(--primary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.maximiliano-lenzi-page .qualification-card p {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--dark-color);
  font-weight: 400;
}

.maximiliano-lenzi-page .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.maximiliano-lenzi-page .mission-block {
  background: var(--white-color);
  padding: 40px;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
  width: 80%;
  margin: 0 auto;
}

/* FIXED: Lenzi Services - Consistent with other pages */
.maximiliano-lenzi-page .services-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
}

.maximiliano-lenzi-page .service-overview-card {
  background: var(--white-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: 350px;
  border: 1px solid var(--card-border-1);
}

.maximiliano-lenzi-page .service-overview-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-2);
}

.maximiliano-lenzi-page .service-card-header {
  background: var(--primary-color);
  color: var(--white-color);
  padding: 20px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.maximiliano-lenzi-page .service-card-header h3 {
  margin: 0;
  font-size: var(--text-xl);
  flex: 1;
  padding-right: 15px;
  color: var(--secondary-color);
  font-family: var(--font-heading);
  font-weight: 600;
}

.maximiliano-lenzi-page .service-card-body {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.maximiliano-lenzi-page .service-card-body p {
  margin-bottom: 20px;
  color: var(--gray-color);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
}

.maximiliano-lenzi-page .service-card-features {
  margin: 0;
  padding: 0;
  list-style: none;
  flex-grow: 1;
}

.maximiliano-lenzi-page .service-card-features li {
  margin-bottom: 10px;
  position: relative;
  font-size: var(--text-base);
  line-height: 1.6;
  font-family: var(--font-main);
  color: var(--dark-color);
  padding-left: 1.5rem;
  font-weight: 400;
}

.maximiliano-lenzi-page .service-card-features li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 0.15em;
  color: var(--secondary-color);
}

.maximiliano-lenzi-page .service-card-link {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: var(--text-base);
  align-self: flex-start;
  padding: 8px 16px;
  background: rgba(188, 164, 84, 0.1);
  border-radius: 4px;
}

.maximiliano-lenzi-page .service-card-link:hover {
  color: var(--primary-color);
  background: rgba(26, 42, 74, 0.05);
  transform: translateX(5px);
}

.maximiliano-lenzi-page .service-card-link i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.maximiliano-lenzi-page .service-card-link:hover i {
  transform: translateX(5px);
}

/* Remove specific grid classes for Lenzi page */
.maximiliano-lenzi-page .services-grid-first-two-rows,
.maximiliano-lenzi-page .services-grid-last-row,
.maximiliano-lenzi-page .services-grid-last-row-flex,
.maximiliano-lenzi-page .services-grid-last-row-perfect,
.maximiliano-lenzi-page .services-grid-last-row-final {
  display: contents;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .qualifications-block {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .andrea-maretto-page .qualifications-block,
  .andrea-maretto-page .skills-grid,
  .alberto-cecolin-page .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .content-block {
    max-width: 95%;
    padding: 60px 25px;
  }
  
  .qualifications-block {
    grid-template-columns: 1fr;
  }
  
  .services-overview {
    grid-template-columns: 1fr;
  }
  
  .profile-block {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .mission-block {
    width: 95%;
    padding: 30px 25px;
  }
  
  .cta-block {
    max-width: 95%;
    padding: 40px 25px;
  }
  
  .andrea-maretto-page .qualifications-block,
  .andrea-maretto-page .skills-grid,
  .alberto-cecolin-page .skills-grid,
  .maximiliano-lenzi-page .qualifications-block {
    grid-template-columns: 1fr;
  }
  
  .timeline-content {
    flex: 0 0 90%;
  }
  
  .timeline-path {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: row !important;
  }
  
  .timeline-content::before {
    display: none;
  }
}

/* ===== ELEGANT ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qualification-card,
.skill-item,
.service-overview-card,
.timeline-item {
  animation: fadeInUp 0.6s ease-out;
}

.qualification-card:nth-child(2),
.skill-item:nth-child(2),
.service-overview-card:nth-child(2),
.timeline-item:nth-child(2) {
  animation-delay: 0.1s;
}

.qualification-card:nth-child(3),
.skill-item:nth-child(3),
.service-overview-card:nth-child(3),
.timeline-item:nth-child(3) {
  animation-delay: 0.2s;
}

.qualification-card:nth-child(4),
.skill-item:nth-child(4),
.service-overview-card:nth-child(4),
.timeline-item:nth-child(4) {
  animation-delay: 0.3s;
}

/* ===== PRINT STYLES ===== */
@media print {
  .content-block::before {
    display: none;
  }
  
  .service-card-link,
  .ctaButton {
    display: none;
  }
  
  .content-block {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== ACCESSIBILITY ENHANCEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.service-card-link:focus,
.ctaButton:focus,
.close-modal:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #000000;
    --card-border-1: #000000;
    --card-border-2: #000000;
  }
  
  .content-block::before {
    background: #000000;
  }
}