/* ==========================================================================
   FDWeb.net - Dario Principia | Master Stylesheet
   Modern Dark Tech-Creative Aesthetic
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette - Dark Surfaces */
  --bg-main: #060911;
  --bg-surface: #0c1222;
  --bg-surface-elevated: #131d35;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-hover: rgba(22, 33, 62, 0.85);

  /* Border & Glassmorphism */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.5);
  --border-glow: rgba(99, 102, 241, 0.3);
  --glass-blur: 16px;

  /* Accent Colors */
  --cyan: #00f0ff;
  --cyan-dim: #0ea5e9;
  --blue: #3b82f6;
  --indigo: #6366f1;
  --purple: #8b5cf6;
  --pink: #ec4899;
  --amber: #f59e0b;
  --emerald: #10b981;

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #8492a6;
  --text-dim: #475569;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
  --grad-accent: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
  --grad-emerald: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --grad-card: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --container-max: 1200px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows & Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow-cyan: 0 0 35px rgba(0, 240, 255, 0.18);
  --shadow-glow-indigo: 0 0 35px rgba(99, 102, 241, 0.2);
  --shadow-glow-amber: 0 0 35px rgba(245, 158, 11, 0.2);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & Global Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  color-scheme: dark;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

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

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

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

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* --------------------------------------------------------------------------
   3. Ambient Decorative Glows
   -------------------------------------------------------------------------- */
.ambient-glow-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(140px);
  z-index: 0;
  opacity: 0.22;
}

.glow-cyan {
  top: 50px;
  right: -5%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, #00f0ff 0%, #0284c7 70%);
}

.glow-indigo {
  top: 800px;
  left: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, #6366f1 0%, #4338ca 70%);
}

.glow-amber {
  top: 1800px;
  right: -5%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 70%);
  opacity: 0.16;
}

/* --------------------------------------------------------------------------
   4. Typography & Common UI Elements
   -------------------------------------------------------------------------- */
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-alt {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-emerald {
  background: linear-gradient(135deg, #10b981 0%, #34d399 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #818cf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding-block: 6.5rem;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 4rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 2.75rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.title-line {
  display: inline-block;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.65rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-primary);
  color: #060911;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
  filter: brightness(1.06);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.55rem 1.15rem;
}

.btn-block {
  width: 100%;
}

.btn-arrow {
  transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   6. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(6, 9, 17, 0.85);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.brand-link:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.brand-wordmark {
  font-family: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
}

.brand-name {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.brand-dot {
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.88em;
  letter-spacing: -0.02em;
  margin-left: 1px;
}

.footer-brand-link {
  margin-bottom: 1.25rem;
}

.footer-brand-link .brand-wordmark {
  font-size: 2.25rem;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
}

.nav-link {
  font-family: 'Outfit', var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  position: relative;
  transition: all var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
  transition: transform var(--transition-fast);
}

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

.nav-link.active {
  color: #ffffff;
  font-weight: 700;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle .bar {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  padding-top: calc(var(--header-height) + 3.5rem);
  padding-bottom: 5.5rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 4rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(14, 22, 38, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseGlow 2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero-line {
  display: block;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2.2rem;
  max-width: 620px;
}

.hero-subtitle strong {
  color: #ffffff;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-features-chips {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.feature-chip:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
  background: rgba(0, 240, 255, 0.05);
}

/* Profile Card Styling */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(145deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow-cyan);
}

.card-glow-bg {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.25) 0%, rgba(99, 102, 241, 0.15) 50%, transparent 75%);
  border-radius: inherit;
  z-index: -1;
  filter: blur(25px);
}

.profile-image-container {
  position: relative;
  border-radius: calc(var(--radius-xl) - 6px);
  overflow: hidden;
  background: #000000;
  aspect-ratio: 4 / 5;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-card:hover .profile-photo {
  transform: scale(1.03);
}

.profile-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(6, 9, 17, 0.85) 100%);
  pointer-events: none;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(12, 18, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 2;
  transition: transform var(--transition-fast);
}

.floating-badge:hover {
  transform: translateY(-3px);
}

.floating-badge strong {
  display: block;
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.2;
}

.floating-badge small {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.badge-status {
  top: -15px;
  right: -15px;
  border-color: rgba(16, 185, 129, 0.4);
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseGlow 1.8s infinite ease-in-out;
}

.badge-hybrid {
  bottom: -20px;
  left: -15px;
  border-color: rgba(245, 158, 11, 0.4);
}

.badge-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   8. Chi Sono Section
   -------------------------------------------------------------------------- */
.about-section {
  background: linear-gradient(180deg, var(--bg-main) 0%, rgba(12, 18, 34, 0.4) 50%, var(--bg-main) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
}

.about-text-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  backdrop-filter: blur(var(--glass-blur));
}

.about-text-card h3 {
  font-size: 1.8rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.about-text-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.35rem;
}

.signature-block {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.signature-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.signature-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-top: 0.2rem;
}

.about-highlights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.highlight-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all var(--transition-smooth);
}

.highlight-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(4px);
}

.highlight-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icon-cyan {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}

.icon-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.icon-purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.icon-pink {
  background: rgba(236, 72, 153, 0.1);
  color: var(--pink);
  border: 1px solid rgba(236, 72, 153, 0.25);
}

.icon-amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.highlight-item h4 {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.highlight-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   9. Servizi Section
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  backdrop-filter: blur(var(--glass-blur));
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-md), 0 0 25px rgba(0, 240, 255, 0.12);
}

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

.service-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.14);
}

