:root {
  --bg-page: #f4f7fb;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #e0f4ff, #f7fbff);
  --accent: #0b7285;
  --accent-soft: #4dabf7;
  --accent-strong: #1864ab;
  --accent-warm: #f08c00;
  --text-main: #0b1924;
  --text-muted: #4b5563;
  --line-soft: #dde4ee;
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-pill: 999px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.text-red {
  color: #d62828;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Layout */

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2.4rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 auto 1.8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.96);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(209, 213, 219, 0.85);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

/* Nav buttons */

.primary-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nav-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.1rem;
  border-radius: 14px;
  border: 1px solid #cfd8ea;
  background: #ffffff;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  box-shadow: 0 3px 6px rgba(15, 23, 42, 0.08);
  transition: background 150ms ease-out, box-shadow 160ms ease-out,
    transform 120ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.nav-btn:hover {
  background: #e7f5ff;
  border-color: #a5c4f3;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.nav-btn.is-primary {
  background: linear-gradient(135deg, #1971c2, #0b7285);
  border-color: #1864ab;
  color: #ffffff;
  box-shadow:
    0 8px 18px rgba(24, 100, 171, 0.6),
    0 0 14px rgba(34, 139, 230, 0.65);
}

.nav-btn.is-primary:hover {
  background: linear-gradient(135deg, #1c7ed6, #0c8599);
}

/* Products dropdown */

.nav-item-with-menu {
  position: relative;
}

.nav-item-with-menu .nav-btn {
  padding-right: 1.6rem;
}

.nav-caret {
  margin-left: 0.45rem;
  font-size: 0.7rem;
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 180px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  padding: 0.35rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 120ms ease-out, transform 120ms ease-out,
    visibility 120ms ease-out;
  z-index: 30;
}

.nav-item-with-menu:hover .nav-dropdown,
.nav-item-with-menu:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  text-decoration: none;
  color: var(--text-main);
  white-space: nowrap;
}

.nav-dropdown a span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.nav-dropdown a:hover {
  background: #e7f5ff;
}

/* Link principale del submenu */

.nav-dropdown .nav-submenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  padding: 0.4rem 0.9rem;
  width: 100%;
}

.nav-dropdown .nav-submenu-link:hover,
.nav-dropdown .nav-submenu-link:focus-visible {
  background: #f1f5f9;
}

/* Nested submenu */

.nav-submenu {
  position: relative;
}

.nav-subdropdown {
  position: absolute;
  top: 0;
  left: 100%;
  min-width: 220px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
  padding: 0.35rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition:
    opacity 120ms ease-out,
    transform 120ms ease-out,
    visibility 120ms ease-out;
  z-index: 40;
}

.nav-subdropdown a {
  display: block;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  text-decoration: none;
  color: inherit;
}

.nav-subdropdown a:hover,
.nav-subdropdown a:focus-visible {
  background: #e7f5ff;
}

.nav-submenu:hover > .nav-subdropdown,
.nav-submenu:focus-within > .nav-subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Logo */

.brand-logo {
  font-family: var(--font-serif);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--accent-strong);
}

.brand-initial {
  font-size: 4rem;
  line-height: 1;
  font-weight: 500;
}

.brand-rest {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: center;
}

.brand-desys {
  font-size: 2.6rem;
  letter-spacing: 0.04em;
}

.brand-tagline {
  font-size: 0.7rem;
}

/* Hero */

.hero {
  background: var(--bg-hero);
  border-radius: 24px;
  padding: 1.6rem 1.6rem 1.8rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
  gap: 2rem;
  align-items: center;
  border: 1px solid #d0e3ff;
}

.hero-header-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.16rem 0.6rem 0.16rem 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(209, 213, 219, 0.9);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.hero-dot {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #ffffff, #69dbff 45%, #1971c2 80%, #0b7285 100%);
  box-shadow:
    0 0 12px rgba(25, 113, 194, 0.7),
    0 0 24px rgba(34, 139, 230, 0.8);
}

.hero-title {
  margin: 0.9rem 0 0.35rem;
  font-size: clamp(2.1rem, 3vw, 2.9rem);
  letter-spacing: 0.01em;
}

.hero-title span {
  color: var(--accent-strong);
}

