/* ============================================================
   ACRIBIA SERVICE - CSS PRINCIPALE
   Dark tech theme con accenti cyan/teal
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
  --bg-dark:       #080c18;
  --bg-darker:     #050810;
  --bg-card:       #0d1424;
  --bg-card2:      #111828;
  --cyan:          #00d4d8;
  --cyan-light:    #1de9b6;
  --cyan-dark:     #0099a8;
  --cyan-glow:     rgba(0,212,216,0.15);
  --cyan-glow2:    rgba(0,212,216,0.05);
  --white:         #ffffff;
  --white-80:      rgba(255,255,255,0.8);
  --white-60:      rgba(255,255,255,0.6);
  --white-30:      rgba(255,255,255,0.3);
  --white-10:      rgba(255,255,255,0.08);
  --accent-orange: #ff6b35;
  --accent-blue:   #1a73e8;
  --font-main:     'Exo 2', 'Rajdhani', 'Inter', sans-serif;
  --font-mono:     'Share Tech Mono', 'Courier New', monospace;
  --border-cyan:   1px solid rgba(0,212,216,0.25);
  --border-cyan2:  1px solid rgba(0,212,216,0.5);
  --shadow-cyan:   0 0 20px rgba(0,212,216,0.2);
  --shadow-cyan2:  0 0 40px rgba(0,212,216,0.35);
  --radius:        8px;
  --radius-lg:     14px;
  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-dark);
  color: var(--white-80);
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--cyan); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--cyan-light); }

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

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--cyan-dark); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,12,24,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,212,216,0.15);
  transition: var(--transition);
}

#navbar.scrolled {
  background: rgba(5,8,16,0.97);
  border-bottom-color: rgba(0,212,216,0.3);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 8px rgba(0,212,216,0.4));
}

.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-logo-text span {
  color: var(--cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--white-60);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--cyan);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  left: 10%; right: 10%;
}

.nav-cta {
  padding: 0.5rem 1.4rem !important;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light)) !important;
  color: var(--bg-dark) !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  margin-left: 0.5rem;
  box-shadow: 0 0 15px rgba(0,212,216,0.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0,212,216,0.5) !important;
  color: var(--bg-dark) !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  
  .nav-links {
    position: fixed;
    top: 70px; right: -100%;
    width: 260px;
    height: calc(100vh - 70px);
    flex-direction: column;
    align-items: flex-start;
    background: rgba(5,8,16,0.98);
    border-left: var(--border-cyan);
    padding: 2rem;
    gap: 0.2rem;
    transition: right 0.3s ease;
  }
  
  .nav-links.open { right: 0; }
  
  .nav-links a {
    padding: 0.7rem 0;
    font-size: 0.9rem;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
}

/* ============================================================
   HERO / VIDEO SECTION
   ============================================================ */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.hero-video-fallback {
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,153,168,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(29,233,182,0.1) 0%, transparent 50%),
              linear-gradient(135deg, #080c18 0%, #0d1424 50%, #080c18 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Overlay gradients */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(8,12,24,0.7) 0%, transparent 30%, transparent 60%, rgba(8,12,24,0.95) 100%),
    linear-gradient(135deg, rgba(8,12,24,0.6) 0%, transparent 50%);
}

/* Animated grid lines */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0,212,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,216,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: perspective(600px) rotateX(5deg) translateY(0); }
  100% { transform: perspective(600px) rotateX(5deg) translateY(60px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(0,212,216,0.1);
  border: var(--border-cyan2);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0,212,216,0.6); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0,212,216,0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 0 40px rgba(0,212,216,0.2);
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--white-60);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,216,0.35);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,216,0.5);
  color: var(--bg-dark);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 50px;
  border: var(--border-cyan2);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--cyan-glow);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--white-30);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--cyan));
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
}

/* Services ticker below hero */
.services-ticker {
  background: rgba(0,212,216,0.08);
  border-top: var(--border-cyan);
  border-bottom: var(--border-cyan);
  padding: 0.8rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-block;
  animation: ticker 30s linear infinite;
}

