/* ============================================================ */
/* FOGLIO STUDIO — Shared stylesheet                            */
/* Usato da: index.html + 5 pagine servizio                     */
/* Aggiornato: 2026-05-19                                        */
/* ============================================================ */

  /* ============ RESET & BASE ============ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    line-height: 1.6;
    color: #0F172A;
    background: #FAFAF9;
    overflow-x: hidden;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; text-decoration: none; }
  button { font-family: inherit; cursor: pointer; border: none; }

  :root {
    --navy: #0F0F2C;
    --navy-2: #1A1A3E;
    --indigo: #6366F1;
    --purple: #A855F7;
    --pink: #EC4899;
    --amber: #F59E0B;
    --coral: #FB7185;
    --emerald: #10B981;
    --bg: #FAFAF9;
    --card: #FFFFFF;
    --text: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --gradient-1: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
    --gradient-2: linear-gradient(135deg, #F59E0B 0%, #FB7185 100%);
    --gradient-3: linear-gradient(135deg, #10B981 0%, #6366F1 100%);
    --shadow-sm: 0 1px 2px rgba(15,15,44,0.05);
    --shadow: 0 4px 20px rgba(15,15,44,0.08);
    --shadow-lg: 0 20px 60px rgba(15,15,44,0.15);
    --radius: 14px;
    --radius-lg: 24px;
  }

  /* ============ TYPOGRAPHY ============ */
  h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; }
  h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
  h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
  h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
  p { color: var(--muted); font-size: 1.05rem; }
  .container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
  .section { padding: 100px 0; }
  .section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(168,85,247,0.1));
    color: var(--indigo);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    border: 1px solid rgba(99,102,241,0.2);
  }
  .section-title { color: var(--text); margin-bottom: 16px; }
  .section-subtitle { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 60px; text-align: center; }
  .section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
  .gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* ============ NAV ============ */
  nav.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    background: #ffffff;
    z-index: 100;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  }
  nav .container { display: flex; align-items: center; justify-content: space-between; }
  .logo {
    font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 12px;
  }
  .logo-mark {
    width: 40px; height: 40px;
    filter: drop-shadow(0 4px 14px rgba(99,102,241,0.4));
  }
  .logo .italic {
    font-style: italic;
    font-weight: 600;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .nav-links { display: flex; gap: 30px; }
  .nav-links a {
    font-size: 0.95rem;
    color: var(--text);
    transition: color 0.2s;
    font-weight: 600;
  }
  .nav-links a:hover { color: var(--indigo); }
  .nav-cta {
    background: var(--text); color: white;
    padding: 10px 22px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  @media (max-width: 768px) { .nav-links { display: none; } }

  /* ============ HERO ============ */
  .hero {
    background: var(--navy);
    color: white;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
  }
  .hero::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(168,85,247,0.4), transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
  }
  .hero::after {
    content: '';
    position: absolute;
    bottom: -300px; left: -150px;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
  }
  .hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 18px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
  }
  .hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--emerald);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }
  .hero h1 {
    color: white;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
  }
  .hero h1 .accent {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .hero p.lead {
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    margin-bottom: 36px;
    max-width: 540px;
  }
  .hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
  .btn-primary {
    background: var(--gradient-1);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex; align-items: center; gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
  }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(168,85,247,0.5); }
  .btn-secondary {
    background: rgba(255,255,255,0.08);
    color: white;
    padding: 16px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
  }
  .btn-secondary:hover { background: rgba(255,255,255,0.15); }
  .hero-trust { display: flex; gap: 30px; flex-wrap: wrap; }
  .trust-item { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
  .trust-item svg { width: 20px; height: 20px; color: var(--emerald); }

  .hero-visual {
    position: relative;
    aspect-ratio: 4/5;
  }
  .hero-card {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  }
  .hero-card-main {
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1545665277-5937489579f2?w=800&q=80');
    background-size: cover;
    background-position: center;
  }
  .hero-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(99,102,241,0.4) 0%, rgba(236,72,153,0.3) 100%);
  }
  .hero-float {
    position: absolute;
    background: white;
    color: var(--text);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .hero-float-1 { top: -20px; left: -20px; animation: float 4s ease-in-out infinite; }
  .hero-float-2 { bottom: 30px; right: -30px; animation: float 4s ease-in-out infinite reverse; }
  @keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
  .hero-float .icon-circle {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--gradient-1);
    color: white;
    display: flex; align-items: center; justify-content: center;
  }
  .hero-float-2 .icon-circle { background: var(--gradient-2); }
  @media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
  }

  /* ============ STATS ============ */
  .stats-bar {
    background: white;
    padding: 60px 0;
    border-bottom: 1px solid var(--border);
  }
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
  }
  .stat-num {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
  }
  .stat-label { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
  @media (max-width: 700px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

  /* ============ SERVIZI ============ */
  .servizi { background: var(--bg); }
  .servizi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .servizio-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
  }
  .servizio-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
  .servizio-img {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .servizio-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(15,15,44,0.4) 100%);
  }
  .servizio-1 .servizio-img { background-image: url('https://images.unsplash.com/photo-1547658719-da2b51169166?w=800&q=80'); }
  .servizio-2 .servizio-img { background-image: url('https://images.unsplash.com/photo-1626785774573-4b799315345d?w=800&q=80'); }
  .servizio-3 .servizio-img { background-image: url('https://images.unsplash.com/photo-1611532736597-de2d4265fba3?w=800&q=80'); }
  .servizio-body { padding: 28px; }
  .servizio-icon {
    width: 50px; height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: white;
    margin-top: -50px;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 10px 30px rgba(99,102,241,0.4);
  }
  .servizio-2 .servizio-icon { background: var(--gradient-2); box-shadow: 0 10px 30px rgba(251,113,133,0.4); }
  .servizio-3 .servizio-icon { background: var(--gradient-3); box-shadow: 0 10px 30px rgba(16,185,129,0.4); }
  .servizio-card h3 { margin-bottom: 10px; }
  .servizio-card ul { list-style: none; margin-top: 16px; }
  .servizio-card ul li {
    padding: 6px 0;
    font-size: 0.95rem;
    color: var(--muted);
    display: flex; align-items: center; gap: 10px;
  }
  .servizio-card ul li::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--indigo);
    border-radius: 50%;
  }
  .servizio-2 ul li::before { background: var(--coral); }
  .servizio-3 ul li::before { background: var(--emerald); }
  @media (max-width: 900px) { .servizi-grid { grid-template-columns: 1fr; } }

  /* ============ METODO ============ */
  .metodo {
    background: var(--navy);
    color: white;
    position: relative;
    overflow: hidden;
  }
  .metodo::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 800px; height: 800px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 60%);
    border-radius: 50%;
    filter: blur(60px);
  }
  .metodo .section-title { color: white; }
  .metodo .section-subtitle { color: rgba(255,255,255,0.7); }
  .metodo .section-tag { background: rgba(255,255,255,0.08); color: white; border-color: rgba(255,255,255,0.15); }
  .metodo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
  }
  .fase {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 28px 22px;
    position: relative;
    transition: transform 0.3s, background 0.3s;
  }
  .fase:hover { transform: translateY(-6px); background: rgba(255,255,255,0.08); }
  .fase-letter {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
    letter-spacing: -0.04em;
  }
  .fase-num {
    position: absolute;
    top: 18px; right: 22px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-weight: 600;
    letter-spacing: 2px;
  }
  .fase h4 { font-size: 1.05rem; margin-bottom: 8px; color: white; }
  .fase p { font-size: 0.9rem; color: rgba(255,255,255,0.7); line-height: 1.5; }
  @media (max-width: 900px) { .metodo-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .metodo-grid { grid-template-columns: 1fr; } }

  /* ============ GARANZIE ============ */
  .garanzie { background: var(--bg); }
  .garanzie-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .garanzia-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .garanzia-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .garanzia-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: var(--gradient-1);
  }
  .garanzia-card.g2::before { background: var(--gradient-2); }
  .garanzia-card.g3::before { background: var(--gradient-3); }
  .garanzia-card.g4::before { background: linear-gradient(135deg, var(--amber), var(--pink)); }
  .garanzia-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(236,72,153,0.15));
    color: var(--amber);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
  }
  .garanzia-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
  .garanzia-card p { font-size: 1rem; line-height: 1.6; }
  @media (max-width: 700px) { .garanzie-grid { grid-template-columns: 1fr; } }

  /* ============ PACCHETTI ============ */
  .pacchetti { background: white; }
  .pacchetti-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
  }
  .pacchetto {
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
    display: flex; flex-direction: column;
  }
  .pacchetto:hover { transform: translateY(-6px); border-color: var(--indigo); }
  .pacchetto.featured {
    background: var(--navy);
    color: white;
    border-color: var(--purple);
    transform: scale(1.04);
    box-shadow: 0 30px 80px rgba(168,85,247,0.25);
  }
  .pacchetto.featured:hover { transform: scale(1.04) translateY(-6px); }
  .pacchetto.featured h3, .pacchetto.featured .price { color: white; }
  .pacchetto.featured ul li { color: rgba(255,255,255,0.85); }
  .pacchetto.featured .btn-primary { width: 100%; justify-content: center; }
  .featured-tag {
    position: absolute;
    top: -14px; left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-1);
    color: white;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(168,85,247,0.4);
  }
  .pacchetto h3 { margin-bottom: 8px; }
  .pacchetto .pacchetto-desc { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
  .pacchetto.featured .pacchetto-desc { color: rgba(255,255,255,0.7); }
  .price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 4px;
  }
  .price-old {
    color: var(--muted);
    text-decoration: line-through;
    font-size: 1rem;
    margin-bottom: 16px;
    font-weight: 500;
  }
  .pacchetto ul { list-style: none; margin: 24px 0 28px; flex-grow: 1; }
  .pacchetto ul li {
    padding: 8px 0;
    color: var(--muted);
    font-size: 0.95rem;
    display: flex; align-items: flex-start; gap: 10px;
  }
  .pacchetto ul li svg {
    width: 18px; height: 18px;
    flex-shrink: 0;
    color: var(--emerald);
    margin-top: 3px;
  }
  .pacchetto.featured ul li svg { color: #4ade80; }
  .btn-pacchetto {
    background: var(--text);
    color: white;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    text-align: center;
    transition: opacity 0.2s;
  }
  .btn-pacchetto:hover { opacity: 0.85; }
  @media (max-width: 900px) {
    .pacchetti-grid { grid-template-columns: 1fr; }
    .pacchetto.featured { transform: none; }
    .pacchetto.featured:hover { transform: translateY(-6px); }
  }

  /* ============ PORTFOLIO ============ */
  .portfolio { background: var(--bg); }
  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .work {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: transform 0.3s;
    display: block;
    text-decoration: none;
    color: inherit;
  }
  .work:hover { transform: translateY(-6px); }
  .work img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s;
  }
  .work:hover img { transform: scale(1.08); }
  .work-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(15,15,44,0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: white;
  }
  .work-overlay .tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    width: fit-content;
  }
  .work-overlay h4 { font-size: 1.15rem; }
  @media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 600px) { .portfolio-grid { grid-template-columns: 1fr; } }

  /* ============ TESTIMONIALS ============ */
  .testimonials { background: white; }
  .testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .testi-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 32px;
    border: 1px solid var(--border);
    position: relative;
  }
  .testi-card .quote-mark {
    font-size: 4rem;
    line-height: 1;
    color: var(--indigo);
    opacity: 0.2;
    font-family: Georgia, serif;
    position: absolute;
    top: 16px; right: 22px;
  }
  .testi-stars {
    color: var(--amber);
    margin-bottom: 16px;
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
  .testi-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .testi-author { display: flex; align-items: center; gap: 14px; }
  .testi-avatar {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
  }
  .testi-card:nth-child(2) .testi-avatar { background: var(--gradient-2); }
  .testi-card:nth-child(3) .testi-avatar { background: var(--gradient-3); }
  .testi-info .name { font-weight: 700; color: var(--text); font-size: 0.95rem; }
  .testi-info .role { color: var(--muted); font-size: 0.85rem; }
  @media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

  /* ============ FAQ ============ */
  .faq { background: var(--bg); }
  .faq-list { max-width: 800px; margin: 0 auto; }
  .faq-item {
    background: white;
    border-radius: var(--radius);
    margin-bottom: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
  }
  .faq-item:hover { box-shadow: var(--shadow); }
  .faq-q {
    width: 100%;
    text-align: left;
    background: transparent;
    padding: 22px 26px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    display: flex; justify-content: space-between; align-items: center;
    transition: color 0.2s;
  }
  .faq-q:hover { color: var(--indigo); }
  .faq-q .plus {
    width: 28px; height: 28px;
    background: var(--bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--indigo);
    font-size: 1.4rem;
    font-weight: 300;
    transition: transform 0.3s, background 0.3s;
    flex-shrink: 0;
  }
  .faq-item.open .plus { background: var(--gradient-1); color: white; transform: rotate(45deg); }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    padding: 0 26px;
    transition: max-height 0.4s ease, padding 0.4s ease;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
  }
  .faq-item.open .faq-a { max-height: 400px; padding: 0 26px 26px; }

  /* ============ CTA FINALE ============ */
  .final-cta {
    background: var(--navy);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
  }
  .final-cta::before {
    content: '';
    position: absolute;
    top: -100px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 600px;
    background: radial-gradient(ellipse, rgba(168,85,247,0.3), transparent 70%);
    filter: blur(80px);
  }
  .final-cta .container { position: relative; z-index: 2; }
  .final-cta h2 {
    color: white;
    margin-bottom: 20px;
    font-size: clamp(2rem, 5vw, 3.5rem);
  }
  .final-cta p {
    color: rgba(255,255,255,0.75);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 36px;
  }
  .contact-info {
    margin-top: 50px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    color: rgba(255,255,255,0.7);
  }
  .contact-info a {
    display: inline-flex; align-items: center; gap: 8px;
    transition: color 0.2s;
  }
  .contact-info a:hover { color: white; }

  /* ============ FOOTER ============ */
  footer {
    background: #08081A;
    color: rgba(255,255,255,0.5);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
  }
  footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
  footer a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
  footer a:hover { color: white; }

  /* ============ SERVIZIO-4 (Automazioni) ============ */
  .servizio-4 .servizio-img {
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 100%);
    min-height: 120px;
  }
  .servizio-4 .servizio-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(99,102,241,0.3), transparent 70%);
  }

  /* ============ SETTORI ============ */
  .settori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 48px;
  }
  .settore-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 28px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
  }
  .settore-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(168,85,247,0.4);
    transform: translateY(-3px);
  }
  .settore-icon {
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 4px;
  }
  .settore-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0;
  }
  .settore-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    flex: 1;
    margin: 0;
  }
  .settore-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    transition: color 0.2s;
    margin-top: 4px;
  }
  .settore-card:hover .settore-link { color: white; }
  .settore-cta {
    background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(168,85,247,0.15));
    border-color: rgba(168,85,247,0.3);
  }
  .settore-cta:hover { border-color: rgba(168,85,247,0.6); }

  /* ============ TUNNEL BANNER ============ */
  .tunnel-banner {
    background: linear-gradient(135deg, #1E1B4B 0%, #0F172A 50%, #1a0a2e 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
  }
  .tunnel-banner::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 500px; height: 500px;
    background: radial-gradient(ellipse, rgba(168,85,247,0.2), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
  }
  .tunnel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
  }
  .tunnel-text .section-tag { margin-bottom: 16px; }
  .tunnel-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: white;
    line-height: 1.25;
    margin-bottom: 16px;
  }
  .tunnel-text p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 480px;
  }
  .tunnel-visual { display: flex; justify-content: center; }
  .preview-mockup {
    width: 280px;
    background: #0D0D1A;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
    transform: perspective(800px) rotateY(-8deg) rotateX(3deg);
  }
  .mock-bar {
    background: #1A1A2E;
    padding: 10px 14px;
    display: flex;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .mock-bar span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
  }
  .mock-hero {
    height: 100px;
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899);
    opacity: 0.7;
    margin: 12px;
    border-radius: 8px;
  }
  .mock-cards {
    display: flex;
    gap: 8px;
    padding: 0 12px 14px;
  }
  .mock-cards div {
    flex: 1;
    height: 50px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
  }

  @media (max-width: 768px) {
    .settori-grid { grid-template-columns: repeat(2, 1fr); }
    .tunnel-inner { grid-template-columns: 1fr; }
    .tunnel-visual { display: none; }
    .preview-mockup { width: 200px; }
  }
  @media (max-width: 480px) {
    .settori-grid { grid-template-columns: 1fr; }
  }

  /* ============ NAV DROPDOWN + HAMBURGER ============ */
  .nav-dropdown { position: relative; display: flex; align-items: center; }
  .nav-drop-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text); font-family: inherit; font-size: 0.95rem; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0; transition: color 0.2s;
  }
  .nav-drop-btn:hover, .nav-dropdown.open .nav-drop-btn { color: var(--indigo); }
  .nav-drop-btn svg { transition: transform 0.2s; color: var(--text); }
  .nav-dropdown.open .nav-drop-btn svg { transform: rotate(180deg); }

  .nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 16px);
    left: 50%; transform: translateX(-50%);
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 8px;
    min-width: 220px;
    box-shadow: 0 12px 40px rgba(15,15,44,0.12);
    z-index: 200;
  }
  .nav-dropdown.open .nav-drop-menu {
    display: block;
    animation: dropIn 0.18s ease;
  }
  @keyframes dropIn {
    from { opacity:0; transform: translateX(-50%) translateY(-6px); }
    to   { opacity:1; transform: translateX(-50%) translateY(0); }
  }
  .nav-drop-menu a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    color: var(--text); font-size: 0.875rem; font-weight: 500;
    text-decoration: none; transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }
  .nav-drop-menu a:hover { background: rgba(99,102,241,0.07); color: var(--indigo); }
  .drop-icon { font-size: 0.95rem; width: 20px; text-align: center; flex-shrink: 0; }
  .drop-divider { height: 1px; background: var(--border); margin: 6px 4px; }

  .nav-preview-link {
    background: linear-gradient(135deg, #6366F1, #A855F7, #EC4899) !important;
    border-radius: 100px;
    padding: 6px 16px !important;
    font-size: 0.82rem !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(99,102,241,0.35);
  }
  .nav-preview-link:hover { opacity: 0.88 !important; color: white !important; transform: translateY(-1px); }

  /* Hamburger mobile */
  .hamburger {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px; z-index: 10;
  }
  .hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s; }
  .hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  @media (max-width: 860px) {
    .hamburger { display: flex; }
    .nav-links {
      display: none; position: absolute; top: 100%; left: 0; right: 0;
      background: white; border-bottom: 1px solid var(--border);
      flex-direction: column; padding: 16px 24px; gap: 4px; z-index: 150;
    }
    .nav-links.open { display: flex; }
    .nav-links a, .nav-drop-btn { padding: 10px 0; font-size: 1rem; width: 100%; }
    .nav-drop-menu {
      position: static; transform: none; box-shadow: none;
      border: 1px solid var(--border); border-radius: 10px; margin: 4px 0;
    }
    .nav-dropdown.open .nav-drop-menu { animation: none; }
    .navbar .container { flex-wrap: wrap; position: relative; }
  }

  /* ============ PERCHE + PRIMA/DOPO ============ */
  .perche-section { background: var(--bg); }
  .perche-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
  }
  .perche-stat {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .perche-stat:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
  .perche-stat-icon { font-size: 1.8rem; margin-bottom: 10px; }
  .perche-stat-val {
    font-size: 2.2rem; font-weight: 900; line-height: 1;
    background: var(--gradient-1);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
  }
  .perche-stat-label { font-size: 0.82rem; color: var(--muted); line-height: 1.4; }

  .prima-dopo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
  }
  .pd-vs {
    font-size: 1.2rem; font-weight: 900; color: var(--muted);
    padding-top: 60px; text-align: center;
  }
  .prima-card, .dopo-card {
    background: white; border-radius: var(--radius-lg);
    border: 1px solid var(--border); overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .pd-header {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 24px;
  }
  .pd-header h3 { font-size: 1rem; margin: 0; }
  .pd-prima { background: #FEF2F2; border-bottom: 1px solid #FECACA; }
  .pd-prima h3 { color: #DC2626; }
  .pd-dopo  { background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(168,85,247,0.08)); border-bottom: 1px solid rgba(99,102,241,0.2); }
  .pd-dopo h3 { color: var(--indigo); }
  .pd-icon { font-size: 1.4rem; }
  .pd-list { list-style: none; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
  .pd-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text); line-height: 1.5; }
  .x-icon { color: #DC2626; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
  .check-icon { color: var(--indigo); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

  @media (max-width: 900px) { .perche-stats { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 700px) {
    .prima-dopo { grid-template-columns: 1fr; }
    .pd-vs { padding-top: 0; }
    .perche-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .perche-stat { padding: 20px 14px; }
    .perche-stat-val { font-size: 1.8rem; }
  }
  @media (max-width: 480px) { .perche-stats { grid-template-columns: 1fr 1fr; } }
