/* Delta Informatica - stile istituzionale
   Colori dal marchio: blu Delta #0085b2, blu notte, grigio del logotipo. */
:root {
  --blu: #0085b2;
  --blu-scuro: #006589;
  --blu-notte: #0c3147;
  --blu-chiaro: #e6f3f8;
  --ink: #1b2b36;
  --muted: #576873;
  --line: #d9e4ea;
  --pale: #f3f7f9;
  --radius: 6px;
  --ombra: 0 1px 2px rgba(12,49,71,.06), 0 8px 24px rgba(12,49,71,.07);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blu); text-underline-offset: 3px; }
a:hover { color: var(--blu-scuro); }
button, input, select, textarea { font: inherit; }
h1, h2, h3 { line-height: 1.18; font-weight: 700; margin: 0 0 .55em; letter-spacing: -.015em; color: var(--blu-notte); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid #f0a92e; outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip { position: fixed; top: -80px; left: 16px; padding: 10px 18px; background: #fff; z-index: 100; }
.skip:focus { top: 10px; }

/* Pulsanti e link */
.btn {
  display: inline-block; background: var(--blu); color: #fff; text-decoration: none; font-weight: 600;
  padding: 13px 24px; border-radius: var(--radius); border: 2px solid var(--blu); cursor: pointer;
  line-height: 1.25; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--blu-scuro); border-color: var(--blu-scuro); color: #fff; }
.btn-outline { background: transparent; color: var(--blu); }
.btn-outline:hover { background: var(--blu-chiaro); color: var(--blu-scuro); border-color: var(--blu-scuro); }
.text-link { font-weight: 600; text-decoration: none; display: inline-block; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }
.actions, .simple-links { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 26px; }

/* Etichetta sopra i titoli */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px;
  font-size: .86rem; font-weight: 600; color: var(--blu); letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--blu); border-radius: 2px; }