.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
}

.ticker-item::before {
  content: '◆';
  color: var(--cyan);
  font-size: 0.5rem;
}

@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section {
  position: relative;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.section-title .accent {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--white-60);
  max-width: 600px;
  line-height: 1.8;
}

/* Decorative separator */
.sep {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--cyan), var(--cyan-light));
  border-radius: 2px;
  margin: 1.5rem 0;
}

/* ============================================================
   CHI SIAMO SECTION
   ============================================================ */
#chi-siamo {
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

#chi-siamo::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(0,212,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-text p {
  color: var(--white-60);
  margin-bottom: 1.2rem;
  font-size: 1rem;
  line-height: 1.85;
}

.about-text p:first-of-type {
  font-size: 1.1rem;
  color: var(--white-80);
}

/* Stats */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
}

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

.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
  font-family: var(--font-mono);
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--white-60);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* Team cards */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 600px) {
  .team-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

.team-card {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.team-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: linear-gradient(to right, var(--cyan), var(--cyan-light));
  transition: width 0.4s ease;
}

.team-card:hover {
  border-color: rgba(0,212,216,0.4);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-3px);
}

.team-card:hover::after { width: 100%; }

.team-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 1rem;
  box-shadow: 0 0 15px rgba(0,212,216,0.3);
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.team-role {
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.team-bio {
  font-size: 0.85rem;
  color: var(--white-60);
  line-height: 1.7;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.why-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateY(-4px);
  background: var(--bg-card2);
}

.why-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, rgba(0,212,216,0.15), rgba(29,233,182,0.08));
  border: var(--border-cyan2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.why-card:hover .why-icon {
  background: linear-gradient(135deg, rgba(0,212,216,0.3), rgba(29,233,182,0.15));
  box-shadow: 0 0 15px rgba(0,212,216,0.2);
}

.why-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.why-desc {
  font-size: 0.83rem;
  color: var(--white-60);
  line-height: 1.6;
}

/* ============================================================
   CONFIGURATORE SECTION
   ============================================================ */
#configuratore {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

#configuratore::before {
  content: '';
  position: absolute;
  top: 0; left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0,212,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Scanner animation top bar */
.config-header-bar {
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(0,212,216,0.06) 100%);
  border: var(--border-cyan);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.config-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.config-header-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 0 15px rgba(0,212,216,0.4);
}

.config-header-text h3 {
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
}

.config-header-text p {
  font-size: 0.78rem;
  color: var(--white-60);
}

.config-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--cyan);
  font-weight: 600;
}

.config-status-dot {
  width: 8px; height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Main configurator layout */
.config-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: var(--border-cyan);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  min-height: 500px;
}

@media (max-width: 900px) {
  .config-wrapper { grid-template-columns: 1fr; }
}

/* LEFT - Form Column */
.config-form-col {
  padding: 2rem;
  border-right: var(--border-cyan);
  background: rgba(0,0,0,0.2);
}

@media (max-width: 900px) {
  .config-form-col { border-right: none; border-bottom: var(--border-cyan); }
}

/* Steps progress */
.config-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.config-step {
  flex: 1;
  min-width: 30px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px;
  transition: var(--transition);
}

.config-step.active {
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,212,216,0.5);
}

.config-step.done {
  background: var(--cyan-dark);
}

/* Form row */
.config-row {
  margin-bottom: 1rem;
  animation: slideInLeft 0.4s ease both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.config-row label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.config-row select,
.config-row input,
.config-row textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: var(--border-cyan);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.config-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300d4d8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.config-row select:focus,
.config-row input:focus,
.config-row textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,212,216,0.15), 0 0 12px rgba(0,212,216,0.1);
}

.config-row select option {
  background: var(--bg-card);
  color: var(--white);
}

/* RIGHT - Image Column */
.config-img-col {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 300px;
  background: linear-gradient(135deg, rgba(0,212,216,0.03), transparent);
}

