/* ===== Studio Isola — foglio di stile =====
   Colori principali: cambia le variabili qui sotto per adattare il sito al tuo marchio */
:root {
  --ink: #14213d;
  --ink-2: #3e4a63;
  --muted: #6b7489;
  --bg: #ffffff;
  --bg-alt: #f3f5f9;
  --line: #e0e4ec;
  --primary: #1f4e8c;
  --primary-dark: #173c6c;
  --primary-soft: #e8eef7;
  --accent: #b8914a;
  --deep: #10213f;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(13,34,48,.06), 0 8px 24px rgba(13,34,48,.06);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI Semibold", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
img, video, iframe { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; font-weight: 650; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3, .h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }
.cards + .center { margin-top: 32px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ===== Pulsanti ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.25em; border-radius: 10px; border: 1.5px solid var(--primary); background: var(--primary); color: #fff; font: 600 .98rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, box-shadow .15s; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31,78,140,.25); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: .5em .95em; font-size: .9rem; }
.btn-lg { padding: .9em 1.6em; font-size: 1.04rem; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; }
.btn-light { background: #fff; border-color: #fff; color: var(--deep); }
.btn-light:hover { background: var(--bg-alt); border-color: var(--bg-alt); color: var(--deep); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-danger { background: #b42318; border-color: #b42318; }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.link-arrow { font-weight: 600; text-decoration: none; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 14px rgba(13,34,48,.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.2rem var(--font-head); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-light, .brand-light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: .5em .8em; border-radius: 8px; font-weight: 500; font-size: .96rem; }
.nav a:not(.btn):hover { background: var(--bg-alt); color: var(--ink); }
.nav a[aria-current="page"]:not(.btn) { color: var(--primary); background: var(--primary-soft); }
.nav .btn { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { background: radial-gradient(1100px 500px at 85% -10%, rgba(31,78,140,.14), transparent 60%), radial-gradient(700px 400px at -10% 110%, rgba(184,145,74,.12), transparent 60%), var(--bg-alt); padding: clamp(56px, 8vw, 110px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--primary); margin-bottom: .9em; }
.hl { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .07em; text-underline-offset: .2em; text-decoration-skip-ink: auto; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; }
.hero-points li::before { content: "✓"; color: var(--primary); font-weight: 700; margin-right: 6px; }
.window { background: var(--deep); border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(11,43,54,.45); overflow: hidden; transform: rotate(1.2deg); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: rgba(255,255,255,.06); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { color: rgba(255,255,255,.5); font-size: .8rem; margin-left: 8px; }
.code { margin: 0; padding: 22px 24px 26px; color: #d7e3ea; font: 14.5px/1.7 Consolas, "Cascadia Mono", Menlo, monospace; white-space: pre-wrap; }
.code .c { color: #7f98a6; } .code .k { color: #7dd3c8; } .code .s { color: #f8c58e; } .code .f { color: #a5b4fc; }

/* ===== Sezioni ===== */
.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.row { display: flex; justify-content: space-between; align-items: end; max-width: none; gap: 20px; }
.page-hero { background: var(--bg-alt); padding: clamp(48px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 22ch; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }

/* ===== Card ===== */
.cards { display: grid; gap: 22px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); color: inherit; text-decoration: none; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(13,34,48,.1); border-color: #c9d1df; color: inherit; }
.card p { color: var(--ink-2); }
.card .icon { font-size: 1.6rem; width: 52px; height: 52px; display: grid; place-items: center; background: var(--primary-soft); border-radius: 12px; margin-bottom: 16px; }
.card-accent { background: var(--deep); color: #fff; border-color: var(--deep); }
.card-accent p { color: rgba(255,255,255,.8); }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 10px; border-radius: 99px; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 6px; }
.ticks li { color: var(--ink-2); font-size: .95rem; padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.post-card { padding: 0; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card time, .post-card h2, .post-card h3, .post-card p { padding: 0 24px; }
.post-card time { display: block; padding-top: 22px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.post-card p { padding-bottom: 24px; margin: 0; }
.demo-card .link-arrow { margin-top: auto; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 1.1rem; }

/* ===== Video ===== */
.video-frame { position: relative; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0b1b24; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card .video-frame { margin: -6px -6px 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: #fff; padding: .45em 1em; border-radius: 99px; cursor: pointer; font: 500 .92rem var(--font); color: var(--ink-2); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ===== Steps / Stats / FAQ ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; padding: 24px 22px; border-top: 3px solid var(--primary); background: var(--bg-alt); border-radius: 0 0 12px 12px; }
.steps li::before { content: "0" counter(s); display: block; font: 700 .85rem var(--font); color: var(--accent); margin-bottom: 8px; letter-spacing: .08em; }
.steps strong { display: block; font-size: 1.12rem; margin-bottom: 4px; }
.steps span { color: var(--ink-2); font-size: .96rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stats div { background: var(--bg-alt); border-radius: var(--radius); padding: 28px 24px; }
.stats strong { display: block; font: 700 2.4rem/1 var(--font-head); color: var(--primary); margin-bottom: 6px; }
.stats span { color: var(--ink-2); }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--ink-2); }

/* ===== CTA ===== */
.cta-band { background: linear-gradient(120deg, var(--deep), #1f3f73); color: #fff; padding: 64px 0; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ===== Articolo / prose ===== */
.prose { font-size: 1.07rem; }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose img { border-radius: 12px; margin: 1.4em 0; }
.prose .cover { margin-top: 0; width: 100%; }
.prose blockquote { margin: 1.4em 0; padding: .4em 1.2em; border-left: 4px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose pre { background: var(--deep); color: #d7e3ea; padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: .92rem; }
.prose code { font-family: Consolas, Menlo, monospace; font-size: .92em; background: var(--bg-alt); padding: .1em .35em; border-radius: 5px; }
.prose pre code { background: none; padding: 0; }
.prose .video-frame { margin: 1.6em 0; }
.article .page-hero { border: 0; }
.back { display: inline-block; text-decoration: none; font-weight: 600; margin-bottom: 18px; }
.meta { color: var(--muted); }
.notice { display: inline-block; background: #fff4e5; color: #8a4b0f; border: 1px solid #f6d3a8; padding: 6px 12px; border-radius: 8px; font-size: .92rem; }
.share { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: .9rem; }
.prose .share { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; }
.share span { color: var(--muted); margin-right: 4px; font-weight: 600; }
.sh { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); text-decoration: none; font: 600 .88rem var(--font); cursor: pointer; }
.sh:hover { border-color: var(--primary); color: var(--primary); }
.sh-li { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.sh-li:hover { background: #004182; border-color: #004182; color: #fff; }

/* ===== Blog search / pager ===== */
.search { display: flex; gap: 10px; max-width: 520px; margin-top: 20px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; }
.pager a { min-width: 40px; text-align: center; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); }
.pager a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ===== Form ===== */
input, textarea, select { width: 100%; font: inherit; font-size: 1rem; padding: .7em .9em; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(31,78,140,.14); }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .93rem; }
.form label.check, label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); font-size: .92rem; }
label.check input { margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; }
.alert { background: #fdecea; color: #8f1c13; border: 1px solid #f5c2bd; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.alert p { margin: 0; }
.ok { background: #e7f6ee; color: #0f5132; border: 1px solid #b6e2c8; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; }
.success { text-align: center; padding: 30px 10px; }
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.contact-info { display: grid; gap: 22px; }

/* ===== Demo ===== */
.demo-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; }
.demo-toolbar .back { margin: 0; }
.demo-stage { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.demo-stage iframe { width: 100%; height: min(78vh, 780px); border: 0; }
.demo-help { margin-top: 22px; flex-direction: row; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.demo-help p { margin: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--deep); color: rgba(255,255,255,.75); padding: 64px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.muted-light { color: rgba(255,255,255,.6); margin-top: 14px; max-width: 32ch; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 48px; padding: 22px 0; font-size: .87rem; color: rgba(255,255,255,.55); }

/* ===== Chat ===== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.chat-fab { display: flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: 0; border-radius: 99px; padding: 14px 20px; font: 600 1rem var(--font); cursor: pointer; box-shadow: 0 10px 30px rgba(31,78,140,.4); position: relative; transition: transform .15s; }
.chat-fab:hover { transform: translateY(-2px); }
.chat.is-open .chat-fab { display: none; }
.chat-badge { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; font: 700 .75rem/20px var(--font); min-width: 20px; height: 20px; border-radius: 10px; text-align: center; font-style: normal; padding: 0 5px; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 110px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(13,34,48,.28); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-panel header { background: var(--deep); color: #fff; padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; }
.chat-panel header small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.chat[data-online="1"] .chat-status::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; margin-right: 6px; }
.chat-close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-start { padding: 20px; overflow-y: auto; }
.chat-start p { color: var(--ink-2); font-size: .95rem; }
.chat-start-form { display: grid; gap: 10px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #f7f9fc; }
.chat-log[hidden], .chat-form[hidden], .chat-start[hidden] { display: none; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.msg p { margin: 0; white-space: pre-wrap; word-wrap: break-word; }
.msg time { display: block; font-size: .7rem; opacity: .6; margin-top: 3px; text-align: right; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { resize: none; padding: .6em .8em; max-height: 120px; }
.chat-form button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; cursor: pointer; display: grid; place-items: center; }
.chat-err { color: #b42318; font-size: .85rem; margin: 0 0 6px; width: 100%; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 560px; }
  .cards-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(13,34,48,.08); display: none; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: .8em 1em; }
  .nav .btn { margin: 8px 0 0; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards-2, .cards-3, .steps, .row2, .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-head.row { flex-direction: column; align-items: start; }
  .chat { right: 12px; bottom: 12px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 16px; }
  .search { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .chat, .cta-band { display: none; } }

/* ===== Cartina del mondo ===== */
.map-section { background: #fff; }
.map-section.section-alt { background: var(--bg-alt); }
.map-section.section-alt .map-base path { fill: #fff; }
.world-map { position: relative; min-height: 120px; }
.world-map svg { width: 100%; height: auto; display: block; }
.map-base path { fill: #fff; stroke: #cfd6e2; stroke-width: .6; stroke-linejoin: round; }
.map-on path, .map-dots circle { fill: var(--primary); fill-opacity: .82; stroke: #fff; stroke-width: .6; cursor: default; transition: fill-opacity .15s; }
.map-dots circle { stroke-width: 1.2; }
.map-on path:hover, .map-dots circle:hover { fill-opacity: 1; }
.map-tip { position: absolute; transform: translate(-50%, -140%); background: var(--ink); color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }
.world-map.map-error { display: none; }
.map-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 8px; }
.map-list li { font-size: .85rem; color: var(--ink-2); padding: 3px 11px; border: 1px solid var(--line); border-radius: 99px; }
.map-list li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); margin-right: 7px; vertical-align: 1px; }

/* ===== Profilo / ritratto ===== */
.portrait { position: relative; }
.portrait { margin: 0; }
.portrait img { width: 100%; border-radius: 18px; box-shadow: 0 30px 60px -24px rgba(16,33,63,.45); height: auto; aspect-ratio: 6/5; object-fit: cover; object-position: center 30%; }
.hero .portrait { max-width: 470px; justify-self: end; width: 100%; }
.portrait figcaption { position: absolute; left: 18px; bottom: -22px; background: #fff; border-radius: 12px; padding: 12px 18px; box-shadow: var(--shadow); }
.portrait figcaption strong { display: block; font-size: 1.02rem; }
.portrait figcaption span { color: var(--muted); font-size: .88rem; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font: 700 1.9rem/1 var(--font-head); color: var(--primary); }
.hero-stats span { color: var(--ink-2); font-size: .9rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { font-weight: 700; color: var(--primary); font-size: .9rem; letter-spacing: .03em; }
.timeline p { margin: 2px 0 0; color: var(--ink-2); }
.sectors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 44px; }
.sectors h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); border-bottom: 2px solid var(--primary); padding-bottom: 10px; }
.sectors ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sectors li { color: var(--ink-2); padding-left: 16px; position: relative; }
.sectors li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--accent); border-radius: 1px; }
.cred { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cred span { font-size: .8rem; font-weight: 600; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px; color: var(--ink-2); }
@media (max-width: 860px) { .sectors { grid-template-columns: 1fr; } .portrait figcaption { position: static; margin-top: 12px; display: inline-block; } }

/* ===== Schede articoli stile "news" ===== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.news-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--deep); }
.news-img > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-img > img { transform: scale(1.04); }
.news-ph { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--deep), var(--primary)); }
.news-ph img { width: 64px; height: 64px; opacity: .9; }
.news-body { flex: 1; background: var(--bg-alt); padding: 30px 34px 34px; }
.section-alt .news-body { background: #fff; }
.news-body h3 { font-size: 1.22rem; font-weight: 600; line-height: 1.45; letter-spacing: 0; margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.news-card:hover h3 { color: var(--primary); }
.news-body time { font-size: .9rem; color: var(--muted); }
@media (max-width: 980px) { .news-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } .news-body { padding: 24px 24px 28px; } }
