:root {
  /* Brand palette */
  --primary:      #00b894;
  --primary-hover: #00a87e;
  --primary-light: #e6f9f5;
  --secondary:    #f5f7fa;
  --accent:       var(--primary);
  --accent-hover: var(--primary-hover);
  --dark:         #07101f;
  --red:          #e94560;
  --text:         #222;
  --bg:           #fff;
  /* Derived tokens */
  --border:           #e2e8f0;
  --text-muted:       #4a5568;  /* body text on light bg */
  --text-subtle:      #718096;  /* labels / tertiary on light bg */
  --text-on-dark:     #f0f4f8;  /* primary text on dark sections */
  --text-muted-dark:  #8a9bb0;  /* muted text on dark sections */
}

html {
  overflow-x: clip;             /* clip non crea scroll container: iOS non blocca lo scroll verticale */
  overscroll-behavior-x: none;  /* previene il rubber-band orizzontale su iOS */
}
body {
  background: var(--bg);
  margin: 0;
  padding: 0 min(20vw, 340px) 0 0;
  font-family: 'Calibri', sans-serif;
  touch-action: pan-y;          /* consente solo scroll verticale touch; non blocca la UIScrollView di iOS (a differenza di overflow:hidden) */
  overscroll-behavior-x: none;  /* previene rubber-band orizzontale */
}
.hero-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: 22vw;
  max-width: 340px;
  height: 100vh;
  background:
    radial-gradient(ellipse at 70% 18%, rgba(0,210,180,0.10) 0%, transparent 52%),
    radial-gradient(ellipse at 15% 85%, rgba(26,115,232,0.07) 0%, transparent 48%),
    linear-gradient(175deg, #0c1521 0%, #101c2c 50%, #0d1927 100%);
  border-left: 1px solid rgba(0,184,148,0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10vh 2rem 4vh 2.2rem;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1001;
}
.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sidebar-contact {
  width: 100%;
  border-top: 1px solid rgba(0,184,148,0.18);
  padding-top: 1.2rem;
}
.sidebar-contact h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin: 0 0 0.9rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-contact h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
  flex-shrink: 0;
}
.sidebar-contact a {
  display: block;
  color: var(--text-muted-dark);
  font-size: 0.82rem;
  text-decoration: none;
  line-height: 1.9;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-contact a:hover {
  color: var(--accent);
}

/* left accent bar */
.hero-sidebar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent 0%, var(--accent) 25%, var(--primary) 75%, transparent 100%);
}
/* bottom-right ambient glow */
.hero-sidebar::after {
  content: '';
  position: absolute;
  bottom: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,148,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-sidebar-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.75;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero-sidebar-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.9;
  flex-shrink: 0;
}
.hero-sidebar h1 {
  font-size: clamp(1.25rem, 1.9vw, 1.85rem);
  font-weight: 800;
  color: var(--text-on-dark);
  letter-spacing: -0.01em;
  margin: 0 0 1rem 0;
  line-height: 1.3;
  text-align: left;
}
.hero-sidebar .sidebar-divider {
  width: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--accent), rgba(26,115,232,0.4));
  border-radius: 2px;
  margin: 0 0 1.2rem 0;
  box-shadow: 0 0 8px rgba(0,184,148,0.35);
}
.hero-sidebar p {
  font-size: clamp(0.92rem, 1.2vw, 1.08rem);
  color: var(--text-muted-dark);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 2.2rem 0;
  line-height: 1.7;
  text-align: left;
  max-width: 240px;
}
.sidebar-btns {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  align-items: flex-start;
}
.sidebar-cta,
.sidebar-cta-outline {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.96rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(0,184,148,0.3), 0 4px 18px rgba(0,184,148,0.22);
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  white-space: nowrap;
}
.sidebar-cta {
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.75rem 1.7rem;
}
.sidebar-cta-outline {
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.72rem 1.65rem;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  font-family: inherit;
}
.sidebar-cta:hover,
.sidebar-cta-outline:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0,184,148,0.5), 0 8px 26px rgba(0,184,148,0.32);
}
@media (max-width: 900px) {
  body { padding-right: 0; }
  .hero-sidebar { display: none; }
}