.config-img-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.config-img-display {
  width: 100%;
  max-width: 380px;
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0,212,216,0.5)) drop-shadow(0 0 60px rgba(0,212,216,0.2));
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  animation: imgFloat 4s ease-in-out infinite;
}

@keyframes imgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.config-img-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(0,212,216,0.2);
  border-radius: 16px;
  color: var(--white-30);
  font-size: 0.8rem;
}

.config-img-placeholder svg {
  width: 48px; height: 48px;
  opacity: 0.3;
}

.config-img-label {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  text-align: center;
  min-height: 1.2rem;
  letter-spacing: 0.05em;
}

.config-img-desc {
  font-size: 0.75rem;
  color: var(--white-60);
  text-align: center;
  margin-top: 0.4rem;
  min-height: 1rem;
}

/* Corner decorations */
.config-corner {
  position: absolute;
  width: 20px; height: 20px;
  border-color: var(--cyan);
  border-style: solid;
  opacity: 0.4;
}

.config-corner.tl { top: 12px; left: 12px; border-width: 2px 0 0 2px; }
.config-corner.tr { top: 12px; right: 12px; border-width: 2px 2px 0 0; }
.config-corner.bl { bottom: 12px; left: 12px; border-width: 0 0 2px 2px; }
.config-corner.br { bottom: 12px; right: 12px; border-width: 0 2px 2px 0; }

/* Form completion / contact form */
.config-contact-form {
  background: var(--bg-card2);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 2rem;
  animation: fadeInUp 0.4s ease;
}

.config-contact-form h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

@media (max-width: 600px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(0,0,0,0.4);
  border: var(--border-cyan);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.88rem;
  padding: 0.65rem 0.9rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,212,216,0.12);
}

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

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300d4d8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 2rem;
}

.form-field.full { grid-column: 1 / -1; }

/* Time slot picker */
.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.time-slot {
  padding: 0.35rem 0.8rem;
  background: rgba(0,0,0,0.4);
  border: var(--border-cyan);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--white-60);
  cursor: pointer;
  transition: var(--transition);
}

.time-slot:hover,
.time-slot.selected {
  background: rgba(0,212,216,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Config summary */
.config-summary {
  background: rgba(0,212,216,0.06);
  border: var(--border-cyan);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 1.5rem;
}

.config-summary h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.8rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
}

.summary-row:last-child { border-bottom: none; }

.summary-key {
  color: var(--white-60);
  font-weight: 500;
}

.summary-val {
  color: var(--white);
  font-weight: 600;
  text-align: right;
}

/* Submit button config */
.btn-config-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1.5rem;
  box-shadow: 0 4px 20px rgba(0,212,216,0.3);
}

.btn-config-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,216,0.5);
}

.btn-config-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ============================================================
   MODAL / OVERLAY CONSENT
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-box {
  background: var(--bg-card);
  border: var(--border-cyan2);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-cyan2), 0 20px 60px rgba(0,0,0,0.8);
  animation: scaleIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(0,212,216,0.15), rgba(29,233,182,0.08));
  border: var(--border-cyan2);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.modal-box h3 {
  text-align: center;
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.modal-box p {
  text-align: center;
  color: var(--white-60);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.modal-buttons {
  display: flex;
  gap: 1rem;
}

.btn-accept {
  flex: 1;
  padding: 0.8rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-accept:hover {
  box-shadow: 0 4px 20px rgba(0,212,216,0.4);
  transform: translateY(-1px);
}

.btn-reject {
  flex: 1;
  padding: 0.8rem;
  background: transparent;
  color: var(--white-60);
  font-weight: 600;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-reject:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* Success modal */
.modal-success {
  text-align: center;
}

.success-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, rgba(29,233,182,0.15), rgba(0,212,216,0.08));
  border: 2px solid var(--cyan-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

/* ============================================================
   CONTATTI SECTION
   ============================================================ */
#contatti {
  background: var(--bg-darker);
  position: relative;
  overflow: hidden;
}

#contatti::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(0,212,216,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-cyan);
  transform: translateX(4px);
}

.contact-card-icon {
  width: 42px; height: 42px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(0,212,216,0.12), rgba(29,233,182,0.06));
  border: var(--border-cyan);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

.contact-card-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.2rem;
}

.contact-card-value {
  font-size: 0.9rem;
  color: var(--white-80);
  font-weight: 500;
}

.contact-card-value a {
  color: var(--white-80);
}

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

/* Contact form */
.contact-form-wrap {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.contact-form-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  right: 0; height: 2px;
  background: linear-gradient(to right, var(--cyan), var(--cyan-light), transparent);
}

.contact-form-wrap h3 {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form .form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 500px) {
  .contact-form .form-grid-2 { grid-template-columns: 1fr; }
}

.input-wrap {
  position: relative;
}

.input-wrap input,
.input-wrap textarea,
.input-wrap select {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: var(--border-cyan);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: var(--transition);
}

.input-wrap input:focus,
.input-wrap textarea:focus,
.input-wrap select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px rgba(0,212,216,0.12);
}

