/* ============================================
   STUDIO NAMI - STYLESHEET
   Design System basato sui colori del logo:
   Verde → Turchese → Ciano
   ============================================ */

/* ----------------------------------------
   CSS VARIABLES & DESIGN TOKENS
   ---------------------------------------- */
:root {
  /* Colori primari dal logo */
  --color-green: #00A86B;
  --color-teal: #00A8A8;
  --color-cyan: #00B4D8;
  
  /* Gradienti */
  --gradient-primary: linear-gradient(135deg, var(--color-green) 0%, var(--color-teal) 50%, var(--color-cyan) 100%);
  --gradient-hero: linear-gradient(135deg, #0D2818 0%, #1A3A2F 50%, #0F3B3B 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(0, 168, 107, 0.05) 0%, rgba(0, 180, 216, 0.05) 100%);
  
  /* Colori neutri */
  --color-dark: #0D1B1E;
  --color-dark-soft: #1A2F35;
  --color-gray-900: #1E3A3F;
  --color-gray-700: #3D5A5F;
  --color-gray-600: #4A6B70;
  --color-gray-500: #6B8A8F;
  --color-gray-300: #A8C5CA;
  --color-gray-100: #E8F4F6;
  --color-light: #F5FAFB;
  --color-white: #FFFFFF;
  --color-ink: #071013;
  --color-amber: #FFB347;
  --color-lime: #C5F36B;
  
  /* Tipografia */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Dimensioni font */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  
  /* Spaziatura */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  
  /* Bordi e ombre */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px 0 rgba(13, 27, 30, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(13, 27, 30, 0.1), 0 2px 4px -1px rgba(13, 27, 30, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(13, 27, 30, 0.1), 0 4px 6px -2px rgba(13, 27, 30, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(13, 27, 30, 0.1), 0 10px 10px -5px rgba(13, 27, 30, 0.04);
  --shadow-glow: 0 0 40px rgba(0, 168, 168, 0.3);
  
  /* Transizioni */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Larghezze container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  
  /* Header height */
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-dark);
  background: radial-gradient(circle at 10% 20%, rgba(0,168,168,0.05) 0, transparent 25%),
              radial-gradient(circle at 80% 0%, rgba(0,180,216,0.06) 0, transparent 30%),
              var(--color-white);
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

::selection {
  background: rgba(0, 168, 168, 0.15);
  color: var(--color-dark);
}

:focus-visible {
  outline: 3px solid rgba(0, 168, 168, 0.35);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
  transition: outline var(--transition-fast);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: var(--space-3) var(--space-4);
  background: var(--color-dark);
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--transition-base);
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only class */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Honeypot field - hidden from users but visible to bots */
.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

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

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

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

/* ----------------------------------------
   LAYOUT & CONTAINER
   ---------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section--dark {
  background: var(--gradient-hero);
  color: var(--color-white);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section--dark p {
  color: var(--color-gray-300);
}

.section--light {
  background: var(--color-light);
}

.section--gradient {
  background: var(--gradient-subtle);
}

/* ----------------------------------------
   HEADER & NAVIGATION
   ---------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  transition: box-shadow var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.header__logo img {
  height: 45px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-dark);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav__link {
  font-weight: 500;
  color: var(--color-gray-700);
  position: relative;
  padding: var(--space-2) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link--active {
  color: var(--color-teal);
}

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

/* Mobile menu button */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: var(--space-2);
  position: relative;
  z-index: 1100;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: all var(--transition-base);
  transform-origin: center;
}

.nav__toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Progress bar under header */
.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0;
  height: 4px;
  background: var(--gradient-primary);
  z-index: 999;
  box-shadow: 0 0 10px rgba(0, 168, 168, 0.3);
  transform-origin: left;
  border-radius: 0 4px 4px 0;
}

/* ----------------------------------------
   BUTTONS
   ---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.btn--secondary:hover {
  background: var(--color-teal);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

/* ----------------------------------------
   HERO SECTION
   ---------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0, 168, 168, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: var(--space-10);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 480px;
  margin-left: auto;
  isolation: isolate;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: radial-gradient(65% 65% at 50% 40%, rgba(0, 168, 168, 0.35), transparent 65%),
              radial-gradient(55% 55% at 65% 70%, rgba(0, 180, 216, 0.25), transparent 70%);
  filter: blur(28px);
  opacity: 0.9;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 168, 168, 0.25);
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(0, 168, 168, 0.15);
  border: 1px solid rgba(0, 168, 168, 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-cyan);
  margin-bottom: var(--space-6);
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__title {
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  color: var(--color-white);
  margin-bottom: var(--space-6);
  line-height: 1.1;
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: var(--color-gray-300);
  margin-bottom: var(--space-4);
  max-width: 600px;
}

.hero__slogan {
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

/* Improve button spacing on mobile */
@media (max-width: 768px) {
  .hero__actions {
    gap: var(--space-3);
  }
  
  .hero__actions .btn {
    flex: 1;
    min-width: 120px;
  }
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  color: var(--color-gray-100);
  font-weight: 600;
  font-size: var(--text-sm);
  backdrop-filter: blur(8px);
}

.hero__note {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  color: var(--color-gray-100);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}

/* ----------------------------------------
   CARDS
   ---------------------------------------- */
.card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  height: 100%;
}

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

.card--bordered {
  border: 1px solid var(--color-gray-100);
  box-shadow: none;
}

.card--bordered:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-lg);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
}