main {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg);
}
.hero {
  position: relative;
  display: flex;
  min-height: calc(100vh - 60px);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform: translateZ(0); /* Forza layer GPU sul parent: iOS rispetta overflow:hidden sui figli animati */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("Images/grafo3-mod.jpg");
  background-size: cover;
  background-position: center;
  z-index: 1;
}
@media (max-width: 700px) {
  .hero {
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem 1.5rem 0.5rem;
  }
}

nav.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--red);
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  height: 60px;
}
nav.sticky-nav a {
  color: var(--text-on-dark);
  text-decoration: none;
  padding: 20px 18px;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav.sticky-nav a:hover,
nav.sticky-nav a.active {
  background-color: var(--primary);
  color: var(--bg);
}
footer {
  background:
    radial-gradient(ellipse at 88% 50%, rgba(0,210,180,0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 8%  50%, rgba(26,115,232,0.10) 0%, transparent 50%),
    linear-gradient(175deg, #0c1521 0%, #101c2c 50%, #0d1927 100%);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  border-radius: 18px 18px 0 0;
  font-size: 0.88rem;
  gap: 1rem;
}
.footer-name   { font-weight: 700; white-space: nowrap; }
.footer-address { text-align: center; flex: 1; opacity: 0.85; }
.footer-piva   { white-space: nowrap; opacity: 0.85; }
/* Prevent iOS Safari from auto-linking numbers (tel/address) in blue */
footer a { color: inherit !important; text-decoration: none !important; pointer-events: none; }
.sidebar-nocookie {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--accent);
  opacity: 0.55;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,184,148,0.12);
  width: 100%;
}
@media (max-width: 700px) {
  footer { flex-direction: column; text-align: center; gap: 0.3rem; padding: 1.2rem 1rem; border-radius: 12px 12px 0 0; }
  .footer-address { flex: none; }
}

/* ══════════════════════════════════════════════════
   SECTIONS — REDESIGNED (editorial, varied layouts)
   ══════════════════════════════════════════════════ */

/* ── Eyebrow: stile base comune a tutte le sezioni ─ */
.accessi-eyebrow, .web-eyebrow, .elet-eyebrow, .sw-eyebrow,
.cyber-eyebrow, .net-eyebrow, .privacy-eyebrow, .dmarc-eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
}
.dmarc-eyebrow   { font-size: 0.78rem; }      /* override: più piccolo nel pannello stat */
.privacy-eyebrow { color: var(--primary); }   /* override: usa il colore primario */

/* ── Accessi: editorial split + metrics + caps list ─ */
.accessi-section {
  background: var(--bg);
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}
.accessi-inner {
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding: 5rem 0 5rem;
}

/* Editorial split */
.accessi-editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 3rem;
  min-height: 440px;
}
.accessi-ed-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.accessi-eyebrow {
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.accessi-eyebrow::before,
.web-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.accessi-ed-title {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.12;
  margin: 0 0 1.4rem 0;
  letter-spacing: -0.03em;
}
.accessi-ed-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 2.4rem 0;
  max-width: 480px;
}
.accessi-ed-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.82rem 1.8rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s, box-shadow 0.2s;
  width: fit-content;
  box-shadow: 0 2px 12px rgba(26,115,232,0.22);
}
.accessi-ed-cta:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 20px rgba(26,115,232,0.34);
}
.accessi-ed-right { overflow: hidden; border-radius: 14px; }
.accessi-ed-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