.input-wrap textarea { resize: vertical; min-height: 120px; }
.input-wrap select { appearance: none; }

.input-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-60);
  margin-bottom: 0.4rem;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--white-60);
}

.privacy-check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--cyan);
  width: 14px; height: 14px;
  flex-shrink: 0;
}

.privacy-check a { color: var(--cyan); }

.btn-contact-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,216,0.25);
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,216,0.45);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-darker);
  border-top: var(--border-cyan);
  padding: 3rem 2rem 1.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand img {
  height: 40px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px rgba(0,212,216,0.3));
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--white-60);
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--white-60);
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--white-30);
}

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

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Notification toast */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--bg-card);
  border: var(--border-cyan2);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-cyan2), 0 10px 40px rgba(0,0,0,0.5);
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
  max-width: 350px;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.hide {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) reverse both;
}

.toast-icon { font-size: 1.3rem; }
.toast-text { font-size: 0.88rem; color: var(--white-80); }
.toast-title { font-weight: 700; color: var(--white); margin-bottom: 2px; font-size: 0.9rem; }

/* Loading spinner */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--bg-dark);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glitch text effect */
.glitch {
  position: relative;
}

/* Utility */
.text-cyan { color: var(--cyan); }
.text-white { color: var(--white); }
.text-muted { color: var(--white-60); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }
/* ============================================================
   FORM STYLES - MODERN ROUNDED DESIGN
   ============================================================ */

/* Contact Form Modern Style */
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form-wrap .form-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

.contact-form-wrap .form-group label {
  width: 100%;
  text-align: right;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--white-80);
  font-weight: 500;
}

.contact-form-wrap .form-group input,
.contact-form-wrap .form-group textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,216,0.2);
  border-radius: 12px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form-wrap .form-group input:focus,
.contact-form-wrap .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,216,0.15);
}

.contact-form-wrap .form-group input::placeholder,
.contact-form-wrap .form-group textarea::placeholder {
  color: var(--white-30);
}

/* Config Form Modern Style */
.config-form-col form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.config-row label {
  font-size: 0.95rem;
  color: var(--white-80);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.config-row select,
.config-row input,
.config-row textarea {
  width: 100%;
  padding: 1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid rgba(0,212,216,0.25);
  border-radius: 14px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
}

.config-row select:focus,
.config-row input:focus,
.config-row textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,216,0.2), 0 0 20px rgba(0,212,216,0.1);
}

.config-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300d4d8' stroke-width='2'%3E%3Cpolyline points='6,9 12,15 18,9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 20px;
  padding-right: 3rem;
}

.config-row select option {
  background: var(--bg-darker);
  color: var(--white);
  padding: 10px;
}

.config-row textarea {
  min-height: 100px;
  resize: vertical;
}

/* Modern Buttons */
.btn-next, .btn-back, .btn-generate {
  padding: 1rem 2rem;
  border-radius: 14px;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-next {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-dark) 100%);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(0,212,216,0.3);
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0,212,216,0.4);
}

