/* ============================================================
   Acode – style.css  (multi-page version)
   ============================================================ */

:root {
  --bg: #f8f8f6;
  --surface: #ffffff;
  --dark: #0d0e12;
  --dark-card: #1b1e2a;

  --accent: #2563eb;
  --accent-light: #3b82f6;
  --accent-glow: rgba(37,99,235,0.13);

  --text: #1e2030;
  --text-muted: #6b7280;
  --text-light: #f1f5f9;
  --text-muted-light: #94a3b8;

  --border: #e2e7ef;
  --border-dark: rgba(255,255,255,0.08);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow: 0 6px 24px rgba(0,0,0,0.09);
  --shadow-lg: 0 20px 56px rgba(0,0,0,0.14);

  --nav-h: 68px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-dark { background: var(--dark); color: var(--text-light); }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-glow);
  padding: 5px 14px; border-radius: 40px; margin-bottom: 18px;
}
.section-label.light { color: #93c5fd; background: rgba(147,197,253,0.12); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 16px; color: var(--text);
}
.section-dark .section-title { color: var(--text-light); }
.section-sub { font-size: 1.02rem; color: var(--text-muted); max-width: 540px; margin-bottom: 48px; line-height: 1.72; }
.section-dark .section-sub { color: var(--text-muted-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 12px 24px; border-radius: var(--radius-sm);
  border: 2px solid transparent; transition: all var(--transition); cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,99,235,0.3); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-glow); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 8px 16px; font-size: 0.82rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-whatsapp { display: inline-flex; align-items: center; gap: 8px; background: #25d366; color: #fff; padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.9rem; margin-top: 10px; transition: background var(--transition), transform var(--transition); }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-2px); }

/* ── NAVBAR ── */
.navbar { position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000; background: rgba(248,248,246,0.88); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transition: box-shadow var(--transition), background var(--transition); }
.navbar.scrolled { box-shadow: var(--shadow); background: rgba(248,248,246,0.97); }
.nav-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -0.03em; flex-shrink: 0; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link { font-size: 0.87rem; font-weight: 500; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--text-muted); transition: color var(--transition), background var(--transition); }
.nav-link:hover { color: var(--text); background: var(--border); }
.nav-link.active { color: var(--accent); font-weight: 600; }
.nav-cta { background: var(--accent) !important; color: #fff !important; margin-left: 8px; font-weight: 600; }
.nav-cta:hover { background: #1d4ed8 !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── PAGE HEADER (per pagine interne) ── */
.page-header {
  padding: calc(var(--nav-h) + 56px) 0 56px;
  background: linear-gradient(135deg, #e8f0fe 0%, #f8f8f6 60%, #eff6ff 100%);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.05) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
.page-header-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.12; margin-bottom: 16px; color: var(--dark); letter-spacing: -0.03em; }
.page-header-sub { font-size: 1.05rem; color: var(--text-muted); max-width: 520px; line-height: 1.72; }

/* ── HERO (solo index) ── */
.hero { min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #e8f0fe 0%, #f8f8f6 55%, #eff6ff 100%); z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 0; background-image: linear-gradient(rgba(37,99,235,0.055) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,0.055) 1px, transparent 1px); background-size: 52px 52px; mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 20%, transparent 100%); }
.hero-wrap { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: calc(var(--nav-h) + 64px) 24px 80px; display: flex; align-items: center; gap: 56px; flex-wrap: wrap; width: 100%; }
.hero-content { flex: 1 1 420px; animation: fadeUp 0.6s ease both; }
.hero-visual { flex: 0 1 340px; animation: fadeUp 0.6s 0.18s ease both; }
.hero-badge { display: inline-block; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(37,99,235,0.2); padding: 6px 16px; border-radius: 40px; margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; line-height: 1.0; letter-spacing: -0.04em; color: var(--dark); margin-bottom: 20px; }
.hero-title span { color: var(--accent); }
.hero-subtitle { font-family: var(--font-display); font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; color: var(--text); margin-bottom: 12px; line-height: 1.45; }
.hero-text { font-size: 1.02rem; color: var(--text-muted); margin-bottom: 34px; line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--accent); }
.stat span { font-size: 0.76rem; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero code card */
.hero-card { background: #0f1117; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.06); }
.hc-bar { background: #1c1f2a; padding: 12px 16px; display: flex; gap: 7px; align-items: center; }
.hc-dot { width: 12px; height: 12px; border-radius: 50%; }
.hc-dot.red { background: #ff5f57; } .hc-dot.yellow { background: #febc2e; } .hc-dot.green { background: #28c840; }
.hc-code { padding: 24px 28px 28px; font-family: 'Courier New', monospace; font-size: 0.88rem; line-height: 2; color: #c9d1d9; }
.c-tag { color: #79c0ff; } .c-name { color: #7ee787; } .c-attr { color: #ffa657; } .c-val { color: #a5d6ff; } .c-str { color: #f8f8f2; }

/* ── INTRO CARDS (home) ── */
.intro-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 40px; }
.intro-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; transition: all var(--transition); box-shadow: var(--shadow-sm); }
.intro-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(37,99,235,0.2); }
.intro-icon { width: 44px; height: 44px; background: var(--accent-glow); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); margin-bottom: 16px; }
.intro-icon svg { width: 20px; height: 20px; }
.intro-card h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.intro-card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.65; }
.intro-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── MINI SERVIZI (home) ── */
.mini-servizi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mini-card { background: var(--dark-card); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 24px; transition: all var(--transition); position: relative; }
.mini-card:hover { border-color: rgba(37,99,235,0.4); transform: translateY(-3px); }
.mini-featured { border-color: var(--accent) !important; }
.mini-badge { position: absolute; top: -10px; right: 16px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 10px; border-radius: 40px; }
.mini-price { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--accent-light); margin-bottom: 6px; display: block; }
.mini-card h4 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-light); margin-bottom: 6px; }
.mini-card p { font-size: 0.85rem; color: var(--text-muted-light); line-height: 1.6; }

/* ── HOME CTA BOX ── */
.home-cta-box { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%); border-radius: var(--radius-lg); padding: 56px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.home-cta-text h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; margin-bottom: 10px; }
.home-cta-text p { color: rgba(255,255,255,0.8); font-size: 1rem; max-width: 420px; line-height: 1.65; }
.home-cta-box .btn-primary { background: #fff; color: var(--accent); border-color: #fff; flex-shrink: 0; }
.home-cta-box .btn-primary:hover { background: #f1f5ff; }

/* ── CHI SONO ── */
.chi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.chi-desc { color: var(--text-muted); margin-bottom: 16px; line-height: 1.75; font-size: 1.02rem; }
.chi-desc:last-of-type { margin-bottom: 28px; }
.skills-title { font-family: var(--font-display); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.skill-card { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-weight: 500; font-size: 0.88rem; transition: all var(--transition); }
.skill-card:hover { border-color: var(--accent); box-shadow: 0 4px 16px var(--accent-glow); transform: translateY(-2px); }
.skill-icon { width: 34px; height: 34px; background: var(--accent-glow); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); }
.skill-icon svg { width: 16px; height: 16px; }

/* ── SERVIZI ── */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.service-card { background: var(--dark-card); border: 1px solid var(--border-dark); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; position: relative; transition: all var(--transition); }
.service-card:hover { border-color: rgba(37,99,235,0.4); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }
.service-featured { border-color: var(--accent) !important; }
.service-badge { position: absolute; top: -11px; right: 18px; background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 40px; }
.service-icon { width: 44px; height: 44px; background: rgba(37,99,235,0.15); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent-light); }
.service-icon svg { width: 22px; height: 22px; }
.service-content h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--text-light); margin-bottom: 6px; }
.service-content p { font-size: 0.88rem; color: var(--text-muted-light); line-height: 1.65; }
.service-price { margin-top: auto; font-size: 0.85rem; color: var(--text-muted-light); border-top: 1px solid var(--border-dark); padding-top: 12px; }
.service-price strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--accent-light); }