/* Metrics strip */
.accessi-metrics {
  display: flex;
  align-items: center;
  background: var(--dark);
  border-radius: 12px;
  padding: 2.4rem 3rem;
}
.accessi-metric { flex: 1; text-align: center; }
.accessi-metric-num {
  display: block;
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.accessi-metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted-dark);
  letter-spacing: 0.04em;
}
.accessi-metric-sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Capabilities horizontal list */
.accessi-caps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.accessi-cap {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 2.2rem 2rem 2.2rem 0;
  border-right: 1px solid var(--border);
}
.accessi-cap:last-child { border-right: none; padding-right: 0; }
.accessi-cap:first-child { padding-left: 0; }
.accessi-cap svg { flex-shrink: 0; margin-top: 3px; color: var(--primary); }
.accessi-cap strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.accessi-cap p { margin: 0; font-size: 0.84rem; color: var(--text-subtle); line-height: 1.6; }

@media (max-width: 960px) {
  .accessi-editorial { grid-template-columns: 1fr; gap: 2.5rem; }
  .accessi-ed-img { height: 280px; }
  .accessi-metrics { flex-wrap: wrap; gap: 1.5rem; padding: 2rem; }
  .accessi-metric-sep { display: none; }
  .accessi-metric { flex: 0 0 45%; }
  .accessi-caps { grid-template-columns: 1fr 1fr; }
  .accessi-cap { border-right: none; border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
  .accessi-cap:last-child { border-bottom: none; }
}
@media (max-width: 560px) {
  .accessi-caps { grid-template-columns: 1fr; }
  .accessi-metric { flex: 0 0 100%; }
}

/* ── Elettronica: dark full-width, numbered process ─ */
.elettronica-section {
  background: var(--dark);
  padding: 6rem 0;
  width: 100%;
  box-sizing: border-box;
}
.elettronica-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.elet-header { text-align: center; margin-bottom: 5rem; }
.elet-eyebrow {
  display: block;
  margin-bottom: 1.5rem;
}
.elet-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.15;
  margin: 0 0 1.4rem 0;
  letter-spacing: -0.03em;
}
.elet-intro {
  font-size: 1.05rem;
  color: var(--text-muted-dark);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

/* Numbered steps */
.elet-steps {
  display: flex;
  align-items: flex-start;
  margin-bottom: 5rem;
}
.elet-step {
  flex: 1;
  padding: 0 2.5rem;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.elet-step:first-child { border-left: none; padding-left: 0; }
.elet-step:last-child { padding-right: 0; }
.elet-step-num {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.elet-step strong {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}
.elet-step p {
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  line-height: 1.75;
  margin: 0;
}
.elet-step-arrow {
  font-size: 1.3rem;
  color: rgba(0,184,148,0.3);
  flex-shrink: 0;
  padding-top: 1rem;
  margin-top: 1.8rem;
}

@media (max-width: 860px) {
  .elet-steps { flex-direction: column; gap: 0; }
  .elet-step {
    border-left: none;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 2rem 0 0 0;
    margin-top: 2rem;
  }
  .elet-step:first-child { border-top: none; margin-top: 0; padding-top: 0; }
  .elet-step-arrow { display: none; }
}

/* ── Siti Web: stats bar + editorial + service chips ─ */
.sitiweb-section {
  background: var(--bg);
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

/* Cookie-free banner */
.web-nocookie-banner {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 2.4rem;
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  color: var(--text-subtle);
  font-size: 0.95rem;
  line-height: 1.55;
}
.web-nocookie-banner svg {
  flex-shrink: 0;
  color: var(--primary);
}
.web-nocookie-banner strong {
  color: var(--text);
}

/* Editorial split */
.web-editorial {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 5rem;
  align-items: center;
  max-width: 1400px;
  width: 95%;
  margin: 0 auto;
  padding: 5rem 0;
}
.web-ed-left { display: flex; flex-direction: column; }
.web-eyebrow {
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.web-ed-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.12;
  margin: 0 0 1.4rem 0;
  letter-spacing: -0.03em;
}
.web-ed-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 2.2rem 0;
}
.web-ed-right { overflow: hidden; border-radius: 14px; height: 480px; }
.web-ed-img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 960px) {
  .web-editorial { grid-template-columns: 1fr; padding: 3.5rem 0; gap: 2.5rem; }
  .web-ed-right { height: 280px; }
}

/* ── Software: large headline + 2-col numbered list ─ */
.software-section {
  background: var(--secondary);
  padding: 6rem 2rem;
  width: 100%;
  box-sizing: border-box;
}
.sw-inner { max-width: 1200px; margin: 0 auto; }
.sw-header { margin-bottom: 4.5rem; }
.sw-eyebrow {
  display: block;
  margin-bottom: 1.2rem;
}
.sw-headline {
  font-size: clamp(2.2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.04em;
  max-width: 700px;
}
.sw-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}
.sw-intro-col { position: sticky; top: 80px; }
.sw-intro-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0 0 2.5rem 0;
}
.sw-list-col { display: flex; flex-direction: column; }
.sw-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}
.sw-item:first-child { padding-top: 0; }
.sw-item-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-subtle);
  letter-spacing: 0.15em;
  padding-top: 5px;
  flex-shrink: 0;
  min-width: 24px;
}
.sw-item-content strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.45rem;
}
.sw-item-content p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-subtle);
  line-height: 1.7;
}
.sw-item--featured {
  background: var(--primary-light);
  border-radius: 10px;
  padding: 1.8rem 1.6rem;
  margin: 0.4rem -1.6rem;
  border-bottom: none;
}
.sw-item--featured .sw-item-num { color: var(--primary); }
.sw-item--featured .sw-item-content strong { color: var(--primary); }

