/* ===================================
   CDR Digital Studio - Modern Web App
   Design System & Core Styles
   =================================== */

:root {
  /* Colors - Premium AI Theme */
  --primary-blue: #1e3a8a;
  --dark-blue: #0f172a;
  --light-blue: #3b82f6;
  --accent-teal: #00C2A8;
  --accent-electric: #60A5FA;
  --whatsapp-green: #25D366;
  --bg-light: #f8fafc;
  --bg-dark: #0D0D1A;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  --text-secondary: #94a3b8;
  --white: #ffffff;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base: 16px;
  --line-height-base: 1.6;
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===================================
   Reset & Base Styles
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-main);
  line-height: var(--line-height-base);
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-base);
}

/* ===================================
   Utility Classes
   =================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-lg {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

.text-center {
  text-align: center;
}

.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Typography
   =================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark-blue);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-gray);
  margin-bottom: var(--spacing-sm);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-gray);
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================
   Buttons
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--light-blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-whatsapp {
  background-color: var(--whatsapp-green);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
  background-color: #20bd5f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-lg {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* ===================================
   Header & Navigation
   =================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--dark-blue);
  transition: var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: linear-gradient(135deg, 
    rgba(30, 58, 138, 0.05) 0%, 
    rgba(59, 130, 246, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, 
    rgba(59, 130, 246, 0.1) 0%, 
    transparent 70%);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, 50px) rotate(180deg); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: slideUp 0.8s ease-out 0.4s both;
}

/* Hero Dark Variant */
.hero-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-dark h1 {
  color: var(--white);
}

.hero-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.hero-dark .hero-badge {
  background-color: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
}

/* ===================================
   Features Grid
   =================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-md);
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.3);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: var(--white);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--dark-blue);
}

.feature-card p {
  color: var(--text-gray);
  line-height: 1.6;
}

/* ===================================
   Trust Bar
   =================================== */

.trust-bar {
  background-color: var(--bg-light);
  padding: 3rem 0;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
}

.trust-stats {
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
  line-height: 1;
}

.trust-label {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
  display: block;
}

.trust-badge {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-blue);
  padding: 0.75rem 1.5rem;
  background-color: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

/* ===================================
   Service Blocks
   =================================== */

.service-blocks {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  margin-top: var(--spacing-lg);
}

.service-block {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.service-block:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-3px);
}

.service-block-reverse {
  grid-template-columns: 1fr 120px;
}

.service-block-reverse .service-block-content {
  order: -1;
}

.service-block-icon {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-block-icon svg {
  width: 60px;
  height: 60px;
  color: var(--white);
}

.service-block-content h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.service-block-content p {
  color: var(--text-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.service-examples {
  font-size: 0.95rem;
  color: var(--text-gray);
  font-style: italic;
  margin-top: 1rem;
}

/* ===================================
   Projects Grid
   =================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.project-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 240px;
  overflow: hidden;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder svg {
  opacity: 0.9;
}

.project-content {
  padding: 1.5rem;
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--primary-blue);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--dark-blue);
}

.project-content p {
  color: var(--text-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* ===================================
   Solutions Grid
   =================================== */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: var(--spacing-lg);
}

.solution-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 2px solid rgba(59, 130, 246, 0.1);
}

.solution-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(59, 130, 246, 0.3);
}

.solution-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.solution-icon svg {
  width: 40px;
  height: 40px;
  color: var(--white);
}

.solution-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.solution-box p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===================================
   Booking Section
   =================================== */

.booking-container {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.booking-content h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.booking-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.booking-benefits {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.booking-benefits li {
  padding: 0.5rem 0;
  font-size: 1.0625rem;
  opacity: 0.95;
}

/* ===================================
   Chatbot Widget
   =================================== */

.chatbot-widget {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  z-index: 999;
}

.chatbot-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  border-radius: 50px;
  box-shadow: var(--shadow-xl);
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition-base);
  cursor: pointer;
}

.chatbot-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4);
}