/* ── GESTIONE PIANI ── */
.piani-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.piano-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 30px 26px; display: flex; flex-direction: column; gap: 22px; position: relative; transition: all var(--transition); }
.piano-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.piano-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.piano-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 16px; border-radius: 40px; white-space: nowrap; }
.piano-header h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.piano-price { display: flex; align-items: baseline; gap: 4px; }
.piano-price strong { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--accent); }
.piano-price span { color: var(--text-muted); font-size: 0.88rem; }
.piano-features { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.piano-features li { font-size: 0.88rem; color: var(--text-muted); }
.gestione-note { display: flex; align-items: center; gap: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 14px 20px; font-size: 0.88rem; color: #92400e; max-width: 580px; margin: 0 auto; }

/* ── PORTFOLIO ── */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.portfolio-card { background: #1b1e2a; border: 1px solid var(--border-dark); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); }
.portfolio-card:hover { transform: translateY(-5px); box-shadow: 0 20px 48px rgba(0,0,0,0.4); border-color: rgba(37,99,235,0.3); }
.portfolio-img { height: 160px; background: linear-gradient(135deg, hsl(var(--hue),60%,55%) 0%, hsl(calc(var(--hue)+40),65%,40%) 100%); position: relative; display: flex; align-items: center; justify-content: center; }
.portfolio-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; }
.portfolio-icon { font-size: 2.8rem; }
.portfolio-body { padding: 20px; }
.portfolio-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-light); background: rgba(37,99,235,0.15); padding: 3px 10px; border-radius: 40px; margin-bottom: 8px; }
.portfolio-body h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--text-light); }
.portfolio-body p { font-size: 0.85rem; color: var(--text-muted-light); line-height: 1.6; margin-bottom: 16px; }
.portfolio-actions { display: flex; gap: 8px; }

