:root {
  --primary: #E12424;
  --primary-dark: #9D0000;
  --primary-light: #ff4444;
  --secondary: #253439;
  --bg-dark: #0a0a0f;
  --bg-section: #0e0e16;
  --bg-section-alt: #111119;
  --bg-card: rgba(255, 255, 255, 0.03);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --gradient-primary: linear-gradient(135deg, #E12424, #ff4444);
  --gradient-dark: linear-gradient(135deg, #E12424, #9D0000);
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  /* Subtle grain texture overlay */
  background-image: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%), 
                    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: 1rem;
}

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

img {
  max-width: 100%;
  display: block;
}

::selection {
  background: var(--primary);
  color: white;
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--primary-dark);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

/* Custom Cursor */
@media (pointer: fine) {
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    will-change: transform;
  }
  .cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    will-change: transform;
  }
  
  /* Interactive state for cursor */
  a:hover ~ .custom-cursor,
  button:hover ~ .custom-cursor {
    width: 40px;
    height: 40px;
    background-color: white;
  }
}
@media (hover: none) and (pointer: coarse) {
  .custom-cursor, .cursor-follower {
    display: none;
  }
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background-color: var(--bg-dark);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.preloader.loaded {
  opacity: 0;
  visibility: hidden;
}
.preloader-logo {
  animation: pulse 2s infinite ease-in-out;
  margin-bottom: 30px;
}
.preloader-bar {
  width: 200px;
  height: 2px;
  background: var(--glass-bg);
  border-radius: 2px;
  overflow: hidden;
}
.preloader-progress {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  animation: preloaderProgress 2s ease-in-out forwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(225, 36, 36, 0.3);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #ff4444, #E12424);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(225, 36, 36, 0.5);
  transform: translateY(-2px);
}
.btn-primary:hover::before {
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  padding: 15px 0;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 5px 0;
}
.nav-link:hover, .nav-link.active {
  color: white;
}
.nav-link:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}
.nav-link:not(.btn-nav):hover::after, .nav-link.active:not(.btn-nav)::after {
  width: 100%;
}
.btn-nav {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  color: white;
}
.btn-nav:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 1001;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  transition: 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* Sections Base */
section {
  padding: 120px 0;
  position: relative;
}
.section-header {
  text-align: center;
  margin-bottom: 80px;
}
.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-bottom: 16px;
  text-align: center;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  text-align: center;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}
.hero-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 24px;
  letter-spacing: -1px;
  text-align: center;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 1;
}
.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scrollLine 2s infinite;
}

/* About Section */
.about-section {
  background-color: var(--bg-section);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-lead {
  font-size: 1.3rem;
  font-weight: 500;
  color: white;
  margin-bottom: 24px;
}
.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  backdrop-filter: blur(10px);
}
.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-heading);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

