:root {
    --blue-deep: #0f1e4a;
    --blue-primary: #1e3a8a;
    --blue-soft: #eff6ff;
    --orange: #f97316;
    --orange-soft: #fff7ed;
    --green: #16a34a;
    --green-soft: #f0fdf4;
    --ink: #0f172a;
    --ink-soft: #475569;
    --line: #e2e8f0;
    --bg: #fafbfc;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  .header { background: linear-gradient(135deg, #0f1e4a 0%, #1e3a8a 100%); color: white; padding: 16px 0; position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 20px rgba(15, 30, 74, 0.24); }
  .header-inner { display: flex; align-items: center; justify-content: space-between; }
  .logo-link { display: inline-flex; align-items: center; text-decoration: none; color: inherit; flex-shrink: 0; }
  .logo-svg { height: 72px; width: auto; max-width: min(430px, 50vw); flex-shrink: 0; }
  .nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  .nav a { color: #cbd5e1; text-decoration: none; font-family: 'Georgia', serif; font-size: 15px; opacity: 1; letter-spacing: 0.5px; transition: color 0.2s ease; }

  .nav-cta { background: white; color: var(--blue-deep) !important; padding: 10px 22px; border-radius: 6px; opacity: 1 !important; letter-spacing: 1.5px !important; text-transform: uppercase; font-size: 12px !important; font-weight: 600 !important; transition: color 0.2s ease, background-color 0.2s ease; }

  .hero { position: relative; padding: 90px 0 80px; overflow-x: clip; overflow-y: visible; background: radial-gradient(circle at 85% 20%, rgba(249, 115, 22, 0.06) 0%, transparent 40%), radial-gradient(circle at 15% 80%, rgba(30, 58, 138, 0.06) 0%, transparent 40%), var(--bg); }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
  .hero-tag { display: inline-flex; align-items: center; gap: 10px; background: white; color: var(--blue-deep); padding: 8px 18px; border: 1px solid var(--line); border-radius: 100px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 28px; }
  .hero-tag::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.15); }
  h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(40px, 5vw, 58px); line-height: 1.05; font-weight: 500; letter-spacing: -1.5px; color: var(--ink); margin-bottom: 24px; }
  h1 em { font-style: italic; color: var(--blue-deep); font-weight: 400; }
  .hero-sub { font-size: 19px; color: var(--ink-soft); margin-bottom: 36px; max-width: 540px; }
  .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
  .btn { padding: 15px 28px; border-radius: 6px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: all 0.2s; border: none; cursor: pointer; font-family: inherit; }
  .btn-primary { background: var(--blue-deep); color: white; box-shadow: 0 4px 14px rgba(15, 30, 74, 0.25); }
  .btn-primary:hover { background: var(--ink); transform: translateY(-2px); }
  .btn-ghost { background: white; color: var(--blue-deep); border: 1.5px solid var(--line); }
  .btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-deep); background: var(--blue-soft); }
  .hero-grid > * { min-width: 0; }
  .hero-visual { display: grid; grid-template-columns: 32% 36% 32%; grid-template-rows: 28% 44% 28%; align-items: center; justify-items: center; width: min(100%, 540px); aspect-ratio: 1.18; min-height: 0; padding: 8px 0; margin-left: auto; position: relative; z-index: 1; }
  .hero-shield { position: relative; inset: auto; grid-column: 2; grid-row: 2; width: min(240px, 135%); height: auto; aspect-ratio: 1 / 1.24; display: flex; align-items: center; justify-content: center; z-index: 1; pointer-events: none; }
  .hero-shield svg { width: 100%; height: 100%; opacity: 0.28; }
  .hero-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 40px rgba(15, 23, 42, 0.10); padding: 13px 16px; display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, serif; font-size: 14px; line-height: 1.15; z-index: 2; width: 100%; max-width: 180px; min-height: 56px; white-space: normal; }
  .hero-card-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .card-form { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; }
  .card-form .hero-card-icon { background: var(--green-soft); color: var(--green); }
  .card-priv { grid-column: 3; grid-row: 1; justify-self: start; align-self: end; margin-top: 0; }
  .card-priv .hero-card-icon { background: var(--blue-soft); color: var(--blue-deep); }
  .card-dvr  { grid-column: 1; grid-row: 3; justify-self: end; align-self: start; }
  .card-dvr  .hero-card-icon { background: var(--orange-soft); color: var(--orange); }
  .card-san  { grid-column: 3; grid-row: 3; justify-self: start; align-self: start; }
  .card-san  .hero-card-icon { background: #fce7f3; color: #be185d; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .services { padding: 100px 0; background: white; }
  .section-head { text-align: center; max-width: 680px; margin: 0 auto 64px; }
  .section-eyebrow { color: var(--blue-deep); font-family: 'Georgia', serif; font-style: italic; font-size: 13px; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
  h2 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(32px, 4vw, 44px); font-weight: 500; letter-spacing: -1px; line-height: 1.15; margin-bottom: 16px; }
  .section-head p { font-size: 18px; color: var(--ink-soft); }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .service-card { padding: 32px 26px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); transition: all 0.3s; position: relative; overflow: hidden; }
  .service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08); border-color: transparent; }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
  .service-card:hover::before { transform: scaleX(1); }
  .service-card.formazione { --accent: var(--blue-deep); }
  .service-card.sicurezza { --accent: var(--orange); }
  .service-card.sanitaria { --accent: #be185d; }
  .service-card.privacy { --accent: var(--green); }
  .service-icon { width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; background: var(--accent); color: white; }
  .service-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; font-weight: 500; margin-bottom: 12px; letter-spacing: -0.3px; }
  .service-card p { color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
  .service-list { list-style: none; padding: 0; }
  .service-list li { padding: 8px 0; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 10px; }
  .service-list li::before { content: '—'; color: var(--accent); font-weight: 700; }
  .audience { padding: 100px 0; background: linear-gradient(180deg, var(--bg) 0%, white 100%); }
  .audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .audience-card { display: block; background: white; border-radius: 12px; padding: 40px 32px; text-align: center; border: 1.5px solid var(--line); transition: all 0.3s; cursor: pointer; text-decoration: none; color: inherit; }
  .audience-card:visited { color: inherit; }
  .audience-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
  .audience-card:hover { border-color: var(--blue-deep); transform: translateY(-4px); box-shadow: 0 12px 30px rgba(15, 30, 74, 0.1); }
  .audience-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
  .audience-card.aziende .audience-icon { background: var(--blue-soft); color: var(--blue-deep); }
  .audience-card.pa .audience-icon { background: var(--orange-soft); color: var(--orange); }
  .audience-card.scuole .audience-icon { background: var(--green-soft); color: var(--green); }
  .audience-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; margin-bottom: 8px; font-weight: 500; }
  .audience-card p { color: var(--ink-soft); font-size: 14px; margin-bottom: 20px; }
  .audience-link { color: var(--blue-deep); text-decoration: none; font-family: 'Georgia', serif; font-style: italic; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; transition: gap 0.2s; }
  .audience-card:hover .audience-link { gap: 8px; }
  .cta-section { padding: 90px 0; background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-primary) 100%); color: white; position: relative; overflow: hidden; }
  .cta-section::before { content: ''; position: absolute; top: -50%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(249, 115, 22, 0.15) 0%, transparent 70%); border-radius: 50%; }
  .cta-inner { text-align: center; position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
  .cta-section h2 { color: white; margin-bottom: 18px; }
  .cta-section p { font-size: 18px; opacity: 0.9; margin-bottom: 32px; }
  .btn-white { background: white; color: var(--blue-deep); }
  .btn-white:hover { background: var(--blue-soft); transform: translateY(-2px); }
  .footer { background: var(--ink); color: #94a3b8; padding: 50px 0 30px; text-align: center; }
  .footer-logo { display: flex; justify-content: center; margin-bottom: 20px; }
  .footer-logo svg { height: 72px; width: auto; }
  .footer p { font-family: 'Georgia', serif; font-style: italic; font-size: 14px; }
  .footer-bottom { margin-top: 30px; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 13px; letter-spacing: 1px; }
  /* ============ DVR INTERATTIVO ============ */
  .dvr-section { padding: 100px 0; background: var(--bg); position: relative; overflow: hidden; }
  .dvr-section::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 700px; height: 700px; background: radial-gradient(circle, rgba(30, 58, 138, 0.04) 0%, transparent 70%); border-radius: 50%; }
  .dvr-eyebrow-badge { display: inline-flex; align-items: center; gap: 10px; background: var(--blue-deep); color: white; padding: 8px 18px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
  .dvr-eyebrow-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3); animation: pulseLive 2s ease-in-out infinite; }
  @keyframes pulseLive { 0%,100% { box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3); } 50% { box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.05); } }
  .dvr-stage { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 28px; margin-top: 40px; box-shadow: 0 20px 60px rgba(15, 23, 42, 0.06); position: relative; z-index: 1; }
  .dvr-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
  .dvr-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .dvr-tab { font-family: Georgia, serif; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; padding: 8px 16px; border-radius: 6px; color: #64748b; background: transparent; border: 1px solid transparent; cursor: pointer; white-space: nowrap; }
  .dvr-tab.active { background: var(--blue-soft); color: var(--blue-deep); border-color: #dbeafe; }
  .dvr-status { font-size: 12px; color: #64748b; display: flex; align-items: center; gap: 8px; font-family: Georgia, serif; font-style: italic; }
  .dvr-status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); animation: pulseLive 2s ease-in-out infinite; }
  .plan-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #f8fafc; border-radius: 10px; overflow: hidden; border: 1px solid #f1f5f9; }
  .plan-wrap svg { width: 100%; height: 100%; display: block; }
  .risk-dot { position: absolute; width: 24px; height: 24px; border-radius: 50%; cursor: pointer; transform: translate(-50%, -50%) scale(1); display: flex; align-items: center; justify-content: center; z-index: 5; transition: transform .4s cubic-bezier(0.34, 1.56, 0.64, 1); }
  .risk-dot.appear { transform: translate(-50%, -50%) scale(1); }
  .risk-dot::before { content: ''; position: absolute; inset: 0; border-radius: 50%; animation: ringPulse 2.4s ease-out infinite; opacity: 0.6; }
  .risk-dot::after { content: ''; width: 11px; height: 11px; border-radius: 50%; background: white; z-index: 2; box-shadow: 0 0 0 2px currentColor; }
  .risk-dot.r-high { color: #dc2626; }
  .risk-dot.r-high::before { background: #dc2626; }
  .risk-dot.r-med { color: #f97316; }
  .risk-dot.r-med::before { background: #f97316; }
  .risk-dot.r-low { color: #16a34a; }
  .risk-dot.r-low::before { background: #16a34a; }
  .risk-dot:hover { transform: translate(-50%, -50%) scale(1.3); }
  .risk-dot:hover .tip { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
  .tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--ink); color: white; padding: 10px 14px; border-radius: 8px; font-size: 12px; font-family: Georgia, serif; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: 0 8px 24px rgba(15,23,42,.15); z-index: 10; }
  .tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--ink); }
  .tip strong { display: block; font-family: Arial, Helvetica, sans-serif; font-weight: 600; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; opacity: 0.7; }
  .tip strong.h { color: #fca5a5; }
  .tip strong.m { color: #fdba74; }
  .tip strong.l { color: #86efac; }
  @keyframes ringPulse { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.4); opacity: 0; } }
  .legend { display: flex; gap: 20px; justify-content: center; margin-top: 16px; font-size: 12px; color: #64748b; font-family: Georgia, serif; flex-wrap: wrap; }
  .legend-item { display: flex; align-items: center; gap: 8px; }
  .legend-dot { width: 10px; height: 10px; border-radius: 50%; }
  .dvr-cta { text-align: center; margin-top: 32px; }
  .dvr-hint { font-family: Georgia, serif; font-style: italic; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
  .dvr-sub-hint { font-family: Georgia, serif; font-style: italic; font-size: 13px; color: var(--ink-soft); margin-bottom: 18px; }

  /* ============ CONTATTI / FORM ============ */
  .contact { padding: 100px 0; background: white; }
  .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: start; }
  .contact-info h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; margin-bottom: 12px; font-weight: 500; }
  .contact-info p { color: var(--ink-soft); margin-bottom: 20px; font-size: 15px; }
  .contact-detail { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .contact-detail:last-child { border-bottom: none; }
  .contact-detail-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .contact-detail-text { font-size: 14px; color: var(--ink-soft); }
  .contact-detail-text strong { color: var(--ink); display: block; margin-bottom: 2px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }
  .contact-form { background: var(--bg); padding: 36px; border-radius: 12px; border: 1px solid var(--line); }
  .form-row { margin-bottom: 18px; }
  .form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
  .form-row label .req { color: var(--orange); }
  .form-row input, .form-row textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 6px; font-family: inherit; font-size: 14px; background: white; transition: border-color 0.2s; }
  .form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-deep); }
  .form-row textarea { resize: vertical; min-height: 110px; }
  .form-privacy { background: white; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; font-size: 12px; color: var(--ink-soft); line-height: 1.55; }
  .form-privacy a { color: var(--blue-deep); font-weight: 600; }
  .form-checkbox { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
  .form-checkbox input { margin-top: 3px; flex-shrink: 0; }
  .form-checkbox a { color: var(--blue-deep); font-weight: 600; }
  .form-msg { padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; display: none; }
  .form-msg.success { background: var(--green-soft); color: var(--green); border: 1px solid var(--green); display: block; }
  .form-msg.error { background: #fef2f2; color: #dc2626; border: 1px solid #dc2626; display: block; }

  /* ============ SEZIONE FESR ============ */
  .fesr-section { padding: 60px 0; background: white; border-top: 1px solid var(--line); }
  .fesr-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
  .fesr-loghi { padding-bottom: 28px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
  .fesr-logo { background: white; border-radius: 6px; padding: 10px 14px; height: 72px; display: flex; align-items: center; justify-content: center; }
  .fesr-logo img { max-height: 100%; max-width: 100%; width: auto; height: auto; display: block; object-fit: contain; }
  .fesr-logo.logo-tall { padding: 6px 10px; }
  .fesr-logo.logo-tall img { max-height: 60px; }
  .fesr-logo-principale { display: flex; justify-content: center; align-items: center; margin-bottom: 28px;}
  .fesr-logo-principale img { max-width: 420px; width: 90%; height: auto; display: block; }
  .fesr-loghi-secondari { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
  .fesr-logo-camera { flex-basis: 100%; height: auto; background: transparent; padding: 0 0 8px 0; }
  .fesr-logo-camera img { max-width: 420px; width: 90%; height: auto; }
  .fesr-content h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 22px; margin-bottom: 14px; }
  .fesr-content p { color: var(--ink-soft); font-size: 14px; margin-bottom: 12px; line-height: 1.7; }
  .fesr-data { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
  .fesr-data-item { background: white; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); }
  .fesr-data-item strong { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--blue-deep); margin-bottom: 4px; }
  .fesr-data-item span { font-size: 14px; color: var(--ink); font-weight: 600; }

  /* ============ FOOTER ESTESO ============ */
  .footer { background: var(--ink); color: #94a3b8; padding: 50px 0 30px; text-align: left; }
  .footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
  .footer-brand { text-align: left; }
  .footer-brand .footer-logo { justify-content: flex-start; margin-bottom: 16px; }
  .footer-brand p { font-family: 'Georgia', serif; font-style: italic; font-size: 14px; }
  .footer-col h4 { color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; font-weight: 600; }
  .footer-col ul { list-style: none; padding: 0; }
  .footer-col li { margin-bottom: 8px; font-size: 14px; }
  .footer-col a { color: #94a3b8; text-decoration: none; transition: color 0.2s; }
  .footer-col a:hover { color: white; }
  .footer-legal { font-size: 12px; line-height: 1.7; }
  .footer-bottom { margin-top: 0; padding-top: 24px; border-top: 1px solid #1e293b; font-size: 12px; letter-spacing: 0.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; text-align: left; }
  .footer-bottom a { color: #94a3b8; text-decoration: none; }
  .footer-bottom a:hover { color: white; }


  @media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 900px) {
    .hero-grid, .services-grid, .audience-grid, .contact-grid, .footer-grid, .fesr-data { grid-template-columns: 1fr; }
    .hero-visual { grid-template-columns: minmax(0, 1fr) 200px minmax(0, 1fr); grid-template-rows: auto 220px auto; width: min(100%, 520px); max-width: 520px; aspect-ratio: auto; min-height: 410px; margin: 20px auto 0; padding: 8px 0; }
    .hero-shield { grid-column: 2; grid-row: 2; width: 205px; height: auto; margin: 0 auto; }
    .card-form { grid-column: 1; grid-row: 1; justify-self: end; align-self: end; }
    .card-priv { grid-column: 3; grid-row: 1; justify-self: start; align-self: end; margin-top: 0; }
    .card-dvr { grid-column: 1; grid-row: 3; justify-self: end; align-self: start; }
    .card-san { grid-column: 3; grid-row: 3; justify-self: start; align-self: start; }
    .hero-card { max-width: 180px; white-space: normal; }
    .hero { padding: 60px 0; }
    .services, .audience, .contact, .dvr-section { padding: 70px 0; }
    .footer { text-align: center; }
    .footer-brand .footer-logo { justify-content: center; }
    .footer-bottom { justify-content: center; text-align: center; }
  }


  @media (max-width: 640px) {
    .header-inner { gap: 16px; }
    .logo-svg { height: 62px; max-width: min(360px, 76vw); }
    .hero-visual { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto auto; width: 100%; max-width: 360px; min-height: 0; gap: 14px; }
    .hero-shield { grid-column: 1; grid-row: 3; width: 180px; height: auto; }
    .card-form { grid-column: 1; grid-row: 1; justify-self: center; }
    .card-priv { grid-column: 1; grid-row: 2; justify-self: center; }
    .card-dvr { grid-column: 1; grid-row: 4; justify-self: center; }
    .card-san { grid-column: 1; grid-row: 5; justify-self: center; }
    .hero-card { justify-self: center; max-width: 240px; }
  }

/* ============ UTILITÀ STATICHE ============ */
.section-head--raised { position: relative; z-index: 1; }
.text-em-blue { color: var(--blue-deep); font-style: italic; }
.btn-full { width: 100%; justify-content: center; }
.note-small { margin-top: 18px; font-size: 12px; color: var(--ink-soft); }
.footer-link-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; font-size: 13px; }
.footer-link-row a { color: #94a3b8; text-decoration: none; }
.footer-link-row a:hover { color: white; }
.legal-page { padding: 72px 0; background: white; }
.legal-layout { max-width: 880px; margin: 0 auto; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 34px; }
.legal-nav a { display: inline-flex; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue-deep); text-decoration: none; font-weight: 600; font-size: 13px; background: var(--bg); }
.legal-card { border: 1px solid var(--line); border-radius: 14px; padding: 34px; margin-bottom: 28px; background: var(--bg); }
.legal-card h2 { color: var(--blue-deep); }
.legal-card .modal-sub { color: var(--ink-soft); font-size: 13px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legal-card h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; margin: 24px 0 10px; color: var(--ink); }
.legal-card p, .legal-card li { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin-bottom: 10px; }
.legal-card ul { padding-left: 20px; margin-bottom: 12px; }
.modal-fill { background: #fff3a3; padding: 1px 5px; border-radius: 3px; font-weight: 600; color: #78350f; }
.back-link { display: inline-flex; margin-top: 14px; color: var(--blue-deep); font-weight: 700; text-decoration: none; }



/* ============ MENU HEADER: HOVER SEMPLICE COME FOOTER ============ */
.header-inner {
  flex-wrap: wrap;
  gap: 16px 28px;
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.header .nav a {
  color: #cbd5e1;
  background: transparent;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.header .nav a:hover,
.header .nav a:focus-visible {
  color: #ffffff;
  outline: none;
}

.header .nav a.nav-cta {
  background: #ffffff;
  color: var(--blue-deep) !important;
  border-radius: 6px;
  padding: 10px 22px;
}

.header .nav a.nav-cta:hover,
.header .nav a.nav-cta:focus-visible {
  background: var(--orange);
  color: #ffffff !important;
}

@media (max-width: 900px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }

  .header .logo-link {
    width: 100%;
    justify-content: center;
  }

  .header .nav {
    width: 100%;
    justify-content: center;
    gap: 10px 14px;
  }
}

@media (max-width: 520px) {
  .header .nav {
    gap: 8px 10px;
  }

  .header .nav a {
    font-size: 13px;
    padding: 7px 8px;
  }

  .header .nav a.nav-cta {
    padding: 8px 14px;
  }
}

/* ============ MENU HEADER: HOVER SEMPLICE E COMPATIBILE ============ */
.header #main-menu.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 18px;
}

.header #main-menu.nav > a {
  display: inline-block;
  color: #cbd5e1 !important;
  background-color: transparent !important;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: none;
}

.header #main-menu.nav > a:hover,
.header #main-menu.nav > a:focus {
  color: #ffffff !important;
  border-bottom-color: #f97316;
}

.header #main-menu.nav > a.nav-cta {
  color: #0f1e4a !important;
  background-color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 6px;
  border-bottom: 0;
}

.header #main-menu.nav > a.nav-cta:hover,
.header #main-menu.nav > a.nav-cta:focus {
  color: #ffffff !important;
  background-color: #f97316 !important;
}

@media (max-width: 900px) {
  .header-inner {
    justify-content: center;
    text-align: center;
  }
  .header .logo-link {
    width: 100%;
    justify-content: center;
  }
  .header #main-menu.nav {
    width: 100%;
    justify-content: center;
    gap: 10px 14px;
  }
}