.card__text {
  color: var(--color-gray-700);
  font-size: var(--text-base);
}

/* Portfolio card */
.portfolio-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

.portfolio-card__image {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--gradient-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-card__placeholder {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  opacity: 0.3;
}

.portfolio-card__content {
  padding: var(--space-6);
}

.portfolio-card__tag {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  background: var(--gradient-subtle);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

.portfolio-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.portfolio-card__description {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* Stats */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}

.stat-card {
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(0, 168, 168, 0.15);
  background: linear-gradient(160deg, rgba(0, 168, 168, 0.06), rgba(0, 180, 216, 0.04));
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

.stat-card__value {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.stat-card__label {
  color: var(--color-gray-600);
  font-weight: 600;
}

/* ----------------------------------------
   GRID LAYOUTS
   ---------------------------------------- */
.grid {
  display: grid;
  gap: var(--space-8);
}

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

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

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ----------------------------------------
   SECTION HEADERS
   ---------------------------------------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.section-header__subtitle {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  margin-bottom: var(--space-3);
}

.section-header__title {
  margin-bottom: var(--space-4);
}

.section-header__text {
  font-size: var(--text-lg);
  color: var(--color-gray-500);
}

/* ----------------------------------------
   TIMELINE / PROCESS - Circuit Board Style
   ---------------------------------------- */
.process {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

/* Main circuit line that connects all nodes */
.process::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 32px;
  right: 32px;
  height: 3px;
  background: linear-gradient(90deg, 
    var(--color-teal) 0%, 
    var(--color-cyan) 50%, 
    var(--color-teal) 100%);
  transform: translateY(-50%);
  border-radius: 2px;
  z-index: 0;
}

.process__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  flex: 1;
  max-width: 140px;
}

/* Node circle (the number) */
.process__number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 3px solid var(--color-teal);
  border-radius: 50%;
  font-weight: 800;
  color: var(--color-teal);
  font-size: var(--text-xl);
  position: relative;
  z-index: 2;
  transition: all var(--transition-base);
  box-shadow: 
    0 0 0 6px rgba(0, 168, 168, 0.1),
    0 0 0 12px rgba(0, 168, 168, 0.05),
    var(--shadow-lg);
}

/* Glow effect on hover */
.process__step:hover .process__number {
  background: var(--gradient-primary);
  color: var(--color-white);
  border-color: transparent;
  box-shadow: 
    0 0 0 8px rgba(0, 168, 168, 0.2),
    0 0 30px rgba(0, 168, 168, 0.5),
    var(--shadow-xl);
  transform: scale(1.15);
}

/* Small circuit dots around the number */
.process__number::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--color-cyan);
  border-radius: 50%;
  top: -4px;
  right: -4px;
  box-shadow: 0 0 6px var(--color-cyan);
}