.btn-next:disabled {
  background: var(--bg-card);
  color: var(--white-30);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-back {
  background: transparent;
  border: 1px solid rgba(0,212,216,0.3);
  color: var(--cyan);
}

.btn-back:hover:not(:disabled) {
  background: rgba(0,212,216,0.1);
}

.btn-back:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-generate {
  background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255,107,53,0.3);
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255,107,53,0.4);
}

/* Config Buttons Container */
.config-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0,212,216,0.1);
  flex-wrap: wrap;
}

/* Config Preview Alignment Fix */
.config-preview-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.config-howto {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.config-howto h4 {
  color: var(--cyan);
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.config-howto ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--white-60);
}

.config-howto ol li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Team Photo Style */
.team-avatar-real {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 1rem;
  border: 2px solid rgba(0,212,216,0.2);
}

.team-card {
  text-align: center;
}

/* Contact Info Cards */
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-info-card:hover {
  border-color: var(--cyan);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.contact-detail h4 {
  color: var(--cyan);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.contact-detail p {
  color: var(--white-80);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

/* Hidden class */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-form-wrap .form-group label {
    text-align: left;
  }
  
  .config-buttons {
    flex-direction: column;
  }
  
  .btn-next, .btn-back, .btn-generate {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   CONFIGURATORE CASCADE - Stili per i passi a cascata
   (usa classe 'cascade-step', non 'config-step' che è il progress bar)
   ============================================================ */

/* Step-dot progress bar (sostituisce config-step per i pallini) */
.step-dot {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--white-30);
  transition: var(--transition);
  position: relative;
}

.step-dot::after {
  content: attr(data-step);
  font-size: 0.65rem;
}

.step-dot.active {
  background: rgba(0,212,216,0.15);
  border-color: var(--cyan);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,216,0.4);
}

.step-dot.completed {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-dark);
  box-shadow: 0 0 8px rgba(0,212,216,0.3);
}

.step-dot.completed::after {
  content: '✓';
}

/* Fix config-steps to flex row with gap */
.config-steps {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Cascade step: div che contiene label + select/input */
.cascade-step {
  margin-bottom: 0;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(0,212,216,0.08);
  animation: cascadeIn 0.35s cubic-bezier(0.4,0,0.2,1) both;
}

.cascade-step:last-child {
  border-bottom: none;
}

@keyframes cascadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cascade-step label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.55rem;
}

.cascade-step select,
.cascade-step input[type="text"],
.cascade-step input[type="email"],
.cascade-step input[type="tel"],
.cascade-step textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,212,216,0.25);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.92rem;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.cascade-step select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300d4d8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: rgba(0,0,0,0.4);
  padding-right: 2.8rem;
  cursor: pointer;
}

.cascade-step select:focus,
.cascade-step input:focus,
.cascade-step textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,216,0.12);
}

.cascade-step select option {
  background: #0f162d;
  color: var(--white);
}

.cascade-step textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

/* ============================================================
   CONFIG CTA BOX (pulsante finale configurazione guidata)
   ============================================================ */
.config-cta-box {
  text-align: center;
  padding: 1.8rem 1.5rem;
  background: linear-gradient(135deg, rgba(0,212,216,0.07), rgba(29,233,182,0.04));
  border: 1px solid rgba(0,212,216,0.3);
  border-radius: var(--radius-lg);
  margin: 0.5rem 0;
}

.config-cta-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  line-height: 1;
}

.config-cta-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.config-cta-sub {
  font-size: 0.85rem;
  color: var(--white-60);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

/* ============================================================
   BTN GENERATE (pulsante principale configuratore)
   ============================================================ */
.btn-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.8rem;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-light));
  color: var(--bg-dark);
  font-family: var(--font-main);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,212,216,0.3);
  text-decoration: none;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,216,0.5);
}

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

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-generate-pdf {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* ============================================================
   GDPR CHECK WRAP
   ============================================================ */
.gdpr-check-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  background: rgba(0,212,216,0.04);
  border: 1px solid rgba(0,212,216,0.15);
  border-radius: var(--radius);
}

