@font-face { font-family: "Brinnan"; src: url("../fonts/Brinnan-Thin.otf") format("opentype"); font-weight: 100; font-style: normal; font-display: swap; }
@font-face { font-family: "Brinnan"; src: url("../fonts/Brinnan-Regular.otf") format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Brinnan"; src: url("../fonts/Brinnan-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #10182a;
  --muted: #617083;
  --line: #dfe5eb;
  --surface: #ffffff;
  --surface-soft: #f5f7f9;
  --navy: #071827;
  --navy-light: #102b3d;
  --cyan: #1ee3cf;
  --cyan-dark: #087f77;
  --blue: #3498db;
  --orange: #f59e0b;
  --red: #e25757;
  --corporate-yellow: #fec010;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(7, 24, 39, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--surface-soft);
  font-family: "Brinnan", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font: inherit; }
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px; color: var(--navy); background: var(--cyan); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.site-header { position: absolute; z-index: 10; width: 100%; color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 24px; }
.brand img { display: block; width: auto; height: 42px; }
.brand-fallback { font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; }
.brand-fallback i { color: var(--cyan); margin-right: 7px; }
.main-site-link { color: #dce7ed; text-decoration: none; font-size: .9rem; font-weight: 600; }
.main-site-link i { margin-left: 7px; font-size: .75rem; color: var(--cyan); }
.main-site-link:hover { color: #fff; }

.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(125deg, var(--navy) 0%, #0b2638 60%, #0d3442 100%); padding: 160px 0 105px; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to right, transparent, #000); }
.hero-glow { position: absolute; width: 440px; height: 440px; right: 5%; bottom: -320px; border-radius: 50%; background: var(--cyan); filter: blur(70px); opacity: .22; }
.hero-content { position: relative; }
.eyebrow { margin: 0 0 12px; color: var(--cyan-dark); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
.eyebrow i { margin-right: 7px; }
.hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.3rem); line-height: .98; letter-spacing: -.055em; }
.corporate-yellow { color: var(--corporate-yellow); }
.hero p:last-child { max-width: 620px; margin: 25px 0 0; color: #c6d3dc; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.65; }

.content { padding: 0 0 90px; }
.toolbar { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 230px 230px; gap: 12px; margin-top: -31px; padding: 14px; background: rgba(255,255,255,.98); border: 1px solid rgba(255,255,255,.7); border-radius: 16px; box-shadow: var(--shadow); }
.search-field, .select-field { position: relative; display: flex; align-items: center; }
.search-field i, .select-field i { position: absolute; left: 17px; color: #758597; pointer-events: none; }
.search-field input, .select-field select { width: 100%; min-height: 48px; padding: 0 16px 0 46px; color: var(--ink); background: var(--surface-soft); border: 1px solid transparent; border-radius: 10px; outline: 0; }
.select-field select { appearance: none; cursor: pointer; padding-right: 35px; background-image: linear-gradient(45deg, transparent 50%, #758597 50%), linear-gradient(135deg, #758597 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.search-field input:focus, .select-field select:focus { border-color: var(--cyan-dark); box-shadow: 0 0 0 3px rgba(30,227,207,.14); }
.results-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 65px 0 24px; }
.results-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -.035em; }
.result-count { margin: 0 0 5px; color: var(--muted); font-size: .9rem; }

.release-grid { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 76px; row-gap: 54px; padding: 16px 0; }
.release-grid::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: linear-gradient(to bottom, transparent, #b8d5d6 4%, #b8d5d6 96%, transparent); transform: translateX(-50%); }
.release-card { position: relative; display: flex; flex-direction: column; overflow: visible; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 24px rgba(7,24,39,.04); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.release-card:nth-child(even) { transform: translateY(92px); }
.release-card:nth-child(even):hover { transform: translateY(89px); }
.release-card::before { content: ""; position: absolute; z-index: 2; top: 43px; width: 14px; height: 14px; border: 4px solid var(--surface-soft); border-radius: 50%; background: var(--cyan-dark); box-shadow: 0 0 0 2px #8ebabb; }
.release-card:nth-child(odd)::before { right: -46px; }
.release-card:nth-child(even)::before { left: -46px; }
.release-card::after { content: ""; position: absolute; top: 53px; width: 32px; height: 1px; background: #b8d5d6; }
.release-card:nth-child(odd)::after { right: -32px; }
.release-card:nth-child(even)::after { left: -32px; }
.release-card:hover { transform: translateY(-3px); border-color: #c7d3dc; box-shadow: var(--shadow); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 27px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 18px; }
.product-badge, .version-badge { display: inline-flex; align-items: center; min-height: 27px; padding: 4px 10px; border-radius: 999px; font-size: .73rem; font-weight: 700; }
.product-badge { color: #074c49; background: #d9faf5; }
.product-badge.product-device-inventory-manager { color: #075565; background: #d9f4fa; }
.product-badge.product-assessment-tool { color: #5b3475; background: #eee3f8; }
.product-badge.product-cyberguard-assessment-tool { color: #5b3475; background: #eee3f8; }
.product-badge.product-cyberguard { color: #075565; background: #d9faf5; }
.version-badge { color: #536476; background: #edf1f4; }
.release-date { margin-left: auto; color: var(--muted); font-size: .78rem; }
.release-card h3 { margin: 0; font-size: 1.38rem; line-height: 1.28; letter-spacing: -.025em; }
.summary { margin: 12px 0 22px; color: var(--muted); line-height: 1.65; }
.change-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.change-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 7px; color: #526273; background: #fafbfc; font-size: .73rem; font-weight: 650; }
.change-pill.feature i { color: var(--cyan-dark); }
.change-pill.improvement i { color: var(--blue); }
.change-pill.fix i { color: var(--orange); }
.change-pill.security i { color: var(--red); }
.read-more { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; gap: 10px; margin-top: auto; padding: 11px 17px; color: #fff; background: var(--navy); border-radius: 9px; font-size: .86rem; font-weight: 700; text-decoration: none; }
.read-more:hover { background: var(--cyan-dark); }
.details-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 23px; padding: 14px 0 0; color: var(--ink); background: transparent; border: 0; border-top: 1px solid var(--line); cursor: pointer; font-size: .88rem; font-weight: 750; text-align: left; }
.details-toggle i { color: var(--cyan-dark); transition: transform .2s; }
.details-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.release-details { padding-top: 22px; }
.release-details[hidden] { display: none; }
.change-group + .change-group { margin-top: 20px; }
.change-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .88rem; }
.change-group ul { margin: 0; padding-left: 21px; color: var(--muted); line-height: 1.58; }
.change-group li + li { margin-top: 7px; }
.release-link { display: inline-flex; gap: 8px; align-items: center; margin-top: 19px; color: var(--cyan-dark); font-size: .86rem; font-weight: 750; text-decoration: none; }
.release-link:hover { text-decoration: underline; }

.state-card { padding: 60px 25px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.state-card > i { color: var(--cyan-dark); font-size: 2rem; }
.state-card.error > i { color: var(--red); }
.state-card h3 { margin: 18px 0 7px; }
.state-card p { margin: 0 auto 22px; max-width: 560px; color: var(--muted); line-height: 1.6; }
.button { padding: 11px 17px; color: #fff; background: var(--navy); border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.button:hover { background: var(--navy-light); }

.site-footer { position: relative; overflow: hidden; margin-top: 60px; padding: 28px 24px; color: rgba(255,255,255,.55); background: linear-gradient(125deg, var(--navy) 0%, #0b2638 60%, #0d3442 100%); border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; }
.site-footer::before { content: ""; position: absolute; inset: 0; opacity: .055; background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.site-footer::after { content: ""; position: absolute; right: 8%; bottom: -130px; width: 230px; height: 230px; border-radius: 50%; background: var(--cyan); filter: blur(65px); opacity: .1; pointer-events: none; }
.footer-inner { position: relative; z-index: 1; width: min(1120px, 100%); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-copy { display: flex; flex-direction: column; gap: 2px; }
.footer-copy p { margin: 0; }
.site-footer a { color: rgba(255,255,255,.55); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-social { display: flex; align-items: center; gap: 8px; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; font-size: 1rem; }
.footer-social a:hover { color: #fff; background: rgba(255,255,255,.15); }

/* Pagina dettaglio release */
.detail-page { min-height: 100vh; color: var(--ink); background: var(--surface-soft); }
.detail-header { position: static; background: linear-gradient(125deg, var(--navy) 0%, #0b2638 60%, #0d3442 100%); border-bottom: 1px solid rgba(255,255,255,.08); }
.detail-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 110px; }
.back-link { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 38px; color: var(--cyan-dark); text-decoration: none; font-weight: 700; }
.detail-title { max-width: 1100px; margin: 0; color: var(--ink); font-size: clamp(2.5rem, 5.5vw, 4.7rem); line-height: 1.08; letter-spacing: -.045em; }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 24px 45px; max-width: 760px; margin: 44px auto 90px; padding: 17px 22px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 30px rgba(7,24,39,.05); }
.detail-meta .product-badge { margin-right: auto; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 90px; align-items: start; }
.detail-intro { margin: 0 0 58px; color: var(--muted); font-size: 1.18rem; line-height: 1.7; }
.detail-prose { margin: -28px 0 58px; color: var(--muted); font-size: 1.05rem; line-height: 1.78; }
.detail-prose p { margin: 0; }
.detail-prose p + p { margin-top: 20px; }
.detail-section { scroll-margin-top: 30px; }
.detail-section + .detail-section { margin-top: 52px; }
.detail-section h2 { margin: 0 0 20px; color: var(--ink); font-size: 1.8rem; }
.detail-section h2 i { margin-right: 10px; color: var(--cyan-dark); font-size: 1.15rem; }
.detail-section ul { margin: 0; padding-left: 25px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.detail-section li::marker { color: var(--cyan-dark); }
.detail-toc { position: sticky; top: 24px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 35px rgba(7,24,39,.06); }
.detail-toc h2 { margin: 0; padding: 25px 28px; color: var(--ink); border-bottom: 1px solid var(--line); font-size: 1.25rem; }
.detail-toc nav { display: flex; flex-direction: column; gap: 15px; padding: 28px; }
.detail-toc a { color: var(--ink); text-decoration: none; font-weight: 700; }
.detail-toc a:hover { color: var(--cyan-dark); }

@media (max-width: 850px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .release-grid { grid-template-columns: 1fr; padding-left: 34px; }
  .release-grid::before { left: 8px; }
  .release-card:nth-child(even), .release-card:nth-child(even):hover { transform: none; }
  .release-card:nth-child(odd)::before, .release-card:nth-child(even)::before { left: -33px; right: auto; }
  .release-card:nth-child(odd)::after, .release-card:nth-child(even)::after { left: -20px; right: auto; width: 20px; }
  .detail-layout { grid-template-columns: 1fr; gap: 55px; }
  .detail-toc { position: static; grid-row: 1; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 70px; }
  .brand img { height: 34px; }
  .main-site-link { font-size: 0; }
  .main-site-link i { font-size: 1rem; }
  .hero { padding: 132px 0 88px; }
  .toolbar { grid-template-columns: 1fr; margin-top: -25px; }
  .search-field { grid-column: auto; }
  .results-heading { align-items: flex-start; flex-direction: column; margin-top: 48px; }
  .card-body { padding: 22px; }
  .release-date { width: 100%; margin-left: 0; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
  .detail-main { width: min(100% - 28px, 1180px); padding-top: 50px; }
  .detail-meta { align-items: flex-start; flex-direction: column; border-radius: 20px; margin: 35px 0 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