.process__number::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--color-teal);
  border-radius: 50%;
  bottom: -3px;
  left: -3px;
  box-shadow: 0 0 4px var(--color-teal);
}

.process__label {
  font-weight: 700;
  color: var(--color-dark);
  font-size: var(--text-sm);
  text-align: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: var(--space-2);
}

/* Hide arrows - using circuit line instead */
.process__arrow {
  display: none;
}

/* ----------------------------------------
   CTA SECTION
   ---------------------------------------- */
.cta {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  background: var(--gradient-primary);
  border-radius: var(--radius-2xl);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.floating-cta {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-3);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(0, 168, 168, 0.15);
  z-index: 900;
  transition: transform var(--transition-base), opacity var(--transition-base), visibility var(--transition-base);
}

.floating-cta--minimized {
  padding: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.floating-cta--minimized .floating-cta__close,
.floating-cta--minimized .floating-cta__link,
.floating-cta--minimized .floating-cta__btn {
  display: none;
}

.floating-cta--minimized .floating-cta__dot {
  display: block;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px rgba(197, 243, 107, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

.floating-cta--minimized:hover {
  transform: scale(1.1);
  cursor: pointer;
}

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

.floating-cta__close {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: 50%;
  color: var(--color-gray-600);
  font-size: var(--text-xl);
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition-base);
  z-index: 10;
  padding: 0;
  flex-shrink: 0;
}

.floating-cta__close:hover,
.floating-cta__close:focus {
  background: var(--color-gray-100);
  border-color: var(--color-teal);
  color: var(--color-teal);
  transform: scale(1.1);
  outline: none;
}

.floating-cta__close:active {
  transform: scale(0.95);
}

.floating-cta__close span {
  display: block;
  font-weight: 300;
  line-height: 1;
}

.floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  font-weight: 700;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.floating-cta__btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.floating-cta__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  color: var(--color-gray-700);
}

.floating-cta__dot {
  width: 10px;
  height: 10px;
  background: var(--color-lime);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(197, 243, 107, 0.15);
  flex-shrink: 0;
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--space-6) + 120px);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: var(--color-white);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
  z-index: 900;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ----------------------------------------
   SERVICES PAGE
   ---------------------------------------- */
.service-area {
  margin-bottom: var(--space-16);
}

.service-area:last-child {
  margin-bottom: 0;
}

.service-area__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.service-area__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  font-size: var(--text-2xl);
}

.service-area__title {
  font-size: var(--text-3xl);
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: all var(--transition-base);
}

.service-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-md);
}

.service-item__check {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-subtle);
  border-radius: 50%;
  color: var(--color-teal);
  flex-shrink: 0;
  font-size: var(--text-sm);
}

.service-item__text {
  font-weight: 500;
  color: var(--color-dark);
}

/* ----------------------------------------
   ABOUT PAGE
   ---------------------------------------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-intro__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-intro__graphic {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  background: var(--gradient-subtle);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-intro__graphic::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

.about-intro__graphic img {
  width: 50%;
  height: auto;
  position: relative;
  z-index: 1;
}

.about-intro__content h2 {
  margin-bottom: var(--space-6);
}

.about-intro__content p {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

/* Values */
.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-6);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

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

.value-card__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray-500);
}

