/* ===== VARIABILI E BASE ===== */
/* ===== FONT LOCALI (serviti dal nostro dominio: nessuna richiesta a Google) ===== */
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-400-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-500-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-600-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-700-arabic.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/ibm-plex-sans-arabic-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/newsreader-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/newsreader-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/newsreader-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/newsreader-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --navy: #082944;
    --navy-deep: #061f35;
    --blue: #087db8;
    --cyan: #59c9ec;
    --violet: #8a7dff;
    --grad: linear-gradient(90deg, var(--cyan), var(--violet));
    --grad-v: linear-gradient(180deg, var(--cyan), var(--violet));
    --ice: #eaf5f8;
    --paper: #f8faf9;
    --white: #fff;
    --ink: #102d40;
    --muted: #607582;
    --rule: rgba(8, 41, 68, .18);
    --serif: Newsreader, Georgia, "Times New Roman", serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", sans-serif;
    --page: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.wrap { width: min(var(--page), calc(100% - 88px)); margin-inline: auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { width: 28px; height: 2px; background: var(--grad); content: ""; }
.display { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }

/* ===== HEADER E NAVIGAZIONE ===== */
.header { position: sticky; top: 0; z-index: 1000; color: var(--navy); background: var(--white); border-top: 3px solid; border-image: var(--grad) 1; }
.nav { position: relative; min-height: 120px; padding-block: 10px; display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 44px; align-items: center; }
.brand { display: flex; align-items: center; justify-content: center; width: 180px; justify-self: start; padding: 0; }
.brand img { width: 100%; height: 100px; object-fit: contain; }
.nav-right { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 8px; }
.nav-utility { display: flex; align-items: center; justify-content: flex-end; gap: 34px; min-height: 26px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.nav-contact { color: var(--blue); font-weight: 600; white-space: nowrap; }
.nav-contact:hover { color: var(--navy); }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: clamp(28px, 3.2vw, 50px); color: var(--navy); font-size: 20px; font-weight: 600; letter-spacing: .012em; line-height: 1.35; white-space: nowrap; }
.nav-links a { position: relative; transition: color .2s ease; }
.nav-links a::before { content: ""; position: absolute; inset-inline-start: -12px; top: 50%; width: 3px; height: .7em; background: var(--grad-v); opacity: 0; transform: translateY(-50%); transition: opacity .2s ease; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.is-active::before { opacity: 1; }
.lang-switch { display: flex; align-items: center; gap: 12px; }
.lang-switch button { position: relative; min-width: 24px; padding: 6px 0; border: 0; color: var(--muted); background: none; font-size: 13px; font-weight: 500; letter-spacing: .04em; line-height: 1.4; cursor: pointer; transition: color .2s ease; }
.lang-switch button:hover { color: var(--blue); }
.lang-switch button.active { color: var(--navy); font-weight: 600; }
.lang-switch button.active::after { content: ""; position: absolute; bottom: 1px; inset-inline: 5px; height: 2px; background: var(--grad); }
.menu-button { display: none; border: 0; color: var(--navy); background: none; font-size: 14px; cursor: pointer; }
.header a:focus-visible, .header button:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

/* ===== BOTTONI ===== */
.action-primary { display: inline-flex; align-items: center; gap: 22px; min-height: 52px; padding: 0 19px; color: var(--navy-deep); background: var(--grad); font-weight: 700; }

/* ===== HERO ===== */
/* HERO: --dir = direzione del movimento (1 avanti, -1 indietro, invertita in RTL); --shade = angolo del gradiente di lettura */
.hero { --dir: 1; --shade: 90deg; position: relative; height: clamp(620px, calc(100svh - 123px), 980px); overflow: hidden; color: white; background: var(--navy-deep); }
.hero-slides { position: absolute; inset: 0; touch-action: pan-y; cursor: grab; }
.hero.is-dragging .hero-slides { cursor: grabbing; user-select: none; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; visibility: hidden; }
.hero-slide.is-leaving { visibility: visible; z-index: 1; }
.hero-slide.is-active { visibility: visible; z-index: 2; }

.hero-media { position: absolute; inset: 0; overflow: hidden; opacity: 0; will-change: opacity; background: radial-gradient(70% 90% at 80% 45%, rgba(8,125,184,.28), transparent 65%), linear-gradient(135deg, var(--navy-deep), var(--navy)); }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.hero-media img[hidden] { display: none; }
.hero-slide:nth-child(1) .hero-media img { object-position: left center; }
.hero-slide:nth-child(2) .hero-media img { object-position: center center; }
.hero-slide:nth-child(3) .hero-media img { object-position: right center; }
.hero-media::after { position: absolute; inset: 0; content: ""; background: linear-gradient(var(--shade), rgba(4,17,31,.94) 0%, rgba(4,17,31,.74) 36%, rgba(4,17,31,.3) 68%, rgba(4,17,31,.08) 100%), linear-gradient(0deg, rgba(4,17,31,.65) 0%, transparent 34%); }
.hero-slide.is-active .hero-media { opacity: 1; transition: opacity 1.2s ease; }
.hero-slide.is-leaving .hero-media { opacity: 1; }

.hero-content { position: relative; z-index: 1; padding-bottom: 72px; }
.hero-head { display: block; }
.hero-title { margin: 0; font-family: var(--serif); font-size: clamp(44px, 6vw, 92px); font-weight: 400; line-height: 1; letter-spacing: .02em; text-transform: uppercase; text-shadow: 0 2px 40px rgba(0,0,0,.35); }
/* Segnaposto nel flusso: mantiene lo spazio e fissa la larghezza della linea (indipendente dal testo). */
.hero-rule { height: 2px; width: min(100%, 44vw, 700px); margin: 30px 0 28px; }
/* Linea unica: JS la posiziona sul segnaposto della slide attiva; --seg-pos (0, .5, 1) sposta il segmento cyan. */
.hero-line { --seg-w: 33.3333%; position: absolute; z-index: 3; top: 0; left: 0; width: var(--line-w, 0); height: 2px; background: rgba(255,255,255,.45); transform: translate3d(var(--line-x, 0), var(--line-y, 0), 0); transition: transform .9s cubic-bezier(.2,.7,.2,1) .3s; pointer-events: none; }
.hero-line.no-anim { transition: none; }
.hero-line-seg { position: absolute; top: -1px; inset-inline-start: calc((100% - var(--seg-w)) * var(--seg-pos, 0)); width: var(--seg-w); height: 4px; background: var(--grad); transition: inset-inline-start 1.1s cubic-bezier(.65,0,.25,1) .2s; }
.hero-desc { max-width: 560px; margin: 0; color: rgba(255,255,255,.88); font-size: clamp(16px, 1.45vw, 20px); line-height: 1.65; }
.hero-cta { display: inline-flex; align-items: center; gap: 16px; margin-top: 34px; padding: 10px 0; color: white; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: color .2s ease; }
.hero-cta svg { flex: none; width: 26px; height: 14px; transition: transform .3s ease; }
.hero-cta:hover { color: var(--cyan); }
.hero-cta:hover svg { transform: translateX(7px); }

.hero-item { opacity: 0; transform: translate3d(calc(var(--dir) * 34px), 0, 0); }
.hero-slide.is-active .hero-item { opacity: 1; transform: none; transition: opacity .9s ease calc(.6s + var(--i) * .13s), transform 1.1s cubic-bezier(.2,.7,.2,1) calc(.6s + var(--i) * .13s); }
.hero-slide.is-leaving .hero-item { opacity: 0; transform: translate3d(calc(var(--dir) * -28px), 0, 0); transition: opacity .4s ease, transform .5s ease; }

.hero-controls { display: contents; }
.hero-arrow { position: absolute; z-index: 5; top: 50%; width: 44px; height: 72px; margin-top: -36px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; color: white; background: none; opacity: .85; cursor: pointer; transition: opacity .2s ease, color .2s ease; }
.hero-arrow:hover { color: var(--cyan); opacity: 1; }
.hero-arrow svg { width: 22px; height: 38px; }
.hero-prev { inset-inline-start: 0; }
.hero-next { inset-inline-end: 0; }
.hero-slide-indicators { position: absolute; z-index: 5; bottom: 40px; inset-inline-start: max(44px, calc((100% - var(--page)) / 2)); display: flex; flex-wrap: nowrap; gap: 12px; width: max-content; }
.hero-slide-indicator { appearance: none; display: block; box-sizing: border-box; width: 48px; min-width: 48px; max-width: 48px; height: 2px; flex: 0 0 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: background-color 250ms ease, opacity 250ms ease; }
.hero-slide-indicator.active { background: var(--grad); }
.hero-slide a:focus-visible, .hero-arrow:focus-visible, .hero-slide-indicator:focus-visible { outline: 2px solid var(--cyan); outline-offset: 6px; }
.hero-arrow:focus-visible { outline-offset: -6px; }

/* ===== INTRODUZIONE ===== */
.intro { padding: 150px 0 158px; background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 12%; align-items: start; }
.intro h2 { max-width: 630px; margin: 28px 0 0; font-size: clamp(48px, 5.3vw, 74px); line-height: 1.02; }
.intro-copy { padding-top: 44px; }
.intro-copy p { max-width: 570px; margin: 0 0 20px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.intro-copy .lead { color: var(--ink); font-size: 21px; line-height: 1.55; }
.intro-mark { display: flex; align-items: baseline; gap: 18px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--rule); }
.intro-mark strong { color: var(--blue); font-family: var(--serif); font-size: 60px; font-weight: 400; }
.intro-mark span { max-width: 260px; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ===== SERVIZI MICROSOFT 365 ===== */
.services { padding: 120px 0 130px; color: white; background: var(--navy); }
.services-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8%; align-items: end; margin-bottom: 82px; }
.services-head .eyebrow { color: var(--cyan); }
.services-head h2 { max-width: 780px; margin: 0; font-size: clamp(48px, 5.6vw, 76px); line-height: 1.02; }
.services-head p { max-width: 370px; margin: 20px 0 0; color: rgba(255,255,255,.68); font-size: 15px; line-height: 1.7; }
.service-row { display: grid; grid-template-columns: minmax(220px,.8fr) minmax(320px,1.2fr); gap: 34px; padding: 38px 0 42px; border-top: 1px solid rgba(255,255,255,.24); }
.service-row h3 { max-width: 350px; margin: 0; font-size: 25px; font-weight: 500; line-height: 1.2; }
.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 35px; align-content: start; }
.service-detail p { margin: 0; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.7; }
.service-terms { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 9px 20px; padding-top: 4px; color: #a9dff0; font-size: 12px; }
.service-terms span::before { margin-inline-end: 8px; color: var(--cyan); content: "/"; }

/* ===== MODERNIZZAZIONE ===== */
.modern { padding: 140px 0 150px; background: var(--ice); }
.modern-top { display: grid; grid-template-columns: .9fr 1.1fr; gap: 10%; align-items: start; }
.modern h2 { max-width: 700px; margin: 25px 0 28px; font-size: clamp(48px, 5.7vw, 78px); line-height: 1; }
.modern-copy { max-width: 530px; padding-top: 42px; }
.modern-copy p { margin: 0 0 18px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.route { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 100px; padding-top: 28px; border-top: 1px solid rgba(8,41,68,.4); }
.route-step { position: relative; padding-right: 20px; }
.route-step::before { position: absolute; top: -34px; left: 0; width: 11px; height: 11px; border: 2px solid var(--blue); border-radius: 50%; background: var(--ice); content: ""; }
.route-step:last-child::before { background: var(--blue); }
.route-step strong { display: block; font-family: var(--serif); font-size: 34px; font-weight: 400; }
.route-step span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.route-arrow { position: absolute; top: -34px; left: 0; width: auto; color: var(--blue); text-align: left; font-size: 12px; }

/* ===== MIGRAZIONE ===== */
.migration { padding: 132px 0 142px; color: white; background: #0a3551; }
.migration-header { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8%; align-items: start; margin-bottom: 65px; }
.migration .eyebrow { color: var(--cyan); }
.migration h2 { max-width: 790px; margin: 0; font-size: clamp(48px, 5.5vw, 76px); line-height: 1.02; }
.migration-list { border-top: 1px solid rgba(255,255,255,.3); }
.migration-line { display: grid; grid-template-columns: 1fr 72px 1fr; gap: 24px; align-items: center; min-height: 76px; border-bottom: 1px solid rgba(255,255,255,.2); }
.migration-line span:first-child { color: rgba(255,255,255,.67); }
.migration-line strong { font-size: 17px; font-weight: 500; }
.migration-line i { color: var(--cyan); font-style: normal; text-align: center; }

/* ===== GOVERNANCE ===== */
.governance { padding: 145px 0; background: var(--paper); }
.governance-head { display: grid; grid-template-columns: .72fr 1.28fr; gap: 8%; align-items: start; margin-bottom: 72px; }
.governance h2 { max-width: 740px; margin: 0; font-size: clamp(49px, 5.7vw, 78px); line-height: 1; }
.governance-list { border-top: 1px solid var(--rule); }
.governance-item { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.governance-item h3 { margin: 0; font-size: 22px; font-weight: 500; }
.governance-item p { max-width: 460px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ===== PARTNERSHIP ===== */
.partnerships { padding: 112px 0 120px; background: var(--white); border-top: 1px solid var(--rule); }
.partnerships-head { max-width: 1120px; margin-bottom: 54px; }
.partnerships h2 { margin: 0; color: var(--navy); font-size: clamp(42px, 5vw, 64px); line-height: 1.04; }
.partnerships-head p { margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.partnership-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.partnership-logo { min-width: 0; margin: 0; padding: 40px 28px 36px; border-top: 1px solid var(--rule); border-inline-start: 1px solid var(--rule); }
.partnership-logo:nth-child(4n+1) { padding-inline: 0 56px; border-inline-start: 0; }
.partnership-logo img { width: 100%; max-width: none; height: auto; }

/* ===== CONTATTI ===== */
.contact { padding: 128px 0 140px; color: white; background: var(--navy-deep); }
.contact-head { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; align-items: end; margin-bottom: 76px; }
.contact .eyebrow { color: var(--cyan); }
.contact h2 { max-width: 640px; margin: 25px 0 0; font-size: clamp(55px, 6.3vw, 86px); line-height: .98; }
.contact-head p { max-width: 420px; margin: 0 0 5px; color: rgba(255,255,255,.67); font-size: 16px; line-height: 1.7; }
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 12%; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { color: rgba(255,255,255,.7); font-size: 12px; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(255,255,255,.35); border-radius: 0; outline: none; padding: 9px 0 11px; color: white; background: transparent; }
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--cyan); }
.form-submit { margin-top: 27px; border: 0; cursor: pointer; }
.form-submit .arrow { display: grid; place-items: center; }
.form-submit .arrow svg, .company-linkedin svg { width: 18px; height: 10px; transition: transform .25s ease; }
.form-submit:hover .arrow svg, .company-linkedin:hover svg { transform: translateX(4px); }
html[dir="rtl"] .form-submit .arrow svg, html[dir="rtl"] .company-linkedin svg { transform: scaleX(-1); }
html[dir="rtl"] .form-submit:hover .arrow svg, html[dir="rtl"] .company-linkedin:hover svg { transform: translateX(-4px) scaleX(-1); }
.form-note { margin-top: 14px; color: rgba(255,255,255,.5); font-size: 11px; }

/* ===== PRIVACY ===== */
.privacy-consent { display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 10px; margin-top: 24px; }
.privacy-consent input { grid-area: 1 / 1; position: static; box-sizing: border-box; display: grid; place-content: center; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; appearance: none; -webkit-appearance: none; border: 1.5px solid rgba(255,255,255,.65); border-radius: 4px; background: rgba(255,255,255,.08); cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.privacy-consent input::before { content: ""; width: 11px; height: 11px; background: var(--navy-deep); transform: scale(0); transition: transform .15s ease; clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 18%, 84% 4%, 38% 70%); }
.privacy-consent input:hover { border-color: var(--cyan); }
.privacy-consent input:checked { border-color: var(--cyan); background: var(--cyan); }
.privacy-consent input:checked::before { transform: scale(1); }
.privacy-consent input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.privacy-consent p { grid-area: 1 / 2; min-width: 0; margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.75); }
.privacy-link { color: #a9dff0; text-decoration: underline; text-decoration-color: rgba(169,223,240,.65); text-underline-offset: 3px; }
.privacy-link:hover { color: white; text-decoration-color: currentColor; }
.privacy-dialog { width: min(760px, calc(100% - 32px)); max-width: 760px; max-height: min(88dvh, 900px); margin: auto; padding: 0; overflow: hidden; border: 0; color: var(--ink); background: white; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.privacy-dialog[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.privacy-dialog::backdrop { background: rgba(4,17,31,.72); backdrop-filter: blur(4px); }
.privacy-dialog-scroll { min-height: 0; overflow-y: auto; padding: 26px 40px 40px; overscroll-behavior: contain; }
.privacy-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 0; padding: 30px 40px 18px; background: white; border-bottom: 1px solid var(--rule); }
.privacy-dialog-header h2 { margin: 0; color: var(--navy); font-size: 26px; font-weight: 600; line-height: 1.25; }
.privacy-dialog-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; margin: -4px -8px 0 0; padding: 0; border: 0; color: var(--navy); background: transparent; cursor: pointer; }
.privacy-dialog-close:hover { color: var(--blue); }
.privacy-dialog-close svg { width: 20px; height: 20px; }
.privacy-content { color: #354f60; font-size: 15px; line-height: 1.75; }
.privacy-content p { margin: 0 0 18px; }
.privacy-content h3 { margin: 28px 0 10px; color: var(--navy); font-size: 17px; font-weight: 650; line-height: 1.4; }
.privacy-content ul { margin: 0 0 20px; padding-inline-start: 24px; }
.privacy-content li { margin: 0 0 6px; padding-inline-start: 3px; }
.privacy-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ===== DATI SOCIETARI ===== */
.company { padding-top: 2px; }
.company h3 { margin: 0 0 30px; font-size: 15px; font-weight: 500; line-height: 1.6; }
.company h3 span { display: block; color: rgba(255,255,255,.6); }
.company dl { margin: 0; }
.company dl div { display: grid; grid-template-columns: 95px 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.2); }
.company dt { color: rgba(255,255,255,.55); font-size: 12px; }
.company dd { margin: 0; font-size: 13px; line-height: 1.6; }
.company-linkedin { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--cyan); font-size: 14px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.company-linkedin:hover { color: white; }

/* ===== FOOTER ===== */
.footer { padding: 72px 0 26px; color: rgba(255,255,255,.62); background: var(--navy-deep); border-top: 1px solid rgba(255,255,255,.19); font-size: 11px; }
.footer-inner { display: grid; grid-template-columns: minmax(132px, 150px) minmax(0, 1fr); align-items: center; gap: clamp(32px, 5vw, 72px); }
.footer-brand { display: flex; align-items: center; justify-content: flex-start; }
.footer-brand img { display: block; width: min(132px, 100%); height: auto; padding: 0; background: transparent; object-fit: contain; }
.footer-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-width: 0; }
.footer-text { margin: 0; color: rgba(255,255,255,.62); font-size: 11px; }
.top-link { color: white; }

/* ===== STELLE E NEBULOSE (sfondo statico; tessere di dimensioni diverse evitano la ripetizione visibile) ===== */
.services, .migration, .contact, .footer {
    --stars:
        radial-gradient(circle at 24px 36px, rgba(255,255,255,.75) 0 1px, transparent 1.7px),
        radial-gradient(circle at 150px 90px, rgba(255,255,255,.5) 0 .8px, transparent 1.4px),
        radial-gradient(circle at 90px 200px, rgba(169,223,240,.7) 0 1.2px, transparent 2px),
        radial-gradient(circle at 300px 120px, rgba(255,255,255,.45) 0 .8px, transparent 1.4px);
    --glow: radial-gradient(55% 70% at 90% 0%, rgba(138,125,255,.20), transparent 70%);
    background-image: var(--glow), var(--stars);
    background-size: 100% 100%, 230px 210px, 310px 270px, 410px 330px, 470px 390px;
}
.services { --glow: radial-gradient(55% 70% at 92% 0%, rgba(138,125,255,.22), transparent 70%); }
.migration { --glow: radial-gradient(55% 70% at 6% 100%, rgba(89,201,236,.18), transparent 70%); }
.contact { --glow: radial-gradient(60% 80% at 100% 100%, rgba(138,125,255,.20), transparent 70%); }
.footer { --glow: linear-gradient(transparent, transparent); }
.intro, .modern, .governance {
    background-size: 230px 210px, 310px 270px, 410px 330px, 470px 390px;
    background-image:
        radial-gradient(circle at 24px 36px, rgba(8,125,184,.35) 0 1px, transparent 1.7px),
        radial-gradient(circle at 150px 90px, rgba(8,125,184,.25) 0 .8px, transparent 1.4px),
        radial-gradient(circle at 90px 200px, rgba(138,125,255,.5) 0 1.2px, transparent 2px),
        radial-gradient(circle at 300px 120px, rgba(8,41,68,.18) 0 .8px, transparent 1.4px);
}

/* ===== RTL E ARABO ===== */
html[dir="rtl"] { scroll-padding-top: 136px; }
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .hero { --shade: 270deg; }
html[dir="rtl"] .hero-arrow svg, html[dir="rtl"] .hero-cta svg { transform: scaleX(-1); }
html[dir="rtl"] .hero-cta:hover svg { transform: translateX(-7px) scaleX(-1); }
html[dir="rtl"] .route-step::before { right: 0; left: auto; }
html[dir="rtl"] .route-arrow { right: 0; left: auto; }
html[dir="rtl"] .migration-line i { transform: scaleX(-1); }
html[dir="rtl"] .field input[type="email"], html[dir="rtl"] .field input[type="tel"] { direction: ltr; text-align: left; }
html[dir="rtl"] .company dd { direction: ltr; text-align: right; unicode-bidi: isolate; }
html[lang="ar"] body, html[lang="ar"] .display { font-family: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif; letter-spacing: 0; }
html[lang="ar"] .display { font-weight: 500; }
html[lang="ar"] .eyebrow { font-size: 12px; letter-spacing: 0; }
html[lang="ar"] .hero-title { font-family: "IBM Plex Sans Arabic", "Geeza Pro", Tahoma, sans-serif; font-size: clamp(56px, 7.6vw, 112px); font-weight: 600; letter-spacing: 0; line-height: 1.2; text-transform: none; }
html[lang="ar"] .hero-desc { line-height: 1.9; }
html[lang="ar"] .hero-cta { letter-spacing: 0; }

/* ===== ANIMAZIONI E ACCESSIBILITÀ ===== */
/* Comparsa in dissolvenza. Lo stato nascosto e' nel CSS, non aggiunto dal
   JavaScript dopo il primo disegno: altrimenti la sezione sfarfalla. */
html.js .service-row,
html.js .route-step,
html.js .migration-line,
html.js .governance-item,
html.js .contact-grid { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
html.js .service-row.visible,
html.js .route-step.visible,
html.js .migration-line.visible,
html.js .governance-item.visible,
html.js .contact-grid.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
    html.js .service-row, html.js .route-step, html.js .migration-line, html.js .governance-item, html.js .contact-grid { opacity: 1; transform: none; }
    .hero-media, .hero-item, .hero-slide.is-active .hero-media, .hero-slide.is-active .hero-item, .hero-slide.is-leaving .hero-media, .hero-slide.is-leaving .hero-item { transform: none !important; transition: opacity .4s ease !important; }
    .hero-media img { animation: none !important; }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 761px) and (max-width: 1060px) {
    .nav { width: calc(100% - 64px); grid-template-columns: 150px minmax(0, 1fr); column-gap: 24px; }
    .brand { width: 140px; }
    .nav-links { gap: 24px; font-size: 17px; }
    .nav-utility { gap: 28px; }
    .partnership-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .partnership-logo:nth-child(2n+1) { padding-inline: 0 56px; border-inline-start: 0; }
}

@media (max-width: 760px) {
    .wrap { width: min(var(--page), calc(100% - 40px)); }
    .header { position: absolute; left: 0; right: 0; }
    .nav { min-height: 112px; grid-template-columns: 118px minmax(0, 1fr); column-gap: 12px; padding-block: 10px; }
    .brand { width: 118px; }
    .brand img { height: 76px; }
    .nav-right { gap: 4px; }
    .nav-utility { min-height: 32px; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; }
    .lang-switch { gap: 4px; }
    .lang-switch button { min-width: 22px; padding: 8px 0; font-size: 12px; }
    .menu-button { display: block; position: relative; z-index: 2; align-self: flex-end; min-height: 40px; padding: 8px 0 8px 12px; font-weight: 600; white-space: nowrap; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 20px 18px; color: var(--navy); background: var(--white); flex-direction: column; align-items: stretch; gap: 0; font-size: 20px; }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 0; }
    .hero { height: min(100svh, 860px); min-height: 600px; }
    .hero-slide { align-items: flex-end; }
    .hero-content { padding-top: 90px; padding-bottom: 104px; }
    .hero-media::after { background: linear-gradient(0deg, rgba(4,17,31,.96) 0%, rgba(4,17,31,.78) 40%, rgba(4,17,31,.25) 100%); }
    .hero-title { font-size: clamp(30px, 8.8vw, 52px); letter-spacing: .01em; }
    .hero-rule { margin: 22px 0 20px; }
    .hero-desc { font-size: 15px; }
    .hero-cta { margin-top: 22px; font-size: 13px; }
    .hero-controls { position: absolute; z-index: 5; bottom: 22px; inset-inline-start: 20px; display: flex; align-items: center; gap: 4px; }
    .hero-arrow, .hero-slide-indicators { position: static; }
    .hero-arrow { width: 44px; height: 44px; margin: 0; }
    .hero-arrow svg { width: 16px; height: 28px; }
    .intro, .modern, .governance { padding: 90px 0; }
    .partnerships { padding: 84px 0 90px; }
    .partnerships h2 { font-size: 42px; }
    .partnerships-head { margin-bottom: 34px; }
    .partnership-grid { grid-template-columns: minmax(0, 1fr); }
    .partnership-logo, .partnership-logo:nth-child(n) { padding: 28px 0; border-inline-start: 0; }
    .partnership-logo img { max-width: 320px; }
    .intro-grid, .modern-top, .services-head, .migration-header, .governance-head, .contact-head, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .intro h2, .modern h2, .services-head h2, .migration h2, .governance h2, .contact h2 { font-size: 42px; }
    .intro-copy, .modern-copy { padding-top: 0; }
    .intro-copy .lead { font-size: 18px; }
    .intro-mark { margin-top: 30px; }
    .services, .migration, .contact { padding: 92px 0; }
    .services-head { margin-bottom: 52px; }
    .services-head p { margin-top: 0; }
    .service-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 27px 0 31px; }
    .service-row h3 { font-size: 21px; }
    .service-detail { grid-column: 1; grid-template-columns: 1fr; gap: 13px; }
    .service-terms { gap: 8px 13px; }
    .route { margin-top: 68px; }
    .route-step strong { font-size: 23px; }
    .route-step span { font-size: 11px; }
    .route-arrow { top: -29px; font-size: 10px; }
    .migration-header { margin-bottom: 45px; }
    .migration-line { grid-template-columns: 1fr 28px 1.1fr; gap: 10px; min-height: 69px; font-size: 13px; }
    .migration-line strong { font-size: 14px; }
    .governance-head { margin-bottom: 42px; }
    .governance-item { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 21px 0; }
    .governance-item p { grid-column: 1; }
    .contact-head { margin-bottom: 50px; }
    .form-grid { grid-template-columns: 1fr; gap: 19px; }
    .field.full { grid-column: auto; }
    .contact-grid { gap: 58px; }
    .privacy-dialog { width: calc(100% - 24px); max-height: 90dvh; }
    .privacy-dialog-scroll { padding: 20px 22px 28px; }
    .privacy-dialog-header { gap: 14px; padding: 22px 22px 15px; }
    .privacy-dialog-header h2 { font-size: 21px; }
    .privacy-dialog-close { margin: -5px -5px 0 0; }
    .privacy-content { font-size: 14px; }
    .privacy-content h3 { font-size: 16px; }
    .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 30px; }
    .footer-brand img { width: min(112px, calc(100vw - 40px)); }
    .footer-meta { align-items: flex-start; flex-direction: column; gap: 16px; width: 100%; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
    .footer-text { line-height: 1.6; }
}
@media (max-width: 760px) {
    html[lang="ar"] .hero-title { font-size: clamp(34px, 10vw, 56px); line-height: 1.25; }
}
