@font-face { font-family: "IBM Plex Sans"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Light.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSans-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSansCondensed-Medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/IBMPlexSansCondensed-SemiBold.woff2") format("woff2"); }

:root {
  --ink: #1A2F3A;
  --muted: #4F6470;
  --line: #DCE3E7;
  --link-line: #8AACBD;
  --accent: #D41C23;
  --cond: "IBM Plex Sans Condensed", "IBM Plex Sans", "Arial Narrow", sans-serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--link-line); }
a:hover, a:focus-visible { color: var(--accent); border-bottom-color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 56px; }

/* Header */
.site-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.site-name { font-family: var(--cond); font-weight: 500; font-size: 19px; letter-spacing: 0.02em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; font-size: 14px; }

/* Hero */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 72px; align-items: flex-end; padding: 120px 0 112px; }
.orbit { position: absolute; left: -6%; top: 2%; width: 74%; height: 96%; overflow: visible; pointer-events: none; }
.orbit path, .arc path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-text { position: relative; flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 34px; }
.eyebrow { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hero h1 { font-family: var(--cond); font-weight: 600; font-size: clamp(64px, 9vw, 128px); line-height: 0.9; letter-spacing: -0.02em; }
.lead { max-width: 660px; font-weight: 300; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.3; }
.small { font-size: 15px; color: var(--muted); }
.portrait { flex: 1 1 340px; max-width: 420px; }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; filter: grayscale(1); }

/* Edisonweb + consulenza */
.duo { display: flex; flex-wrap: wrap; gap: 72px; padding: 112px 0; }
.col { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.brand-slot { height: 76px; display: flex; align-items: flex-end; }
.brand-slot .ew { height: 42px; width: auto; }
.brand-slot .rd { height: 76px; width: auto; }
.statement { font-weight: 300; font-size: clamp(22px, 2.1vw, 27px); line-height: 1.38; }
.products { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.product { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.product-name { flex: 0 0 120px; font-family: var(--cond); font-weight: 600; font-size: 20px; }
.product-desc { flex: 1 1 260px; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.body-muted { color: var(--muted); }
.signature { font-family: var(--cond); font-weight: 500; font-size: 24px; }

/* Sections */
.section { padding: 0 0 112px; display: flex; flex-direction: column; gap: 20px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.section-head.with-logos { align-items: flex-end; gap: 24px 48px; }
.section h2 { font-family: var(--cond); font-weight: 600; font-size: 40px; line-height: 1.2; }
.section-sub { max-width: 640px; color: var(--muted); font-size: 15px; }
.head-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; max-width: 640px; }

/* Loghi In corso */
.logos { display: flex; flex-wrap: wrap; column-gap: 40px; border-top: 1px solid var(--ink); }
.logo-cell { flex: 1 1 180px; min-height: 150px; display: flex; align-items: center; padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); }
.logo-cell img { width: auto; max-width: 100%; object-fit: contain; object-position: left center; filter: grayscale(1); }
.logo-cell .h100 { height: 100px; }
.logo-cell .h50 { height: 50px; }
.logo-cell .h40 { height: 40px; }

/* Università */
.uni { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.uni .unict { height: 72px; width: auto; }
.uni .unipa { height: 70px; width: auto; filter: grayscale(1) brightness(0.35); }

/* Pubblicazioni */
.pubs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.pub { display: flex; flex-wrap: wrap; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.pub-year { flex: 0 0 56px; font-size: 14px; color: var(--muted); }
.pub-title { flex: 999 1 440px; min-width: 0; font-size: 18px; }
.pub-venue { flex: 1 1 220px; font-size: 14px; color: var(--muted); }

/* Contatto */
.contact { padding: 96px 0 104px; border-top: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.contact h2 { font-family: var(--cond); font-weight: 600; font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.01em; }
.contact-links { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10px; }
.mail { align-self: flex-start; font-size: 22px; }
.arc { display: block; width: 300px; max-width: 100%; height: 22px; margin-top: -10px; overflow: visible; }

/* Footer */
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* Pagine testuali */
.text-page { max-width: 760px; padding: 96px 0 112px; display: flex; flex-direction: column; gap: 20px; }
.text-page h1 { font-family: var(--cond); font-weight: 600; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin-bottom: 12px; }
.text-page h2 { font-family: var(--cond); font-weight: 600; font-size: 24px; margin-top: 16px; }

@media (max-width: 720px) {
  .wrap { padding: 0 24px; }
  .site-header { padding: 24px 0; }
  .site-nav { gap: 18px; }
  .hero { padding: 64px 0 72px; gap: 48px; }
  .orbit { width: 100%; left: -10%; height: 60%; }
  .duo { padding: 72px 0; gap: 56px; }
  .section { padding-bottom: 72px; }
  .contact { padding: 64px 0 72px; }
  .logos { column-gap: 24px; }
  .logo-cell { flex: 1 1 40%; min-height: 112px; padding: 20px 12px 20px 0; }
  .logo-cell .h100 { height: 76px; }
  .logo-cell .h50 { height: 38px; }
  .logo-cell .h40 { height: 30px; }
  .uni { gap: 28px; }
  .uni .unict { height: 60px; }
  .uni .unipa { height: 58px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