.service-title {
  font-size: 1.35rem;
  color: #ffffff;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.service-summary {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.service-checklist {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-checklist li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.5;
}

.service-checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

.service-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.service-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.service-cta:hover {
  color: #ffffff;
  gap: 0.65rem;
}

/* --------------------------------------------------------------------------
   10. Competenze & Strumenti (Tech Stack)
   -------------------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
}

.tool-category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(var(--glass-blur));
  transition: all var(--transition-smooth);
}

.tool-category-card:hover {
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.category-head {
  margin-bottom: 1.5rem;
}

.category-pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.pill-cyan { background: rgba(0, 240, 255, 0.1); color: var(--cyan); }
.pill-emerald { background: rgba(16, 185, 129, 0.1); color: var(--emerald); }
.pill-purple { background: rgba(139, 92, 246, 0.1); color: var(--purple); }
.pill-amber { background: rgba(245, 158, 11, 0.1); color: var(--amber); }

.category-head h4 {
  font-size: 1.15rem;
  color: #ffffff;
  font-weight: 700;
}

.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.tech-tag:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: var(--cyan);
}

/* --------------------------------------------------------------------------
   11. Portfolio & Showcase Section
   -------------------------------------------------------------------------- */
.portfolio-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn.active {
  color: #060911;
  background: var(--cyan);
  border-color: var(--cyan);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--shadow-md), 0 0 30px rgba(0, 240, 255, 0.1);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #020617;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .card-media img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 9, 17, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  backdrop-filter: blur(4px);
}

.portfolio-card:hover .card-overlay {
  opacity: 1;
}

.preview-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: #060911;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  transform: translateY(10px);
  transition: transform var(--transition-fast);
}