@media (max-width: 860px) {
  .sw-body { grid-template-columns: 1fr; gap: 3rem; }
  .sw-intro-col { position: static; }
  .sw-item--featured { margin: 0.4rem 0; }
}

/* ── Networking: full-width banner + spec table ───── */
.networking-section {
  background: var(--bg);
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}
.net-banner {
  position: relative;
  height: 500px;
  overflow: hidden;
  width: 100%;
}
.net-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}
.net-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,16,31,0.92) 0%, rgba(7,16,31,0.55) 50%, rgba(7,16,31,0.2) 100%);
  display: flex;
  align-items: flex-end;
  padding: 4rem 5%;
}
.net-banner-content { max-width: 680px; }
.net-eyebrow {
  display: block;
  margin-bottom: 1.2rem;
}
.net-banner-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 1rem 0;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.net-banner-sub {
  font-size: 1.05rem;
  color: rgba(240,244,248,0.78);
  margin: 0 0 2.2rem 0;
  line-height: 1.7;
}

/* Spec table */
.net-specs {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
  padding: 4rem 0 5.5rem;
}
.net-spec-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 3.5rem;
  padding: 1.9rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.net-spec-row:first-child { border-top: 1px solid var(--border); }
.net-spec-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.net-spec-value {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .net-banner { height: 400px; }
  .net-spec-row { grid-template-columns: 1fr; gap: 0.4rem; padding: 1.4rem 0; }
  .net-specs { width: 95%; }
}
@media (max-width: 560px) {
  .net-banner { height: 320px; }
  .net-banner-overlay { padding: 2rem 1.5rem; }
}

/* ── Cybersecurity: deep dark, editorial + pillars ── */
.cybersec-section {
  background: var(--dark);
  width: 100%;
  box-sizing: border-box;
  padding: 6.5rem 5%;
}
.cyber-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: start;
}
.cyber-eyebrow {
  display: block;
  margin-bottom: 1.6rem;
}
.cyber-headline {
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1.07;
  margin: 0 0 1.6rem 0;
  letter-spacing: -0.04em;
}
.cyber-subtext {
  font-size: 1rem;
  color: var(--text-muted-dark);
  line-height: 1.85;
  margin: 0 0 3.5rem 0;
  max-width: 480px;
}
.cyber-stats {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}
.cyber-stat-num {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.cyber-stat-label {
  display: block;
  font-size: 0.83rem;
  color: var(--text-muted-dark);
  letter-spacing: 0.02em;
}
.cyber-stat-source {
  display: block;
  font-size: 0.72rem;
  font-style: italic;
  color: var(--accent);
  opacity: 0.5;
  margin-top: 0.3rem;
  letter-spacing: 0.01em;
}

/* Pillars */
.cyber-right {
  display: flex;
  flex-direction: column;
  padding-top: 0.5rem;
}
.cyber-pillar {
  border-left: 2px solid rgba(0,184,148,0.2);
  padding: 2rem 0 2rem 2rem;
  transition: border-color 0.25s;
}
.cyber-pillar + .cyber-pillar { margin-top: 0.2rem; }
.cyber-pillar:hover { border-left-color: var(--accent); }
.cyber-pillar-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 0.85rem;
}
.cyber-pillar-head svg { color: var(--accent); flex-shrink: 0; }
.cyber-pillar p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted-dark);
  line-height: 1.75;
}

