/* I.S.I.Com Impianti — foglio di stile del sito (nessuna risorsa esterna: font e immagini sono sul sito) */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope-latin.woff2') format('woff2');
    font-weight: 200 800;
    font-display: swap;
}
:root {
    --navy: #0a1929;
    --navy-2: #0f2740;
    --navy-3: #133457;
    --ink: #0f172a;
    --muted: #556479;
    --line: #e2e8f0;
    --bg: #f5f8fb;
    --white: #fff;
    --accent: #0891b2;
    --accent-2: #22d3ee;
    --accent-soft: #e0f7fa;
    --radius: 18px;
    --shadow: 0 18px 40px -18px rgba(10, 25, 41, .28);
    --shadow-sm: 0 4px 14px -6px rgba(10, 25, 41, .18);
    --wrap: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--white); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, .prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin: 0 auto; }
.skip { position: absolute; left: -9999px; top: 0; background: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }
.ph { border: 1.5px dashed #f59e0b; background: #fffbeb; color: #92400e; border-radius: 8px; padding: 1px 7px; font-size: .85em; white-space: nowrap; }
.draft-bar { background: #fef3c7; color: #92400e; font-size: 13px; text-align: center; padding: 6px 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(10, 25, 41, .4); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--navy); flex-shrink: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--navy-3), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 15px; letter-spacing: 0; box-shadow: 0 6px 14px -6px rgba(8, 145, 178, .7); }
.logo img { display: block; height: 52px; width: auto; }
.site-footer .logo img { height: 56px; }
@media (max-width: 600px) { .logo img { height: 44px; } }
.logo small { display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); letter-spacing: .14em; margin-top: -3px; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu > a, .menu .dd > button { font: inherit; font-weight: 650; font-size: 15px; color: var(--ink); padding: 9px 13px; border-radius: 10px; background: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.menu > a:hover, .menu .dd > button:hover, .menu a.current { color: var(--accent); background: var(--accent-soft); }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: -20px; width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel, .dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; }
.dd-panel a:hover { background: var(--bg); }
.dd-panel a strong { display: block; font-size: 14.5px; color: var(--navy); }
.dd-panel a span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.dd-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: flex; align-items: center; gap: 8px; font-weight: 750; color: var(--navy); font-size: 15px; white-space: nowrap; }
.nav-phone svg { color: var(--accent); }
.burger { display: none; margin-left: auto; background: none; border: 0; color: var(--navy); cursor: pointer; padding: 8px; }

/* ---------- Pulsanti ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 999px; font: inherit; font-weight: 750; font-size: 16px; border: 0; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), #06b6d4); color: #fff; box-shadow: 0 12px 24px -12px rgba(8, 145, 178, .9); }
.btn-primary:hover { box-shadow: 0 16px 28px -12px rgba(8, 145, 178, 1); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(10, 25, 41, .95) 0%, rgba(10, 25, 41, .82) 38%, rgba(10, 25, 41, .3) 68%, rgba(10, 25, 41, .05) 100%); }
.hero .wrap { position: relative; z-index: 2; padding: 120px 0 110px; }
.hero-home .wrap { padding: 150px 0 130px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); padding: 7px 15px; border-radius: 999px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(34, 211, 238, .2); }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.06; letter-spacing: -.035em; margin: 22px 0 20px; max-width: 760px; font-weight: 800; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent-2), #a5f3fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(255, 255, 255, .82); max-width: 620px; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 42px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.trust li { list-style: none; display: flex; align-items: center; gap: 9px; }
.trust svg { color: var(--accent-2); flex-shrink: 0; }
.crumbs { font-size: 14px; color: rgba(255, 255, 255, .7); margin-bottom: 6px; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Sezioni ---------- */
section { padding: 100px 0; }
.section-alt { background: var(--bg); }
.section-dark { background: var(--navy); color: #fff; }
.head { max-width: 720px; margin-bottom: 48px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--accent); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.section-dark .kicker { color: var(--accent-2); }
h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.12; letter-spacing: -.03em; margin: 10px 0 14px; color: var(--navy); font-weight: 800; }
.section-dark h2 { color: #fff; }
.head p { color: var(--muted); font-size: 18.5px; }
.section-dark .head p, .section-dark p { color: rgba(255, 255, 255, .78); }
h3 { letter-spacing: -.015em; }

/* Servizi */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; flex: 1; }
.card .more { margin-top: 14px; font-weight: 750; font-size: 14.5px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.card .more svg { transition: transform .2s; }
.card:hover .more svg { transform: translateX(4px); }
.card-ico { position: absolute; top: 14px; left: 14px; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .95); color: var(--accent); display: grid; place-items: center; box-shadow: var(--shadow-sm); z-index: 1; }

/* Vantaggi */
.benefits { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; margin-top: 10px; }
.benefit { display: flex; gap: 14px; }
.benefit .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.benefit h3 { font-size: 17px; color: var(--navy); margin-bottom: 3px; }
.benefit p { font-size: 15px; color: var(--muted); }
.photo-stack { position: relative; }
.photo-stack .main { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 5; }
.photo-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.photo-badge { position: absolute; left: -24px; bottom: 34px; background: #fff; border-radius: 16px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 300px; }
.photo-badge .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--navy); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.photo-badge strong { display: block; color: var(--navy); font-size: 15px; }
.photo-badge span { font-size: 13px; color: var(--muted); }

/* Settori */
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sector { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 280px; color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.sector img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s; }
.sector::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 25, 41, 0) 25%, rgba(10, 25, 41, .9) 100%); }
.sector:hover img { transform: scale(1.06); }
.sector-body { padding: 22px 24px; }
.sector h3 { font-size: 21px; margin-bottom: 4px; }
.sector p { font-size: 14.5px; color: rgba(255, 255, 255, .85); line-height: 1.5; }