.portfolio-card:hover .preview-btn {
  transform: translateY(0);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.tag-cyan { background: rgba(0, 240, 255, 0.12); color: var(--cyan); }
.tag-emerald { background: rgba(16, 185, 129, 0.12); color: var(--emerald); }
.tag-purple { background: rgba(139, 92, 246, 0.12); color: var(--purple); }
.tag-pink { background: rgba(236, 72, 153, 0.12); color: var(--pink); }
.tag-amber { background: rgba(245, 158, 11, 0.12); color: var(--amber); }

.project-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.card-title {
  font-size: 1.25rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Portfolio Note Callout */
.portfolio-note {
  max-width: 800px;
  margin-inline: auto;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  color: #fde68a;
  font-size: 0.92rem;
  line-height: 1.6;
}

.portfolio-note svg {
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --------------------------------------------------------------------------
   12. Contatti Section & Form
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  backdrop-filter: blur(var(--glass-blur));
}

.contact-info-card h3 {
  font-size: 1.75rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.method-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.method-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.method-val {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  font-weight: 600;
  margin-top: 0.15rem;
}

.method-val:hover {
  color: var(--cyan);
}

.social-links-wrap {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.social-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

/* Form Card */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  backdrop-filter: blur(var(--glass-blur));
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.35rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(8, 12, 22, 0.8);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

.form-group textarea {
  min-height: 180px;
  line-height: 1.6;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group select {
  cursor: pointer;
}

.form-group select option {
  background: #0d1322;
  color: #ffffff;
}

.field-error {
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 0.35rem;
  display: none;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444;
}

.form-group.has-error .field-error {
  display: block;
}

.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.form-feedback.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

/* Nasconde il badge fluttuante di Google reCAPTCHA v3 */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.recaptcha-terms {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
  line-height: 1.5;
}

.recaptcha-terms a {
  color: var(--text-muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.recaptcha-terms a:hover {
  color: var(--cyan);
}

/* --------------------------------------------------------------------------
   13. Lightbox Modal
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lightbox-dialog {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: #0d1424;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 240, 255, 0.15);
  z-index: 1;
  transform: scale(0.95);
  transition: transform var(--transition-smooth);
}

.lightbox-modal.active .lightbox-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--cyan);
  color: #060911;
  border-color: var(--cyan);
}

.modal-media-wrapper {
  background: #020617;
  max-height: 420px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-media-wrapper img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.modal-content {
  padding: 2rem 2.25rem;
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.modal-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 240, 255, 0.15);
  color: var(--cyan);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.modal-project-ref {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.modal-title {
  font-size: 1.5rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.modal-desc {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------------------
   14. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: #04060b;
  border-top: 1px solid var(--border-subtle);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  margin-bottom: 1.25rem;
}

.footer-bio {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 380px;
}

.footer-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-dim);
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--cyan);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.35rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.back-to-top:hover {
  color: var(--cyan);
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   15. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-features-chips {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 70px;
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  .container {
    padding-inline: 1.25rem;
    max-width: 100%;
  }

  .header-inner {
    padding-inline: 1.25rem;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
  }

  .brand-wordmark {
    font-size: 1.65rem;
  }

  .header-actions {
    margin-left: auto;
    gap: 0;
  }

  .header-actions .btn {
    display: none;
  }

  .mobile-toggle {
    display: flex;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: rgba(6, 9, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0.75rem;
  }

  .nav-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1.05rem;
  }

  /* Typography Mobile */
  .hero-title {
    font-size: clamp(1.8rem, 6.2vw, 2.45rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
  }

  .hero-line {
    white-space: nowrap;
  }

  .section-title {
    font-size: clamp(1.6rem, 5.8vw, 2.25rem);
    line-height: 1.22;
  }

  .title-line {
    white-space: nowrap;
  }

  /* Grids & Layout Mobile Fixes */
  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .about-text-card,
  .contact-info-card,
  .contact-form-card {
    padding: 2rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .floating-badge {
    padding: 0.5rem 0.85rem;
  }

  .badge-status {
    top: -10px;
    right: 0px;
  }

  .badge-hybrid {
    bottom: -15px;
    left: 0px;
  }

  .section {
    padding-block: 4.5rem;
  }

  /* Glows decorativi su tablet/mobile */
  .ambient-glow {
    filter: blur(80px);
    opacity: 0.16;
  }

  .glow-cyan {
    top: 20px;
    right: 0;
    width: 240px;
    height: 240px;
  }

  .glow-indigo {
    top: 700px;
    left: 0;
    width: 240px;
    height: 240px;
  }

  .glow-amber {
    top: 1500px;
    right: 0;
    width: 220px;
    height: 220px;
  }
}

/* --------------------------------------------------------------------------
   Smartphone Media Queries (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding-inline: 1rem;
  }

  .header-inner {
    padding-inline: 1rem;
    gap: 0.5rem;
  }

  .brand-wordmark {
    font-size: 1.45rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    padding: 7px;
  }

  /* Scritte su riga singola specifica per smartphone */
  .hero-title {
    font-size: clamp(1.5rem, 6.6vw, 1.82rem);
    line-height: 1.18;
    letter-spacing: -0.025em;
  }

  .hero-line {
    white-space: nowrap;
  }

  .section-title {
    font-size: clamp(1.36rem, 5.9vw, 1.68rem);
    line-height: 1.22;
  }

  .title-line {
    white-space: nowrap;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .profile-card {
    max-width: 100%;
    padding: 8px;
  }

  .floating-badge {
    padding: 0.4rem 0.65rem;
    gap: 0.5rem;
  }

  .floating-badge strong {
    font-size: 0.76rem;
  }

  .floating-badge small {
    font-size: 0.65rem;
  }

  .badge-icon {
    width: 28px;
    height: 28px;
  }

  .badge-status {
    top: -8px;
    right: 4px;
  }

  .badge-hybrid {
    bottom: -10px;
    left: 4px;
  }

  .service-card {
    padding: 1.75rem 1.25rem;
  }

  .tool-category-card {
    padding: 1.5rem 1.15rem;
  }
}

@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