@media (max-width: 960px) {
  .cyber-inner { grid-template-columns: 1fr; gap: 4rem; }
  .cyber-stats { flex-direction: row; flex-wrap: wrap; gap: 2rem; }
  .cyber-stat { flex: 0 0 45%; }
}
@media (max-width: 560px) {
  .cybersec-section { padding: 4rem 1.5rem; }
  .cyber-stats { flex-direction: column; gap: 1.5rem; }
}

/* ── Privacy & GDPR ─────────────────────────────── */
.privacy-section {
  background: var(--secondary);
  width: 100%;
  box-sizing: border-box;
  padding: 6rem 5%;
  border-top: 1px solid var(--border);
}
.privacy-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7rem;
  align-items: center;
}
.privacy-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
}
.privacy-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  flex-shrink: 0;
}
.privacy-headline {
  font-size: clamp(2.1rem, 3.2vw, 2.8rem);
  font-weight: 800;
  color: var(--red);
  line-height: 1.12;
  margin: 0 0 1.6rem 0;
  letter-spacing: -0.03em;
}
.privacy-body {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin: 0;
  max-width: 500px;
}
.privacy-body strong {
  color: var(--dark);
  font-weight: 700;
}
.privacy-docs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.privacy-doc-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.privacy-doc-card:hover {
  box-shadow: 0 4px 20px rgba(26,115,232,0.1);
  border-color: rgba(26,115,232,0.3);
}
.privacy-doc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--primary-light);
  border-radius: 10px;
  flex-shrink: 0;
  color: var(--primary);
}
.privacy-doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.privacy-doc-info strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
}
.privacy-doc-info span {
  font-size: 0.78rem;
  color: var(--text-subtle);
  letter-spacing: 0.02em;
}
.privacy-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 10px rgba(26,115,232,0.2);
}
.privacy-download-btn:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 18px rgba(26,115,232,0.32);
}

@media (max-width: 960px) {
  .privacy-inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .privacy-body { max-width: 100%; }
}
@media (max-width: 560px) {
  .privacy-section { padding: 4rem 1.5rem; }
  .privacy-doc-card { flex-wrap: wrap; }
}