/* Passi */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-size: 46px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }
.section-dark .step { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.section-dark .step h3 { color: #fff; }

/* Assistenza */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.checks { list-style: none; display: grid; gap: 13px; margin: 24px 0 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.section-dark .checks svg { color: var(--accent-2); }
.rounded-photo { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.rounded-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.way .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.way h3 { font-size: 18px; color: var(--navy); margin-bottom: 6px; }
.way p { font-size: 15px; color: var(--muted); margin-bottom: 14px; }

/* Banda di invito */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 56px 56px; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 60%, #0e5f7a 100%); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .35), transparent 65%); }
.cta-band h2 { color: #fff; margin: 0 0 8px; font-size: clamp(26px, 3vw, 38px); }
.cta-band p { color: rgba(255, 255, 255, .8); font-size: 18px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* Pagine servizio */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font-size: 17.5px; color: var(--navy); margin-bottom: 6px; }
.feature p { font-size: 15px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 650; font-size: 15px; color: var(--navy); }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* FAQ */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 750; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 500; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* Contatti e modulo */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; align-items: start; }
.contact-card { background: var(--navy); color: #fff; border-radius: 24px; padding: 34px; position: sticky; top: 100px; }
.contact-card h3 { font-size: 22px; margin-bottom: 6px; }
.contact-card > p { color: rgba(255, 255, 255, .75); font-size: 15px; margin-bottom: 18px; }
.c-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.c-item .ico { width: 42px; height: 42px; border-radius: 12px; background: rgba(34, 211, 238, .12); color: var(--accent-2); display: grid; place-items: center; flex-shrink: 0; }
.c-item small { display: block; color: rgba(255, 255, 255, .6); font-size: 13px; }
.c-item a:hover { color: var(--accent-2); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow-sm); }
form.lead { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.lead .full { grid-column: 1 / -1; }
label { font-size: 13.5px; font-weight: 750; color: var(--navy); display: block; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--line); font: inherit; font-size: 15.5px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.req-type { display: flex; gap: 10px; flex-wrap: wrap; }
.req-type label { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 15px; margin: 0; }
.req-type input { width: auto; }
.req-type label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: #0e7490; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.check input { width: auto; margin-top: 4px; }
.hp { position: absolute; left: -9999px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: #0e7490; font-weight: 650; }
.form-msg.err { background: #fef2f2; color: #b91c1c; }
.form-note { font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }

/* Testi (privacy, note) */
.prose { max-width: 820px; }
.prose h2 { font-size: 26px; margin-top: 34px; }
.prose p, .prose li { color: var(--muted); margin-bottom: 12px; }
.prose ul { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer { background: #06111d; color: rgba(255, 255, 255, .72); padding: 70px 0 34px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 34px; margin-bottom: 44px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo small { color: rgba(255, 255, 255, .5); }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 15px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a:hover { color: var(--accent-2); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; }

/* Barra in basso su telefono */
.mobile-bar { display: none; }

/* Animazioni */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
    .card:hover, .btn:hover { transform: none; }
}

/* ---------- Schermi medi e piccoli ---------- */
@media (max-width: 1080px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
    .nav-phone { display: none; }
    .benefits, .split, .contact { grid-template-columns: 1fr; gap: 40px; }
    .photo-stack { max-width: 520px; }
    .photo-badge { left: 16px; }
    .contact-card { position: static; }
    .foot { grid-template-columns: 1fr 1fr; }
    .feature-grid, .related, .ways { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .burger { display: block; }
    .nav-cta .btn { display: none; }
    .menu { display: none; position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 14px 20px 22px; gap: 2px; box-shadow: var(--shadow); max-height: calc(100vh - 76px); overflow-y: auto; }
    .menu.open { display: flex; }
    .menu > a, .menu .dd > button { padding: 13px 10px; font-size: 16.5px; width: 100%; justify-content: space-between; }
    .dd-panel { position: static; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px 6px; opacity: 1; visibility: visible; transform: none; display: none; }
    .dd.open .dd-panel { display: grid; }
    .sectors { grid-template-columns: 1fr 1fr; }
    .cta-band { grid-template-columns: 1fr; padding: 40px 30px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; padding-bottom: 68px; }
    section { padding: 70px 0; }
    .hero .wrap, .hero-home .wrap { padding: 80px 0 70px; }
    .hero::before { background: linear-gradient(180deg, rgba(10, 25, 41, .78) 0%, rgba(10, 25, 41, .92) 100%); }
    .hero-cta .btn { width: 100%; }
    .cards, .sectors, .steps, .feature-grid, .related, .ways, .benefit-list, form.lead, .foot { grid-template-columns: 1fr; }
    .sector { min-height: 220px; }
    .form-card, .contact-card { padding: 24px; }
    .photo-badge { position: static; margin-top: -40px; margin-left: 16px; position: relative; }
    .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); box-shadow: 0 -6px 20px -10px rgba(10, 25, 41, .35); }
    .mobile-bar .btn { padding: 12px 10px; font-size: 15px; }
}

/* --- Aggiunte IsiDesk: voce attiva, Area clienti, galleria lavori --- */
.menu a[aria-current="page"], .menu .dd > button[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.menu > a.menu-area { gap: 6px; box-shadow: inset 0 0 0 1.5px var(--accent-soft); }
.menu > a.menu-area:hover { box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 1280px) and (min-width: 901px) { .nav-phone { display: none; } .menu > a, .menu .dd > button { padding: 9px 10px; font-size: 14.5px; } }
/* --- Area clienti --- */
.ac-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; padding: 46px 0 36px; }
.ac-band h1 { color: #fff; font-size: clamp(30px, 4vw, 44px); margin: 6px 0 8px; }
.ac-band .crumbs, .ac-band .crumbs a { color: rgba(255, 255, 255, .75); }
.ac-band-lead { color: rgba(255, 255, 255, .85); font-size: 17px; max-width: 640px; margin: 0; }
.ac-section { padding: 34px 0 60px; background: var(--bg); }
.ac-root { display: grid; gap: 18px; }
.ac-help { margin-top: 26px; color: var(--muted); font-size: 14px; }
.ac-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 12px; min-width: 0; }
.ac-card h2 { font-size: 24px; margin: 0; }
.ac-card h3 { font-size: 18px; margin: 0; }
.ac-muted { color: var(--muted); margin: 0; }
.ac-small { font-size: 13px; }
.ac-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ac-side .checks { margin: 0; }
.ac-form { display: grid; gap: 14px; }
.ac-form label { display: grid; gap: 6px; font-weight: 650; font-size: 14px; color: var(--ink); }
.ac-form input, .ac-form textarea, .ac-form select, .ac-card select { font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.ac-card select { width: auto; }
.ac-form input:focus, .ac-form textarea:focus, .ac-form select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.ac-msg { font-size: 14px; border-radius: 10px; }
.ac-msg.err { background: #fde8e8; color: #991b1b; padding: 9px 12px; }
.ac-msg.ok { background: #e3f6ec; color: #166534; padding: 9px 12px; }
.ac-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-top-act { display: flex; gap: 8px; }
.ac-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.ac-tabs button { border: 0; background: none; font: inherit; font-weight: 650; color: var(--muted); padding: 11px 14px; border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; }
.ac-tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.ac-main { display: grid; gap: 18px; }
.ac-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ac-bar { height: 12px; background: #e8eef4; border-radius: 99px; overflow: hidden; }
.ac-bar i { display: block; height: 100%; border-radius: 99px; }
.ac-c-ok { background: #16a34a; } .ac-c-warn { background: #d97706; } .ac-c-bad { background: #dc2626; }
.ac-t-ok { color: #16a34a; } .ac-t-warn { color: #b45309; } .ac-t-bad { color: #dc2626; }
.ac-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ac-nums div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.ac-nums span { display: block; font-size: 12px; color: var(--muted); }
.ac-nums b { font-size: 21px; }
.ac-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac-kpi { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.ac-kpi:hover { border-color: var(--accent); }
.ac-kpi span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ac-kpi b { display: block; font-size: 28px; margin: 2px 0; }
.ac-kpi small { color: var(--muted); }
.ac-table { overflow-x: auto; }
.ac-table table { width: 100%; border-collapse: collapse; }
.ac-table th { text-align: left; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ac-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.ac-table tr:last-child td { border-bottom: 0; }
.ac-table .num { text-align: right; white-space: nowrap; }
.ac-table .nw { white-space: nowrap; }
.ac-click { cursor: pointer; }
.ac-click:hover td { background: var(--bg); }
.ac-sub { font-size: 12px; color: var(--muted); }
.pre { white-space: pre-line; }
.ac-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #eef2f7; color: #334155; white-space: nowrap; }
.ac-b-info { background: #e0f2fe; color: #075985; } .ac-b-warn { background: #fef3c7; color: #92400e; } .ac-b-ok { background: #dcfce7; color: #166534; } .ac-b-bad { background: #fee2e2; color: #991b1b; }
.ac-frame { width: 100%; min-height: 70vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.ac-modal { position: fixed; inset: 0; background: rgba(10, 25, 41, .55); display: grid; place-items: center; padding: 16px; z-index: 200; }
.ac-modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; padding: 24px; position: relative; display: grid; gap: 12px; }
.ac-modal-box h2 { font-size: 21px; margin: 0; padding-right: 30px; }
.ac-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.ac-thread { display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; }
.ac-m { border-radius: 12px; padding: 10px 14px; max-width: 88%; }
.ac-m.c { background: var(--accent-soft); justify-self: end; }
.ac-m.s { background: var(--bg); justify-self: start; }
.ac-m header { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
@media (max-width: 900px) { .ac-login { grid-template-columns: 1fr; } .ac-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ac-hide-s { display: none; } .ac-nums b { font-size: 17px; } .ac-m { max-width: 100%; } .ac-card { padding: 16px; } }

/* Fasi del progetto "dalla A alla Z" (pagine servizio) */
.fasi { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
.fase { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); }
.fase-n { font-size: 30px; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--accent-2); padding-top: 2px; }
.fase h3 { color: #fff; font-size: 18px; margin-bottom: 4px; }
.section-dark .fase p { color: rgba(255, 255, 255, .75); font-size: 15.5px; }
@media (max-width: 860px) { .fasi { grid-template-columns: 1fr; } .fase { grid-template-columns: 44px 1fr; padding: 16px 18px; } .fase-n { font-size: 24px; } }

/* Lavori realizzati: numeri chiave e caso (sfida, soluzione, risultato) */
.caso-numeri { background: var(--navy-2); padding: 34px 0; }
.caso-numeri ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.caso-numeri li { border-left: 3px solid var(--accent-2); padding: 4px 0 4px 16px; }
.caso-numeri strong { display: block; font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; line-height: 1.1; color: #fff; letter-spacing: -.02em; }
.caso-numeri span { display: block; font-size: 14.5px; color: rgba(255, 255, 255, .72); margin-top: 4px; }
.caso-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.caso-blocco { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.caso-blocco .ico { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.caso-blocco h2 { font-size: 21px; margin: 0 0 10px; color: var(--navy); }
.caso-blocco p { color: var(--muted); font-size: 16px; margin: 0 0 10px; }
.caso-blocco ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 15.5px; }
.caso-blocco li { margin-bottom: 4px; }
.caso-pregio { display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; margin-top: 26px; padding: 30px 32px; border-radius: var(--radius);
    background: linear-gradient(120deg, var(--navy) 0%, var(--navy-3) 70%, #0e5f7a 100%); color: #fff; }
.caso-pregio .ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: rgba(34, 211, 238, .15); color: var(--accent-2); }
.caso-pregio .kicker { color: var(--accent-2); }
.caso-pregio h2 { color: #fff; font-size: clamp(22px, 2.4vw, 28px); margin: 6px 0 10px; }
.caso-pregio p { color: rgba(255, 255, 255, .82); font-size: 16.5px; margin: 0 0 8px; max-width: 820px; }
@media (max-width: 640px) { .caso-pregio { grid-template-columns: 1fr; padding: 24px 22px; } }
.caso-galleria { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
/* disposizione secondo il numero di foto: 4 = 2x2, 5 = 2 grandi + 3, 6 = 3+3 */
@media (min-width: 861px) {
    .caso-galleria:has(> figure:nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); }
    .caso-galleria:has(> figure:nth-child(4):last-child) img { height: 380px; }
    .caso-galleria:has(> figure:nth-child(5):last-child) { grid-template-columns: repeat(6, 1fr); }
    .caso-galleria:has(> figure:nth-child(5):last-child) figure { grid-column: span 2; }
    .caso-galleria:has(> figure:nth-child(5):last-child) figure:nth-child(-n+2) { grid-column: span 3; }
    .caso-galleria:has(> figure:nth-child(5):last-child) figure:nth-child(-n+2) img { height: 380px; }
    .caso-galleria:has(> figure:nth-child(6):last-child) { grid-template-columns: repeat(3, 1fr); }
}
.caso-galleria figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.caso-galleria img { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .4s; }
.caso-galleria a:hover img { transform: scale(1.03); }
.caso-galleria figcaption { padding: 12px 16px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) { .caso-grid { grid-template-columns: 1fr; } }