/* Testata */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 84px; }
.brand { flex: none; }
.brand img { width: 176px; height: auto; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 30px 0; border-bottom: 3px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--blu); border-bottom-color: var(--blu); }
.nav .nav-support { color: var(--muted); }
.nav .btn { padding: 10px 20px; }
.nav-mobile { display: none; margin-left: auto; }
.nav-mobile summary {
  list-style: none; cursor: pointer; padding: 9px 16px; border: 2px solid var(--blu); color: var(--blu);
  border-radius: var(--radius); font-weight: 600; font-size: .95rem;
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--blu); color: #fff; }
.nav-mobile nav {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; padding: 6px 24px 22px;
  box-shadow: 0 16px 30px rgba(12,49,71,.12); border-top: 1px solid var(--line);
}
.nav-mobile nav a { display: block; padding: 13px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav-mobile nav a[aria-current="page"] { color: var(--blu); }
.nav-mobile nav .btn { margin-top: 18px; text-align: center; color: #fff; border-bottom: 2px solid var(--blu); }

/* Fascia d'apertura: home e pagine interne */
.one-hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(120deg, var(--blu-notte) 0%, #0b4d6c 55%, var(--blu) 120%);
}
.one-hero::after, .page-hero::after {
  content: ""; position: absolute; right: -60px; bottom: -70px; width: 520px; height: 430px;
  background: url("/assets/marchio-d.png") no-repeat center / contain; opacity: .07; pointer-events: none;
}
.one-hero h1, .page-hero h1, .one-hero h2, .page-hero h2 { color: #fff; }
.one-hero .eyebrow, .page-hero .eyebrow { color: #9fd9ee; }
.one-hero .eyebrow::before, .page-hero .eyebrow::before { background: #9fd9ee; }
.one-hero .btn, .page-hero .btn, .contact-band .btn { background: #fff; color: var(--blu-notte); border-color: #fff; }
.one-hero .btn:hover, .page-hero .btn:hover, .contact-band .btn:hover { background: var(--blu-chiaro); border-color: var(--blu-chiaro); color: var(--blu-notte); }
.page-hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.page-hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.one-hero { padding: 84px 0 96px; }
.one-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.one-hero h1 em { font-style: normal; color: #9fd9ee; }
.one-lead { font-size: 1.15rem; color: #d3e6ef; max-width: 33em; margin-bottom: 30px; }
.one-scroll { display: inline-block; margin-left: 22px; color: #fff; font-weight: 600; text-decoration: none; }
.one-scroll::after { content: " ↓"; }
.one-scroll:hover { color: #9fd9ee; }
.one-hero-photo { margin: 0; }
.one-hero-photo img { border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0,0,0,.3); border: 6px solid rgba(255,255,255,.95); }
.one-hero-photo figcaption { font-size: .88rem; color: #b8d3df; margin-top: 12px; }

.page-hero { padding: 40px 0 72px; }
.page-hero .wrap { position: relative; z-index: 1; }
.crumb { font-size: .88rem; color: #b8d3df; margin-bottom: 34px; }
.crumb a { color: #fff; }
.crumb span { margin: 0 9px; opacity: .6; }
.page-hero h1 { max-width: 16em; }
.page-lead { font-size: 1.15rem; color: #d3e6ef; max-width: 40em; margin: 0; }

/* Sezioni */
.one-section, .section { padding: 92px 0; }
.one-soft, .section-soft { background: var(--pale); }
.one-section-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.one-section-heading .eyebrow { grid-column: 1 / -1; margin: 0; }
.one-section-heading h2 { margin: 0; }
.one-section-heading p { color: var(--muted); margin: 0; font-size: 1.05rem; }
.one-section-bottom { margin-top: 36px; }

/* Riquadri software in home */
.one-software-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.one-detail {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blu);
  border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--ombra);
}
.one-detail-label { display: block; font-size: .85rem; font-weight: 600; color: var(--blu); margin-bottom: 12px; }
.one-detail h3 { font-size: 1.3rem; }
.one-detail p { color: var(--muted); }

/* Blocchi a due colonne */
.one-split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.one-intro { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.one-split p { color: var(--muted); }
.one-split p.one-intro { color: var(--ink); }
.one-list { list-style: none; padding: 0; margin: 22px 0 26px; }
.one-list li { padding: 11px 0 11px 34px; border-bottom: 1px solid var(--line); position: relative; }
.one-list li::before {
  content: ""; position: absolute; left: 0; top: 14px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blu-chiaro) url("/assets/spunta.svg") center / 20px no-repeat;
}

/* Schema Onda Vision */
.crm-visual {
  background: linear-gradient(150deg, var(--blu-notte), #0b4d6c); color: #fff; border-radius: 10px;
  padding: 28px; box-shadow: 0 24px 50px rgba(12,49,71,.22);
}
.crm-top { font-size: .85rem; color: #9fd9ee; font-weight: 600; margin-bottom: 18px; }
.crm-center { display: flex; gap: 16px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 20px; }
.crm-center b { display: block; font-size: 1.15rem; color: var(--blu-notte); }
.crm-center small { color: var(--muted); }
.icon { flex: none; width: 48px; height: 48px; border-radius: var(--radius); background: var(--blu-chiaro); display: grid; place-items: center; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blu); stroke-width: 1.8; }
.crm-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 18px; }
.crm-bottom span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 12px 8px; text-align: center; font-size: .9rem; }
.crm-visual p { color: #d3e6ef; margin: 0; font-size: .95rem; }
.one-image-caption { font-size: .88rem; color: var(--muted); margin-top: 14px; }

/* Reti e sicurezza in home */
.one-network { align-items: start; }
.one-network-photo { margin: 0; position: sticky; top: 112px; }
.one-network-photo img { border-radius: var(--radius); box-shadow: var(--ombra); }
.one-nis {
  background: var(--pale); border-left: 4px solid var(--blu); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px; margin: 26px 0 0;
}
.one-nis h3 { margin-bottom: .4em; }
.one-nis p { margin-bottom: .6em; }
.one-network .simple-links { margin-top: 18px; }

/* Contatti */
.one-contact { background: var(--pale); padding: 92px 0; }
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: start; }
.contact-method { padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-method h2, .contact-method h3 { font-size: .9rem; font-weight: 600; color: var(--muted); margin: 0 0 4px; letter-spacing: 0; }
.contact-method > a { font-size: 1.3rem; font-weight: 700; color: var(--blu-notte); text-decoration: none; }
.contact-method > a:hover { color: var(--blu); }
.contact-method p { margin: 0 0 6px; }
.form-card { background: #fff; border-radius: 10px; padding: 36px; box-shadow: var(--ombra); border-top: 4px solid var(--blu); }
.form-card h2 { font-size: 1.5rem; }
.form-intro { color: var(--muted); font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; margin-bottom: 16px; }
.field label { font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  border: 1px solid #c3d0d8; border-radius: var(--radius); padding: 11px 13px; background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blu); outline: 3px solid var(--blu-chiaro); outline-offset: 0; }
.field small { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.field-checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 22px; }
.field-checkbox input { margin-top: 5px; accent-color: var(--blu); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { margin: 16px 0 0; padding: 13px 15px; border-radius: var(--radius); font-size: .95rem; background: var(--pale); }
.form-status[data-state="success"] { background: #e6f5ec; color: #1c5a34; }
.form-status[data-state="error"] { background: #fcecea; color: #8b2b22; }
.form-card button[disabled] { opacity: .6; cursor: wait; }

/* Fascia assistenza (home) e fascia contatto (pagine interne) */
.one-assistance, .contact-band { background: var(--blu-notte); color: #d3e6ef; padding: 56px 0; position: relative; overflow: hidden; }
.one-assistance-inner, .contact-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.one-assistance h2, .contact-band h2 { color: #fff; font-size: clamp(1.4rem, 2.3vw, 1.85rem); }
.one-assistance p, .contact-band p { margin: 0; }
.one-assistance .eyebrow { color: #9fd9ee; }
.one-assistance .eyebrow::before { background: #9fd9ee; }
.one-assistance-action { text-align: right; }
.one-assistance-action p { font-size: .9rem; margin-top: 10px; color: #a8c4d1; }
.one-assistance .btn { background: #fff; color: var(--blu-notte); border-color: #fff; }
.one-assistance .btn:hover { background: var(--blu-chiaro); border-color: var(--blu-chiaro); }
.contact-band { background: linear-gradient(120deg, var(--blu-notte), #0b4d6c); }

/* Pagine interne */
.split-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; align-items: start; }
.prose { max-width: 44em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3b4b56; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.4em; }
.prose li { padding: 10px 0 10px 32px; border-bottom: 1px solid var(--line); position: relative; }
.prose li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blu-chiaro) url("/assets/spunta.svg") center / 20px no-repeat;
}
.aside-box {
  position: sticky; top: 112px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blu);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--ombra);
}
.aside-box h2 { font-size: 1.3rem; }
.aside-box p { color: var(--muted); font-size: .97rem; }
.aside-box .btn { display: block; text-align: center; margin-top: 10px; }
.contact-layout .aside-box { position: static; margin-top: 28px; box-shadow: none; background: var(--pale); }
.split-content > .one-erp-visual, .split-content > .crm-visual { position: sticky; top: 112px; }

.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.feature .btn { margin-top: 10px; }
.photo { border-radius: var(--radius); box-shadow: var(--ombra); }
.capabilities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.capabilities article {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--ombra);
  border-top: 4px solid var(--blu);
}
.capabilities p { color: var(--muted); margin: 0; }

.support-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.support-panel .prose { color: var(--muted); }
.support-card {
  background: linear-gradient(150deg, var(--blu-notte), #0b4d6c); color: #d3e6ef; border-radius: 10px; padding: 34px;
  box-shadow: 0 24px 50px rgba(12,49,71,.22);
}
.support-card h2 { color: #fff; }
.support-card .eyebrow { color: #9fd9ee; }
.support-card .eyebrow::before { background: #9fd9ee; }
.support-card .btn { background: #fff; color: var(--blu-notte); border-color: #fff; margin: 6px 0 4px; }
.help-small { font-size: .88rem; color: #a8c4d1; margin: 12px 0 0; }
.steps { counter-reset: passo; list-style: none; padding: 0; margin: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { counter-increment: passo; background: var(--pale); border-radius: var(--radius); padding: 28px; position: relative; }
.steps li::before {
  content: counter(passo); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--blu); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; }

.policy { max-width: 48em; }
.policy h2 { font-size: 1.35rem; }

/* Piede */
/* Il contenuto del footer arriva anche da /assets/footer.html (site.js): solo div, strong, p, ul, li, a, span */
.site-footer { background: #0a2636; color: #a8c4d1; padding: 64px 0 28px; font-size: .94rem; }
.one-footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo {
  display: block; width: 150px; height: 51px; margin-bottom: 18px; border-radius: var(--radius);
  background: #fff url("/assets/logo.png") no-repeat center / 126px auto;
}
.footer-col > strong { display: block; font-size: .95rem; color: #fff; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #d3e6ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { margin: 0 0 6px; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 4px; padding-top: 22px; font-size: .85rem; color: #84a3b2; }

/* Navigazione a sezioni della home: pallini e freccia "sezione successiva" */
.home-section-nav {
  position: fixed; z-index: 30; right: max(18px, env(safe-area-inset-right)); bottom: calc(22px + env(safe-area-inset-bottom));
  display: grid; justify-items: center; gap: 10px;
}
/* I pallini restano nell'HTML perché site.js li usa per calcolare la sezione successiva, ma non si vedono */
.section-dots { display: none; }
.section-next {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--blu); color: #fff; box-shadow: 0 6px 18px rgba(0,133,178,.35); transition: background .15s, transform .15s;
}
.section-next[hidden] { display: none; }
.section-next::before {
  content: ""; width: 12px; height: 12px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.section-next:hover { background: var(--blu-scuro); color: #fff; transform: translateY(2px); }
.home-section-nav a:focus-visible { outline: 3px solid #f0a92e; outline-offset: 2px; }

/* Responsive */
@media (max-width: 1120px) {
  .nav { display: none; }
  .nav-mobile { display: block; }
}
@media (max-width: 900px) {
  :root { font-size: 16px; }
  .header-inner { height: 72px; }
  .brand img { width: 150px; }
  .one-hero { padding: 52px 0 64px; }
  .one-hero-grid, .one-split, .one-section-heading, .contact-layout, .split-content, .feature, .support-panel { grid-template-columns: 1fr; gap: 40px; }
  .one-software-grid, .capabilities, .steps { grid-template-columns: 1fr; }
  .one-section, .section, .one-contact { padding: 64px 0; }
  .one-network-photo, .aside-box, .split-content > .one-erp-visual { position: static; }
  .one-assistance-action { text-align: left; }
  .one-footer-inner { grid-template-columns: 1fr 1fr; }
  .home-section-nav { right: max(14px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .section-next { width: 44px; height: 44px; }
  .one-hero::after, .page-hero::after { width: 300px; height: 250px; right: -60px; bottom: -40px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { padding: 24px; }
  .crm-bottom { grid-template-columns: 1fr; }
  .one-footer-inner { grid-template-columns: 1fr; }
  .one-scroll { margin: 16px 0 0; display: block; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } .btn { transition: none; } }