.gdpr-check-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}

.gdpr-label {
  font-size: 0.82rem;
  color: var(--white-60);
  line-height: 1.6;
  cursor: pointer;
}

.gdpr-label a {
  color: var(--cyan);
  text-decoration: underline;
}

.gdpr-label a:hover {
  color: var(--cyan-light);
}

/* ============================================================
   SUMMARY ROWS (pannello riepilogo destra)
   ============================================================ */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.83rem;
  animation: cascadeIn 0.3s ease both;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--white-60);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-top: 1px;
}

.summary-value {
  color: var(--white);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

.summary-empty {
  color: var(--white-30);
  font-size: 0.82rem;
  font-style: italic;
  text-align: center;
  padding: 1rem 0;
}

/* ============================================================
   MODAL PREVENTIVO - Completo e professionale
   ============================================================ */
#modalPreventivo.modal-overlay {
  padding: 1rem;
  overflow-y: auto;
}

#modalPreventivo .modal-box {
  max-width: 860px;
  width: 100%;
  padding: 0;
  overflow: hidden;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

/* Custom scrollbar per modal */
#modalPreventivo .modal-box::-webkit-scrollbar {
  width: 5px;
}
#modalPreventivo .modal-box::-webkit-scrollbar-thumb {
  background: rgba(0,212,216,0.3);
  border-radius: 3px;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(0,212,216,0.1), rgba(29,233,182,0.05));
  border-bottom: 1px solid rgba(0,212,216,0.2);
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #0d1b3e;
}

.modal-header-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.modal-header h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
  text-align: left;
}

.modal-header p {
  color: var(--white-60);
  font-size: 0.82rem;
  margin: 0;
  text-align: left;
}

.modal-close {
  margin-left: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--white-60);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

/* Riepilogo configurazione nel modal */
.modal-cfg-summary {
  padding: 1rem 2rem;
  background: rgba(0,212,216,0.04);
  border-bottom: 1px solid rgba(0,212,216,0.12);
}

.modal-cfg-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

.modal-cfg-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.modal-cfg-row {
  font-size: 0.8rem;
  color: var(--white-80);
  background: rgba(0,212,216,0.08);
  border: 1px solid rgba(0,212,216,0.2);
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
}

/* Modal body */
.modal-body {
  padding: 1.5rem 2rem;
}

.modal-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 640px) {
  .modal-cols {
    grid-template-columns: 1fr;
  }
}

.modal-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Form groups inside modal */
.modal-body .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.modal-body .form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.modal-body .form-group input,
.modal-body .form-group textarea {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,212,216,0.2);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.7rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.modal-body .form-group input:focus,
.modal-body .form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,216,0.12);
}

.modal-body .form-group input::placeholder,
.modal-body .form-group textarea::placeholder {
  color: rgba(255,255,255,0.2);
}

.modal-body .form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Modal footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.2rem 2rem;
  background: rgba(0,0,0,0.2);
  border-top: 1px solid rgba(0,212,216,0.12);
  position: sticky;
  bottom: 0;
  background-color: #0a1428;
}

.btn-modal-cancel {
  padding: 0.75rem 1.5rem;
  background: transparent;
  color: var(--white-60);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-modal-cancel:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}

/* Responsive modal */
@media (max-width: 600px) {
  #modalPreventivo .modal-box {
    margin: 0;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .modal-footer {
    flex-direction: column;
  }

  .modal-footer .btn-modal-cancel,
  .modal-footer .btn-generate {
    width: 100%;
  }
}

/* ============================================================
   CONFIG SUMMARY CARD fix
   ============================================================ */
.config-summary-card {
  background: var(--bg-card);
  border: var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  flex: 1;
}

.config-summary-card h4 {
  color: var(--cyan);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0,212,216,0.15);
  padding-bottom: 0.6rem;
}

