/* Vemat – stile ispirato alla brochure VSSpro.
   Nessun font esterno: si usano i caratteri di sistema (niente richieste a server terzi). */
:root {
    --cyan: #55c6d0;        /* ciano del logo: fondi, dettagli, testi su fondo scuro */
    --cyan-text: #1a8fa0;   /* ciano leggibile su fondo bianco */
    --black: #231f20;       /* nero del logo */
    --ink: #1c2530;
    --muted: #5b6876;
    --line: #e2e8ec;
    --soft: #f0f5f7;
    --dark: #0f1a24;
    --dark-2: #142534;
    --grad: linear-gradient(135deg, #1a8fa0 0%, #55c6d0 100%);
    --radius: 14px;
    --shadow: 0 12px 32px rgba(15, 26, 36, .08);
    --font: "Segoe UI", "Noto Sans", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--cyan-text); }
a:hover { color: var(--black); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .55em; color: var(--black); letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.hl { color: var(--cyan-text); }
.lead { font-size: 1.12rem; color: var(--muted); font-weight: 300; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.icon { flex-shrink: 0; }
.mt { margin-top: 40px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 8px; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan-text); margin-bottom: 14px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.45em; border-radius: 10px; font: inherit; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .2s; text-decoration: none; line-height: 1.2; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(26,143,160,.28); }
.btn-primary:hover { color: #fff; filter: brightness(1.06); transform: translateY(-1px); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { color: #fff; background: #000; }
.btn-ghost { border-color: var(--line); color: var(--black); background: #fff; }
.btn-ghost:hover { border-color: var(--black); }
.btn-outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-light:hover { color: #fff; border-color: var(--cyan); background: rgba(85,198,208,.1); }

/* Intestazione */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 4px; background: var(--grad); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { display: block; width: 182px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav > a:not(.btn) { color: var(--ink); font-weight: 500; text-decoration: none; position: relative; padding: 6px 0; }
.main-nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--cyan); transform: scaleX(0); transition: .2s; }
.main-nav > a:not(.btn):hover::after, .main-nav > a.active::after { transform: scaleX(1); }
.main-nav > a.active { color: var(--black); font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; color: var(--black); cursor: pointer; padding: 6px; }

/* Hero scura come la copertina della brochure */
.hero, .page-hero, .section-dark { background: radial-gradient(900px 520px at 85% 0%, rgba(85,198,208,.22) 0%, transparent 60%), linear-gradient(160deg, var(--dark-2) 0%, var(--dark) 70%); color: #d6e2ea; position: relative; overflow: hidden; }
.hero h1, .page-hero h1, .section-dark h2, .section-dark h3 { color: #fff; }
.hero .hl, .page-hero .hl, .section-dark .hl { color: var(--cyan); }
.hero .lead, .page-hero .lead, .section-dark .lead, .section-dark p { color: #b7c6d1; }
.hero .eyebrow, .page-hero .eyebrow, .section-dark .eyebrow { color: var(--cyan); }
.hero::after, .page-hero::after { content: ""; position: absolute; right: -180px; bottom: -260px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(85,198,208,.16); box-shadow: 0 0 0 110px rgba(85,198,208,.025); pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; position: relative; z-index: 1; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0; }
.pills { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid rgba(85,198,208,.45); color: #d6e2ea; border-radius: 999px; padding: 5px 14px; font-size: .88rem; }

/* Monitor della postazione (illustrazione) */
.monitors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mon { display: flex; flex-direction: column; align-items: center; }
.mon .scr { position: relative; width: 100%; aspect-ratio: 16 / 10; background: #1c2a39; border: 6px solid #2a3a4b; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.35); overflow: hidden; }
.mon::after { content: ""; width: 26%; height: 14px; background: #2a3a4b; margin-top: -1px; clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.mon .lbl { order: 3; margin-top: 10px; font-size: .85rem; color: #b7c6d1; font-weight: 600; }
.mon-map .scr::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(85,198,208,.6); border-radius: 4px; }
.pt { position: absolute; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); }
.pt.ok { background: #3ccf7e; }
.pt.alarm { background: #ef4b4b; box-shadow: 0 0 0 0 rgba(239,75,75,.7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(239,75,75,0); } 100% { box-shadow: 0 0 0 0 rgba(239,75,75,0); } }
.mon-live .scr { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 5px; padding: 7px; }
.mon-live i { background: #3a4d61; border-radius: 3px; }
.mon-live i.big { grid-row: span 2; background: linear-gradient(160deg, #3f566c, #2d3f52); }
.mon-list .scr { display: flex; flex-direction: column; gap: 6px; padding: 10px; }
.mon-list i { height: 9%; background: #3a4d61; border-radius: 3px; }
.mon-list i.hd { background: var(--grad); }

/* Sezioni */
.section { padding: 92px 0; }
.section-alt { background: var(--soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.page-hero { padding: 76px 0 80px; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .lead { max-width: 760px; margin-bottom: 0; }
.page-hero.slim { padding: 56px 0; }

.ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--grad); color: #fff; flex-shrink: 0; }
.ic-lg { width: 72px; height: 72px; border-radius: 18px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card .ic, .tile .ic { margin-bottom: 18px; }
.card p, .tile p { color: var(--muted); margin: 0; }
.card.soft, .section-alt .card { border-color: transparent; }
.card.soft { background: var(--soft); }
.card.rule h3 { color: var(--cyan-text); text-transform: uppercase; letter-spacing: .04em; }
.card.dark { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.tile { display: block; text-decoration: none; color: inherit; transition: .25s; }
.tile:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.tile h3 { font-size: 1.05rem; }
.tile p { font-size: .95rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.top { align-items: start; }

.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { color: #fff; background: var(--cyan-text); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; stroke-width: 3; }
.checklist.cols { grid-template-columns: 1fr 1fr; gap: 10px 32px; margin-bottom: 0; }

/* Schema "VSSpro la regia" */
.hub { position: relative; height: 420px; }
.hub-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 190px; height: 190px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 0 26px rgba(85,198,208,.16); }
.hub-core strong { font-size: 1.5rem; }
.hub-core span { font-size: .9rem; opacity: .85; }
.hub-item { position: absolute; background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow); white-space: nowrap; }
.section:not(.section-alt) .hub-item { background: var(--soft); box-shadow: none; }
.h1 { left: 0; top: 4%; } .h2 { right: 0; top: 4%; }
.h3 { left: 0; top: 46%; } .h4 { right: 0; top: 46%; }
.h5 { left: 0; bottom: 4%; } .h6 { right: 0; bottom: 4%; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--soft); border-radius: var(--radius); padding: 26px; }
.section-alt .steps li { background: #fff; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cyan-text); color: #fff; font-weight: 700; margin-bottom: 16px; }

.black-box, .dark-box { background: var(--dark); color: #d6e2ea; border-radius: var(--radius); padding: 32px 36px; }
.black-box h3, .dark-box h3 { color: #fff; }
.black-box p { margin: 0; color: #b7c6d1; }
.dark-box { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.steps-mini { margin: 0; padding-left: 1.2em; display: grid; gap: 14px; color: #b7c6d1; }
.steps-mini strong { display: block; color: #fff; }
.steps-mini li::marker { color: var(--cyan); font-weight: 700; }
.note { margin-top: 32px; padding-left: 18px; border-left: 4px solid var(--cyan); }

/* Pagina servizi */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chips a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px; color: #fff; border: 1px solid rgba(85,198,208,.45); font-size: .92rem; text-decoration: none; }
.chips a:hover { background: rgba(85,198,208,.15); color: #fff; }
.service-list { display: grid; gap: 0; }
.service { display: grid; grid-template-columns: 72px 1fr; gap: 32px; padding: 44px 0; border-bottom: 1px solid var(--line); }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; padding-bottom: 0; }
.service h2 { font-size: 1.7rem; }

/* Pagina VSSpro */
.vss-icon { background: #fff; border-radius: 22px; padding: 14px; width: 104px; height: auto; margin-bottom: 26px; }
.vss-title { font-size: clamp(3rem, 7vw, 4.6rem); margin-bottom: .2em; }
.vss-title span { color: var(--cyan); }
.subnav { position: sticky; top: 80px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 14px 0; white-space: nowrap; color: var(--muted); font-weight: 600; font-size: .94rem; text-decoration: none; }
.subnav a:hover { color: var(--cyan-text); }
.contact-card { background: #fff; color: var(--muted); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 6px; max-width: 440px; }
.contact-card img { width: 200px; margin-bottom: 16px; }
.contact-card strong { color: var(--black); }
.contact-card > strong { font-size: 1.15rem; margin-bottom: 4px; }

/* Chi siamo */
.lab-card { background: var(--soft); border-radius: 18px; padding: 36px; }
.lab-card .ic { margin-bottom: 20px; }
.lab-card p { color: var(--muted); }

.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--soft); }

/* CTA e piè di pagina */
.cta-band { background: var(--soft); padding: 56px 0; border-top: 1px solid var(--line); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; color: var(--muted); }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline-light { color: var(--black); border-color: var(--line); background: #fff; }
.cta-band .btn-outline-light:hover { border-color: var(--black); }
.site-footer { background: var(--dark); color: #b7c6d1; padding-top: 64px; font-size: .95rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #b7c6d1; text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.logo-plate { display: inline-block; background: #fff; border-radius: 12px; padding: 12px 18px; }
.logo-plate img { display: block; width: 170px; }
.footer-claim { margin-top: 18px; max-width: 340px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--cyan); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; padding-bottom: 26px; font-size: .84rem; color: #8597a6; }
.footer-legal p { margin: 0 0 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 36px; box-shadow: var(--shadow); }
.form-title { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; font-weight: 600; font-size: .92rem; color: var(--black); }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; transition: .15s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-text); box-shadow: 0 0 0 3px rgba(85,198,208,.25); }
.field textarea { resize: vertical; }
.has-error input, .has-error select, .has-error textarea { border-color: #d64545; }
.field-error { color: #c43c3c; font-size: .85rem; font-weight: 500; display: block; }
.check + .field-error { margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--cyan-text); flex-shrink: 0; }
form .btn-block { margin-top: 22px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; margin-bottom: 20px; }
.alert p { margin: 4px 0 0; }
.alert-success { background: #e9f8f9; color: #0f5f6b; }
.alert-error { background: #fdeeee; color: #a33030; }
.contact-info { display: grid; gap: 14px; }
.info-item { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius); background: var(--soft); align-items: flex-start; }
.info-item strong { display: block; color: var(--black); }
.info-item a { color: var(--ink); text-decoration: none; }
.info-item a:hover { color: var(--cyan-text); }
.map { border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); min-height: 420px; display: grid; }
.map iframe { width: 100%; height: 440px; border: 0; display: block; }
.map-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; gap: 8px; background: repeating-linear-gradient(45deg, #fff 0 22px, #f6f9fa 22px 44px); }
.map-placeholder .ic { margin-bottom: 8px; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 8px 0 14px; }
.map-placeholder small { color: var(--muted); max-width: 520px; }

/* Comparsa durante lo scorrimento */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
    .pt.alarm { animation: none; }
}

/* Schermi più piccoli */
@media (max-width: 1060px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .main-nav { gap: 20px; }
}
@media (max-width: 980px) {
    .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-inner { padding-top: 64px; padding-bottom: 72px; }
    .grid-3, .steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 80px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 22px; display: none; box-shadow: var(--shadow); }
    .main-nav.open { display: flex; }
    .main-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .main-nav > a:not(.btn)::after { display: none; }
    .main-nav .btn { margin-top: 16px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .header-inner { height: 66px; }
    .main-nav { top: 70px; padding: 8px 16px 20px; }
    .logo img { width: 150px; }
    .grid-2, .grid-3, .grid-4, .steps, .form-row, .checklist.cols, .footer-grid { grid-template-columns: 1fr; }
    .service { grid-template-columns: 1fr; gap: 16px; padding: 36px 0; }
    .ic-lg { width: 60px; height: 60px; }
    .monitors { gap: 8px; }
    .mon .scr { border-width: 4px; }
    .mon .lbl { font-size: .75rem; }
    .hub { height: auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
    .hub-core { position: static; transform: none; width: 150px; height: 150px; margin: 10px auto 26px; flex-basis: 100%; max-width: 150px; }
    .hub-item { position: static; }
    .subnav { top: 70px; }
    .form-card { padding: 22px; }
    .black-box, .dark-box { padding: 24px; }
    .map iframe { height: 360px; }
}