/* ── DMARC: split-panel alert layout ─────────────── */
.dmarc-section {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.dmarc-inner {
  display: grid;
  grid-template-columns: 2fr 3fr;
  min-height: 0;
}
.dmarc-stat-panel {
  background: var(--dark);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.dmarc-stat-panel::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(0,184,148,0.10);
  pointer-events: none;
}
.dmarc-stat-panel::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(233,69,96,0.12);
  pointer-events: none;
}
.dmarc-eyebrow {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.dmarc-eyebrow::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}
.dmarc-big-num {
  font-size: clamp(3.5rem, 5.5vw, 5.5rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}
.dmarc-stat-caption {
  font-size: 0.97rem;
  color: var(--text-muted-dark);
  line-height: 1.75;
  max-width: 260px;
}
.dmarc-content-panel {
  background: var(--secondary);
  padding: 3rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--border);
}
.dmarc-title {
  font-size: clamp(1.4rem, 2.1vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.15;
  margin: 0 0 0.7rem 0;
  letter-spacing: -0.03em;
}
.dmarc-subtitle {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.4rem 0;
  max-width: 480px;
}
.dmarc-features {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.4rem;
}
.dmarc-feature {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.dmarc-feature:first-child { border-top: 1px solid var(--border); }
.dmarc-feature-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--accent);
  padding-top: 4px;
  flex-shrink: 0;
  min-width: 24px;
}
.dmarc-feature strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.3rem;
}
.dmarc-feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-subtle);
  line-height: 1.65;
}
.dmarc-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  letter-spacing: 0.03em;
  width: fit-content;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px rgba(233,69,96,0.25);
}
.dmarc-cta:hover {
  background: #d63651;
  box-shadow: 0 4px 20px rgba(233,69,96,0.4);
}
@media (max-width: 960px) {
  .dmarc-inner { grid-template-columns: 1fr; }
  .dmarc-stat-panel { flex-direction: row; align-items: center; gap: 3rem; padding: 4rem 2.5rem; }
  .dmarc-content-panel { padding: 3.5rem 2.5rem; border-left: none; border-top: 1px solid var(--border); }
}
@media (max-width: 560px) {
  .dmarc-stat-panel { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 3rem 1.5rem; }
  .dmarc-content-panel { padding: 3rem 1.5rem; }
}

/* ══════════════════════════════════════════════════
   ANIMAZIONI
   ══════════════════════════════════════════════════ */

/* ── Ambient: effetti sempre attivi ─────────────────
   Dettagli sottili che rendono il sito "vivo"
   ─────────────────────────────────────────────────── */

/* Hero: Ken Burns lento sul background */
@keyframes hero-reveal {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1);    }
}
@keyframes hero-ken-burns {
  0%, 100% { transform: scale(1)    translate(0, 0);         }
  50%       { transform: scale(1.05) translate(-0.8%, 0.4%); }
}
.hero::before {
  animation:
    hero-reveal    1.4s ease-out                both,
    hero-ken-burns  24s 1.4s ease-in-out infinite;
}