.hero-subtitle {
  font-size: 0.97rem;
  color: var(--text-muted);
  max-width: 36rem;
  margin-bottom: 1.1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.hero-meta strong {
  color: var(--text-main);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 120ms ease-out, box-shadow 160ms ease-out,
    background 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out;
}

.btn-primary {
  background: linear-gradient(135deg, #1971c2, #0b7285);
  color: #ffffff;
  border-color: #1864ab;
  box-shadow:
    0 10px 22px rgba(24, 100, 171, 0.55),
    0 0 18px rgba(34, 139, 230, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(24, 100, 171, 0.65),
    0 0 24px rgba(34, 139, 230, 0.8);
  background: linear-gradient(135deg, #1c7ed6, #0c8599);
}

.btn-ghost {
  border-color: #c4d7f2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
}

.btn-ghost:hover {
  background: #e7f5ff;
  border-color: #a5c4f3;
}

.btn-icon {
  font-size: 1rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* Hero visual */

.hero-visual {
  position: relative;
}

.hero-visual-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 0.9rem;
  border: 1px solid rgba(208, 227, 255, 0.9);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 0.55rem;
}

.hero-dots {
  display: flex;
  gap: 0.25rem;
}

.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ced4da;
}

.hero-dots span:nth-child(1) {
  background: #ff6b6b;
}

.hero-dots span:nth-child(2) {
  background: #fcc419;
}

.hero-dots span:nth-child(3) {
  background: #51cf66;
}

.hero-visual-main {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #d0e3ff;
  background: radial-gradient(circle at 0 0, #edf6ff, #ffffff);
}

.hero-visual-main img {
  width: 100%;
  height: auto;
}

.hero-visual-caption {
  padding: 0.45rem 0.4rem 0.1rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Sections */

section {
  margin-top: 1.8rem;
  padding: 1.6rem 1.4rem 1.4rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
}

.section-title {
  font-size: 1.15rem;
  margin: 0 0 0.45rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}

/* Cards */

.card {
  border-radius: 14px;
  padding: 0.9rem 0.9rem 0.95rem;
  border: 1px solid var(--line-soft);
  background: #f8fbff;
}

.card-title {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

/* Lists */

ul.clean-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

ul.clean-list li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  color: var(--text-main);
}

ul.clean-list li::before {
  content: "•";
  position: absolute;
  left: 0.15rem;
  color: var(--accent-soft);
}

/* Footer */

.site-footer {
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  border-top: 1px solid #ddd;
}

.site-footer .privacy-note {
  font-size: 0.8rem;
  margin-top: 0.4rem;
  color: #999;
}

/* Responsive */

@media (max-width: 980px) {
  .site-header {
    border-radius: 24px;
  }

  .site-header-inner {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.9rem;
  }
}

@media (max-width: 720px) {
  .page {
    padding-inline: 1rem;
  }

  section {
    padding-inline: 1.1rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-visual {
    order: -1;
  }

  .primary-nav {
    justify-content: center;
  }

  .brand-logo {
    justify-content: center;
  }
}

/* Iconcina per i link a PDF */

a[href$=".pdf"]::after {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-left: 0.35em;
  vertical-align: text-bottom;
  background: url("../img/icon-pdf.svg") no-repeat center;
  background-size: contain;
}

/* === Two-column layout: image left, text right ======================= */

.two-col {
  display: grid;
  grid-template-columns: 33% 67%;
  gap: 1.2rem;
  align-items: start;
  margin: 2rem 0;
}

.two-col .col-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.two-col .col-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.two-col .col-text h2 {
  margin-top: 0;
  color: #0b7285;
  font-size: 1.2rem;
}

/* Responsive: stack columns on small screens */

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col .col-img {
    margin-bottom: 1rem;
  }
}

/* Layout a due colonne: link a sinistra + destra */

.two-links {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.two-links p {
  flex: 0 0 40%;
  margin: 0;
  text-align: left;
}

/* Blocco orizzontale: testo sinistra, figura destra */

.two-col-block {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 0;
}

.two-col-block .col-text {
  text-align: left;
}

.two-col-block .col-img {
  text-align: right;
}

.two-col-block .col-img img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Responsive: sotto i 768px, impila in verticale */

@media (max-width: 768px) {
  .two-col-block {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .two-col-block .col-text,
  .two-col-block .col-img {
    text-align: center;
  }

  .two-col-block .col-img img {
    max-width: 80%;
  }
}