/* Services Section */
.services-section {
  background-color: var(--bg-dark);
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.service-card {
  flex: 0 0 calc((100% - 44px) / 3);
  max-width: calc((100% - 44px) / 3);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
  transform-style: preserve-3d;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  border-color: rgba(225, 36, 36, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4), 0 0 24px rgba(225, 36, 36, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(225, 36, 36, 0.08);
  border: 1px solid rgba(225, 36, 36, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  color: var(--primary-light);
  transform: translateZ(15px);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(225, 36, 36, 0.16);
  border-color: rgba(225, 36, 36, 0.4);
  box-shadow: 0 0 16px rgba(225, 36, 36, 0.25);
  transform: translateZ(20px) scale(1.05);
}
.service-icon svg {
  width: 24px;
  height: 24px;
}
.service-title {
  font-size: 1.22rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  text-align: center;
  transform: translateZ(20px);
}
.service-description {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 16px;
  flex-grow: 1;
  text-align: center;
  transform: translateZ(15px);
}
.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin-bottom: 20px;
  transform: translateZ(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
}
.service-features li {
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  padding-left: 14px;
  line-height: 1.4;
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.service-link {
  color: var(--primary-light);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  transform: translateZ(15px);
}
.service-link span {
  transition: var(--transition);
  display: inline-block;
}
.service-card:hover .service-link span {
  transform: translateX(4px);
}

/* Tech Section */
.tech-section {
  position: relative;
  background-color: var(--bg-section-alt);
  padding: 100px 0;
  overflow: hidden;
}
.tech-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 350px;
  background: radial-gradient(ellipse at center, rgba(225, 36, 36, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: -0.25rem auto 0;
  text-align: center;
  line-height: 1.6;
}

/* Tech Tabs Navigation */
.tech-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
  overflow-x: auto;
  padding: 4px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tech-tabs-wrapper::-webkit-scrollbar {
  display: none;
}
.tech-tabs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tech-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  outline: none;
  user-select: none;
}
.tab-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.35s ease;
  flex-shrink: 0;
}
.tab-label {
  line-height: 1;
}
.tech-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}
.tech-tab.active {
  color: #ffffff;
  background: rgba(225, 36, 36, 0.12);
  border-color: rgba(225, 36, 36, 0.4);
  box-shadow: 0 4px 20px rgba(225, 36, 36, 0.2), inset 0 0 12px rgba(225, 36, 36, 0.1);
}
.tech-tab.active .tab-indicator {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-light);
}

/* Tech Panels */
.tech-panels {
  position: relative;
  min-height: 380px;
  z-index: 1;
}
.tech-panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.tech-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Panel Header Info Bar (Centrato) */
.panel-header-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
  gap: 16px;
}
.panel-meta {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.panel-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 10px;
  background: rgba(225, 36, 36, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(225, 36, 36, 0.2);
}
.panel-heading {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  text-align: center;
}
.panel-lead {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
  text-align: center;
}
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}
.carousel-arrows {
  display: flex;
  align-items: center;
  gap: 12px;
}
.carousel-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  outline: none;
}
.carousel-arrow:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
}
.carousel-arrow:active {
  transform: scale(0.95);
}

/* Infinite Marquee Carousel (movimento gestito da JS: auto-scroll + drag mouse/touch) */
.tech-carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 16px 0 28px;
  cursor: grab;
  touch-action: pan-y; /* scroll verticale alla pagina, swipe orizzontale al carosello */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
}
.tech-carousel-wrapper:active,
.tech-carousel-wrapper.grabbing {
  cursor: grabbing;
}
.tech-carousel-track {
  display: flex;
  width: max-content;
  gap: 20px;
  will-change: transform;
}

/* Tech Card */
.tech-card {
  position: relative;
  width: 295px;
  flex-shrink: 0;
  padding: 24px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.tech-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tech-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

/* Monochrome Icon Box (Default) */
.tech-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.tech-svg {
  width: 26px;
  height: 26px;
  transition: all 0.4s ease;
}

/* Tech Tag (Default) */
.tech-tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  transition: all 0.4s ease;
  white-space: nowrap;
}

/* Typography inside card */
.tech-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
  transition: color 0.3s ease;
}
.tech-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.55;
  margin-bottom: 0;
  flex-grow: 1;
}

/* ==========================================================================
   Coerenza Cromatica: Hover Glow State (Accensione colore originale brand)
   ========================================================================== */
.tech-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--brand-color, var(--primary));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(var(--brand-rgb, 225, 36, 36), 0.05) 100%);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 
              0 0 26px rgba(var(--brand-rgb, 225, 36, 36), 0.22),
              inset 0 0 16px rgba(var(--brand-rgb, 225, 36, 36), 0.04);
}
.tech-card:hover .tech-icon-box {
  color: var(--brand-color, var(--primary));
  background: rgba(var(--brand-rgb, 225, 36, 36), 0.12);
  border-color: rgba(var(--brand-rgb, 225, 36, 36), 0.4);
  box-shadow: 0 0 18px rgba(var(--brand-rgb, 225, 36, 36), 0.35);
  transform: scale(1.08);
}
.tech-card:hover .tech-tag {
  color: var(--brand-color, var(--primary));
  background: rgba(var(--brand-rgb, 225, 36, 36), 0.12);
  border-color: rgba(var(--brand-rgb, 225, 36, 36), 0.3);
}

