
:root{
  --ink:#0f172a;
  --muted:#5b6474;
  --brand:#0b5fb3;
  --brand-dark:#083b72;
  --accent:#20a9d8;
  --surface:#ffffff;
  --soft:#f4f8fc;
  --line:#dce6f1;
  --shadow:0 20px 60px rgba(15,43,78,.12);
  --radius:22px;
  --max:1180px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.65}
img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(var(--max),calc(100% - 36px));margin:auto}
.topbar{background:#071a2d;color:#d8e7f6;font-size:.9rem}
.topbar .container{display:flex;justify-content:space-between;gap:18px;padding:8px 0;flex-wrap:wrap}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid rgba(220,230,241,.8)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;min-height:86px;gap:28px}
.brand{display:flex;align-items:center;gap:14px;text-decoration:none}
.brand-logo{width:72px;height:60px;object-fit:contain}
.brand-copy strong{display:block;font-size:1.46rem;letter-spacing:.01em}
.brand-copy span{display:block;color:var(--muted);font-size:.79rem;letter-spacing:.03em}
.nav{display:flex;gap:24px;align-items:center}
.nav a{text-decoration:none;font-weight:700;color:#28344a;font-size:.96rem}
.nav a:hover,.nav a.active{color:var(--brand)}
.menu-btn{display:none;background:none;border:0;font-size:1.8rem;color:var(--brand-dark)}
.hero{
  position:relative;min-height:620px;display:grid;align-items:center;overflow:hidden;
  background:url('../immagini/hero-ai.jpg') center/cover no-repeat;
}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,20,38,.90) 0%,rgba(5,20,38,.73) 45%,rgba(5,20,38,.18) 100%)}
.hero::after{content:"";position:absolute;inset:auto 0 0;height:120px;background:linear-gradient(transparent,rgba(5,20,38,.38))}
.hero-content{position:relative;z-index:2;max-width:790px;color:#fff;padding:72px 0 88px}
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.15em;font-size:.78rem;font-weight:800;color:#7bdcff}
h1{font-size:clamp(2.55rem,5.2vw,4.85rem);line-height:1.02;letter-spacing:-.05em;margin:.25em 0}
h2{font-size:clamp(2rem,4vw,3.2rem);line-height:1.13;letter-spacing:-.03em;margin:0 0 18px}
h3{font-size:1.25rem;margin:0 0 10px}
.lead{font-size:1.18rem;color:#dceaf7;max-width:720px}
.actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:28px}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:12px;text-decoration:none;font-weight:800;border:1px solid transparent;transition:.2s ease}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:var(--accent);color:#06233c}
.btn-light{background:#fff;color:var(--brand-dark)}
.btn-outline{border-color:#bfd2e6;color:var(--brand);background:#fff}

.hero-accent{color:#36bdf2}
.hero-services{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:34px;max-width:860px}
.hero-service{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid rgba(255,255,255,.18);border-radius:14px;background:rgba(5,20,38,.42);backdrop-filter:blur(7px)}
.hero-service-icon{flex:0 0 42px;width:42px;height:42px;border-radius:12px;display:grid;place-items:center;border:1px solid rgba(123,220,255,.65);color:#7bdcff;font-weight:900;font-size:.9rem}
.hero-service strong{display:block;font-size:.92rem;line-height:1.25;color:#fff}
.hero-service small{display:block;color:#bcd0e4;font-size:.76rem;line-height:1.35;margin-top:3px}
.section-ai{background:linear-gradient(135deg,#06192c 0%,#0b365f 100%);color:#fff}
.section-ai .muted{color:#d2e3f3}
.ai-visual{min-height:390px;position:relative;border-radius:28px;overflow:hidden;background:radial-gradient(circle at center,rgba(32,169,216,.2),transparent 43%),linear-gradient(145deg,#08213a,#061422);border:1px solid rgba(123,220,255,.22);box-shadow:var(--shadow)}
.ai-visual::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(123,220,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(123,220,255,.06) 1px,transparent 1px);background-size:34px 34px}
.ai-orbit{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:142px;height:142px;border:1px solid #36bdf2;border-radius:50%;display:grid;place-items:center;box-shadow:0 0 55px rgba(54,189,242,.35),inset 0 0 35px rgba(54,189,242,.16)}
.ai-orbit::before,.ai-orbit::after{content:"";position:absolute;border:1px solid rgba(123,220,255,.35);border-radius:50%}
.ai-orbit::before{inset:-38px}.ai-orbit::after{inset:-78px}
.ai-orbit span{font-size:2.3rem;font-weight:900;color:#7bdcff}
.ai-node{position:absolute;padding:9px 13px;border-radius:999px;background:#0b5b92;border:1px solid #42c7f6;color:white;font-size:.8rem;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.ai-node.n1{left:9%;top:18%}.ai-node.n2{right:10%;top:19%}.ai-node.n3{left:8%;bottom:18%}.ai-node.n4{right:8%;bottom:17%}
.stats{margin-top:-56px;position:relative;z-index:3}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:24px}
.stat strong{display:block;color:var(--brand);font-size:1.25rem;margin-bottom:5px}
.stat span{color:var(--muted)}
section{padding:88px 0}
.section-soft{background:var(--soft)}
.section-head{max-width:780px;margin-bottom:38px}
.section-head p{color:var(--muted);font-size:1.08rem}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px;box-shadow:0 12px 32px rgba(11,48,88,.06)}
.card .icon{width:50px;height:50px;border-radius:14px;display:grid;place-items:center;background:#eaf5fd;color:var(--brand);font-weight:900;margin-bottom:18px}
.card p{color:var(--muted)}
.feature-split{display:grid;grid-template-columns:1.1fr .9fr;gap:48px;align-items:center}
.media-card{border-radius:24px;overflow:hidden;box-shadow:var(--shadow);border:1px solid var(--line);background:white}
.media-card img{width:100%;height:100%;object-fit:cover}
.checklist{padding:0;margin:24px 0 0;list-style:none}
.checklist li{position:relative;padding-left:30px;margin:12px 0;color:#415067}
.checklist li::before{content:"✓";position:absolute;left:0;top:0;color:var(--accent);font-weight:900}
.band{background:linear-gradient(135deg,var(--brand-dark),#0c5a9a);color:#fff}
.band p{color:#d8e8f7}
.products{display:grid;grid-template-columns:repeat(2,1fr);gap:28px}
.product{display:grid;grid-template-columns:.9fr 1.1fr;gap:24px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:22px;overflow:hidden;box-shadow:var(--shadow)}
.product img{width:100%;height:100%;min-height:280px;object-fit:cover}
.product img.product-image-contain{object-fit:contain;background:#fff;padding:18px}
.product-body{padding:28px}
.page-hero{background:linear-gradient(135deg,#edf6ff 0%,#fff 65%);padding:72px 0;border-bottom:1px solid var(--line)}
.page-hero h1{font-size:clamp(2.5rem,5vw,4.5rem);color:var(--brand-dark)}
.prose{max-width:900px}
.prose p,.prose li{color:#4f5d70}
.contact-layout{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px}
.contact-card{background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.info-row{padding:15px 0;border-bottom:1px solid var(--line)}
.info-row:last-child{border-bottom:0}
footer{background:#071a2d;color:#dce8f4;padding:44px 0 28px}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:30px}
footer a{color:white}
.small{font-size:.9rem;color:#9fb3c9}
.reveal{opacity:0;transform:translateY(20px);transition:opacity .65s ease,transform .65s ease}
.reveal.visible{opacity:1;transform:none}
@media(max-width:900px){
  .nav{display:none;position:absolute;left:0;right:0;top:86px;background:#fff;border-bottom:1px solid var(--line);padding:18px;flex-direction:column;align-items:flex-start}
  .nav.open{display:flex}
  .menu-btn{display:block}
  .hero{min-height:560px;background-position:62% center}
  .hero::before{background:linear-gradient(90deg,rgba(5,20,38,.93),rgba(5,20,38,.67))}
  .stats-grid,.grid-3,.grid-2,.feature-split,.products,.contact-layout,.footer-grid,.hero-services{grid-template-columns:1fr}
  .product{grid-template-columns:1fr}
  .product img{min-height:220px}
}
@media(max-width:560px){
  .brand-logo{width:58px;height:50px}
  .brand-copy strong{font-size:1.22rem}
  .brand-copy span{font-size:.7rem}
  .topbar .container span:last-child{display:none}
  section{padding:66px 0}
  .hero-content{padding:68px 0 82px}
  .hero-services{gap:9px;margin-top:24px}
  .hero-service{padding:11px 12px}
  .ai-visual{min-height:320px}
}




/* Riquadro contatto personale sotto i pulsanti */
.contact-person-light{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:22px;
  align-items:center;
  margin-top:30px;
  padding:18px 20px;
  background:linear-gradient(135deg,#ffffff,#f4f8fc);
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:0 10px 26px rgba(11,48,88,.09);
}
.contact-person-photo{
  width:120px;
  height:145px;
  object-fit:cover;
  object-position:center top;
  border-radius:12px;
  border:1px solid #b9c9da;
  box-shadow:0 5px 14px rgba(15,43,78,.12);
}
.contact-person-details h2{
  margin:0 0 8px;
  color:var(--brand-dark);
  font-size:1.55rem;
}
.contact-role{
  margin:0 0 12px;
  color:var(--muted);
  line-height:1.45;
}
.contact-email{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--brand);
  font-weight:800;
  text-decoration:none;
  border-top:1px solid var(--line);
  padding-top:10px;
}
.contact-email::before{
  content:"✉";
  width:27px;
  height:27px;
  display:grid;
  place-items:center;
  border:1px solid #8fc1ee;
  border-radius:50%;
  font-size:.85rem;
}
.contact-email:hover{text-decoration:underline}
@media(max-width:560px){
  .contact-person-light{
    grid-template-columns:1fr;
    text-align:center;
  }
  .contact-person-photo{margin:auto}
  .contact-email{justify-content:center}
}

/* Assistente IA Sferatec */
.ai-chat-launcher{
  position:fixed;right:24px;bottom:24px;z-index:9998;
  display:flex;align-items:center;gap:10px;
  border:0;border-radius:999px;padding:12px 17px 12px 12px;
  background:linear-gradient(135deg,#087bc1,#19b8e8);color:#fff;
  font:800 15px/1.1 inherit;box-shadow:0 14px 34px rgba(1,48,86,.3);
  cursor:pointer;transition:transform .2s ease,box-shadow .2s ease;
}
.ai-chat-launcher:hover{transform:translateY(-2px);box-shadow:0 18px 38px rgba(1,48,86,.36)}
.ai-chat-launcher-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:14px;letter-spacing:.03em}
.ai-chat-panel{
  position:fixed;right:24px;bottom:88px;z-index:9999;width:min(370px,calc(100vw - 32px));
  background:#fff;border:1px solid #d8e5f0;border-radius:22px;overflow:hidden;
  box-shadow:0 22px 60px rgba(3,31,58,.27);opacity:0;visibility:hidden;
  transform:translateY(14px) scale(.98);transform-origin:bottom right;transition:.22s ease;
}
.ai-chat-panel.open{opacity:1;visibility:visible;transform:none}
.ai-chat-head{display:flex;align-items:center;justify-content:space-between;padding:17px 18px;background:linear-gradient(135deg,#082d52,#0b6da8);color:#fff}
.ai-chat-head-copy{display:flex;align-items:center;gap:11px}.ai-chat-avatar{width:39px;height:39px;border-radius:13px;display:grid;place-items:center;background:rgba(255,255,255,.15);font-weight:900}
.ai-chat-head strong{display:block;font-size:16px}.ai-chat-head small{display:block;margin-top:3px;color:#d7eefc}
.ai-chat-close{border:0;background:transparent;color:#fff;font-size:24px;line-height:1;cursor:pointer;padding:4px}
.ai-chat-body{padding:18px}
.ai-chat-message{background:#eef7fd;border-radius:5px 16px 16px 16px;padding:14px 15px;color:#17344f;line-height:1.5}
.ai-chat-message p{margin:0 0 9px}.ai-chat-message p:last-child{margin-bottom:0}
.ai-chat-topics{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}
.ai-chat-topic{border:1px solid #cfe2f1;background:#fff;border-radius:11px;padding:9px 10px;color:#174a72;font-weight:700;font-size:13px;text-align:left;cursor:pointer}
.ai-chat-topic:hover{background:#f2f9fe}
.ai-chat-note{font-size:12px;color:#66798c;margin:10px 1px 0;line-height:1.4}
.ai-chat-actions{display:grid;gap:9px;margin-top:15px}
.ai-chat-open,.ai-chat-contact{display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:11px;padding:12px 14px;font-weight:800}
.ai-chat-open{background:#087bc1;color:#fff;border:1px solid #087bc1}.ai-chat-open:hover{background:#066ca9}
.ai-chat-contact{background:#fff;color:#0b4f80;border:1px solid #bcd4e6}.ai-chat-contact:hover{background:#f4f9fc}
.ai-chat-status{min-height:18px;font-size:12px;color:#0b6d42;text-align:center;margin-top:8px}
@media(max-width:560px){
  .ai-chat-launcher{right:14px;bottom:14px;padding:10px 13px}.ai-chat-launcher-label{display:none}
  .ai-chat-panel{right:16px;bottom:76px;width:calc(100vw - 32px)}
}


/* Pagina Intelligenza Artificiale e corsi */
.ia-page-hero{padding:72px 0;background:linear-gradient(135deg,#06182b 0%,#0b3d69 58%,#087db6 100%);color:#fff;overflow:hidden}
.ia-page-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:46px;align-items:center}
.ia-page-hero h1{font-size:clamp(2.7rem,5.3vw,5rem);line-height:1.02;margin:.25em 0;color:#fff}
.ia-page-hero .lead{color:#d9eafa;max-width:720px}
.ia-page-image{border-radius:25px;overflow:hidden;border:1px solid rgba(255,255,255,.2);box-shadow:0 24px 60px rgba(0,0,0,.3)}
.ia-page-image img{width:100%;min-height:430px;object-fit:cover;display:block}
.ia-course-card{padding:38px;border-radius:25px;background:linear-gradient(145deg,#071c31,#0b5f94);color:#fff;box-shadow:var(--shadow);border:1px solid rgba(123,220,255,.25)}
.ia-course-card h3{font-size:1.8rem;margin:16px 0 10px;color:#fff}.ia-course-card p{color:#d7e7f5}
.ia-course-badge{display:inline-flex;padding:8px 12px;border-radius:999px;background:rgba(123,220,255,.16);border:1px solid rgba(123,220,255,.45);color:#8ee4ff;font-weight:800;font-size:.82rem;text-transform:uppercase;letter-spacing:.05em}
.ia-course-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:22px}.ia-course-list span{padding:12px 14px;border-radius:12px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);font-weight:700}
@media(max-width:900px){.ia-page-hero-grid{grid-template-columns:1fr}.ia-page-image img{min-height:300px}.ia-course-list{grid-template-columns:1fr}}


/* Help Desk Sferatec */
.helpdesk-hero{padding:78px 0;background:linear-gradient(135deg,#06182b 0%,#0b406d 62%,#0796c9 100%);color:#fff;overflow:hidden}
.helpdesk-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:52px;align-items:center}
.helpdesk-hero h1{font-size:clamp(2.8rem,5.4vw,5rem);line-height:1.02;color:#fff;margin:.24em 0}.helpdesk-hero .lead{color:#d8eaf8}
.helpdesk-source{font-size:.87rem;color:#c9e0f1;margin-top:17px;max-width:610px}.helpdesk-download{font-size:1.03rem}
.remote-console{max-width:470px;margin-left:auto;background:#f8fbfe;border:1px solid rgba(255,255,255,.32);border-radius:25px;overflow:hidden;box-shadow:0 28px 70px rgba(0,0,0,.32);color:#17344f}
.remote-console-bar{display:flex;gap:7px;padding:13px 16px;background:#e5edf4}.remote-console-bar span{width:11px;height:11px;border-radius:50%;background:#91a7b9}
.remote-console-body{text-align:center;padding:35px 32px 38px}.remote-shield{width:74px;height:74px;margin:0 auto 18px;border-radius:22px;display:grid;place-items:center;background:linear-gradient(145deg,#087bc1,#22bce5);color:#fff;font-size:2.1rem;font-weight:900;box-shadow:0 13px 28px rgba(8,123,193,.27)}
.remote-console h2{font-size:1.65rem;margin-bottom:24px}.remote-code{display:flex;align-items:center;justify-content:space-between;padding:13px 15px;margin:9px 0;border:1px solid #d6e3ed;border-radius:12px;background:#fff;text-align:left}.remote-code span{font-size:.8rem;color:#6d7d8b}.remote-code strong{letter-spacing:.1em;color:#0b4f80}.remote-console small{display:block;margin-top:17px;color:#647687;line-height:1.45}
.helpdesk-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.helpdesk-step{position:relative;background:#fff;border:1px solid var(--line);border-radius:20px;padding:28px 23px;box-shadow:0 12px 32px rgba(11,48,88,.06)}.helpdesk-step>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#e6f5fd;color:#087bc1;font-weight:900;margin-bottom:18px}.helpdesk-step p{color:var(--muted);margin-bottom:0}
.helpdesk-contact-card{background:linear-gradient(145deg,#071c31,#0b5f94);color:#fff;border-radius:25px;padding:36px;box-shadow:var(--shadow)}.helpdesk-contact-card h3{font-size:1.75rem}.helpdesk-contact-card p{color:#d7e7f5}.helpdesk-contact-card>a:not(.btn){display:block;color:#fff;font-weight:800;text-decoration:none;margin:10px 0}.helpdesk-contact-card .btn{margin-top:18px}.helpdesk-contact-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;background:rgba(123,220,255,.15);border:1px solid rgba(123,220,255,.45);color:#8ee4ff;font-weight:900;margin-bottom:18px}
.helpdesk-security{padding:34px 0 72px}.security-notice{border-left:5px solid #efaa22;background:#fff8e8;border-radius:12px;padding:20px 24px;color:#5e4a22}.security-notice p{margin:6px 0 0;line-height:1.55}
.helpdesk-preview{display:grid;place-items:center}.helpdesk-screen{width:min(440px,100%);padding:34px;border-radius:24px;background:linear-gradient(145deg,#09233d,#0b5f94);color:#fff;box-shadow:var(--shadow);text-align:center}.helpdesk-screen-head{display:flex;gap:7px;margin:-13px 0 26px}.helpdesk-screen-head span{width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.45)}.helpdesk-logo{width:64px;height:64px;border-radius:19px;display:grid;place-items:center;margin:0 auto 17px;background:linear-gradient(145deg,#1cc0ea,#087bc1);font-size:1.8rem;font-weight:900}.helpdesk-screen strong{display:block;font-size:1.35rem}.helpdesk-screen p{color:#d6e7f4}.helpdesk-screen a{color:#8ee4ff;font-weight:800;text-decoration:none}
@media(max-width:1050px){.nav{gap:16px}.nav a{font-size:.9rem}}
@media(max-width:900px){.helpdesk-hero-grid,.helpdesk-steps{grid-template-columns:1fr}.remote-console{margin:0}.helpdesk-steps{gap:14px}}