/* ----------------------------------------
   CONTACT PAGE
   ---------------------------------------- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-12);
}

.contact-info {
  padding: var(--space-8);
  background: var(--gradient-hero);
  border-radius: var(--radius-2xl);
  color: var(--color-white);
}

.contact-info__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.contact-info__text {
  color: var(--color-gray-300);
  margin-bottom: var(--space-8);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
}

.contact-info__label {
  font-size: var(--text-sm);
  color: var(--color-gray-300);
  margin-bottom: var(--space-1);
}

.contact-info__value {
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--color-white);
}

.contact-info__value a {
  color: var(--color-white);
}

.contact-info__value a:hover {
  color: var(--color-cyan);
}

/* Contact form */
.contact-form {
  padding: var(--space-8);
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

.contact-form__title {
  margin-bottom: var(--space-2);
}

.contact-form__subtitle {
  color: var(--color-gray-500);
  margin-bottom: var(--space-8);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-label {
  display: block;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-label--optional::after {
  content: ' (opzionale)';
  font-weight: 400;
  color: var(--color-gray-500);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-gray-100);
  border-radius: var(--radius-md);
  background: var(--color-white);
  color: var(--color-dark);
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0, 168, 168, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-500);
}

.form-input--error,
.form-select--error,
.form-textarea--error {
  border-color: #e53e3e;
}

.form-error {
  font-size: var(--text-sm);
  color: #e53e3e;
  margin-top: var(--space-1);
  display: none;
}

.form-error--visible {
  display: block;
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: var(--space-4);
}

.form-success {
  display: none;
  padding: var(--space-4);
  background: rgba(0, 168, 107, 0.1);
  border: 1px solid var(--color-green);
  border-radius: var(--radius-md);
  color: var(--color-green);
  text-align: center;
  margin-top: var(--space-4);
}

.form-success--visible {
  display: block;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-700);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
  flex-shrink: 0;
}

.form-checkbox a {
  color: var(--color-teal);
  text-decoration: underline;
}

.form-checkbox a:hover {
  color: var(--color-cyan);
}

.form-error--global {
  display: none;
  padding: var(--space-4);
  background: rgba(229, 62, 62, 0.1);
  border: 1px solid #e53e3e;
  border-radius: var(--radius-md);
  color: #e53e3e;
  text-align: center;
  margin-top: var(--space-4);
}

