/* Personalizzazione: colori, tipografia e spaziatura del brand. */
:root {
  --navy: #0a0f1f; --blue: #2d7ff9; --blue-accessible: #1961d0;
  --white: #fff; --gray: #f5f7fa; --cyan: #00e0ff;
  --text: #172238; --muted: #586579; --border: #dfe5ee;
  --radius: 12px; --shadow: 0 12px 32px rgb(10 15 31 / 5%);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-small: .875rem; --text-base: 1rem; --text-large: 1.125rem;
  --heading-1: clamp(2.65rem, 6vw, 4.8rem); --heading-2: clamp(2rem, 3.7vw, 3rem);
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem;
  --space-4: 2rem; --space-5: 3rem; --space-6: 4rem;
  --section-space: 5rem; --container: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7rem; }
body { margin: 0; font: var(--text-base)/1.7 var(--font); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { color: var(--navy); line-height: 1.16; }
h1, h2 { letter-spacing: -.045em; font-weight: 700; }
h1 { font-size: var(--heading-1); } h2 { font-size: var(--heading-2); }
h3 { font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; } button { cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { color: var(--navy); background: #a8efff; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
section[id] { scroll-margin-top: 1rem; }
.container { width: min(var(--container), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: var(--section-space); } .section-muted { background: var(--gray); }
.svg-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .75rem 1rem; background: var(--white); color: var(--navy); border-radius: var(--radius); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .8rem 1.4rem; border: 1px solid transparent; border-radius: 8px; font-size: var(--text-small); font-weight: 600; line-height: 1.5; text-align: center; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue-accessible); color: var(--white); } .button-primary:hover { background: #124fae; }
.button-outline { color: var(--white); border-color: #687289; background: transparent; } .button-outline:hover { background: rgb(255 255 255 / 8%); border-color: var(--white); }
.button-light { background: var(--white); color: var(--navy); } .button-light:hover { background: #e7f4ff; }
.button:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.button-group { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.eyebrow { margin-bottom: var(--space-2); color: var(--blue-accessible); font-size: var(--text-small); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* Navigazione */
.site-header { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; min-height: 80px; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; color: var(--navy); font-size: 1.7rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; }
.brand-logo { display: block; width: 170px; height: auto; }
.brand-logo-simple { width: 155px; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; margin-right: .65rem; border-radius: 8px; color: var(--white); background: var(--blue-accessible); }
.brand-mark .icon { width: 25px; height: 25px; stroke-width: 2.5; } .brand-dot { color: var(--blue-accessible); }
.navigation { display: flex; flex-direction: column; width: 100%; padding-top: 1rem; gap: .25rem; }
.navigation > a { padding: .65rem .5rem; font-size: var(--text-small); font-weight: 500; }
.navigation > a:not(.button):hover { color: var(--blue-accessible); }
.navigation .nav-cta { margin-top: .5rem; padding-inline: 1.2rem; }
.menu-toggle { display: none; place-content: center; gap: 6px; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 8px; background: var(--white); color: var(--navy); }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.site-header.menu-ready .menu-toggle { display: grid; }
.site-header.menu-ready .navigation { display: none; } .site-header.menu-ready .navigation.is-open { display: flex; }

/* Hero e schema astratto */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(ellipse at 90% 40%, rgb(45 127 249 / 17%), transparent 52%), var(--navy); }
.hero-grid { display: grid; gap: var(--space-4); padding-block: 4rem 2.5rem; }
.hero-copy { min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--space-3); padding: .35rem .85rem; border: 1px solid #34435e; border-radius: 100px; color: #d8e5f8; background: rgb(255 255 255 / 4%); font-size: var(--text-small); }
.badge span { color: var(--cyan); } .hero h1 { color: var(--white); } .hero h1 > span { color: var(--cyan); }
.hero-copy > p { max-width: 530px; margin-top: var(--space-3); color: #b7c3d7; font-size: var(--text-large); }
.hero .button-group { margin-top: var(--space-4); } .hero-copy .hero-note { font-size: var(--text-small); margin-top: var(--space-3); }
.hero-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 2rem; padding-block: 1.25rem; border-top: 1px solid #293247; color: #a9b7cb; font-size: var(--text-small); }
.ai-visual { position: relative; min-width: 0; height: 350px; isolation: isolate; }
.visual-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(#26354e 1px, transparent 1px), linear-gradient(90deg, #26354e 1px, transparent 1px); background-size: 38px 38px; mask-image: radial-gradient(ellipse, #000 5%, transparent 70%); opacity: .45; }
.orbit { position: absolute; top: 48%; left: 50%; width: 260px; height: 260px; border: 1px solid rgb(91 152 255 / 30%); border-radius: 50%; transform: translate(-50%, -50%); }
.orbit-two { width: 190px; height: 190px; border-style: dashed; border-color: #354a70; }
.orbit-three { width: 320px; height: 160px; transform: translate(-50%, -50%) rotate(-35deg); border-color: rgb(0 224 255 / 35%); }
.ai-core { position: absolute; top: 48%; left: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; align-content: center; gap: .8rem; width: 120px; height: 120px; border: 1px solid #5782bb; border-radius: 24px; background: linear-gradient(135deg, #254e83, #121e38 75%); box-shadow: 0 0 70px rgb(45 127 249 / 25%), inset 0 1px 0 rgb(255 255 255 / 20%); }
.ai-core .icon { width: 44px; height: 44px; color: var(--cyan); } .ai-core span { font-size: .75rem; letter-spacing: .16em; color: #d7e7ff; }
.visual-label { position: absolute; display: flex; align-items: center; gap: .6rem; padding: .65rem .85rem; border: 1px solid #344764; border-radius: 10px; background: #142039; color: #e4ecf9; font-size: var(--text-small); box-shadow: 0 8px 30px rgb(0 0 0 / 15%); }
.visual-label .icon { width: 19px; height: 19px; color: #7fbdff; }
.label-data { top: 13%; left: 7%; } .label-process { top: 42%; right: 0; } .label-team { bottom: 16%; left: 12%; }
.visual-caption { position: absolute; bottom: 0; width: 100%; text-align: center; color: #94a7c2; font-size: .75rem; letter-spacing: .16em; }

/* Servizi */
.trust-strip { border-bottom: 1px solid var(--border); background: var(--gray); padding-block: 1.8rem; }
.trust-inner { display: flex; flex-direction: column; gap: var(--space-3); } .trust-inner > p { color: var(--muted); font-size: var(--text-small); }
.team-list { display: flex; flex-wrap: wrap; gap: 1rem 2rem; list-style: none; padding: 0; margin: 0; color: var(--muted); font-weight: 700; letter-spacing: -.025em; }
.section-heading { margin-bottom: var(--space-5); }
.section-heading > p:last-child:not(.eyebrow) { max-width: 570px; margin-top: var(--space-3); color: var(--muted); }
.split-heading { display: grid; gap: var(--space-3); } .split-heading > p { color: var(--muted); max-width: 410px; }
.services-grid { display: grid; gap: var(--space-3); }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.icon-box { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-4); border-radius: 10px; background: #edf4ff; color: var(--blue-accessible); }
.card-number { position: absolute; top: 2rem; right: 2rem; font-size: var(--text-small); color: var(--muted); }
.service-card h3 { margin-bottom: var(--space-2); } .service-card p { margin-bottom: var(--space-3); color: var(--muted); }
.card-tag { margin-top: auto; padding-top: var(--space-3); width: 100%; border-top: 1px solid var(--border); color: var(--blue-accessible); font-size: var(--text-small); font-weight: 500; }

/* Metodo e about */
.steps { display: grid; gap: var(--space-5); list-style: none; margin: 0; padding: 0; }
.step-number { display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-3); border: 1px solid #c7d8f3; border-radius: 50%; color: var(--blue-accessible); background: var(--white); font-weight: 600; }
.steps h3 { margin-bottom: .8rem; } .steps p { color: var(--muted); max-width: 350px; }
.about-grid { display: grid; gap: var(--space-5); align-items: center; } .about-copy { color: var(--muted); margin-top: var(--space-3); }
.benefits { list-style: none; padding: 0; margin: var(--space-4) 0 0; display: grid; gap: .8rem; }
.benefits li { display: flex; align-items: center; gap: .75rem; } .benefits .icon { color: var(--blue-accessible); width: 20px; height: 20px; }
.approach-panel { padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); background: var(--gray); }
.panel-heading { font-size: var(--text-small); font-weight: 600; }
.commitments { display: grid; gap: var(--space-3); margin: var(--space-3) 0; padding: 0; list-style: none; }
.commitments li { display: grid; gap: .25rem; padding-bottom: var(--space-3); border-bottom: 1px solid var(--border); }
.commitments strong { color: var(--navy); }
.commitments span, .panel-note { color: var(--muted); font-size: var(--text-small); }
.transparency-panel { display: grid; gap: var(--space-3); align-items: center; }
.transparency-panel > p { max-width: 600px; color: var(--muted); }

/* CTA e contatti */
.cta-section { padding-top: var(--section-space); }
.cta-panel { display: flex; align-items: flex-start; justify-content: space-between; flex-direction: column; gap: var(--space-4); padding: 2.5rem 1.5rem; border-radius: var(--radius); background: radial-gradient(ellipse at top right, #19427a, transparent 65%), var(--navy); color: var(--white); }
.cta-panel .eyebrow { color: var(--cyan); } .cta-panel h2 { color: var(--white); }
.cta-panel p:last-child { margin-top: var(--space-2); color: #becce1; } .cta-panel .button { flex-shrink: 0; }
.contact-grid { display: grid; gap: var(--space-5); }
.contact-grid > div > p:not(.eyebrow) { margin-top: var(--space-3); color: var(--muted); max-width: 390px; }
.contact-email { margin-top: var(--space-4); } .contact-email span { display: block; color: var(--muted); font-size: var(--text-small); }
.contact-email a { color: var(--blue-accessible); font-size: var(--text-large); font-weight: 600; overflow-wrap: anywhere; }
.contact-email a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: var(--space-3); min-width: 0; } .form-row { display: grid; gap: var(--space-3); }
.field { display: grid; align-content: start; gap: .5rem; min-width: 0; } label { font-size: var(--text-small); font-weight: 600; } .optional { color: var(--muted); font-weight: 400; }
input, textarea { display: block; width: 100%; min-width: 0; padding: .8rem 1rem; border: 1px solid #bcc7d6; border-radius: 8px; color: var(--text); background: var(--white); }
input::placeholder, textarea::placeholder { color: #69758a; opacity: 1; } input:focus, textarea:focus { border-color: var(--blue-accessible); }
textarea { resize: vertical; min-height: 140px; } .form-note { font-size: var(--text-small); color: var(--muted); }
.contact-form > .button { justify-self: start; } .form-status { font-size: var(--text-small); color: #165837; } .form-status:empty { display: none; }
.form-status:not(:empty) { padding: 1rem; border: 1px solid #a8d3ba; border-radius: 8px; background: #f0faf4; }

/* Footer */
.site-footer { padding-block: var(--space-5) var(--space-3); border-top: 1px solid var(--border); background: var(--gray); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-4); }
.footer-top p { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-small); } .footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2); padding-top: var(--space-3); border-top: 1px solid var(--border); font-size: var(--text-small); color: var(--muted); }

/* Tablet */
@media (min-width: 768px) {
  :root { --section-space: 6rem; }
  .container { width: min(var(--container), calc(100% - 4rem)); }
  .hero-grid { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: 5rem; }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 4.8rem); } .ai-visual { height: 420px; }
  .trust-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-4); } .team-list { justify-content: flex-end; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); } .steps li { position: relative; }
  .steps li:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: 72px; right: 0; height: 1px; background: #ccd8e8; }
  .about-grid, .contact-grid { grid-template-columns: 1.05fr 1fr; } .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-panel { flex-direction: row; align-items: center; padding: var(--space-5); }
  .transparency-panel { grid-template-columns: 1.2fr 1fr; gap: var(--space-5); }
}

/* Desktop */
@media (min-width: 1024px) {
  :root { --section-space: 7rem; }
  .header-inner { flex-wrap: nowrap; } .site-header.menu-ready .menu-toggle { display: none; }
  .site-header .navigation, .site-header.menu-ready .navigation { display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; gap: 1.6rem; }
  .navigation .nav-cta { margin: 0 0 0 .5rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: var(--space-5); padding-block: 6rem; }
  .ai-visual { height: 440px; } .orbit-one { width: 340px; height: 340px; } .orbit-two { width: 245px; height: 245px; } .orbit-three { width: 430px; height: 220px; }
  .ai-core { width: 150px; height: 150px; border-radius: 28px; } .ai-core .icon { width: 58px; height: 58px; }
  .label-data { left: 10%; top: 14%; } .label-process { right: 0; top: 43%; } .label-team { left: 16%; bottom: 15%; }
  .split-heading { grid-template-columns: 1.3fr 1fr; align-items: end; gap: var(--space-6); }
  .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } .service-card { padding: 1.6rem; }
  .card-number { top: 1.6rem; right: 1.6rem; } .service-card h3 { min-height: 3.3rem; }
  .about-grid, .contact-grid { gap: 6rem; } .approach-panel { padding: var(--space-5); }
  .cta-panel { padding: 3.5rem 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
