@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-color: #ffffff;
  --primary-color: #EE904D;
  --primary-rgb: 238, 144, 77;
  --secondary-color: #3D4459;
  --secondary-rgb: 61, 68, 89;
  --text-color: #353535;
  --accent-color: #293780;
  --accent-rgb: 41, 55, 128;
  --light-gray: #f8f9fa;
  --border-color: #e9ecef;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Base reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-color);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--secondary-color);
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* Layout utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-normal);
}

header.scrolled .nav-container {
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-normal);
}

header.scrolled .logo img {
  height: 42px;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--secondary-color);
  position: relative;
  padding: 8px 0;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary-color);
}

.nav-cta {
  background-color: var(--accent-color);
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(41, 55, 128, 0.25);
  transition: var(--transition-normal);
}

.nav-cta:hover {
  background-color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(238, 144, 77, 0.35);
  transform: translateY(-2px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--secondary-color);
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  background: radial-gradient(circle at 80% 20%, rgba(238, 144, 77, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(41, 55, 128, 0.06) 0%, transparent 50%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.hero-tagline {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 16px;
  display: inline-block;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.15rem;
  color: #555;
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-normal);
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 15px rgba(238, 144, 77, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(238, 144, 77, 0.35);
  background-color: #e37e36;
}

.btn-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: #fff;
  transform: translateY(-3px);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-bg-blob {
  position: absolute;
  width: 450px;
  height: 450px;
  background: linear-gradient(135deg, rgba(238, 144, 77, 0.15) 0%, rgba(41, 55, 128, 0.1) 100%);
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  animation: blob-bounce 12s infinite alternate ease-in-out;
  z-index: -1;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid #fff;
  background-color: #fff;
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-slow);
}

.hero-image-wrapper:hover img {
  transform: scale(1.03);
}

/* Sections General */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tagline {
  color: var(--primary-color);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
  display: block;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.section-header p {
  color: #666;
  font-size: 1.1rem;
}

/* Services (Cosa Facciamo) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background-color: #fff;
  padding: 48px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background-color: var(--accent-color);
  opacity: 0;
  transition: var(--transition-fast);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card:nth-child(2)::before {
  background-color: var(--primary-color);
}

.service-card:nth-child(3)::before {
  background-color: var(--accent-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(41, 55, 128, 0.06);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 24px;
  transition: var(--transition-normal);
}

.service-card:nth-child(2) .service-icon {
  background-color: rgba(238, 144, 77, 0.08);
  color: var(--primary-color);
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--secondary-color);
}

.service-card p {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-weight: 600;
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.service-card:nth-child(2) .service-link {
  color: var(--primary-color);
}

.service-link span {
  transition: var(--transition-fast);
}

.service-link:hover span {
  transform: translateX(4px);
}

/* Feature/Split section (La forza del gruppo) */
.split-section {
  background-color: var(--light-gray);
  overflow: hidden;
}

.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split-visual {
  position: relative;
}

.split-img-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.split-img-container img {
  width: 100%;
  display: block;
}

.split-visual::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 4px solid var(--primary-color);
  border-radius: var(--radius-lg);
  top: 20px;
  left: -20px;
  z-index: 1;
  pointer-events: none;
}

.split-content h2 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}

.split-content p {
  color: #555;
  font-size: 1.05rem;
  margin-bottom: 24px;
}

.split-features {
  list-style: none;
  margin-top: 30px;
}

.split-features li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 16px;
  font-weight: 500;
  color: var(--secondary-color);
}

.split-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -2px;
  width: 22px;
  height: 22px;
  background-color: rgba(238, 144, 77, 0.15);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Results section (Approccio orientato ai risultati) */
.results-section {
  background-color: #fff;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
  position: relative;
}

.step-card {
  position: relative;
}

.step-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
  color: rgba(41, 55, 128, 0.08);
  margin-bottom: 12px;
  transition: var(--transition-normal);
}

.step-card:hover .step-number {
  color: rgba(238, 144, 77, 0.2);
  transform: translateY(-5px);
}

.step-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--secondary-color);
}

.step-card p {
  color: #666;
  font-size: 0.95rem;
}

/* Contact/CTA section */
.cta-banner {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 80px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(238, 144, 77, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner h2 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: rgba(255, 255, 255, 0.75);
  padding: 80px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 50px;
  margin-bottom: 60px;
}

.footer-info img {
  height: 50px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-info p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h3, .footer-contact h3 {
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a:hover {
  color: var(--primary-color);
  padding-left: 4px;
}

.footer-contact p {
  margin-bottom: 12px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* Scroll Entrance Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes blob-bounce {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  50% {
    transform: translate(20px, -30px) scale(1.05) rotate(90deg);
  }
  100% {
    transform: translate(-10px, 10px) scale(0.95) rotate(180deg);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 { font-size: 2.8rem !important; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-tagline {
    justify-content: center;
  }
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .split-visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .steps-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #fff;
    flex-direction: column;
    align-items: center;
    padding: 50px 24px;
    gap: 30px;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .services-grid, .steps-container, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-banner {
    padding: 50px 24px;
  }
  
  .cta-banner h2 {
    font-size: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
}