.form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ----------------------------------------
   FOOTER
   ---------------------------------------- */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand {
  max-width: 300px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer__logo img {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
}

.footer__logo-text {
  font-size: var(--text-xl);
  font-weight: 700;
}

.footer__tagline {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.footer__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.footer__links li {
  margin-bottom: var(--space-2);
}

.footer__links a {
  color: var(--color-gray-500);
  transition: color var(--transition-fast);
}

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

.footer__contact li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.footer__contact a {
  color: var(--color-gray-500);
}

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

.footer__bottom {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-gray-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

.footer__legal {
  color: var(--color-gray-500);
  font-size: var(--text-sm);
}

/* ----------------------------------------
   PAGE HERO (Internal pages)
   ---------------------------------------- */
.page-hero {
  padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
  background: var(--gradient-hero);
  text-align: center;
}

.page-hero__title {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.page-hero__text {
  color: var(--color-gray-300);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ----------------------------------------
   CALLOUT BOX
   ---------------------------------------- */
.callout {
  padding: var(--space-8);
  background: var(--gradient-subtle);
  border-radius: var(--radius-xl);
  border-left: 4px solid;
  border-image: var(--gradient-primary) 1;
}

.callout__title {
  margin-bottom: var(--space-3);
}

.callout__text {
  color: var(--color-gray-700);
}

/* ----------------------------------------
   RESPONSIVE STYLES
   ---------------------------------------- */

/* Tablet Landscape (1024px e sotto) */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-5);
  }
  
  .section {
    padding: var(--space-16) 0;
  }
  
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
  
  .grid--2 {
    gap: var(--space-6);
  }

  .hero__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__visual {
    max-width: 450px;
    margin: 0 auto;
  }
  
  .hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
  }
  
  .hero__subtitle {
    font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  }
  
  .about-intro {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  
  .about-intro__visual {
    order: -1;
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    gap: var(--space-10);
  }
  
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  
  /* Circuit process - tablet adjustments */
  /* Process - tablet adjustments */
  .process {
    max-width: 700px;
    padding: var(--space-6) var(--space-3);
  }
  
  .process::before {
    left: 24px;
    right: 24px;
  }
  
  .process__step {
    max-width: 110px;
  }
  
  .process__number {
    width: 52px;
    height: 52px;
    font-size: var(--text-base);
  }
  
  .process__label {
    font-size: var(--text-sm);
  }
}

/* Tablet Portrait (768px e sotto) */
@media (max-width: 768px) {
  :root {
    --text-5xl: 2.5rem;
    --text-6xl: 3rem;
    --header-height: 70px;
  }
  
  /* Improve touch targets and spacing */
  * {
    -webkit-tap-highlight-color: rgba(0, 168, 168, 0.1);
  }
  
  .container {
    padding: 0 var(--space-5);
  }
  
  .section {
    padding: var(--space-12) 0;
  }
  
  .header__inner {
    padding: 0 var(--space-5);
  }
  
  .header__logo img {
    height: 40px;
  }
  
  .header__logo-text {
    font-size: var(--text-lg);
  }
  
  /* Improve button touch targets */
  .btn {
    min-height: 48px;
    padding: var(--space-3) var(--space-6);
  }
  
  /* Better spacing for cards */
  .card {
    margin-bottom: var(--space-6);
  }
  
  /* Improve readability */
  p {
    line-height: 1.7;
  }
  
  /* Better list spacing */
  ul, ol {
    padding-left: var(--space-5);
    margin-bottom: var(--space-4);
  }
  
  li {
    margin-bottom: var(--space-2);
    line-height: 1.6;
  }
  
  .nav__list {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: var(--color-white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-8);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1050;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }
  
  .nav__list--active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  .nav__link {
    font-size: var(--text-2xl);
    font-weight: 600;
    padding: var(--space-4);
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .nav__link::after {
    display: none;
  }
  
  .nav__toggle {
    display: flex;
  }
  
  .nav .btn {
    display: none;
  }
  
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
  
  .hero__actions {
    flex-direction: column;
  }
  
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-12);
  }
  
  .hero__layout {
    gap: var(--space-8);
  }
  
  .hero__visual {
    max-width: 350px;
  }
  
  .hero__title {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    margin-bottom: var(--space-4);
  }
  
  .hero__subtitle {
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
  }
  
  .hero__meta {
    gap: var(--space-2);
    margin-bottom: var(--space-4);
  }
  
  .hero__actions {
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
  
  .page-hero {
    padding: calc(var(--header-height) + var(--space-8)) 0 var(--space-8);
  }
  
  .page-hero__title {
    font-size: clamp(2rem, 5vw, 2.5rem);
  }
  
  .page-hero__text {
    font-size: var(--text-base);
  }
  
  .section-header__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }
  
  .card {
    padding: var(--space-6);
  }
  
  .card__title {
    font-size: var(--text-xl);
  }
  
  /* Process - mobile vertical layout */
  .process {
    flex-direction: column;
    gap: 0;
    max-width: 200px;
    padding: var(--space-4) 0;
  }
  
  /* Vertical line for mobile - behind everything */
  .process::before {
    top: 48px;
    bottom: 48px;
    left: 50%;
    right: auto;
    width: 3px;
    height: auto;
    transform: translateX(-50%);
    z-index: 0;
  }
  
  .process__step {
    max-width: none;
    padding: var(--space-4) 0;
    position: relative;
    z-index: 1;
  }
  
  .process__number {
    width: 48px;
    height: 48px;
    font-size: var(--text-base);
    position: relative;
    z-index: 2;
  }
  
  .process__number::before,
  .process__number::after {
    display: none;
  }
  
  .process__label {
    font-size: var(--text-sm);
    background: var(--color-white);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    position: relative;
    z-index: 2;
  }
  
  .stat-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .stat-card {
    padding: var(--space-5);
  }
  
  .stat-card__value {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .service-area {
    margin-bottom: var(--space-12);
  }
  
  .service-area__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
  }
  
  .service-area__icon {
    width: 56px;
    height: 56px;
    font-size: var(--text-xl);
  }
  
  .service-area__title {
    font-size: var(--text-2xl);
  }
  
  .service-list {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
  
  .service-item {
    padding: var(--space-4);
  }
  
  .service-item__text {
    font-size: var(--text-sm);
  }
  
  .about-intro {
    gap: var(--space-8);
  }
  
  .about-intro__graphic {
    max-width: 300px;
  }
  
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .contact-info {
    padding: var(--space-6);
  }
  
  .contact-form {
    padding: var(--space-6);
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  
  .form-group {
    margin-bottom: var(--space-4);
  }
  
  .form-input,
  .form-select,
  .form-textarea {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
    min-height: 48px;
  }
  
  .form-textarea {
    min-height: 120px;
  }
  
  .form-submit {
    width: 100%;
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
  }
  
  .cta {
    padding: var(--space-10) var(--space-6);
  }
  
  .cta__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
  }
  
  .cta__text {
    font-size: var(--text-base);
  }
  
  .floating-cta {
    right: var(--space-4);
    left: var(--space-4);
    bottom: var(--space-4);
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    flex-wrap: nowrap;
    gap: var(--space-2);
    max-width: calc(100% - var(--space-8));
  }
  
  .floating-cta__close {
    top: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    font-size: var(--text-lg);
    border-width: 1.5px;
  }
  
  .floating-cta__dot {
    display: block; /* Mostra dot anche su mobile quando minimizzato */
  }
  
  .floating-cta--minimized {
    width: 48px;
    height: 48px;
  }
  
  .floating-cta--minimized .floating-cta__dot {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 0 3px rgba(197, 243, 107, 0.2);
  }
  
  .floating-cta__link,
  .floating-cta__btn {
    min-height: 44px;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    white-space: nowrap;
    flex: 1;
    min-width: 0;
  }
  
  .floating-cta__link {
    font-weight: 500;
  }
  
  .back-to-top {
    display: none; /* Nascondi back-to-top su mobile */
  }
  
  /* Ensure cookie banner doesn't overlap floating CTA */
  .cookie-banner {
    bottom: 0;
  }
  
  /* When cookie banner is visible, adjust floating elements */
  body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--space-4) + 140px);
  }
  
  body.cookie-banner-visible .back-to-top {
    display: none; /* Nascondi back-to-top su mobile anche con cookie banner */
  }
  
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .section {
    padding: var(--space-12) 0;
  }
}

