/* ===================================
   Design System 2025 - prezzi-gaseluce.it
   Colori neutri, animazioni sottili, CRO ottimizzato
   =================================== */

/* === Variables === */
:root {
  /* Colori primari */
  --primary: #ff7e5f;
  --primary-dark: #e66a4c;
  --primary-light: #feb47b;
  --primary-gradient: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  
  /* Colori neutri */
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-800: #2d2d2d;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #737373;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --gray-50: #fafafa;
  --white: #ffffff;
  
  /* Colori semantici */
  --success: #10b981;
  --info: #3b82f6;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  /* Ombre moderne */
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transizioni */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Font */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", monospace;
}

/* === Reset Moderno === */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); margin-bottom: 0.875rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.875rem); margin-bottom: 0.75rem; }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); margin-bottom: 0.625rem; }
h5 { font-size: clamp(1rem, 2vw, 1.25rem); margin-bottom: 0.5rem; }
h6 { font-size: clamp(0.875rem, 1.5vw, 1.125rem); margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

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

a:hover {
  color: var(--primary-dark);
}

/* === Layout Components === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container { padding: 0 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding: 0 2rem; }
}

/* === Header Moderno === */
.header-2025 {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-normal);
}

.header-2025.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.95);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo-2025 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-900);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

/* === Hero Section 2025 === */
.hero-2025 {
  background: var(--gray-50);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-2025::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.1;
  top: -250px;
  right: -250px;
  animation: float-slow 20s ease-in-out infinite;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  animation: fade-in-up 0.8s ease-out;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === CTA Buttons 2025 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 1rem;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(255, 126, 95, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px 0 rgba(255, 126, 95, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--white);
  color: var(--gray-900);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* === Cards 2025 === */
.card-2025 {
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.card-2025::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.card-2025:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

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

/* === CTA Banner 2025 === */
.cta-banner-2025 {
  background: var(--gray-50);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 3rem 0;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.cta-banner-2025::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--primary-gradient);
  border-radius: 50%;
  opacity: 0.05;
  bottom: -150px;
  left: -150px;
  animation: pulse-slow 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.cta-title {
  font-size: 1.75rem;
  color: var(--gray-900);
  margin-bottom: 0.75rem;
}

.cta-description {
  font-size: 1.125rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

/* === Footer 2025 === */
.footer-2025 {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 2rem;
  margin-top: 5rem;
}

@media (max-width: 767px) {
  .footer-2025 {
    padding-bottom: 5rem;
  }
}

.footer-content {
  text-align: center;
}

.footer-2025 a {
  color: var(--primary-light);
}

.footer-2025 a:hover {
  color: var(--primary);
}

/* === Animations === */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-slow);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive Grid === */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Mobile First === */
@media (max-width: 767px) {
  .header-content {
    flex-wrap: wrap;
  }
  
  .hero-2025 {
    padding: 3rem 0;
  }
  
  .cta-banner-2025 {
    padding: 2rem 1.5rem;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* === Utility Classes === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* === Smooth Scroll === */
html {
  scroll-behavior: smooth;
}

/* === Focus Styles === */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* === Selection === */
::selection {
  background-color: var(--primary);
  color: white;
}

/* === Navbar 2025 === */
.navbar-2025 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  width: 100%;
  padding: 1rem 2rem;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  min-height: 80px;
  box-sizing: border-box;
}

/* Brand/Logo Section */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.brand-name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--black);
  white-space: nowrap;
}

/* Navigation Links Section */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  justify-content: center;
}

.navbar-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-weight: 500;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

/* Dropdown Menu */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  padding: 0.5rem 0;
  cursor: pointer;
}

.dropdown-toggle i {
  font-size: 0.75rem;
  transition: transform var(--transition-fast);
}

.dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-fast);
  z-index: 1000;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
  transition: background-color var(--transition-fast);
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background-color: var(--gray-50);
  color: var(--primary);
}

/* Contact Button Section */
.navbar-contact {
  flex-shrink: 0;
}

.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--primary-gradient);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-btn i {
  font-size: 1.125rem;
}

/* Mobile Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-btn span {
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--gray-200);
}

.mobile-menu-header h3 {
  margin: 0;
  color: var(--primary);
  font-size: 1.25rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--gray-600);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mobile-menu-links {
  background: white;
  padding: 1rem 1.5rem;
}

.mobile-dropdown {
  margin-bottom: 1rem;
}

.mobile-dropdown-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0.75rem 0;
  font-size: 1.1rem;
  color: var(--gray-700);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-dropdown-content {
  display: none;
  padding-left: 1rem;
  margin-top: 0.5rem;
}

.mobile-dropdown-content.active {
  display: block;
}

.mobile-dropdown-content a {
  display: block;
  padding: 0.5rem 0;
  color: var(--gray-600);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-links a {
  display: block;
  padding: 0.75rem 0;
  color: var(--gray-700);
  text-decoration: none;
  border-bottom: 1px solid var(--gray-100);
  font-size: 1.1rem;
}

.mobile-contact {
  background: white;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.mobile-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  background: var(--primary-gradient);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}

/* Responsive Navbar */
@media (max-width: 1023px) {
  .navbar-2025 {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 0;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .navbar-nav,
  .navbar-contact {
    display: none;
  }
  
  .navbar-brand {
    flex: 1;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

@media (max-width: 767px) {
  .navbar-2025 {
    padding: 0.75rem 1rem;
  }
  
  .brand-name {
    font-size: 0.9rem;
  }
  
  .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .hamburger-btn {
    width: 28px;
    height: 28px;
  }
  
  .hamburger-btn span {
    height: 2px;
  }
}

@media (max-width: 767px) {
  .navbar-2025 {
    gap: 0.75rem;
  }
  
  .brand-name {
    font-size: 1rem;
  }
  
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  
  .contact-btn {
    width: 44px;
    height: 44px;
  }
}