/* Responsive Tech Section */
@media (max-width: 992px) {
  .panel-heading {
    font-size: 1.35rem;
  }
  .tech-card {
    width: 270px;
    padding: 20px;
  }
}
@media (max-width: 768px) {
  .tech-section {
    padding: 70px 0;
  }
  .tech-tabs-wrapper {
    justify-content: flex-start;
    margin-top: 28px;
    margin-bottom: 36px;
    padding-left: 0;
    padding-right: 0;
  }
  .tech-tab {
    padding: 10px 18px;
    font-size: 0.85rem;
  }
  .panel-header-bar {
    align-items: center;
    text-align: center;
    gap: 14px;
    margin-bottom: 22px;
  }
  .carousel-controls {
    width: auto;
    justify-content: center;
  }
  .tech-card {
    width: 250px;
    padding: 18px;
  }
  .tech-name {
    font-size: 1.05rem;
  }
  .tech-desc {
    font-size: 0.82rem;
  }
}

/* Process Timeline (Pipeline a 5 Step Compatti) */
.process-section {
  background-color: var(--bg-dark);
  padding: 80px 0;
}
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.timeline-line {
  position: absolute;
  top: 22px;
  left: calc(10% + 20px);
  right: calc(10% + 20px);
  height: 2px;
  background: linear-gradient(90deg, rgba(225, 36, 36, 0.2), rgba(225, 36, 36, 0.85), rgba(225, 36, 36, 0.2));
  z-index: 0;
  pointer-events: none;
}
.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 0;
  margin: 0;
}
.timeline-dot {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 0 6px var(--bg-dark), 0 0 16px rgba(225, 36, 36, 0.4);
  margin-bottom: 20px;
  transition: var(--transition);
  color: #ffffff;
  flex-shrink: 0;
}
.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--bg-dark), 0 0 24px rgba(225, 36, 36, 0.7);
}
.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
  text-align: center;
  transition: var(--transition);
}
.timeline-item:hover .timeline-content {
  border-color: rgba(225, 36, 36, 0.45);
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(225, 36, 36, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.timeline-content h3 {
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  text-align: center;
}
.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
  margin: 0;
  text-align: center;
}

/* Portfolio Section */
.portfolio-section {
  background-color: var(--bg-section);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.portfolio-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16/10;
  group: portfolio;
}
.portfolio-image {
  width: 100%;
  height: 100%;
}
.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.portfolio-card:hover .portfolio-image img {
  transform: scale(1.05);
}
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.2) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}
.portfolio-info {
  transform: translateY(20px);
  transition: transform 0.4s ease;
}
.portfolio-card:hover .portfolio-info {
  transform: translateY(0);
}
.portfolio-tag {
  display: inline-block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  backdrop-filter: blur(5px);
}
.portfolio-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.portfolio-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-dark);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}
.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-top: 2px;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
}
.contact-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}
.contact-item a, .contact-item span:not(.contact-label):not(.contact-sub) {
  font-weight: 500;
  font-size: 1.1rem;
}
.contact-item .contact-sub {
  display: block;
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  font-weight: 400 !important;
  margin-top: 4px;
  line-height: 1.4;
}
.social-links {
  display: flex;
  gap: 12px;
}
.social-link {
  width: 44px;
  height: 44px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.social-link svg {
  width: 18px;
  height: 18px;
}
.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
}
.form-group {
  margin-bottom: 24px;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
  color: white;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--primary);
}
.form-group select {
  appearance: none;
  cursor: pointer;
}
.form-group select option {
  background: var(--bg-dark);
  color: white;
}
.btn-submit {
  width: 100%;
  padding: 18px;
  margin-top: 10px;
}
.form-privacy {
  margin-top: 14px;
  margin-bottom: 20px;
}
.privacy-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-secondary);
  user-select: none;
}
.privacy-checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  border: 1px solid var(--glass-border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}
.privacy-checkbox-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}
.privacy-checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.privacy-checkbox-label.error input[type="checkbox"] {
  border-color: #ff4757;
  box-shadow: 0 0 8px rgba(255, 71, 87, 0.4);
}
.privacy-checkbox-label .privacy-link {
  color: var(--primary-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}
.privacy-checkbox-label .privacy-link:hover {
  color: #ffffff;
}
.form-success {
  display: none;
  text-align: center;
  margin-top: 20px;
  padding: 20px;
  background: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.2);
  border-radius: var(--radius-sm);
  color: #2ed573;
}
.form-success.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* Footer */
.footer {
  background-color: var(--bg-section-alt);
  padding: 80px 0 30px;
  border-top: 1px solid var(--glass-border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand p {
  color: var(--text-secondary);
  max-width: 300px;
  font-size: 0.95rem;
}
.footer-links h4, .footer-contact h4 {
  font-weight: 600;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}
.footer-links a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}
.footer-contact a {
  display: block;
  color: var(--text-secondary);
  margin-bottom: 12px;
}
.footer-contact a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-legal a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}
.footer-legal a:hover {
  color: var(--primary-light);
}