/* Mobile Landscape (640px e sotto) */
@media (max-width: 640px) {
  .hero__visual {
    max-width: 300px;
  }
  
  .hero__video {
    border-radius: var(--radius-xl);
  }
  
  .service-area__header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  
  .service-area__icon {
    width: 48px;
    height: 48px;
    font-size: var(--text-lg);
  }
  
  .service-area__title {
    font-size: var(--text-xl);
  }
  
  .service-list {
    grid-template-columns: 1fr;
  }
  
  .service-item {
    padding: var(--space-3);
  }
  
  .service-item__check {
    width: 20px;
    height: 20px;
    font-size: var(--text-xs);
  }
  
  .service-item__text {
    font-size: var(--text-sm);
  }
  
  .about-intro__graphic {
    max-width: 250px;
  }
}

/* Mobile Portrait (480px e sotto) */
@media (max-width: 480px) {
  :root {
    --space-6: 1rem;
    --space-8: 1.5rem;
    --space-10: 2rem;
    --space-12: 2.5rem;
    --space-16: 3rem;
    --header-height: 65px;
  }
  
  /* Enhanced touch targets */
  * {
    -webkit-tap-highlight-color: rgba(0, 168, 168, 0.1);
  }
  
  /* Prevent text selection on buttons */
  .btn,
  .nav__link,
  .floating-cta__close,
  .back-to-top {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
  
  .container {
    padding: 0 var(--space-4);
  }
  
  .section {
    padding: var(--space-10) 0;
  }
  
  .header__inner {
    padding: 0 var(--space-4);
  }
  
  .header__logo img {
    height: 35px;
  }
  
  .header__logo-text {
    font-size: var(--text-base);
  }
  
  /* Larger touch targets for all interactive elements */
  .btn {
    min-height: 48px;
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
  }
  
  a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Better spacing for readability */
  p {
    line-height: 1.75;
    margin-bottom: var(--space-4);
  }
  
  h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: var(--space-4);
  }
  
  /* Improve form inputs */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Better card spacing */
  .card {
    margin-bottom: var(--space-5);
  }
  
  /* Improve list readability */
  ul, ol {
    padding-left: var(--space-6);
    margin-bottom: var(--space-5);
  }
  
  li {
    margin-bottom: var(--space-3);
    line-height: 1.7;
  }
  
  /* Better link spacing */
  .footer__links a,
  .nav__link {
    padding: var(--space-2) 0;
    min-height: 48px;
    display: flex;
    align-items: center;
  }
  
  .hero {
    padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-8);
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.2;
  }
  
  .hero__subtitle {
    font-size: var(--text-sm);
  }
  
  .hero__visual {
    max-width: 280px;
  }
  
  .hero__badge {
    font-size: var(--text-xs);
    padding: var(--space-1) var(--space-3);
  }
  
  .hero__slogan {
    font-size: var(--text-base);
  }
  
  .page-hero {
    padding: calc(var(--header-height) + var(--space-6)) 0 var(--space-6);
  }
  
  .page-hero__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }
  
  .page-hero__text {
    font-size: var(--text-sm);
  }
  
  .card {
    padding: var(--space-5);
  }
  
  .card__icon {
    font-size: var(--text-2xl);
  }
  
  .card__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-3);
  }
  
  .card__text {
    font-size: var(--text-sm);
  }
  
  .section-header__subtitle {
    font-size: var(--text-sm);
  }
  
  .section-header__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: var(--space-4);
  }
  
  .section-header__text {
    font-size: var(--text-sm);
  }
  
  .stat-card {
    padding: var(--space-4);
  }
  
  .stat-card__value {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  
  .stat-card__label {
    font-size: var(--text-sm);
  }
  
  .contact-info {
    padding: var(--space-5);
  }
  
  .contact-info__title {
    font-size: var(--text-xl);
  }
  
  .contact-info__text {
    font-size: var(--text-sm);
  }
  
  .contact-form {
    padding: var(--space-5);
  }
  
  .contact-form__title {
    font-size: var(--text-xl);
  }
  
  .contact-form__subtitle {
    font-size: var(--text-sm);
  }
  
  .form-label {
    font-size: var(--text-sm);
  }
  
  .cta {
    padding: var(--space-8) var(--space-4);
  }
  
  .cta__title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  
  .cta__text {
    font-size: var(--text-sm);
  }
  
  .floating-cta {
    flex-direction: row;
    align-items: center;
    padding: var(--space-2) var(--space-3);
    gap: var(--space-2);
    max-width: calc(100% - var(--space-8));
  }
  
  .floating-cta__close {
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    font-size: var(--text-base);
    border-width: 1.5px;
  }
  
  .floating-cta__dot {
    display: block;
  }
  
  .floating-cta--minimized {
    width: 44px;
    height: 44px;
  }
  
  .floating-cta--minimized .floating-cta__dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(197, 243, 107, 0.2);
  }
  
  .floating-cta__link,
  .floating-cta__btn {
    flex: 1;
    min-width: 0;
    justify-content: center;
    min-height: 40px;
    padding: var(--space-2) var(--space-2);
    font-size: var(--text-xs);
    white-space: nowrap;
  }
  
  .floating-cta__link {
    font-weight: 500;
  }
  
  .back-to-top {
    display: none; /* Nascondi back-to-top su mobile */
  }
  
  /* Improve scroll behavior */
  html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Better focus states for accessibility */
  *:focus-visible {
    outline: 2px solid var(--color-teal);
    outline-offset: 2px;
  }
  
  /* Improve image loading */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Better video responsiveness */
  video {
    max-width: 100%;
    height: auto;
  }
  
  body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--space-4) + 140px);
  }
  
  body.cookie-banner-visible .back-to-top {
    display: none; /* Nascondi back-to-top su mobile anche con cookie banner */
  }
  
  .footer {
    padding: var(--space-12) 0 var(--space-6);
  }
  
  .footer__grid {
    gap: var(--space-6);
  }
  
  .footer__title {
    font-size: var(--text-base);
  }
  
  .footer__links a,
  .footer__contact {
    font-size: var(--text-sm);
  }
}