.chatbot-button svg {
  width: 24px;
  height: 24px;
}

.chatbot-button span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  .chatbot-widget {
    right: 1rem;
    bottom: 80px;
  }
  
  .chatbot-button span {
    display: none;
  }
  
  .chatbot-button {
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
}

/* ===================================
   Stats Section
   =================================== */

.stats {
  background-color: var(--primary-blue);
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-md);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* ===================================
   Services Section
   =================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--light-blue);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.service-icon svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

.service-card h3 {
  margin-bottom: var(--spacing-sm);
  color: var(--dark-blue);
}

.service-card p {
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===================================
   Team Section
   =================================== */

.team {
  background-color: var(--bg-light);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.team-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.team-photo {
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.team-photo svg {
  width: 120px;
  height: 120px;
  opacity: 0.3;
}

.team-info {
  padding: var(--spacing-md);
  text-align: center;
}

.team-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--light-blue);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  display: block;
}

.team-bio {
  color: var(--text-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

/* ===================================
   CTA Section
   =================================== */

.cta {
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  color: var(--white);
  text-align: center;
}

.cta h2 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-white {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-white:hover {
  background-color: var(--bg-light);
  transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */

.footer {
  background-color: var(--dark-blue);
  color: rgba(255, 255, 255, 0.7);
  padding: 1rem 0;
}

.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.footer-strip-brand {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  white-space: nowrap;
}

.footer-strip-brand span {
  color: var(--teal);
}

.footer-strip-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-strip-nav a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-strip-nav a:hover {
  color: var(--white);
}

.footer-strip-legal {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.45);
}

.footer-strip-legal a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer-strip-legal a:hover {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .footer-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
  }
  .footer-strip-nav,
  .footer-strip-legal {
    justify-content: center;
  }
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 997;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #3B82F6;
  border: 3px solid #00C2A8;
  box-shadow: 0 0 0 3px rgba(0, 194, 168, 0.25), 0 4px 16px rgba(59, 130, 246, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  scale: 1.1;
  box-shadow: 0 0 0 5px rgba(0, 194, 168, 0.45), 0 6px 24px rgba(59, 130, 246, 0.55);
}

.scroll-top svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  flex-shrink: 0;
}

/* ===================================
   Floating WhatsApp Button
   =================================== */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 24px;
  background-color: var(--whatsapp-green);
  color: var(--white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-base);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background-color: #20bd5f;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
  }
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: var(--white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: left 0.3s ease;
    gap: 0;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
  
  .nav-link {
    display: block;
    padding: 1rem 0;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero {
    min-height: auto;
    padding: var(--spacing-xl) 0;
  }
  
  .hero-cta {
    flex-direction: column;
  }
  
  /* btn width gestita nel blocco MOBILE FIXES COMPLETI */

  .services-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 24px;
    width: 56px;
    height: 56px;
  }
  .scroll-top {
    bottom: 96px;
    right: 24px;
  }
  
  .service-detail {
    padding: 2rem;
  }
  
  .service-detail-content {
    flex-direction: column;
  }
  
  .contact-grid,
  .why-choose-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
  
  .form-container {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  
  /* New sections responsive */
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .service-block,
  .service-block-reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .service-block-reverse .service-block-content {
    order: 1;
  }
  
  .service-block-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
  }
  
  .service-block-icon svg {
    width: 40px;
    height: 40px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  
  .booking-container {
    padding: 2rem;
  }
  
  .trust-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--spacing-lg) 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
  }
  
  .lead,
  .hero p {
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-number {
    font-size: 2.5rem;
  }
  
  .service-card,
  .team-card {
    padding: var(--spacing-md);
  }
}

/* ===================================
   Print Styles
   =================================== */

@media print {
  .header,
  .whatsapp-float,
  .btn {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
}

/* ===================================
   Service Detail Pages
   =================================== */

.service-detail {
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-detail-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.service-detail-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.service-detail h2 {
  margin: 0 0 0.5rem 0;
  color: var(--dark-blue);
}

.service-detail h3 {
  margin: 2rem 0 1rem 0;
  font-size: 1.25rem;
  color: var(--primary-blue);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-list li {
  padding: 0.5rem 0;
  display: flex;
  align-items: flex-start;
}

/* About Story */
.about-story {
  max-width: 800px;
  margin: 0 auto;
}

.about-story h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.about-story strong {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Why Choose Grid */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.why-item {
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.why-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.why-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Team Tags */
.tag {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  background: rgba(30, 58, 138, 0.1);
  color: var(--primary-blue);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.contact-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-card-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.contact-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--dark-blue);
}

.contact-card-role {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-card-phone {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin: 1rem 0;
}

/* Contact Form */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* FAQ Grid */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  color: var(--dark-blue);
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===================================
   GENGIOIA v2 — NEW COMPONENTS
   =================================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

/* --- Notification Bar --- */
.notification-bar {
  background: linear-gradient(90deg, #00C2A8, #3B82F6);
  color: #fff;
  text-align: center;
  padding: 0.6rem 3rem;
  position: relative;
  z-index: 1002;
}
.notification-bar p { color: #fff; margin: 0; font-size: 0.875rem; }
.notification-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.notification-close {
  position: absolute; right: 1.25rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: #fff; font-size: 1.25rem;
  cursor: pointer; opacity: 0.8;
}
.notification-close:hover { opacity: 1; }
.notification-bar.hidden { display: none; }

/* --- Override: Pill buttons & Teal primary --- */
.btn { border-radius: 50px; }
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
.btn-primary {
  background: linear-gradient(135deg, #00C2A8, #3B82F6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,194,168,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #00a898, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,194,168,0.45);
}
.btn-outline { background: transparent; color: #00C2A8; border: 2px solid #00C2A8; }
.btn-outline:hover { background: #00C2A8; color: #fff; transform: translateY(-2px); }
.btn-white-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255,255,255,0.7); border-radius: 50px;
  padding: 1rem 2rem; font-size: 1.125rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: all 0.3s ease;
}
.btn-white-outline:hover { background: rgba(255,255,255,0.15); border-color: #fff; transform: translateY(-2px); }

/* --- Dark Hero v2 --- */
.hero-dark-v2 {
  background: #0D0D1A;
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 100px; padding-bottom: 3rem; overflow: hidden;
}
.hero-dark-v2::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(0,194,168,0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(59,130,246,0.12) 0%, transparent 45%),
    radial-gradient(circle at 60% 85%, rgba(0,194,168,0.08) 0%, transparent 35%);
  pointer-events: none;
}
.hero-dark-v2 h1 { color: #fff; }
.hero-dark-v2 .lead { color: rgba(255,255,255,0.8); }
.hero-badge-dark {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  background: rgba(0,194,168,0.15); color: #00C2A8;
  border: 1px solid rgba(0,194,168,0.3); border-radius: 50px;
  font-weight: 600; font-size: 0.875rem; margin-bottom: 1.75rem;
}
.text-gradient-teal {
  background: linear-gradient(135deg, #00C2A8, #3B82F6);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-visual {
  background: linear-gradient(135deg, rgba(0,194,168,0.08), rgba(59,130,246,0.08));
  border: 1px solid rgba(0,194,168,0.18); border-radius: 20px; padding: 2.5rem;
}
.hero-stats-mini { display: flex; gap: 2.5rem; margin-top: 2rem; flex-wrap: wrap; padding-bottom: 2rem; }
.hero-stat { text-align: left; }
.hero-stat-num { font-size: 2rem; font-weight: 800; color: #00C2A8; line-height: 1; }
.hero-stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* --- Trust Bar Dark --- */
.trust-bar-dark {
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 2rem 0;
}
.trust-bar-dark .trust-number { color: #00C2A8; }
.trust-bar-dark .trust-label { color: rgba(255,255,255,0.6); }
.trust-bar-dark .trust-badge { background: rgba(255,255,255,0.07); color: #fff; border: 1px solid rgba(255,255,255,0.12); }

/* --- Services Summary 4 Cards --- */
.services-4-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem; margin-top: var(--spacing-lg);
}
.service-4-card {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
  padding: 1.75rem; transition: all 0.3s ease;
}
.service-4-card:hover {
  transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,194,168,0.15); border-color: #00C2A8;
}
.service-4-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #00C2A8, #3B82F6); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem;
}
.service-4-icon svg { width: 28px; height: 28px; color: #fff; }
.service-4-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: #1A1A2E; }
.service-4-card p { font-size: 0.9rem; color: #64748b; margin-bottom: 1rem; line-height: 1.5; }
.service-4-link { font-size: 0.875rem; font-weight: 600; color: #00C2A8; display: flex; align-items: center; gap: 0.3rem; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: var(--spacing-lg);
}
.testimonial-card {
  background: #fff; border-radius: 12px; padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07); border-left: 4px solid #00C2A8;
  transition: all 0.3s ease;
}
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,194,168,0.15); }
.testimonial-stars { color: #fbbf24; margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-text { color: #4a5568; font-style: italic; margin-bottom: 1.5rem; line-height: 1.7; font-size: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #00C2A8, #3B82F6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.testimonial-name { font-weight: 700; color: #1A1A2E; font-size: 0.95rem; }
.testimonial-role { font-size: 0.8rem; color: #64748b; }

/* --- FAQ Accordion --- */
.faq-accordion { max-width: 780px; margin: 0 auto; }
.faq-accordion-item {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 12px;
  margin-bottom: 0.75rem; overflow: hidden; transition: all 0.3s ease;
}
.faq-accordion-item.faq-open { box-shadow: 0 4px 16px rgba(0,194,168,0.12); border-color: #00C2A8; }
.faq-question {
  padding: 1.25rem 1.5rem; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; color: #1A1A2E; font-size: 1rem; user-select: none;
}
.faq-question:hover { color: #00C2A8; }
.faq-icon { color: #00C2A8; font-size: 1.5rem; line-height: 1; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-open .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 1.5rem 1.5rem; color: #64748b; font-size: 1rem; line-height: 1.7; }

/* --- Exit Popup --- */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.72); z-index: 9998;
  display: none; align-items: center; justify-content: center;
}
.popup-overlay.popup-active { display: flex; }
.popup-modal {
  background: #fff; border-radius: 24px; padding: 3rem 2.5rem;
  max-width: 500px; width: 90%; text-align: center; position: relative;
  animation: popIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
@keyframes popIn { from { transform: scale(0.75); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.popup-close { position: absolute; top: 1rem; right: 1.25rem; background: none; border: none; font-size: 1.75rem; cursor: pointer; color: #94a3b8; }
.popup-close:hover { color: #1A1A2E; }
.popup-emoji { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.popup-modal h2 { color: #1A1A2E; margin-bottom: 0.75rem; }
.popup-modal p { color: #64748b; margin-bottom: 2rem; }

/* --- CTA Accent --- */
.cta-accent { background: linear-gradient(135deg, #00C2A8 0%, #3B82F6 100%); text-align: center; padding: var(--spacing-xl) 0; }
.cta-accent h2 { color: #fff; margin-bottom: 1rem; }
.cta-accent p { color: rgba(255,255,255,0.9); font-size: 1.25rem; max-width: 580px; margin: 0 auto 2.5rem; }
.cta-accent .cta-buttons { justify-content: center; }

/* --- Hero Internal --- */
.hero-internal {
  background: #0D0D1A; min-height: 50vh; display: flex; align-items: center;
  padding: 9rem 0 5rem; position: relative; overflow: hidden;
}
.hero-internal::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 25% 50%, rgba(0,194,168,0.1) 0%, transparent 50%);
  pointer-events: none;
}
.hero-internal h1 { color: #fff; }
.hero-internal .lead { color: rgba(255,255,255,0.75); max-width: 640px; }

/* --- Service Rows Alternating --- */
.service-rows { display: flex; flex-direction: column; gap: 5rem; }
.service-row-block { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.service-row-block.reverse .service-visual-box { order: -1; }
.service-features-list { list-style: none; margin: 1.5rem 0; }
.service-features-list li { padding: 0.45rem 0; display: flex; align-items: center; gap: 0.75rem; color: #475569; font-size: 1rem; }
.service-visual-box {
  background: linear-gradient(135deg, rgba(0,194,168,0.06), rgba(59,130,246,0.06));
  border: 1px solid rgba(0,194,168,0.18); border-radius: 20px;
  padding: 3rem; text-align: center; display: flex;
  flex-direction: column; align-items: center; justify-content: center; min-height: 300px;
}

/* --- Audience Grid --- */
.audience-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 1000px; margin: 2rem auto 0;
}
.audience-item {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
  overflow: hidden; padding: 0; text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.audience-item:hover {
  border-color: #00C2A8;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,194,168,0.15);
}
.audience-photo {
  width: 100%; height: 170px; overflow: hidden;
}
.audience-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.audience-item:hover .audience-photo img { transform: scale(1.06); }
.audience-label {
  font-weight: 700; color: #1A1A2E; font-size: 1rem;
  padding: 0.85rem 1rem 0.9rem;
  letter-spacing: 0.01em;
}

/* --- Partner Cards --- */
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: var(--spacing-lg); }
.partner-card {
  background: #fff; border: 2px solid #E2E8F0; border-radius: 16px; padding: 2.5rem; transition: all 0.3s ease;
}
.partner-card:hover { border-color: #00C2A8; transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,194,168,0.15); }
.partner-card h3 { color: #1A1A2E; margin-bottom: 1rem; }
.partner-card p { color: #64748b; margin-bottom: 2rem; }

/* --- Badges --- */
.badge {
  display: inline-block; padding: 0.3rem 0.8rem; border-radius: 50px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1rem;
}
.badge-teal { background: rgba(0,194,168,0.12); color: #00C2A8; }
.badge-blue { background: rgba(59,130,246,0.12); color: #3B82F6; }
.badge-purple { background: rgba(139,92,246,0.12); color: #8B5CF6; }
.badge-amber { background: rgba(245,158,11,0.12); color: #d97706; }
.badge-green { background: rgba(16,185,129,0.12); color: #059669; }
.badge-warning { background: rgba(245,158,11,0.15); color: #b45309; font-size: 0.8rem; padding: 0.4rem 1rem; }

/* --- Projects v2 --- */
.projects-5-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 2rem; }
.project-card-v2 {
  background: #fff; border: 1px solid #E2E8F0; border-radius: 16px;
  overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: all 0.3s ease;
}
.project-card-v2:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,194,168,0.15); border-color: #00C2A8; }
.project-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid #F1F5F9; }
.project-body { padding: 1.5rem 2rem 2rem; }
.project-features { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.project-feature-tag { background: #F8F9FA; border: 1px solid #E2E8F0; border-radius: 50px; padding: 0.25rem 0.75rem; font-size: 0.8rem; color: #475569; }
.project-wip { background: rgba(245,158,11,0.04); border: 1px dashed rgba(245,158,11,0.35) !important; }

/* --- Social Icons Footer --- */
.social-icons { display: flex; gap: 0.75rem; margin-top: 1rem; }
.social-icon {
  width: 38px; height: 38px; background: rgba(255,255,255,0.08); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.08);
}
.social-icon:hover { background: #00C2A8; color: #fff; border-color: #00C2A8; transform: translateY(-2px); }
.social-icon svg { width: 18px; height: 18px; fill: currentColor; }

/* --- Privacy Note & Misc --- */
.privacy-note { font-size: 0.8rem; color: #94a3b8; margin-top: 0.75rem; }
.privacy-note a { color: #00C2A8; text-decoration: underline; }
.mt-lg { margin-top: var(--spacing-lg); }
.section-dark { background: #0D0D1A; }
.section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,0.7); }
.booking-cta {
  background: linear-gradient(135deg, #00C2A8, #3B82F6);
  border-radius: 20px; padding: 3rem; color: #fff; text-align: center;
  box-shadow: 0 16px 48px rgba(0,194,168,0.3);
}
.booking-cta h2 { color: #fff; }
.booking-cta p { color: rgba(255,255,255,0.9); }
.booking-cta .btn-white { background: #fff; color: #00C2A8; border-radius: 50px; font-weight: 700; }
.booking-cta .btn-white:hover { background: #F0FDF4; transform: translateY(-2px); }

/* --- Solutions 2 col --- */
.solutions-2-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: var(--spacing-lg); }
.solution-col-card { background: #fff; border-radius: 16px; padding: 2.5rem; border: 1px solid #E2E8F0; box-shadow: 0 2px 12px rgba(0,0,0,0.05); }
.solution-col-card h3 { color: #1A1A2E; margin-bottom: 1rem; }

/* --- Responsive additions --- */
@media (max-width: 900px) { .hero-two-col { grid-template-columns: 1fr; } .hero-visual { display: none; } }
@media (max-width: 768px) {
  .services-4-grid, .testimonials-grid, .projects-5-grid { grid-template-columns: 1fr; }
  .service-row-block { grid-template-columns: 1fr; gap: 2rem; }
  .service-row-block.reverse .service-visual-box { order: 0; }
  .service-visual-box { display: none; }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-item { padding: 0; }
  .audience-photo { height: 150px; }
  .partner-grid, .solutions-2-col { grid-template-columns: 1fr; }
}

/* ===================================
   MOBILE FIXES COMPLETI — GenGioIA v2
   =================================== */

/* Previene scroll orizzontale globale */
html, body { overflow-x: hidden; max-width: 100%; }
*, *::before, *::after { box-sizing: border-box; }

@media (max-width: 768px) {
  /* Container */
  .container { padding: 0 1.1rem; }

  /* Notification bar */
  .notification-bar { padding: 0.5rem 2.5rem 0.5rem 1rem; font-size: 0.78rem; }
  .notification-bar p { font-size: 0.78rem; }

  /* ---- Header & Navigazione ---- */
  /* Hamburger visibile e color corretto */
  .nav-toggle { display: flex !important; }
  .nav-toggle span { background-color: var(--dark-blue); }

  /* Menu mobile — versione dark definitiva */
  .nav-menu {
    position: fixed !important;
    top: 0 !important; left: -100% !important;
    width: 80% !important; height: 100vh !important;
    flex-direction: column !important;
    background: #0D0D1A !important;
    padding: 5.5rem 2rem 2rem !important;
    box-shadow: 4px 0 32px rgba(0,0,0,0.5) !important;
    transition: left 0.3s ease !important;
    gap: 0 !important; z-index: 1001 !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }
  .nav-menu.active { left: 0 !important; }
  .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-link { display: block; padding: 1rem 0; color: rgba(255,255,255,0.85) !important; font-size: 1.05rem; }
  .nav-link:hover { color: #00C2A8 !important; }
  .nav-menu .btn {
    margin-top: 1.25rem; width: 100%;
    justify-content: center; display: flex;
  }

  /* ---- Hero dark ---- */
  .hero-dark-v2 { padding-top: 130px !important; padding-bottom: 4rem !important; min-height: auto !important; }
  .hero-badge-dark { font-size: 0.75rem; }

  /* Stats: 3 colonne fisse — mai a capo */
  .hero-stats-mini {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.75rem !important;
    flex-wrap: unset !important;
    margin-top: 1.75rem;
  }
  .hero-stat { text-align: left; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn,
  .hero-cta .btn-white-outline { width: 100%; justify-content: center; text-align: center; display: flex; }

  /* Hero internal (pagine interne) */
  .hero-internal { padding: 7rem 0 3rem; min-height: auto; }

  /* ---- Bottoni: width auto di default, 100% solo nelle CTA ---- */
  .btn { border-radius: 50px; }
  .cta-buttons .btn,
  .cta-buttons .btn-white-outline,
  .cta-accent .cta-buttons a { width: 100%; justify-content: center; text-align: center; }
  .cta-buttons { flex-direction: column; align-items: stretch; gap: 0.75rem; }

  /* ---- Sezioni ---- */
  .section { padding: 3rem 0; }
  .cta-accent { padding: 3rem 1rem; }
  .cta-accent h2 { font-size: 1.6rem; }
  .cta-accent p { font-size: 1rem; }
  .btn-white-outline { justify-content: center; }

  /* ---- Cards servizi ---- */
  .service-4-card { padding: 1.25rem; }
  .service-4-icon { width: 44px; height: 44px; }
  .service-4-link { display: inline-block; width: auto; }

  /* ---- Project cards ---- */
  .projects-5-grid { grid-template-columns: 1fr; }
  .project-header, .project-body { padding: 1.25rem; }
  .project-body .btn { width: auto; display: inline-flex; }

  /* ---- Testimonials ---- */
  .testimonial-card { padding: 1.5rem; }

  /* ---- Team ---- */
  .team-grid { grid-template-columns: 1fr; }
  .team-photo { height: 280px; }

  /* ---- Pagina contatti ---- */
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 1.5rem; }
  .contact-form-layout { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .form-container { padding: 1.5rem; margin: 0; }
  .form-row { grid-template-columns: 1fr; }
  .booking-cta { padding: 1.75rem; }

  /* ---- Chi siamo ---- */
  .about-story { padding: 0 0.5rem; }

  /* ---- FAQ (pagine interne) ---- */
  .faq-accordion { padding: 0; }
  .faq-question { font-size: 0.92rem; padding: 1rem 1.25rem; }

  /* ---- Audience / Partner ---- */
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: 1fr; }
  .solutions-2-col { grid-template-columns: 1fr; }

  /* ---- Footer strip ---- */
  .footer-strip {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
  .footer-strip-nav,
  .footer-strip-legal { justify-content: center; flex-wrap: wrap; }
  .footer-strip-legal span { white-space: nowrap; }

  /* ---- Bottoni fissi (WA + scroll-top) ---- */
  .whatsapp-float { bottom: 20px; right: 20px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .scroll-top { bottom: 88px; right: 20px; width: 48px; height: 48px; }
  .scroll-top svg { width: 20px; height: 20px; }

  /* ---- Popup ---- */
  .popup-modal { padding: 2rem 1.25rem; margin: 1rem; }

  /* ---- Overlay nav (oscura il contenuto dietro il menu) ---- */
  .nav-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.5); z-index: 1000;
  }
  .nav-overlay.active { display: block; }
}

@media (max-width: 480px) {
  .hero-dark-v2 { padding-top: 120px; padding-bottom: 3rem; }
  .hero-internal { padding: 6rem 0 2.5rem; }
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem) !important; }
  h2 { font-size: clamp(1.4rem, 5vw, 2rem); }
  .notification-bar p { font-size: 0.72rem; }
  .btn-lg { padding: 0.9rem 1.5rem; font-size: 1rem; }
  .hero-badge-dark { font-size: 0.7rem; padding: 0.4rem 1rem; }
  .service-4-card { padding: 1rem; }
  .project-header, .project-body { padding: 1rem; }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .audience-item { padding: 0; }
  .audience-photo { height: 130px; }
  .audience-label { padding: 0.65rem 0.75rem 0.7rem; font-size: 0.9rem; }
  .partner-card { padding: 1.5rem; }
  .solution-col-card { padding: 1.5rem; }
  .footer-strip-nav { gap: 0.75rem; font-size: 0.8rem; }
  .hero-stats-mini { gap: 0.5rem !important; }
  .hero-stat-num { font-size: 1.2rem; }
  .hero-stat-label { font-size: 0.75rem; }
  .testimonial-card { padding: 1.25rem; }
  .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .scroll-top { bottom: 82px; right: 16px; width: 46px; height: 46px; }
}