/* Privacy & Cookie Policy Modal */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  visibility: hidden;
}
.privacy-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.privacy-modal-card {
  background: #11111a;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.privacy-modal-overlay.active .privacy-modal-card {
  transform: translateY(0) scale(1);
}
.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--glass-border);
}
.privacy-modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #ffffff;
  margin: 0;
}
.privacy-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.privacy-modal-close:hover {
  color: #ffffff;
  transform: scale(1.1);
}
.privacy-modal-body {
  padding: 28px;
  overflow-y: auto;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}
.privacy-modal-body .privacy-updated {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.privacy-modal-body h4 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}
.privacy-modal-body h4:first-of-type {
  margin-top: 0;
}
.privacy-modal-body p {
  margin-bottom: 12px;
}
.privacy-modal-body ul {
  margin-left: 20px;
  margin-bottom: 14px;
}
.privacy-modal-body li {
  margin-bottom: 6px;
}
.privacy-modal-body a {
  color: var(--primary-light);
  text-decoration: underline;
}
.privacy-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--glass-border);
  display: flex;
  justify-content: flex-end;
  background: rgba(255, 255, 255, 0.02);
}
.btn-modal-close {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: translateY(0); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.95); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes preloaderProgress {
  0% { width: 0; }
  100% { width: 100%; }
}

/* Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

/* ── Tablet (≤ 1024px) ── */
@media (max-width: 1024px) {
  .services-grid {
    gap: 18px;
  }
  .service-card {
    flex: 0 0 calc((100% - 18px) / 2);
    max-width: calc((100% - 18px) / 2);
    padding: 24px 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contact-grid {
    gap: 40px;
  }
  .timeline {
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .timeline-line {
    display: none;
  }
  .timeline-item:nth-child(1) { grid-column: 1 / span 2; }
  .timeline-item:nth-child(2) { grid-column: 3 / span 2; }
  .timeline-item:nth-child(3) { grid-column: 5 / span 2; }
  .timeline-item:nth-child(4) { grid-column: 2 / span 2; }
  .timeline-item:nth-child(5) { grid-column: 4 / span 2; }
}

/* ── Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  section {
    padding: 80px 0;
  }
  .section-header {
    margin-bottom: 48px;
  }

  /* ─ Navigation ─ */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for mobile browsers */
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    transition: right 0.4s ease;
  }
  .nav-menu.active {
    right: 0;
  }
  .nav-link {
    font-size: 1.25rem;
    padding: 8px 0;
  }
  .btn-nav {
    margin-top: 8px;
    padding: 12px 32px;
  }
  .nav-toggle {
    display: block;
  }

  /* ─ Hero ─ */
  .hero-section {
    min-height: 100dvh;
  }
  .hero-content {
    padding: 0 20px;
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 32px;
  }
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
  .hero-cta-group .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  .scroll-indicator {
    bottom: 24px;
  }

  /* ─ About ─ */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-lead {
    font-size: 1.15rem;
  }
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .stat-card {
    padding: 20px 16px;
  }
  .stat-number {
    font-size: 2.4rem;
  }
  .stat-suffix {
    font-size: 1.5rem;
  }

  /* ─ Services ─ */
  .services-grid {
    gap: 16px;
  }
  .service-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 22px 18px;
  }
  /* Disable translateZ on mobile (no 3D tilt) */
  .service-icon,
  .service-title,
  .service-description,
  .service-features,
  .service-link {
    transform: none;
  }

  /* ─ Timeline (Compatta su Mobile) ─ */
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-left: 48px;
    position: relative;
    max-width: 580px;
    margin: 0 auto;
  }
  .timeline-line {
    display: block;
    top: 14px;
    bottom: 14px;
    left: 17px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--primary), rgba(225, 36, 36, 0.25));
  }
  .timeline-item,
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .timeline-dot {
    position: absolute;
    left: 0;
    top: 12px;
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
    margin: 0;
    box-shadow: 0 0 0 4px var(--bg-dark), 0 0 12px rgba(225, 36, 36, 0.35);
  }
  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content,
  .timeline-content {
    margin: 0;
    width: 100%;
    padding: 18px 16px;
    text-align: center;
  }
  .timeline-content h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    text-align: center;
  }
  .timeline-content p {
    font-size: 0.85rem;
    text-align: center;
  }

  /* ─ Portfolio ─ */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .portfolio-card {
    aspect-ratio: 16 / 10;
  }
  /* Always show overlay on touch devices */
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, rgba(10, 10, 15, 0.1) 60%, transparent 100%);
    padding: 20px;
  }
  .portfolio-info {
    transform: translateY(0);
  }
  .portfolio-title {
    font-size: 1.2rem;
  }
  .portfolio-desc {
    font-size: 0.85rem;
  }

  /* ─ Contact ─ */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-info h3 {
    font-size: 1.6rem;
  }
  .contact-form {
    padding: 28px 20px;
  }
  .contact-item a,
  .contact-item span:not(.contact-label):not(.contact-sub) {
    font-size: 0.95rem;
    word-break: break-word;
  }

  /* ─ Footer ─ */
  .footer {
    padding: 60px 0 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

/* ── Small phones (≤ 480px) ── */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .nav-container {
    padding: 0 16px;
  }

  section {
    padding: 60px 0;
  }

  /* ─ Hero ─ */
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.5rem);
    letter-spacing: -0.5px;
  }
  .hero-tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    letter-spacing: 1.5px;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* ─ Section titles ─ */
  .section-title {
    font-size: 1.75rem;
  }
  .section-tag {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }
  .section-header {
    margin-bottom: 36px;
  }

  /* ─ About ─ */
  .about-lead {
    font-size: 1.05rem;
  }
  .about-text p {
    font-size: 0.9rem;
  }

  /* ─ Services ─ */
  .service-card {
    padding: 20px 16px;
  }
  .service-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 12px auto;
  }
  .service-icon svg {
    width: 20px;
    height: 20px;
  }
  .service-title {
    font-size: 1.15rem;
    margin-bottom: 8px;
  }
  .service-description {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }
  .service-features {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-top: 12px;
    margin-bottom: 16px;
  }

  /* ─ Timeline ─ */
  .timeline {
    padding-left: 42px;
    gap: 12px;
  }
  .timeline-line {
    left: 15px;
  }
  .timeline-dot {
    width: 32px;
    height: 32px;
    font-size: 0.75rem;
    box-shadow: 0 0 0 4px var(--bg-dark);
  }
  .timeline-content {
    padding: 16px 14px;
  }
  .timeline-content h3 {
    font-size: 0.98rem;
    margin-bottom: 5px;
  }
  .timeline-content p {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  /* ─ Portfolio ─ */
  .portfolio-card {
    aspect-ratio: 16 / 11;
  }
  .portfolio-overlay {
    padding: 16px;
  }
  .portfolio-tag {
    font-size: 0.7rem;
    padding: 3px 10px;
    margin-bottom: 8px;
  }
  .portfolio-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .portfolio-desc {
    font-size: 0.8rem;
  }

  /* ─ Contact ─ */
  .contact-info h3 {
    font-size: 1.4rem;
  }
  .contact-info p {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }
  .contact-items {
    gap: 20px;
    margin-bottom: 28px;
  }
  .contact-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
  }
  .contact-icon svg {
    width: 18px;
    height: 18px;
  }
  .contact-form {
    padding: 24px 16px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 0.95rem;
    padding: 14px 0;
  }
  .btn-submit {
    padding: 16px;
    font-size: 0.95rem;
  }

  /* ─ Footer ─ */
  .footer {
    padding: 48px 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
  }
  .footer-brand {
    grid-column: auto;
  }
  .footer-brand p {
    max-width: 100%;
  }
  .footer-links h4,
  .footer-contact h4 {
    margin-bottom: 14px;
    font-size: 1rem;
  }
  .footer-links a {
    font-size: 0.9rem;
    margin-bottom: 10px;
  }
  .footer-bottom {
    padding-top: 20px;
    font-size: 0.8rem;
  }
}

/* ── Very small phones (≤ 360px) ── */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 0.85rem;
  }
  .hero-cta-group .btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .stat-number {
    font-size: 2rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .section-title {
    font-size: 1.5rem;
  }
}