/* ── PREVENTIVO PAGINA ── */
.prev-page-section { padding: 56px 0 88px; }
.prev-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }

/* Blocchi step */
.prev-block { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; margin-bottom: 20px; }
.prev-block-header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.step-badge { width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 0.85rem; font-weight: 800; flex-shrink: 0; margin-top: 2px; }
.prev-block-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prev-block-sub { font-size: 0.88rem; color: var(--text-muted); line-height: 1.5; }
.optional-badge { font-family: var(--font-body); font-size: 0.7rem; font-weight: 500; background: #fef9c3; color: #854d0e; padding: 3px 10px; border-radius: 40px; }

/* Radio cards preventivo */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-card { display: flex; align-items: flex-start; gap: 14px; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all var(--transition); position: relative; }
.radio-card:hover { border-color: var(--accent-light); background: #f8faff; }
.radio-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #eff6ff; box-shadow: 0 0 0 3px var(--accent-glow); }
.radio-card::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 50%; flex-shrink: 0; margin-top: 3px; transition: all var(--transition); background: #fff; }
.radio-card:has(input:checked)::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.radio-content { flex: 1; }
.radio-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.radio-name { font-weight: 600; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.radio-badge { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 40px; }
.radio-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.radio-price { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1rem; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

/* Checkbox cards preventivo */
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-card { display: flex; align-items: flex-start; gap: 14px; border: 2px solid var(--border); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; transition: all var(--transition); position: relative; }
.check-card:hover { border-color: var(--accent-light); background: #f8faff; }
.check-card input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.check-card:has(input:checked) { border-color: var(--accent); background: #eff6ff; box-shadow: 0 0 0 3px var(--accent-glow); }
.check-card::before { content: ''; width: 18px; height: 18px; border: 2px solid var(--border); border-radius: 5px; flex-shrink: 0; margin-top: 3px; transition: all var(--transition); background: #fff; }
.check-card:has(input:checked)::before { border-color: var(--accent); background: var(--accent); background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 10px; }
.check-content { flex: 1; }
.check-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.check-name { font-weight: 600; font-size: 0.95rem; display: block; margin-bottom: 4px; }
.check-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; }
.check-price { font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1rem; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }

/* Form dati cliente */
.client-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label, .contact-form label { font-size: 0.84rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 4px; }
.form-group input, .form-group textarea, .contact-form input, .contact-form textarea { padding: 11px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 0.92rem; color: var(--text); background: var(--surface); transition: border-color var(--transition), box-shadow var(--transition); outline: none; resize: vertical; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group input::placeholder, .form-group textarea::placeholder, .contact-form input::placeholder, .contact-form textarea::placeholder { color: #b8c0cc; }

/* Condizioni */
.conditions-wrap { display: flex; flex-direction: column; gap: 12px; }
.condition-check { display: flex; align-items: flex-start; gap: 14px; cursor: pointer; font-size: 0.9rem; color: var(--text); line-height: 1.5; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius); transition: all var(--transition); }
.condition-check:hover { border-color: var(--accent-light); background: #f8faff; }
.condition-check.checked { border-color: var(--accent); background: #eff6ff; }
.condition-check input[type="checkbox"] { display: none; }
.checkmark { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 5px; flex-shrink: 0; margin-top: 1px; transition: all var(--transition); background: #fff; position: relative; }
.condition-check.checked .checkmark { background: var(--accent); border-color: var(--accent); }
.condition-check.checked .checkmark::after { content: ''; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='white' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 11px; }

/* ── SUMMARY STICKY ── */
.prev-summary-col { position: relative; }
.summary-sticky { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.summary-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow); }
.summary-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.summary-header h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.summary-live { font-size: 0.72rem; font-weight: 700; color: #16a34a; letter-spacing: 0.06em; }

/* Voci riepilogo */
.summary-items { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; min-height: 48px; }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; gap: 12px; animation: fadeIn 0.2s ease both; }
.summary-item:last-child { border-bottom: none; }
.summary-item-label { color: var(--text-muted); flex: 1; }
.summary-item-price { font-weight: 600; color: var(--text); white-space: nowrap; font-family: var(--font-display); }
.summary-empty { font-size: 0.85rem; color: var(--text-muted); font-style: italic; padding: 8px 0; }

.summary-divider { height: 2px; background: var(--border); margin: 4px 0 16px; border-radius: 2px; }

/* Totali */
.summary-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.summary-total-label { font-size: 0.9rem; color: var(--text-muted); font-weight: 500; }
.summary-total-price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; color: var(--accent); transition: all 0.3s ease; }
.summary-monthly { margin-bottom: 4px; }
.summary-total-row.monthly .summary-total-label { font-size: 0.84rem; }
.summary-monthly-price { font-family: var(--font-display); font-weight: 700; color: var(--text); font-size: 1rem; }

/* Bottone invia */
.btn-invia { margin-top: 20px; padding: 15px 24px; font-size: 0.95rem; }

.summary-note { display: flex; align-items: flex-start; gap: 8px; font-size: 0.78rem; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.summary-note svg { flex-shrink: 0; margin-top: 1px; }

/* Info chips */
.summary-info-cards { display: flex; flex-direction: column; gap: 8px; }
.info-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.84rem; color: var(--text-muted); font-weight: 500; }
.info-chip svg { color: var(--accent); flex-shrink: 0; }

/* Feedback form */
.form-feedback { margin-top: 12px; font-size: 0.88rem; min-height: 0; text-align: center; font-weight: 500; border-radius: var(--radius-sm); transition: all var(--transition); }
.form-feedback.success { color: #16a34a; background: #f0fdf4; padding: 12px; margin-top: 12px; }
.form-feedback.error { color: #dc2626; background: #fef2f2; padding: 12px; margin-top: 12px; }

/* ── CONTATTI ── */
.contatti-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }
.contatti-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; align-items: flex-start; gap: 16px; }
.contact-icon { width: 44px; height: 44px; background: var(--accent-glow); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--accent); flex-shrink: 0; }
.contact-icon svg { width: 20px; height: 20px; }
.whatsapp-icon { background: rgba(37,211,102,0.12); color: #25d366; }
.contact-item strong { display: block; font-weight: 700; margin-bottom: 4px; font-size: 0.88rem; }
.contact-item a:not(.btn-whatsapp) { color: var(--text-muted); font-size: 0.95rem; transition: color var(--transition); }
.contact-item a:not(.btn-whatsapp):hover { color: var(--accent); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── FAQ ── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.faq-item { border-bottom: 1px solid var(--border-dark); }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; background: none; border: none; text-align: left; font-size: 0.93rem; font-weight: 600; color: var(--text-light); cursor: pointer; transition: color var(--transition); }
.faq-question:hover { color: #93c5fd; }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.3s ease; color: var(--text-muted-light); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p { padding: 0 0 20px; font-size: 0.9rem; color: var(--text-muted-light); line-height: 1.75; }

/* ── FOOTER ── */
.footer { background: var(--dark); color: var(--text-muted-light); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--text-light); letter-spacing: -0.03em; display: block; margin-bottom: 10px; }
.footer-logo span { color: var(--accent-light); }
.footer-slogan { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 12px; }
.footer-desc { font-size: 0.86rem; line-height: 1.7; max-width: 260px; }
.footer-links h4, .footer-contact h4 { font-family: var(--font-display); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 9px; }
.footer-links a, .footer-contact a { font-size: 0.88rem; color: var(--text-muted-light); transition: color var(--transition); }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent-light); }
.footer-contact p { margin-bottom: 7px; }
.footer-wa { display: inline-flex; align-items: center; gap: 6px; color: #25d366 !important; font-weight: 600; font-size: 0.88rem; margin-top: 4px; }
.footer-wa:hover { color: #1da851 !important; }
.footer-bottom { border-top: 1px solid var(--border-dark); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.8rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .prev-layout { grid-template-columns: 1fr; }
  .summary-sticky { position: static; }
  .summary-card { order: -1; }
  .intro-cards { grid-template-columns: 1fr 1fr; }
  .mini-servizi { grid-template-columns: 1fr 1fr; }
  .chi-grid { grid-template-columns: 1fr; gap: 40px; }
  .piani-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto 32px; }
  .faq-grid { grid-template-columns: 1fr; }
  .contatti-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }

  .hamburger { display: flex; }
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 16px; gap: 4px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform 0.3s ease, opacity 0.3s ease; box-shadow: var(--shadow-lg); }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-link { padding: 12px 16px; font-size: 1rem; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; padding: 14px !important; }

  .hero-wrap { flex-direction: column; padding: calc(var(--nav-h) + 36px) 16px 56px; gap: 32px; }
  .hero-visual { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .intro-cards { grid-template-columns: 1fr; }
  .mini-servizi { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .home-cta-box { flex-direction: column; padding: 36px 24px; }
  .home-cta-box .btn-primary { width: 100%; }

  .form-row { grid-template-columns: 1fr; }
  .prev-block { padding: 22px 16px; }
  .radio-header, .check-header { flex-direction: column; gap: 6px; }
  .radio-price, .check-price { font-size: 0.88rem; }

  .portfolio-actions { flex-direction: column; }
  .portfolio-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: clamp(3rem, 14vw, 4.5rem); }
  .section-title { font-size: clamp(1.7rem, 7vw, 2.1rem); }
  .page-header-title { font-size: clamp(1.8rem, 8vw, 2.8rem); }
}
