:root {
  --bg-color: #0f172a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --accent-color: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.4);
  --accent-glow-subtle: rgba(245, 158, 11, 0.1);
  --border-color: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
}

@font-face {
  font-family: 'DuneRise';
  src: url('font/Dune_Rise.ttf') format('truetype'),
       url('font/Dune_Rise.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.brand, .brand span {
  font-family: 'DuneRise', sans-serif !important;
}

.brand em {
  font-family: 'DuneRise', sans-serif !important;
  color: var(--accent-color) !important;
  font-style: normal;
}

footer .brand, footer .brand span {
  color: #ffffff !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
}

/* Header */
.premium-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.premium-header.navy-header {
  background: rgba(16, 20, 58, 0.86);
}

.brand {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand em {
  font-style: normal;
  color: var(--accent-color);
  text-shadow: 0 0 10px var(--accent-glow);
}

.brand img {
  width: 45px;
  height: 45px;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a:not(.btn-primary) {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-color);
}

.nav-links a:not(.btn-primary):hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.btn-primary {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  padding: 0.75rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  cursor: pointer;
  display: inline-block;
}

.glow-btn {
  box-shadow: 0 0 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.glow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.8), transparent);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.glow-btn:hover::before {
  left: 150%;
}

.glow-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.6);
}

/* Hero Section WOW */
.hero-wow {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 10rem 5% 5rem;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1e293b, transparent), radial-gradient(ellipse at bottom, var(--bg-color), transparent);
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.hero h1 span {
  background: linear-gradient(to right, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.3));
}

.hero p {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 750px;
  margin-bottom: 3.5rem;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 4rem;
  padding: 2.5rem 5rem;
  border-radius: 30px;
  background: rgba(20, 20, 25, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff, #a3a3a3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--accent-color);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

/* Sections & Gradients */
.section {
  padding: 8rem 5%;
  position: relative;
}

.dark-gradient-bg {
  background: linear-gradient(180deg, var(--bg-color) 0%, #0b1121 100%);
}

.mesh-bg {
  position: relative;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 15% 50%, rgba(245, 158, 11, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05), transparent 25%);
  z-index: 0;
  pointer-events: none;
}

.section-header,
.problems-grid,
.solutions-grid,
.portfolio-grid,
.about-container {
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-kicker {
  color: var(--accent-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  display: block;
  font-size: 0.95rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.2rem;
  font-weight: 300;
}

/* Cards & Hover Effects */
.hover-lift {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(245, 158, 11, 0.3);
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
}

.icon-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.problem-icon {
  font-size: 2.5rem;
  position: relative;
  z-index: 2;
}

.icon-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--accent-glow);
  filter: blur(20px);
  border-radius: 50%;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.problem-card:hover .icon-glow {
  opacity: 1;
}

.problem-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #fff;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Solutions */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  padding: 3.5rem;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

.solution-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.solution-tag {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.1));
  color: var(--accent-color);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.solution-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.solution-card p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.feature-list li::before {
  content: '✦';
  color: var(--accent-color);
  font-size: 1.2rem;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
}

.img-wrapper {
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.portfolio-card:hover .img-wrapper img {
  transform: scale(1.05);
}

.portfolio-info {
  padding: 2rem;
}

.portfolio-info h3 {
  font-size: 1.5rem;
  margin: 1rem 0;
}

.portfolio-info p {
  color: var(--text-secondary);
}

/* About / Chi Siamo */
.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

.about-content {
  padding: 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-content h2 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  margin: 1rem 0 2rem;
}

.about-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.about-content .feature-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Forms & CTA */
.cta-section {
  padding: 10rem 5%;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.8), var(--bg-color));
  position: relative;
}

.cta-section::before {
  display: none;
}

.cta-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 5rem 4rem;
  border-radius: 30px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.cta-box h2 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-size: 1.15rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

.contact-form input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.form-btn {
  padding: 1.2rem;
  font-size: 1.1rem;
  width: 100%;
  border-radius: 12px;
  margin-top: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 5rem 5% 2rem;
  background: #010101;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto 4rem;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1.8rem;
  font-size: 1.2rem;
}

.footer-col a:not(.brand) {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: all 0.3s;
}

.footer-col a:not(.brand):hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stagger-1 {
  animation: fadeInUp 1s ease 0.1s both;
}

.stagger-2 {
  animation: fadeInUp 1s ease 0.3s both;
}

.stagger-3 {
  animation: fadeInUp 1s ease 0.5s both;
}



.delay-1 {
  transition-delay: 0.15s;
}

.delay-2 {
  transition-delay: 0.3s;
}

.delay-3 {
  transition-delay: 0.45s;
}

/* Floating Elements */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  .cta-box {
    padding: 3rem 2rem;
  }

  .about-content {
    padding: 3rem 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating WhatsApp Button */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-widget:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 25px rgba(37, 211, 102, 0.5);
}