/* Sidebar: entrata da destra al caricamento */
@keyframes sidebar-enter {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0);    }
}
.hero-sidebar {
  animation: sidebar-enter 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* Sidebar glow: oscillazione morbida */
@keyframes sidebar-glow-float {
  0%, 100% { transform: translate(0, 0) scale(1);           opacity: 0.07; }
  50%       { transform: translate(-14px, -18px) scale(1.18); opacity: 0.14; }
}
.hero-sidebar::after {
  animation: sidebar-glow-float 10s ease-in-out infinite;
}

/* Divider: pulsazione luminosa */
@keyframes divider-pulse {
  0%, 100% { box-shadow: 0 0  8px rgba(0,184,148,0.35); }
  50%       { box-shadow: 0 0 22px rgba(0,184,148,0.78); }
}
.sidebar-divider {
  animation: divider-pulse 3.5s ease-in-out infinite;
}

/* ── Scroll-triggered: sistema di entrata ────────────
   Elementi nascosti → visibili quando entrano nel
   viewport, con easing fluido e stagger sequenziale
   ─────────────────────────────────────────────────── */

[data-anim] {
  opacity: 0;
  transition:
    opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-anim="up"]    { transform: translateY(38px); }
[data-anim="left"]  { transform: translateX(-52px); }
[data-anim="right"] { transform: translateX(52px); }
[data-anim="scale"] { transform: scale(0.88) translateY(22px); }

[data-anim].anim-in {
  opacity:   1;
  transform: none;
}

/* Stagger delays: ogni elemento in una lista
   parte leggermente dopo il precedente */
[data-delay="1"] { transition-delay: 0.10s; }
[data-delay="2"] { transition-delay: 0.20s; }
[data-delay="3"] { transition-delay: 0.30s; }
[data-delay="4"] { transition-delay: 0.40s; }
[data-delay="5"] { transition-delay: 0.50s; }
[data-delay="6"] { transition-delay: 0.60s; }

/* ── Eyebrow line reveal ─────────────────────────────
   La riga decorativa si "disegna" da sinistra verso
   destra dopo che il genitore è apparso
   ─────────────────────────────────────────────────── */
.accessi-eyebrow::before,
.web-eyebrow::before,
.privacy-eyebrow::before {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}
.accessi-ed-left.anim-in .accessi-eyebrow::before,
.web-ed-left.anim-in     .web-eyebrow::before,
.privacy-left.anim-in    .privacy-eyebrow::before {
  transform: scaleX(1);
}

/* ── Prefers-reduced-motion ──────────────────────────
   Rispetta la preferenza di sistema; tutto appare
   istantaneamente senza trasformazioni
   ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero-sidebar,
  .hero-sidebar::after,
  .sidebar-divider {
    animation: none !important;
  }
  [data-anim] {
    opacity:    1 !important;
    transform:  none !important;
    transition: none !important;
  }
  .accessi-eyebrow::before,
  .web-eyebrow::before,
  .privacy-eyebrow::before {
    transform:  none !important;
    transition: none !important;
  }
}

/* ══════════════════════════════════════════════════
   MOBILE — HAMBURGER NAV + MOBILE HERO
   ══════════════════════════════════════════════════ */

/* ── Desktop: nav wrapper è trasparente ──────────── */
@media (min-width: 901px) {
  .nav-mobile-header { display: none; }
  .nav-links { display: contents; }
}

/* ── Mobile ≤ 900px ─────────────────────────────── */
@media (max-width: 900px) {

  /* 1. Sidebar → hero full-width in cima alla pagina */
  .hero-sidebar {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: auto;
    padding: calc(56px + 2.5rem) 1.5rem 3rem;
    border-left: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    animation: none;
    box-sizing: border-box;
    z-index: auto;
  }

  /* barra verticale sinistra → barra orizzontale bassa */
  .hero-sidebar::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent 0%, var(--accent) 25%, var(--primary) 75%, transparent 100%);
  }

  .hero-sidebar::after {
    animation: none;
  }

  .hero-sidebar h1 {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
  }

  .hero-sidebar p {
    max-width: 100%;
    font-size: 1rem;
    margin-bottom: 1.8rem;
  }

  .sidebar-top {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .sidebar-btns {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.7rem;
  }

  .sidebar-contact {
    width: 100%;
    margin-top: 0;
  }

  .sidebar-nocookie {
    padding-top: 1rem;
    font-size: 0.88rem;
  }

  /* 2. Hero background — più corto su mobile */
  .hero {
    min-height: 38vh;
  }
  /* Rimuove Ken Burns su mobile: scale(1.05) sfuggiva a overflow:hidden su iOS */
  .hero::before {
    animation: hero-reveal 1.4s ease-out both;
  }

  /* 3. Nav — fissa in cima durante tutto lo scroll */
  nav.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 56px;
    overflow: visible;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: nowrap;
  }

  .nav-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 1.2rem;
    flex-shrink: 0;
  }

  .nav-brand-mobile {
    color: var(--text-on-dark);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    flex-shrink: 0;
    transition: background 0.2s;
  }

  .nav-hamburger:hover,
  .nav-hamburger:focus-visible {
    background: rgba(255,255,255,0.12);
    outline: none;
  }

  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-on-dark);
    border-radius: 2px;
    transition:
      transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
      opacity   0.22s ease;
  }

  /* Hamburger → X */
  nav.sticky-nav.nav-open .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  nav.sticky-nav.nav-open .nav-hamburger span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  nav.sticky-nav.nav-open .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Links panel — dropdown assoluto sotto la nav fissa */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--red);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  }

  nav.sticky-nav.nav-open .nav-links {
    max-height: 440px;
  }

  .nav-links a {
    padding: 15px 1.4rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    white-space: normal;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .elet-title {
    font-size: clamp(1.35rem, 5.5vw, 1.7rem);
  }
  .elet-intro {
    font-size: 0.92rem;
  }
}