/* Tablet Portrait specific (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .hero__layout {
    gap: var(--space-10);
  }
  
  .hero__visual {
    max-width: 400px;
  }
  
  .hero__title {
    font-size: clamp(2rem, 4.5vw, 2.5rem);
  }
  
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-wrapper {
    gap: var(--space-10);
  }
  
  .contact-info {
    padding: var(--space-7);
  }
  
  .floating-cta {
    max-width: 380px;
    margin: 0 auto;
    right: var(--space-5);
    left: auto;
    flex-direction: row;
    padding: var(--space-3);
  }
  
  .floating-cta__close {
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
  }
  
  .floating-cta__link,
  .floating-cta__btn {
    flex: 1;
    min-width: 0;
    font-size: var(--text-sm);
  }
  
  .back-to-top {
    bottom: calc(var(--space-5) + 140px);
    right: var(--space-4);
  }
  
  body.cookie-banner-visible .floating-cta {
    bottom: calc(var(--space-5) + 150px);
  }
  
  body.cookie-banner-visible .back-to-top {
    display: none; /* Nascondi back-to-top su tablet anche con cookie banner */
  }
}

/* Mobile Landscape (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--space-4)) 0 var(--space-6);
  }
  
  .hero__layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-6);
  }
  
  .hero__visual {
    max-width: 250px;
  }
  
  .hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: var(--space-3);
  }
  
  .hero__subtitle {
    font-size: var(--text-sm);
    margin-bottom: var(--space-3);
  }
  
  .hero__actions {
    flex-direction: row;
    gap: var(--space-3);
  }
  
  .hero__actions .btn {
    flex: 1;
    min-width: 0;
  }
  
  /* Improve touch targets in landscape */
  .btn {
    min-height: 44px;
  }

  .back-to-top {
    bottom: calc(var(--space-5) + 140px);
    right: var(--space-4);
  }
}

/* ----------------------------------------
   COOKIE BANNER
   ---------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
  padding: var(--space-6);
  border-top: 1px solid var(--color-gray-100);
}

.cookie-banner__content {
  max-width: var(--container-xl);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  min-width: 300px;
}

.cookie-banner__title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
  color: var(--color-dark);
}

.cookie-banner__text p {
  color: var(--color-gray-700);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}

.cookie-banner__text a {
  color: var(--color-teal);
  text-decoration: underline;
}

.cookie-banner__text a:hover {
  color: var(--color-cyan);
}

.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Fix: pulsante outline visibile su sfondo bianco */
.cookie-banner .btn--outline {
  color: var(--color-dark);
  border-color: var(--color-gray-300);
}

.cookie-banner .btn--outline:hover {
  background: var(--color-gray-100);
  border-color: var(--color-gray-400);
  color: var(--color-dark);
}

@media (max-width: 768px) {
  .cookie-banner {
    padding: var(--space-4);
  }
  
  .cookie-banner__content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-banner__actions {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-banner__actions .btn {
    width: 100%;
  }
}

/* ----------------------------------------
   ANIMATIONS
   ---------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* Utility: visually hidden */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
