﻿:root {
  --ink: #152236;
  --muted: #667085;
  --line: #d8dee8;
  --paper: #ffffff;
  --soft: #f3f7f8;
  --brand: #1f4c8f;
  --brand-dark: #143a6f;
  --blue: #1f4c8f;
  --green: #187348;
  --amber: #a96708;
  --red: #b42318;
  --shadow: 0 18px 45px rgba(20, 34, 56, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  --page-click: var(--brand);
  --page-click-dark: var(--brand-dark);
  --page-click-soft: #e8f0fb;
  --page-click-ink: var(--brand-dark);
  margin: 0;
  color: var(--ink);
  background: #f6f8fb;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.page-checkup {
  --page-click: #0ea5e9;
  --page-click-dark: #0369a1;
  --page-click-soft: #e0f2fe;
  --page-click-ink: #075985;
}

body.page-contatti {
  --page-click: #0f766e;
  --page-click-dark: #115e59;
  --page-click-soft: #ccfbf1;
  --page-click-ink: #134e4a;
}

body.page-lavora {
  --page-click: #7c3aed;
  --page-click-dark: #5b21b6;
  --page-click-soft: #ede9fe;
  --page-click-ink: #4c1d95;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 222, 232, 0.86);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(18px, 5vw, 64px);
  color: #f4fbfb;
  background: #102a43;
  font-size: 0.88rem;
}

.top-strip a {
}

.quick-social {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}

.social-pill {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.social-pill svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.social-pill:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.social-whatsapp {
  background: #128c55;
}

.social-facebook {
  background: #1b5daa;
}

.social-linkedin {
  background: #0a66c2;
}

.social-instagram {
  background: #b83280;
}

.social-email {
  background: #455a64;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 45;
  display: grid;
  gap: 8px;
}

.floating-contact a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(20, 34, 56, 0.22);
}

.floating-contact svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.floating-whatsapp {
  background: #128c55;
}

.floating-mail {
  background: #102a43;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  min-height: 78px;
  padding: 12px clamp(18px, 5vw, 64px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 230px;
  text-decoration: none;
}

.brand img {
  width: min(330px, 56vw);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a,
.button,
.ghost-button,
.primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 13px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.16s ease, border 0.16s ease, transform 0.16s ease;
}

.main-nav a {
  --nav-color: var(--brand);
  --nav-soft: #e8f0fb;
  color: var(--nav-color);
  border-color: color-mix(in srgb, var(--nav-color) 24%, #e5eaf0);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--nav-soft) 58%, white), #fff);
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--nav-color) 34%, transparent);
}

.main-nav a[href$="checkup-sicurezza.html"],
.nav-helper a[href$="checkup-sicurezza.html"] {
  --nav-color: #0ea5e9;
  --nav-soft: #e0f2fe;
}

.main-nav a[href$="contatti.html"],
.nav-helper a[href$="contatti.html"] {
  --nav-color: #0f766e;
  --nav-soft: #ccfbf1;
}

.main-nav a[href$="lavora-con-noi.html"],
.nav-helper a[href$="lavora-con-noi.html"] {
  --nav-color: #7c3aed;
  --nav-soft: #ede9fe;
}

.main-nav a[href$="news-tecniche.html"],
.floating-nav-links a[href$="news-tecniche.html"] {
  --nav-color: #b45309;
  --nav-soft: #fff7ed;
  color: #92400e;
  border-color: rgba(180, 83, 9, 0.36);
  background:
    linear-gradient(180deg, #fff7ed, #ffffff);
  box-shadow: inset 0 -2px 0 rgba(180, 83, 9, 0.34), 0 8px 18px rgba(180, 83, 9, 0.08);
}

.main-nav .nav-user-pill,
.floating-nav-links .nav-user-pill {
  --nav-color: #0f766e;
  --nav-soft: #ecfdf5;
  color: #0f5132;
  border-color: rgba(15, 118, 110, 0.32);
  background: linear-gradient(180deg, #ecfdf5, #fff);
}

.main-nav .nav-logout-link,
.floating-nav-links .nav-logout-link {
  --nav-color: #475569;
  --nav-soft: #f1f5f9;
  color: #334155;
}

.main-nav a:hover,
.main-nav a.active {
  color: white;
  border-color: var(--nav-color);
  background: var(--nav-color);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--nav-color) 24%, transparent);
  transform: translateY(-1px);
}

.nav-helper {
  flex: 1 0 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(216, 222, 232, 0.72);
}

.nav-helper a {
  --nav-color: var(--brand);
  --nav-soft: #e8f0fb;
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid color-mix(in srgb, var(--nav-color) 36%, #e5eaf0);
  border-radius: 8px;
  color: var(--nav-color);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--nav-soft) 88%, white), #fff);
  text-decoration: none;
  box-shadow: inset 4px 0 0 var(--nav-color), 0 8px 18px rgba(20, 34, 56, 0.05);
  transition: border 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.nav-helper a:hover {
  transform: translateY(-1px);
  border-color: var(--nav-color);
  background: var(--nav-soft);
}

.nav-helper a:hover strong {
  color: var(--nav-color);
}

.nav-helper strong {
  color: var(--nav-color);
  font-size: 0.88rem;
}

.nav-helper span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button {
  color: white;
  border-color: var(--page-click);
  background: var(--page-click);
}

.primary-button:hover {
  border-color: var(--page-click-dark);
  background: var(--page-click-dark);
  transform: translateY(-1px);
}

.ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: white;
}

.ghost-button:hover {
  transform: translateY(-1px);
  color: var(--page-click-ink);
  border-color: color-mix(in srgb, var(--page-click) 48%, #b7c2d1);
  background: var(--page-click-soft);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  background: #102a43;
}

.hero-motion {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1.02);
}

.hero-reel {
  position: absolute;
  z-index: 1;
  top: 118px;
  right: max(18px, calc((100vw - 1180px) / 2));
  width: min(440px, 38vw);
  min-height: 330px;
  pointer-events: none;
}

.reel-frame {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: #102a43 center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  animation: reelFloat 8s ease-in-out infinite;
}

.reel-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.82), rgba(16, 42, 67, 0.08));
}

.reel-frame span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 8px;
  color: white;
  background: rgba(8, 31, 48, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reel-frame-1 {
  inset: 0 auto auto 26px;
  width: 58%;
  height: 142px;
  background-image: url("assets/foto-studio/Elettrico 2.jpg");
}

.reel-frame-2 {
  top: 56px;
  right: 0;
  width: 52%;
  height: 150px;
  background-image: url("assets/foto-studio/Antincendio 8.jpg");
  animation-delay: -1.6s;
}

.reel-frame-3 {
  left: 0;
  bottom: 28px;
  width: 54%;
  height: 150px;
  background-image: url("assets/formazione-hero-clear.png");
  animation-delay: -3.2s;
}

.reel-frame-4 {
  right: 34px;
  bottom: 0;
  width: 48%;
  height: 128px;
  background-image: url("assets/foto-studio/Acustica 11.jpg");
  animation-delay: -4.8s;
}

.reel-scan {
  position: absolute;
  right: 18px;
  bottom: 112px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-width: 230px;
}

.reel-scan i {
  padding: 5px 8px;
  border-radius: 999px;
  color: #102a43;
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  animation: reelPulse 4s ease-in-out infinite;
}

.reel-scan i:nth-child(2n) {
  animation-delay: -1.2s;
}

.reel-scan i:nth-child(3n) {
  animation-delay: -2.2s;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(7, 25, 42, 0.88) 0%, rgba(7, 25, 42, 0.74) 28%, rgba(7, 25, 42, 0.28) 62%, rgba(7, 25, 42, 0.05) 100%),
    linear-gradient(0deg, rgba(16, 42, 67, 0.22), rgba(16, 42, 67, 0.02));
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  background: linear-gradient(0deg, #f6f8fb, rgba(246, 248, 251, 0));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 150px 0 92px;
  color: white;
}

@keyframes reelFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -10px, 0) scale(1.02);
  }
}

@keyframes reelPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #9ee7dc;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 16px;
  font-size: 3.85rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero h1 {
  max-width: 780px;
}

.hero-actions,
.actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .ghost-button {
  color: white;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.image-reveal {
  overflow: hidden;
}

.image-reveal img {
  transform: scale(1.04);
  transition: transform 0.7s ease;
}

.image-reveal.is-visible img {
  transform: scale(1);
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

.content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.page-area .content {
  width: min(1440px, calc(100% - 64px));
}

.section {
  padding: 58px 0;
}

.section.compact {
  padding: 34px 0;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.section-title h2 {
  margin-bottom: 5px;
  font-size: 2.15rem;
  line-height: 1.12;
}

.section-title p {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.card h3 {
  margin-bottom: 8px;
  font-size: 1.13rem;
}

.card p {
  color: var(--muted);
}

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

.card li,
.clean-list li {
  padding: 8px 0;
  border-top: 1px solid #edf1f5;
}

.card li:first-child,
.clean-list li:first-child {
  border-top: 0;
}

.media-card {
  overflow: hidden;
  padding: 0;
}

.media-card img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: #eef2f6;
}

.media-card .card-body {
  padding: 20px;
}

.hero-service-strip {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: -54px auto 0;
}

.hero-service-strip a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid rgba(216, 222, 232, 0.9);
  border-radius: 8px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.hero-service-strip strong {
  color: var(--ink);
}

.hero-service-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.audience-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
  transition: transform 0.16s ease, border 0.16s ease;
}

.audience-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 76, 143, 0.55);
}

.audience-card span {
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.audience-card h3 {
  margin-bottom: 0;
  line-height: 1.15;
}

.audience-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.problem-solver {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.45fr);
  gap: 22px;
  align-items: stretch;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.92)),
    radial-gradient(circle at 10% 8%, rgba(31, 76, 143, 0.14), transparent 34%);
  box-shadow: 0 14px 34px rgba(20, 34, 56, 0.08);
}

.problem-solver h2 {
  max-width: 440px;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1.16;
}

.problem-solver p {
  margin-bottom: 0;
  color: var(--muted);
}

.quick-check-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.quick-check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 750;
  line-height: 1.35;
}

.quick-check-list li::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: inset 0 0 0 5px #dce9fb;
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.problem-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 154px;
  padding: 17px;
  border: 1px solid rgba(31, 76, 143, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(20, 34, 56, 0.05);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.problem-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 76, 143, 0.5);
  background: #f4f8ff;
  box-shadow: 0 16px 32px rgba(20, 34, 56, 0.1);
}

.problem-grid small {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.73rem;
  font-weight: 900;
  text-transform: uppercase;
}

.problem-grid strong {
  color: var(--brand-dark);
  font-size: 1.04rem;
  line-height: 1.2;
}

.problem-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.portfolio-strip,
.training-package-grid {
  display: grid;
  gap: 12px;
}

.portfolio-strip {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.portfolio-strip a {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.portfolio-strip a:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--page-click) 54%, var(--line));
  background: var(--page-click-soft);
}

.portfolio-strip a:hover strong {
  color: var(--page-click-ink);
}

.portfolio-strip strong {
  color: var(--brand-dark);
}

.portfolio-strip span {
  color: var(--muted);
  font-size: 0.9rem;
}

.training-package-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.training-package-grid article {
  min-height: 245px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 248, 0.9)),
    radial-gradient(circle at top right, rgba(31, 76, 143, 0.12), transparent 42%);
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.training-package-grid span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.training-package-grid h3 {
  margin-bottom: 0;
}

.training-package-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.training-package-grid a {
  align-self: end;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.media-wall {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.85fr;
  gap: 12px;
}

.media-wall figure {
  min-height: 230px;
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #102a43;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.media-wall-large {
  grid-row: span 2;
  min-height: 472px;
}

.media-wall img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.media-wall figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 42, 67, 0.9), rgba(16, 42, 67, 0.12));
}

.media-wall figcaption {
  position: absolute;
  z-index: 1;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: rgba(8, 31, 48, 0.72);
  backdrop-filter: blur(6px);
}

.media-wall strong {
  line-height: 1.15;
}

.media-wall span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.sign-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.sign-category-grid article {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #102a43;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.sign-category-grid strong {
  font-size: 1.05rem;
}

.sign-category-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.sign-category-grid .tone-yellow {
  border-top: 5px solid #f6c343;
}

.sign-category-grid .tone-red,
.sign-category-grid .tone-fire {
  border-top: 5px solid #b42318;
}

.sign-category-grid .tone-blue {
  border-top: 5px solid var(--blue);
}

.sign-category-grid .tone-green {
  border-top: 5px solid #187348;
}

.sign-category-grid .tone-purple {
  border-top: 5px solid #6b4bb7;
}

.sign-category-grid .tone-slate {
  border-top: 5px solid #1f4c8f;
}

.safety-sign-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 10px;
  margin-bottom: 12px;
}

.safety-sign-toolbar input,
.safety-sign-toolbar select {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.safety-sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.page-sicurezza #catalogo-cartelli.scroll-reveal,
.page-sicurezza #catalogo-cartelli .scroll-reveal,
.page-sicurezza #catalogo-cartelli .image-reveal {
  opacity: 1 !important;
  transform: none !important;
}

.page-formazione #catalogo-corsi-formazione.scroll-reveal,
.page-formazione #catalogo-corsi-formazione .scroll-reveal,
.page-formazione #catalogo-corsi-formazione .image-reveal {
  opacity: 1 !important;
  transform: none !important;
}

.formation-catalog-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.formation-catalog-lead h2 {
  max-width: 840px;
  margin-bottom: 10px;
}

.formation-catalog-lead p {
  max-width: 780px;
}

.formation-badge-row,
.formation-mode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.formation-badge-row span,
.formation-mode-list span,
.formation-logo-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(31, 76, 143, 0.16);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.84rem;
  font-weight: 900;
}

.formation-catalog-visual {
  position: relative;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #102a43;
  box-shadow: 0 14px 34px rgba(20, 34, 56, 0.1);
}

.formation-catalog-visual img {
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  opacity: 0.9;
}

.formation-catalog-visual figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border-radius: 8px;
  color: white;
  background: rgba(8, 31, 48, 0.78);
}

.formation-catalog-visual figcaption span {
  color: rgba(255,255,255,0.82);
  font-size: 0.9rem;
  line-height: 1.35;
}

.formation-logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.formation-logo-strip img {
  width: 24px;
  height: 24px;
  margin-right: 6px;
  object-fit: contain;
}

.formation-flow-section {
  padding-top: 26px;
}

.formation-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.formation-flow-card {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.08), transparent 48%),
    #ffffff;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.formation-flow-card > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-weight: 900;
}

.formation-flow-card h3,
.formation-flow-card p {
  margin: 0;
}

.formation-flow-card p {
  color: var(--muted);
}

.formation-flow-card a {
  align-self: end;
  color: var(--page-click-ink);
  font-weight: 900;
  text-decoration: none;
}

.formation-flow-card a:hover {
  color: var(--page-click-dark);
  text-decoration: underline;
}

.formation-media-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.46fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.formation-media-copy {
  display: grid;
  gap: 10px;
}

.formation-media-copy h2,
.formation-media-copy p {
  margin: 0;
}

.formation-side-gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 10px;
}

.formation-side-gallery figure {
  position: relative;
  min-height: 190px;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #102a43;
}

.formation-side-gallery figure.wide {
  grid-row: span 2;
  min-height: 390px;
}

.formation-side-gallery img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.formation-side-gallery figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  color: white;
  background: rgba(8, 31, 48, 0.76);
  font-size: 0.82rem;
  font-weight: 900;
}

.formation-cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  border-radius: 8px;
  color: white;
  background:
    radial-gradient(circle at 88% 20%, rgba(255,255,255,0.22), transparent 24%),
    linear-gradient(135deg, #102a43, #1f4c8f);
}

.formation-cta-band h2,
.formation-cta-band p {
  margin: 0;
  color: white;
}

.formation-cta-band .eyebrow {
  color: rgba(255,255,255,0.78);
}

.formation-cta-band .ghost-button {
  color: white;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}

.safety-sign-card {
  display: grid;
  grid-template-rows: 240px minmax(190px, auto);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 32px rgba(20, 34, 56, 0.08);
}

.safety-sign-card[hidden] {
  display: none;
}

.safety-sign-card.sign-warning {
  border-top: 5px solid #f2c94c;
}

.safety-sign-card.sign-prohibition,
.safety-sign-card.sign-fire {
  border-top: 5px solid #b42318;
}

.safety-sign-card.sign-mandatory {
  border-top: 5px solid var(--blue);
}

.safety-sign-card.sign-emergency {
  border-top: 5px solid #187348;
}

.safety-sign-card.sign-multisymbol {
  border-top: 5px solid #6b4bb7;
}

.safety-sign-card.sign-info {
  border-top: 5px solid #1f4c8f;
}

.safety-sign-card.sign-chemical {
  border-top: 5px solid #f2c94c;
}

.safety-sign-card.sign-road {
  border-top: 5px solid #f59f00;
}

.safety-sign-card figure {
  display: grid;
  place-items: center;
  margin: 0;
  min-height: 240px;
  max-height: 240px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.06), transparent 42%),
    #ffffff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.safety-sign-card img {
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 205px;
  display: block;
  object-fit: contain;
  background: transparent;
}

.safety-sign-fallback {
  height: 210px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: white;
  background: linear-gradient(135deg, #102a43, #1f4c8f);
  font-weight: 900;
}

.safety-sign-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  padding: 16px;
  background: #ffffff;
}

.safety-sign-card span {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.safety-sign-card h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.safety-sign-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.dpi-dpc-intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dpi-dpc-intro-grid article {
  display: grid;
  gap: 8px;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.dpi-dpc-intro-grid strong {
  color: var(--brand-dark);
  font-size: 1.08rem;
}

.dpi-dpc-intro-grid span {
  color: var(--muted);
  line-height: 1.48;
}

.dpi-dpc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.dpi-dpc-card {
  display: grid;
  grid-template-rows: 230px minmax(210px, auto);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(20, 34, 56, 0.08);
}

.dpi-dpc-card[hidden] {
  display: none;
}

.dpi-dpc-card.catalog-dpi,
.dpi-dpc-card.catalog-electric,
.dpi-dpc-card.catalog-procedure {
  border-top: 5px solid var(--blue);
}

.dpi-dpc-card.catalog-dpc,
.dpi-dpc-card.catalog-fall {
  border-top: 5px solid #1f4c8f;
}

.dpi-dpc-card.catalog-fire {
  border-top: 5px solid #b42318;
}

.dpi-dpc-card.catalog-emergency {
  border-top: 5px solid #187348;
}

.dpi-dpc-card.catalog-chemical {
  border-top: 5px solid #f2c94c;
}

.dpi-dpc-card.catalog-road {
  border-top: 5px solid #f59f00;
}

.dpi-dpc-card figure {
  display: grid;
  place-items: center;
  min-height: 230px;
  max-height: 230px;
  margin: 0;
  padding: 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.06), transparent 42%),
    #ffffff;
}

.dpi-dpc-card img {
  width: auto;
  height: auto;
  max-width: 96%;
  max-height: 205px;
  object-fit: contain;
}

.dpi-dpc-body {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 210px;
  min-width: 0;
  padding: 16px;
}

.dpi-dpc-body span {
  width: fit-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dpi-dpc-body h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.04rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.dpi-dpc-body strong {
  color: #1f4c8f;
  font-size: 0.88rem;
}

.dpi-dpc-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.service-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.showcase-card {
  min-height: 310px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background: #102a43;
  text-decoration: none;
}

.showcase-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.showcase-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(10, 34, 55, 0.94), rgba(10, 34, 55, 0.48) 44%, rgba(10, 34, 55, 0.14));
}

.showcase-card:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

.showcase-card:hover div {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--page-click) 72%, white);
}

.showcase-card div {
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(8, 31, 48, 0.7);
  backdrop-filter: blur(6px);
}

.showcase-card h3 {
  margin-bottom: 6px;
  line-height: 1.14;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.showcase-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.94rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #eef2f6;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  counter-reset: process;
}

.process-step {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.process-step::before {
  counter-increment: process;
  content: counter(process);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: white;
  background: var(--brand);
  font-weight: 900;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.solution-card {
  min-height: 260px;
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(234,244,242,0.66), rgba(255,255,255,0) 46%),
    white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.solution-card h3,
.solution-card p {
  margin-bottom: 0;
}

.solution-card p,
.solution-card span {
  color: var(--muted);
}

.solution-card strong {
  width: max-content;
  padding: 4px 8px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.commercial-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.commercial-service {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.commercial-service > span {
  width: max-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.commercial-service h3,
.commercial-service p {
  margin-bottom: 0;
}

.commercial-service p,
.commercial-service li {
  color: var(--muted);
}

.commercial-service ul {
  margin: 0;
  padding-left: 18px;
}

.commercial-service .ghost-button {
  margin-top: auto;
}

.dense-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
}

.interactive-3d {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(420px, 0.72fr);
  gap: 28px;
  align-items: center;
}

.model-panel {
  min-height: 500px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.34), rgba(255,255,255,0)),
    radial-gradient(circle at 42% 26%, #ffffff 0, #eef6f9 35%, #d6e2ee 68%, #c3cedc 100%);
  box-shadow: var(--shadow);
}

.model-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(16,42,67,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,42,67,0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, transparent, black 18%, black 78%, transparent);
}

.model-panel canvas {
  width: 100%;
  height: 500px;
  display: block;
  cursor: grab;
}

.model-panel canvas:active {
  cursor: grabbing;
}

.model-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 0.92rem;
}

.model-caption strong {
  font-size: 1rem;
}

.model-caption span {
  color: var(--muted);
  line-height: 1.4;
}

.model-stats {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-stats span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 8px;
  padding: 5px 9px;
  color: var(--brand-dark);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 900;
}

.layer-controls {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.layer-controls h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.layer-button-grid,
.view-button-grid,
.model-action-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.layer-toggle,
.view-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.layer-toggle::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--layer-color, var(--brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--layer-color, var(--brand)) 18%, transparent);
}

.layer-toggle.active,
.view-toggle.active {
  border-color: var(--brand);
  background: linear-gradient(180deg, #f4f8ff, #e8f0fb);
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(31,76,143,0.12);
}

.layer-toggle:not(.active) {
  opacity: 0.58;
}

.layer-toggle:disabled,
.layer-toggle.forced-off {
  cursor: not-allowed;
  color: #788697;
  background: #f3f6f9;
  opacity: 0.48;
  box-shadow: none;
}

.transparency-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  max-width: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.78);
}

.transparency-control label {
  font-weight: 800;
}

.transparency-control input {
  grid-column: 1 / -1;
  width: 100%;
  accent-color: var(--brand);
}

.transparency-control output {
  font-weight: 800;
  color: var(--brand-dark);
}

.model-legend {
  position: absolute;
  z-index: 2;
  top: 58px;
  right: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 150px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.62);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  font-weight: 800;
}

.model-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.model-legend span::before {
  content: "";
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--legend-color, var(--brand));
}

.model-tooltip {
  position: absolute;
  z-index: 3;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(16,42,67,0.16);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 10px 26px rgba(20,34,56,0.12);
  font-size: 0.86rem;
  font-weight: 800;
  pointer-events: none;
  transform: translate(12px, 12px);
}

.course-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 220px;
  gap: 10px;
  margin-bottom: 18px;
}

.course-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -6px 0 12px;
}

.course-quick-filters button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--ink);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.course-quick-filters button.active {
  border-color: var(--brand);
  color: var(--brand-dark);
  background: #e8f0fb;
}

.course-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 800;
}

.course-category-overview {
  display: grid;
  gap: 18px;
  margin: 18px 0 24px;
}

.course-category-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.course-category-head {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #102a43, #1f4c8f);
}

.course-category-head span {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.16);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.course-category-head h3 {
  margin: 0;
  color: white;
  font-size: 1.35rem;
}

.course-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: #f8fbfd;
}

.course-mini-card {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.course-mini-card:hover,
.course-mini-card.active {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(31, 76, 143, 0.11);
}

.course-mini-card strong {
  color: var(--brand-dark);
  font-size: 0.95rem;
  line-height: 1.22;
}

.course-mini-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.course-browser {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.course-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.course-card {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}

.course-card:hover,
.course-card.active {
  border-color: var(--brand);
  box-shadow: 0 10px 26px rgba(31, 76, 143, 0.11);
}

.course-card h3 {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.course-card-visual {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #102a43, #1f4c8f);
}

.course-card-content {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.course-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
}

.course-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.course-visual-label {
  min-width: 0;
}

.course-visual-label strong,
.course-visual-label span {
  display: block;
}

.course-visual-label strong {
  font-size: 0.92rem;
}

.course-visual-label span {
  opacity: 0.82;
  font-size: 0.78rem;
  font-weight: 700;
}

.course-detail-hero {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: -20px -20px 18px;
  padding: 20px;
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(255,255,255,0.28), transparent 25%),
    linear-gradient(135deg, #102a43, #1f4c8f);
}

.course-detail-hero .course-icon {
  width: 76px;
  height: 76px;
  flex-basis: 76px;
}

.course-detail-hero .course-icon svg {
  width: 48px;
  height: 48px;
}

.course-theme-lavoratori {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #1f4c8f, #1f4c8f);
}

.course-theme-figure {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.26), transparent 24%),
    linear-gradient(135deg, #102a43, #6d3f9f);
}

.course-theme-emergenze {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.24), transparent 24%),
    linear-gradient(135deg, #7a271a, #b42318);
}

.course-theme-aggiornamenti {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #0b4f6c, #1f7a8c);
}

.course-theme-rischi {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #5f370e, #a96708);
}

.course-theme-attrezzature {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.25), transparent 24%),
    linear-gradient(135deg, #344054, #475467);
}

.course-theme-alimentare {
  background:
    radial-gradient(circle at 86% 18%, rgba(255,255,255,0.28), transparent 24%),
    linear-gradient(135deg, #14532d, #187348);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.course-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 800;
}

.course-detail {
  position: sticky;
  top: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.course-detail h3 {
  margin-bottom: 8px;
}

.course-detail dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 16px 0;
}

.course-detail dt {
  color: var(--muted);
  font-weight: 800;
}

.course-detail dd {
  margin: 0;
}

.program-list {
  margin: 0;
  padding-left: 18px;
}

.training-photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 14px;
}

.training-photo {
  min-height: 260px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: white;
  background: #102a43;
}

.training-photo.tall {
  grid-row: span 2;
  min-height: 534px;
}

.training-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.training-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(16, 42, 67, 0.94), rgba(16, 42, 67, 0.5) 42%, rgba(16, 42, 67, 0.12));
}

.training-photo div {
  position: relative;
  z-index: 1;
  margin: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(8, 31, 48, 0.68);
  backdrop-filter: blur(6px);
}

.training-photo h3 {
  margin-bottom: 5px;
  line-height: 1.14;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.34);
}

.training-photo p {
  margin-bottom: 0;
  color: rgba(255,255,255,0.84);
  font-size: 0.94rem;
}

.module-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.module-table th,
.module-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.module-table th {
  color: white;
  background: #102a43;
}

.module-table tr:last-child td {
  border-bottom: 0;
}

.module-table td:first-child {
  width: 30%;
  font-weight: 800;
}

.module-hours {
  display: inline-flex;
  min-width: 52px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-weight: 900;
  white-space: nowrap;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.work-card img {
  width: 100%;
  height: 230px;
  display: block;
  object-fit: contain;
  padding: 10px;
  background: #f2f5f9;
}

.work-card.cover img {
  object-fit: cover;
  padding: 0;
}

.work-card-body {
  padding: 18px;
}

.work-card-body h3 {
  margin-bottom: 7px;
}

.work-card-body p {
  color: var(--muted);
}

.case-study-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-study {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.case-study img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  background: #eef2f6;
}

.case-study div {
  padding: 20px;
}

.case-study span {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.case-study p {
  margin-bottom: 9px;
  color: var(--muted);
}

.service-deep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.service-deep {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.service-deep h3 {
  margin-bottom: 8px;
}

.practical-example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.practical-example-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.practical-example {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 63, 120, 0.06), rgba(242, 183, 5, 0.08)),
    #fff;
  box-shadow: 0 14px 34px rgba(20, 34, 56, 0.07);
}

.practical-example > span {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 63, 120, 0.1);
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.practical-example h3 {
  margin: 0;
  color: var(--ink);
}

.practical-example p {
  margin: 0;
  color: var(--muted);
}

.practical-example dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.practical-example dt {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.practical-example dd {
  margin: -4px 0 0;
  color: var(--muted);
}

.example-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.example-flow article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.example-flow strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
}

.example-flow h3,
.example-flow p {
  margin: 0;
}

.example-flow p {
  margin-top: 6px;
  color: var(--muted);
}

.logo-cloud {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
}

.logo-tile {
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(20, 34, 56, 0.05);
}

.logo-tile img {
  max-height: 76px;
  width: auto;
  object-fit: contain;
}

.logo-tile.large img {
  max-height: 92px;
}

.partner-logo-cloud {
  align-items: stretch;
}

.partner-logo-tile {
  align-content: center;
  gap: 8px;
  min-height: 168px;
  text-align: center;
}

.partner-logo-tile span {
  display: block;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.25;
}

.partner-logo-tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.partner-link-button {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.partner-link-button:hover {
  color: white;
  background: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(31, 76, 143, 0.18);
  transform: translateY(-1px);
}

.partner-link-muted {
  color: var(--brand-dark);
  background: #e8f0fb;
}

.partner-link-muted:hover {
  color: white;
  background: var(--brand);
}

.partner-button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.partner-resource-button {
  display: grid;
  gap: 6px;
  min-height: 116px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(20, 34, 56, 0.05);
}

.partner-resource-button:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 26px rgba(31, 76, 143, 0.12);
}

.partner-resource-button strong {
  color: var(--brand-dark);
  font-size: 1rem;
}

.partner-resource-button span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.partner-text-logo strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 8px 18px;
  border-radius: 8px;
  background: #e8f0ff;
  color: #0f3672;
  font-size: clamp(1.45rem, 2.8vw, 2.2rem);
  letter-spacing: 0.04em;
}

.feature-row {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 28px;
  align-items: center;
}

.feature-row.reverse {
  grid-template-columns: 1fr 0.82fr;
}

.feature-image {
  width: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #e9eef5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.stat strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.8rem;
  line-height: 1.1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.service-list {
  columns: 2;
  column-gap: 28px;
  margin: 0;
  padding-left: 18px;
}

.service-list li {
  break-inside: avoid;
  margin-bottom: 9px;
}

.course-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.course-table th,
.course-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.course-table th {
  color: white;
  background: #102a43;
}

.course-table tr:last-child td {
  border-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-weight: 800;
  font-size: 0.84rem;
}

.band {
  padding: 38px;
  border-radius: 8px;
  color: white;
  background: #102a43;
}

.band h2 {
  margin-bottom: 8px;
}

.band p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
}

.trust-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(31, 76, 143, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31,76,143,0.1), rgba(31,76,143,0.08)),
    white;
  box-shadow: var(--shadow);
}

.trust-cta h2 {
  margin-bottom: 8px;
}

.trust-cta p {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.trust-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faq-grid details {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.faq-grid summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-grid p {
  margin: 12px 0 0;
  color: var(--muted);
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 42px;
  background:
    linear-gradient(115deg, rgba(10, 34, 55, 0.94), color-mix(in srgb, var(--page-accent, #1f4c8f) 72%, transparent)),
    url("assets/logo-pecoraro.png") right 12% center / min(560px, 72vw) auto no-repeat,
    #102a43;
  color: white;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, transparent, black 18%, black 78%, transparent);
}

.page-hero::after {
  content: var(--page-label, "Studio tecnico");
  position: absolute;
  right: clamp(18px, 7vw, 90px);
  bottom: 34px;
  max-width: min(420px, 42vw);
  color: rgba(255,255,255,0.16);
  font-size: 5rem;
  font-weight: 900;
  line-height: 0.9;
  text-align: right;
  text-transform: uppercase;
  pointer-events: none;
}

.page-hero .content {
  position: relative;
  z-index: 1;
  min-height: 230px;
  display: grid;
  align-items: end;
}

.page-hero .content > div {
  max-width: 820px;
  padding-left: 18px;
  border-left: 5px solid var(--page-accent, #9ee7dc);
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  font-weight: 800;
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: #b6f1ea;
  text-decoration: none;
}

.page-home { --page-accent: #1f4c8f; --page-label: "Studio"; }
.page-servizi { --page-accent: #1f4c8f; --page-label: "Servizi"; }
.page-sicurezza { --page-accent: #1f4c8f; --page-label: "Sicurezza"; }
.page-lavori { --page-accent: #7c3aed; --page-label: "Lavori"; }
.page-chi { --page-accent: #1f4c8f; --page-label: "Studio"; }
.page-progettazione { --page-accent: #2878ff; --page-label: "Progetti"; }
.page-acustica { --page-accent: #c2410c; --page-label: "Acustica"; }
.page-antincendio { --page-accent: #b42318; --page-label: "Fire"; }
.page-legno { --page-accent: #8b5a2b; --page-label: "Legno"; }
.page-fotovoltaico { --page-accent: #187348; --page-label: "Energia"; }
.page-formazione { --page-accent: #7c3aed; --page-label: "Corsi"; }
.page-partner { --page-accent: #344054; --page-label: "Partner"; }
.page-lavora { --page-accent: #1f4c8f; --page-label: "Team"; }
.page-guide { --page-accent: #1f4c8f; --page-label: "Guide"; }
.page-checkup { --page-accent: #a96708; --page-label: "Check-up"; }
.page-consultazioni { --page-accent: #1f4c8f; --page-label: "Consulta"; }
.page-contatti { --page-accent: #1f4c8f; --page-label: "Contatti"; }

.page-servizi .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.95), rgba(31,76,143,0.72)),
    url("assets/foto-studio/Elettrico 2.jpg") right center / min(680px, 64vw) auto no-repeat,
    #102a43;
}

.page-sicurezza .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.74)),
    url("assets/cartelli-sicurezza-preview.jpg") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-lavori .page-hero {
  background:
    linear-gradient(115deg, rgba(20,20,56,0.96), rgba(124,58,237,0.72)),
    url("assets/lavori/acustica-mappa-previsionale.png") right center / min(700px, 66vw) auto no-repeat,
    #102a43;
}

.page-chi .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.72)),
    url("assets/home-studio-realistic-hero.webp") right center / min(720px, 66vw) auto no-repeat,
    #102a43;
}

.page-fotovoltaico .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.95), rgba(24,115,72,0.72)),
    url("assets/servizi-generati/fotovoltaico-impianti.webp") right center / min(680px, 64vw) auto no-repeat,
    #102a43;
}

.page-partner .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(52,64,84,0.76)),
    url("https://globaluserfiles.com/media/248200_5aceeda6421b011cbac5b853e7490775de63d00e.jpeg/v1/x_0,y_0,w_372,h_230/lc%20cangemi.webp") right 18% center / min(520px, 54vw) auto no-repeat,
    #102a43;
}

.page-consultazioni .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.76)),
    url("assets/home-studio-realistic-hero.webp") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-contatti .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.72)),
    url("assets/home-studio-realistic-hero.webp") right center / min(700px, 66vw) auto no-repeat,
    #102a43;
}

.page-catalogo-corsi .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.76)),
    url("assets/formazione-hero-clear.png") right center / min(680px, 64vw) auto no-repeat,
    #102a43;
}

.page-guide .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.74)),
    url("assets/lavori/piano-evacuazione.png") right center / min(680px, 64vw) auto no-repeat,
    #102a43;
}

.page-acustica .page-hero {
  background:
    linear-gradient(115deg, rgba(20,34,56,0.94), rgba(194,65,12,0.72)),
    url("assets/foto-studio/Acustica 17.jpg") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-antincendio .page-hero {
  background:
    linear-gradient(115deg, rgba(45,13,13,0.96), rgba(180,35,24,0.78)),
    url("assets/foto-studio/Antincendio 8.jpg") right center / min(720px, 68vw) auto no-repeat,
    #2d0d0d;
}

.page-legno .page-hero {
  background:
    linear-gradient(115deg, rgba(40,25,14,0.94), rgba(139,90,43,0.78)),
    url("assets/foto-studio/Legno 19.jpg") right center / min(720px, 68vw) auto no-repeat,
    #28190e;
}

.page-formazione .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.76)),
    url("assets/servizi-generati/formazione-aula-proiezione.webp") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-lavora .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.96), rgba(31,76,143,0.7)),
    url("assets/servizi-generati/lavora-con-noi-team.webp") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-progettazione .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.95), rgba(40,120,255,0.72)),
    url("assets/servizi-generati/progettazione-cantiere.webp") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.page-checkup .page-hero {
  background:
    linear-gradient(115deg, rgba(10,34,55,0.95), rgba(169,103,8,0.72)),
    url("assets/cartelli-sicurezza-preview.jpg") right center / min(720px, 68vw) auto no-repeat,
    #102a43;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.5fr);
  gap: 28px;
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 112px;
}

.checkup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.78fr);
  gap: 22px;
  align-items: start;
}

.tool-panel,
.result-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.tool-panel {
  padding: 24px;
}

.result-panel {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow: auto;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.field {
  display: grid;
  gap: 7px;
}

.field em {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.field span,
.fieldset legend {
  color: #344054;
  font-weight: 800;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: white;
  outline: none;
}

.page-checkup .field input,
.page-checkup .field select,
.page-checkup .field textarea {
  min-height: 58px;
  padding: 15px 14px;
  font-size: 1rem;
}

.page-checkup .field textarea {
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(31, 76, 143, 0.12);
}

.required-field input,
.required-field select {
  border-color: rgba(31, 76, 143, 0.48);
  background:
    linear-gradient(90deg, rgba(31, 76, 143, 0.08), rgba(255, 255, 255, 0) 32%),
    #fff;
}

.required-field input:focus,
.required-field select:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 4px rgba(31, 76, 143, 0.16);
}

.required-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid rgba(31, 76, 143, 0.24);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.84rem;
  font-weight: 900;
}

.required-legend span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--brand);
}

.fieldset {
  margin: 18px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.fieldset legend {
  padding: 0 8px;
  font-size: 1.02rem;
}

.chip-grid,
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

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

.chip-grid label,
.toggle-grid label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  line-height: 1.35;
}

.chip-grid input,
.toggle-grid input {
  width: auto;
  accent-color: var(--brand);
}

.result-head {
  padding: 22px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: #f9fbfd;
}

.score-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}

.score-row div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: #e8f0fb;
}

.score-row strong,
.score-row span {
  display: block;
}

.score-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.result-body {
  padding: 18px 22px 22px;
}

.result-group {
  margin-bottom: 20px;
}

.result-group h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.item-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.item-list li {
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: white;
}

.item-list li.required {
  border-left-color: var(--red);
}

.item-list li.recommended {
  border-left-color: var(--amber);
}

.item-title {
  display: block;
  font-weight: 800;
}

.item-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #efc16d;
  border-radius: 8px;
  background: #fff8e8;
}

.checkup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.checkup-steps article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(31, 76, 143, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fbff, #eef5fb);
}

.checkup-steps strong {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
}

.checkup-steps span,
.checkup-help-box,
.result-guide span {
  color: var(--muted);
}

.checkup-help-box {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(31, 76, 143, 0.2);
  border-radius: 8px;
  background: #eef5fb;
}

.checkup-help-box strong {
  color: var(--brand-dark);
}

.result-guide {
  display: grid;
  gap: 5px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: #eef5fb;
}

.result-guide strong {
  color: var(--brand-dark);
}

.ateco-match {
  margin: 10px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbfd;
}

.ateco-match strong {
  color: var(--brand-dark);
}

.ateco-match span {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-weight: 800;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.5fr);
  gap: 22px;
}

.quick-contact-grid,
.request-help-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.request-help-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-contact {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-decoration: none;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.quick-contact strong {
  color: var(--brand-dark);
}

.quick-contact span {
  color: var(--muted);
  font-size: 0.92rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.map-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.map-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.map-card-head h3 {
  margin: 8px 0 3px;
}

.map-card-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.map-card iframe {
  width: 100%;
  height: 360px;
  display: block;
  border: 0;
  background: #eef2f6;
}

.consultation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
  min-width: 0;
}

.search-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid rgba(31, 76, 143, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.1), rgba(15, 117, 189, 0.06)),
    #fff;
  box-shadow: 0 12px 32px rgba(20, 34, 56, 0.08);
}

.search-callout h2 {
  color: var(--brand-dark);
}

.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.search-examples span {
  padding: 7px 10px;
  border: 1px solid rgba(31, 76, 143, 0.18);
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.84rem;
  font-weight: 900;
}

.consultation-panel {
  min-width: 0;
  max-width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.consultation-panel-wide {
  grid-column: 1 / -1;
}

.consult-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-bottom: 12px;
}

.consult-search input {
  min-height: 42px;
  width: 100%;
  border: 2px solid rgba(31, 76, 143, 0.34);
  border-radius: 8px;
  padding: 12px 13px;
  background:
    linear-gradient(90deg, rgba(31, 76, 143, 0.08), rgba(255, 255, 255, 0) 45%),
    #fff;
  font-weight: 700;
}

.consult-results {
  display: grid;
  gap: 10px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.consult-result {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  overflow-wrap: anywhere;
}

.consult-result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.consult-result h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.consult-result p {
  color: var(--muted);
  font-size: 0.94rem;
}

.consult-result mark {
  border-radius: 4px;
  padding: 0 2px;
  color: #102a43;
  background: #fff1a8;
}

.safety-consult-results {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-height: none;
}

.safety-consult-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.safety-consult-card img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.trust-strip span,
.guide-preview span,
.guide-card span,
.calendar-card span,
.cv-timeline span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  color: #0f5132;
  background: #e7f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-answer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 1060px;
  margin-top: 22px;
}

.hero-answer-grid a {
  min-height: 108px;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.hero-answer-grid a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.18);
}

.hero-answer-grid strong {
  font-size: 0.98rem;
}

.hero-answer-grid span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
}

.site-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.site-value-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96), rgba(243, 247, 248, 0.84)),
    radial-gradient(circle at top right, rgba(31, 76, 143, 0.12), transparent 36%);
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.site-value-grid span {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: #e8f0fb;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.site-value-grid h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  line-height: 1.18;
}

.site-value-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.trust-grid,
.guide-preview-grid,
.calendar-grid,
.conversion-grid,
.guide-grid,
.cv-timeline,
.service-hub-grid {
  display: grid;
  gap: 16px;
}

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

.guide-preview-grid,
.calendar-grid,
.cv-timeline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.conversion-grid,
.cv-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.cv-panel {
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.15fr) minmax(280px, 0.7fr);
}

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

.guide-intro,
.practical-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 22px;
  border: 1px solid rgba(31, 76, 143, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.08), rgba(255, 255, 255, 0.96)),
    #fff;
}

.guide-intro h2,
.practical-guide-grid h2 {
  color: var(--brand-dark);
}

.guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.practical-guide-grid {
  align-items: start;
  margin-bottom: 0;
}

.practical-guide-grid article {
  min-width: 0;
}

.practical-guide-grid ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.service-hub-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.trust-card,
.guide-preview,
.calendar-card,
.conversion-card,
.guide-card,
.service-hub-card,
.cv-card,
.cv-timeline article {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.trust-card,
.guide-preview,
.service-hub-card {
  display: grid;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.trust-card:hover,
.guide-preview:hover,
.service-hub-card:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--page-click) 54%, var(--line));
  background: var(--page-click-soft);
}

.trust-card:hover strong,
.guide-preview:hover strong,
.service-hub-card:hover strong {
  color: var(--page-click-ink);
}

.trust-card strong,
.guide-preview strong,
.service-hub-card strong,
.guide-card h2,
.calendar-card h3,
.conversion-card h2,
.cv-panel h2 {
  color: var(--brand-dark);
}

.trust-card span,
.service-hub-card em,
.guide-card p,
.calendar-card p,
.conversion-card p,
.cv-panel p,
.cv-card li,
.cv-timeline p {
  color: var(--muted);
}

.service-hub-card span {
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  color: var(--page-click-ink);
  background: #e7f0ff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.service-hub-card:hover span {
  background: white;
}

.service-hub-card strong {
  font-size: 1.25rem;
}

.service-hub-card em {
  font-style: normal;
}

.privacy-check {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbfd;
  font-size: 0.9rem;
}

.privacy-check input {
  margin-top: 4px;
}

.save-status {
  min-height: 24px;
  margin: 10px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.save-status.success {
  color: var(--green);
}

.save-status.error {
  color: var(--red);
}

.privacy-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 18px 0 8px;
  padding: 14px;
  color: var(--ink);
  background: #f5f8fc;
  border: 1px solid rgba(16, 58, 111, 0.14);
  border-radius: 8px;
}

.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1c6bb4;
  flex: 0 0 auto;
}

.privacy-consent span {
  line-height: 1.55;
  font-size: 0.95rem;
}

.print-document {
  display: none;
}

.print-doc-header {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--brand);
}

.print-doc-header img {
  width: 190px;
  height: auto;
}

.print-doc-header strong,
.print-doc-header span {
  display: block;
}

.print-doc-header strong {
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.print-doc-header span {
  color: #475467;
  font-size: 0.92rem;
  line-height: 1.45;
}

.print-doc-title {
  margin: 18px 0 14px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #12365c, #1f4c8f);
}

.print-doc-title p,
.print-doc-title h1,
.print-doc-title span {
  margin: 0;
}

.print-doc-title p {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.print-doc-title h1 {
  margin-top: 6px;
  font-size: 1.75rem;
  line-height: 1.15;
}

.print-doc-title span {
  display: block;
  margin-top: 7px;
}

.print-doc-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.print-doc-meta div,
.print-doc-box,
.print-doc-section,
.print-doc-warning {
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
}

.print-doc-meta div {
  padding: 10px 11px;
}

.print-doc-meta strong,
.print-doc-meta span {
  display: block;
}

.print-doc-meta strong {
  color: #667085;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.print-doc-meta span {
  margin-top: 4px;
  color: #12365c;
  font-size: 1.05rem;
  font-weight: 900;
}

.print-doc-box,
.print-doc-section,
.print-doc-warning {
  margin-top: 12px;
  padding: 14px;
}

.print-doc-box h2,
.print-doc-section h2,
.print-doc-warning h2 {
  margin: 0 0 9px;
  color: #12365c;
  font-size: 1.02rem;
}

.print-doc-box dl {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 6px 12px;
  margin: 0;
}

.print-doc-box dt {
  color: #344054;
  font-weight: 900;
}

.print-doc-box dd {
  margin: 0;
  color: #101828;
}

.print-doc-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.print-doc-section li {
  break-inside: avoid;
  padding: 8px 10px;
  border-left: 4px solid #1f4c8f;
  background: #f8fbff;
}

.print-doc-section li.required {
  border-left-color: #b42318;
}

.print-doc-section li.recommended {
  border-left-color: #a96708;
}

.print-doc-section .item-title {
  display: block;
  color: #101828;
  font-weight: 900;
}

.print-doc-section .item-note {
  display: block;
  margin-top: 3px;
  color: #475467;
  line-height: 1.45;
}

.print-doc-warning {
  border-color: #f0d08a;
  background: #fffaf0;
}

.print-doc-warning p {
  margin: 0;
  color: #664400;
  line-height: 1.5;
}

.print-doc-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 10px;
  border-top: 1px solid #d7e1ee;
  color: #667085;
  font-size: 0.82rem;
}

.privacy-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.catalog-summary,
.course-group-nav,
.catalog-course-grid,
.catalog-mode-pills {
  display: grid;
  gap: 14px;
}

.catalog-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-summary article,
.course-group-nav button {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.catalog-summary strong {
  display: block;
  color: var(--brand-dark);
  font-size: 2rem;
  line-height: 1;
}

.catalog-summary span {
  color: var(--muted);
}

.course-group-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-group-nav button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.course-group-nav button i {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.course-group-nav button.active,
.course-group-nav button:hover {
  border-color: #92c9c2;
  background: #e8f0fb;
}

.course-group-nav .tone-blue i,
.catalog-course-card.tone-blue .catalog-course-visual span {
  background: var(--blue);
}

.course-group-nav .tone-amber i,
.catalog-course-card.tone-amber .catalog-course-visual span {
  background: var(--amber);
}

.course-group-nav .tone-red i,
.catalog-course-card.tone-red .catalog-course-visual span {
  background: var(--red);
}

.course-group-nav strong {
  color: var(--brand-dark);
}

.course-group-nav span {
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.35fr);
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-toolbar input,
.catalog-toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}

.catalog-course-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(120deg, #ffffff, #eef8f6);
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.catalog-spotlight h2 {
  margin-bottom: 8px;
}

.catalog-spotlight p {
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-mode-pills {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-mode-pills span {
  min-width: 110px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: white;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 8px 20px rgba(20, 34, 56, 0.07);
}

.catalog-course-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.catalog-course-visual {
  min-height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: white;
  background-position: center;
  background-size: cover;
}

.catalog-course-visual span {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--brand);
  font-weight: 900;
}

.catalog-course-visual strong {
  max-width: calc(100% - 64px);
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(8, 31, 48, 0.64);
  backdrop-filter: blur(8px);
  line-height: 1.14;
  overflow-wrap: anywhere;
  text-align: right;
}

.catalog-course-content {
  padding: 18px;
}

.catalog-course-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.catalog-course-badges span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #0f5132;
  background: #e7f0ff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-course-card h2 {
  margin-bottom: 8px;
  color: var(--brand-dark);
  font-size: 1.22rem;
}

.catalog-course-card p,
.catalog-course-card li,
.catalog-course-card dd {
  color: var(--muted);
}

.catalog-course-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.catalog-course-card dt {
  color: var(--ink);
  font-weight: 900;
}

.catalog-course-card dd {
  margin: 0;
}

.guide-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.guide-card h2 {
  margin: 0;
  font-size: 1.22rem;
}

.cv-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfd;
}

.cv-photo {
  margin: 0;
}

.cv-photo-placeholder {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: white;
  background:
    linear-gradient(145deg, rgba(16, 42, 67, 0.88), rgba(31, 76, 143, 0.72)),
    url("assets/home-studio-realistic-hero.webp") center / cover no-repeat;
  box-shadow: var(--shadow);
  text-align: center;
}

.cv-photo-placeholder strong {
  font-size: 1.35rem;
}

.cv-photo-placeholder span {
  max-width: 180px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
}

.cv-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.cv-card ul,
.conversion-card ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.risk-basso {
  color: #17633a;
  background: #e7f0ff;
}

.risk-medio {
  color: #7a4b00;
  background: #fff0c2;
}

.risk-alto {
  color: #8b1d1d;
  background: #ffe0dd;
}

.collab-form {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(20, 34, 56, 0.06);
}

.collab-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.collab-form input,
.collab-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8fbfd;
  font: inherit;
  font-weight: 500;
}

.collab-form textarea {
  resize: vertical;
}

.candidate-form {
  margin-top: 18px;
}

.form-hint,
.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  padding: 36px clamp(18px, 5vw, 64px);
  color: #dce8f2;
  background: #102a43;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
}

.footer-grid a {
  color: #dce8f2;
  text-decoration: none;
}

@media (max-width: 980px) {
  h1 {
    font-size: 3rem;
  }

  .section-title h2 {
    font-size: 1.85rem;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .work-grid,
  .case-study-grid,
  .service-deep-grid,
  .service-showcase,
  .audience-grid,
  .solution-grid,
  .commercial-service-grid,
  .problem-solver,
  .problem-grid,
  .portfolio-strip,
  .training-package-grid,
  .media-wall,
  .sign-category-grid,
  .safety-sign-grid,
  .dpi-dpc-intro-grid,
  .dpi-dpc-grid,
  .safety-sign-toolbar,
  .faq-grid,
  .interactive-3d,
  .course-browser,
  .split,
  .checkup-layout,
  .checkup-steps,
  .contact-grid,
  .hero-answer-grid,
  .site-value-grid,
  .search-callout,
  .consultation-grid,
  .formation-catalog-lead,
  .formation-media-panel,
  .formation-cta-band,
  .quick-contact-grid,
  .request-help-grid,
  .map-grid,
  .trust-grid,
  .guide-grid,
  .guide-intro,
  .practical-guide-grid,
  .service-hub-grid,
  .guide-preview-grid,
  .calendar-grid,
  .conversion-grid,
  .catalog-summary,
  .catalog-spotlight,
  .course-group-nav,
  .catalog-course-grid,
  .cv-panel,
  .cv-timeline,
  .practical-example-grid,
  .practical-example-grid.two,
  .example-flow,
  .footer-grid,
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }

  .side-panel,
  .result-panel {
    position: static;
    max-height: none;
  }

  .hero-reel {
    opacity: 0.46;
    right: 18px;
    width: min(360px, 46vw);
  }

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

  .logo-cloud,
  .stats,
  .hero-service-strip,
  .nav-helper,
  .process-grid,
  .formation-flow-grid,
  .formation-side-gallery,
  .audience-grid,
  .solution-grid,
  .gallery-grid,
  .training-photo-grid,
  .formation-side-gallery,
  .course-list,
  .course-category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-list {
    columns: 1;
  }

  .dense-list {
    grid-template-columns: 1fr;
  }

  .model-panel {
    min-height: 460px;
  }

  .model-panel canvas {
    height: 460px;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.25rem;
    line-height: 1.08;
  }

  .section-title h2 {
    font-size: 1.55rem;
  }

  .top-strip,
  .nav-wrap,
  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    justify-content: flex-start;
  }

  .floating-contact {
    right: 10px;
    bottom: 10px;
  }

  .floating-contact a {
    min-height: 42px;
    padding: 9px 11px;
  }

  .floating-contact span {
    display: none;
  }

  .quick-social {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .nav-helper {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 600px;
  }

  .hero-reel {
    display: none;
  }

  .hero-content {
    padding-top: 130px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(7, 25, 42, 0.9), rgba(7, 25, 42, 0.56));
  }

  .page-hero::after {
    right: 18px;
    bottom: 18px;
    max-width: 70vw;
    font-size: 3.1rem;
  }

  .page-hero .content > div {
    padding-left: 14px;
  }

  .field-grid,
  .consult-search,
  .toggle-grid,
  .chip-grid,
  .score-row,
  .logo-cloud,
  .stats,
  .hero-answer-grid,
  .site-value-grid,
  .problem-grid,
  .portfolio-strip,
  .training-package-grid,
  .media-wall,
  .sign-category-grid,
  .safety-sign-grid,
  .dpi-dpc-intro-grid,
  .dpi-dpc-grid,
  .safety-sign-toolbar,
  .hero-service-strip,
  .process-grid,
  .audience-grid,
  .solution-grid,
  .gallery-grid,
  .training-photo-grid,
  .formation-catalog-lead,
  .formation-flow-grid,
  .formation-media-panel,
  .formation-side-gallery,
  .formation-cta-band,
  .course-list,
  .course-category-list,
  .course-toolbar,
  .catalog-toolbar,
  .catalog-mode-pills,
  .practical-example-grid,
  .practical-example-grid.two,
  .example-flow,
  .catalog-course-card dl {
    grid-template-columns: 1fr;
  }

  .model-panel {
    min-height: 430px;
  }

  .model-panel canvas {
    height: 430px;
  }

  .model-stats {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .model-legend {
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 108px;
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .layer-toggle,
  .view-toggle {
    flex: 1 1 140px;
    justify-content: center;
  }

  .search-examples,
  .guide-actions {
    justify-content: flex-start;
  }

  .safety-consult-card {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .safety-consult-card img {
    width: 78px;
    height: 78px;
  }

  .feature-image {
    min-height: 240px;
  }

  .course-detail {
    position: static;
  }

  .course-detail dl {
    grid-template-columns: 1fr;
  }

  .training-photo,
  .training-photo.tall,
  .formation-side-gallery figure,
  .formation-side-gallery figure.wide,
  .media-wall-large {
    min-height: 240px;
    grid-row: auto;
  }

  .trust-cta {
    grid-template-columns: 1fr;
  }

  .trust-actions {
    justify-content: flex-start;
  }
}

.safety-control-center {
  padding-top: 28px;
}

.safety-mega-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0 26px;
}

.safety-mega-nav a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(145deg, #ffffff, #f3f7fc);
  border: 1px solid rgba(16, 58, 111, 0.16);
  border-left: 5px solid #1c6bb4;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(14, 37, 70, 0.08);
}

.safety-mega-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(28, 107, 180, 0.42);
}

.safety-mega-nav strong {
  font-size: 1.05rem;
  color: #0b315f;
}

.safety-mega-nav span {
  color: var(--muted);
  line-height: 1.55;
}

.safety-route-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.safety-route-grid article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(16, 58, 111, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(14, 37, 70, 0.08);
}

.safety-route-grid img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
}

.safety-route-grid div {
  padding: 18px;
}

.safety-route-grid span,
.image-credit-note {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.safety-route-grid h3 {
  margin: 8px 0;
  color: #0b315f;
}

.safety-catalog-highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
}

.safety-catalog-highlights article {
  padding: 16px;
  background: #eef5fb;
  border: 1px solid rgba(28, 107, 180, 0.16);
  border-radius: 8px;
}

.safety-catalog-highlights strong {
  display: block;
  color: #0b315f;
  font-size: 2rem;
  line-height: 1;
}

.safety-catalog-highlights span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.safety-catalog-grid {
  align-items: stretch;
}

.safety-product-card {
  overflow: hidden;
  background: #ffffff;
}

.safety-product-card figure {
  height: 220px;
  min-height: 220px;
  padding: 0;
  background: #e8eef6;
  border-bottom: 1px solid rgba(16, 58, 111, 0.12);
}

.safety-product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.safety-product-card .dpi-dpc-body {
  gap: 10px;
}

.safety-product-card dl {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
}

.safety-product-card dt {
  color: #0b315f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.safety-product-card dd {
  margin: -4px 0 4px;
  color: var(--muted);
  line-height: 1.55;
}

.image-credit-note {
  margin-top: 18px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
}

@media (max-width: 820px) {
  .safety-mega-nav,
  .safety-route-grid,
  .safety-catalog-highlights {
    grid-template-columns: 1fr;
  }

  .safety-mega-nav a {
    min-height: auto;
  }

  .safety-route-grid img,
  .safety-product-card figure {
    height: 190px;
    min-height: 190px;
  }
}

.menu-toggle {
  width: 46px;
  height: 46px;
  display: none;
  place-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(31, 76, 143, 0.22);
  border-radius: 8px;
  background: #f4f8ff;
  cursor: pointer;
}

.menu-toggle span {
  width: 21px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: var(--brand-dark);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.floating-nav-control {
  position: fixed;
  top: 50%;
  right: 14px;
  z-index: 9995;
  display: none;
  align-items: flex-start;
  gap: 12px;
  transform: translateY(-50%);
}

body.nav-scrolled .floating-nav-control {
  display: flex;
}

.floating-menu-button {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #0f766e, var(--brand));
  box-shadow: 0 18px 35px rgba(20, 34, 56, 0.34);
  cursor: pointer;
}

.floating-menu-button span {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.floating-nav-control.open .floating-menu-button span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.floating-nav-control.open .floating-menu-button span:nth-child(2) {
  opacity: 0;
}

.floating-nav-control.open .floating-menu-button span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.floating-nav-panel {
  width: min(340px, calc(100vw - 96px));
  max-height: min(680px, calc(100vh - 116px));
  overflow: auto;
  border: 1px solid rgba(216, 222, 232, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 55px rgba(20, 34, 56, 0.2);
}

.floating-nav-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f7faff;
}

.floating-nav-close {
  border: 1px solid rgba(31, 76, 143, 0.18);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--brand-dark);
  background: white;
  cursor: pointer;
  font-weight: 800;
}

.floating-nav-links {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.floating-nav-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fbfcfe;
  text-decoration: none;
  font-weight: 800;
}

.floating-nav-links a:hover,
.floating-nav-links a.active {
  border-color: rgba(31, 76, 143, 0.35);
  background: var(--page-click-soft);
}

.page-news {
  --page-click: #1f4c8f;
  --page-click-dark: #143a6f;
  --page-click-soft: #e8f0fb;
}

.news-hero {
  background:
    linear-gradient(115deg, rgba(16, 42, 67, 0.94), rgba(31, 76, 143, 0.86)),
    url("assets/home-studio-realistic-hero.webp") center/cover;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.newsletter-card {
  position: sticky;
  top: 18px;
}

.checkbox-line {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkbox-line input {
  margin-top: 4px;
}

.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.news-filter-bar .active {
  color: white;
  border-color: var(--brand);
  background: var(--brand);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.news-archive {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.news-archive h2 {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.news-archive-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.news-archive-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(31, 76, 143, 0.12);
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff;
  text-decoration: none;
}

.news-archive-list a:hover {
  border-color: rgba(180, 83, 9, 0.32);
  background: #fff7ed;
}

.news-archive-list span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.news-card {
  display: grid;
  gap: 12px;
  min-height: 250px;
  overflow: hidden;
}

.news-card-image {
  width: calc(100% + 44px);
  height: 190px;
  margin: -22px -22px 4px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: #e8eef6;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-card h2 {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  line-height: 1.25;
}

.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-card-details {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.news-card-meta,
.news-source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.news-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--page-click-soft);
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.news-card-meta time,
.news-source-row span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.news-source-row {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  .news-layout,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .search-callout,
  .consult-search,
  .safety-consult-card,
  .news-archive-list a {
    grid-template-columns: 1fr;
  }

  .consultation-grid,
  .dpi-dpc-grid,
  .safety-products-grid,
  .safety-sign-grid {
    grid-template-columns: 1fr;
  }

  .dpi-dpc-card {
    grid-template-rows: auto;
  }

  .dpi-dpc-card figure {
    min-height: 170px;
    max-height: none;
  }

  .dpi-dpc-card img {
    max-height: 160px;
  }

  .consult-result-head {
    display: grid;
  }

  .safety-consult-card img {
    width: 100%;
    height: 140px;
  }
}

@media (max-width: 720px) {
  .floating-nav-control {
    top: 50%;
    right: 10px;
  }

  .floating-menu-button {
    width: 50px;
    height: 50px;
  }

  .floating-nav-panel {
    width: min(320px, calc(100vw - 74px));
  }
}

@media (max-width: 1180px) {
  .top-strip {
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 0.82rem;
  }

  .nav-wrap {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
  }

  .brand img {
    width: min(270px, 58vw);
  }

  .has-mobile-toggle .menu-toggle {
    display: grid;
  }

  .has-mobile-toggle .main-nav,
  .has-mobile-toggle .nav-helper {
    flex: 1 0 100%;
    width: 100%;
    display: none;
  }

  .has-mobile-toggle.menu-open .main-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(216, 222, 232, 0.86);
  }

  .has-mobile-toggle.menu-open .nav-helper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 8px;
  }

  .main-nav a {
    min-height: 44px;
    justify-content: flex-start;
    padding: 10px 12px;
    background: #fbfcfe;
    border-color: #e5eaf0;
  }
}

@media (max-width: 720px) {
  .top-strip {
    display: grid;
    padding: 8px 14px;
  }

  .top-strip > span {
    min-width: 0;
  }

  .quick-social {
    justify-content: flex-start;
    margin-left: 0;
  }

  .social-pill {
    width: 34px;
    height: 34px;
  }

  .nav-wrap {
    padding: 10px 14px;
  }

  .brand img {
    width: min(230px, 64vw);
  }

  .has-mobile-toggle.menu-open .main-nav,
  .has-mobile-toggle.menu-open .nav-helper {
    grid-template-columns: 1fr;
  }

  .nav-helper span {
    white-space: normal;
  }

  .floating-contact {
    right: 10px;
    bottom: 10px;
  }

  .floating-contact a {
    min-height: 42px;
    padding: 9px 11px;
  }

  .floating-contact span {
    display: none;
  }
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  body {
    background: white;
  }

  .site-header,
  .site-footer,
  main > *:not(.print-document) {
    display: none !important;
  }

  main {
    display: block !important;
  }

  .print-document {
    display: block !important;
    width: 100%;
    color: #101828;
    background: white;
    font-family: Arial, sans-serif;
    font-size: 10.5pt;
  }

  .print-doc-header,
  .print-doc-title,
  .print-doc-meta,
  .print-doc-box,
  .print-doc-section,
  .print-doc-warning,
  .print-doc-footer {
    break-inside: avoid;
    box-shadow: none !important;
  }

  .print-doc-title {
    background: #12365c !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-doc-meta div,
  .print-doc-section li {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-doc-section {
    page-break-inside: avoid;
  }

  .print-doc-header img {
    max-width: 180px;
  }

  .print-doc-footer {
    position: static;
  }
}

.auth-shell {
  min-height: 68vh;
  display: grid;
  place-items: center;
  padding: 58px 20px;
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.08), rgba(0, 158, 224, 0.08)),
    #f7f9fc;
}

.auth-card {
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid rgba(31, 76, 143, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(9, 29, 59, 0.12);
}

.auth-card.wide {
  width: min(760px, 100%);
}

.auth-card h1 {
  margin: 8px 0 10px;
  color: var(--brand-dark);
}

.auth-note {
  margin: 18px 0 0;
  color: var(--muted);
}

.auth-note-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.stack-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.stack-form.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stack-form label {
  display: grid;
  gap: 7px;
  color: var(--brand-dark);
  font-weight: 800;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  border: 1px solid rgba(31, 76, 143, 0.24);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdff;
}

.stack-form input:focus,
.stack-form select:focus,
.stack-form textarea:focus {
  outline: 3px solid rgba(0, 158, 224, 0.18);
  border-color: #009ee0;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 56px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(31, 76, 143, 0.18);
  border-radius: 8px;
  color: var(--brand-dark);
  background: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
  border-color: #009ee0;
  background: #eef8fd;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.stack-form .check-line {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.stack-form .check-line input {
  width: auto;
  margin-top: 4px;
}

.form-alert {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-alert.error {
  color: #7d1b1b;
  background: #fff1f1;
  border: 1px solid #ffcaca;
}

.form-alert.success {
  color: #125229;
  background: #eefcf3;
  border: 1px solid #bfe9cd;
}

.nav-reserved {
  background: linear-gradient(135deg, #0b315f, #1f4c8f) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
}

.reserved-hero {
  background:
    linear-gradient(120deg, rgba(11, 49, 95, 0.92), rgba(31, 76, 143, 0.82)),
    #0b315f;
  color: #fff;
}

.reserved-hero h1,
.reserved-hero p,
.reserved-hero .eyebrow {
  color: #fff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.metrics-grid article {
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(31, 76, 143, 0.14);
  box-shadow: 0 14px 40px rgba(9, 29, 59, 0.08);
}

.metrics-grid strong {
  display: block;
  color: var(--brand-dark);
  font-size: 2.1rem;
  line-height: 1;
}

.metrics-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.table-card {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(31, 76, 143, 0.14);
  background: #fff;
}

.table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.table-card th,
.table-card td {
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf5;
  text-align: left;
  vertical-align: top;
}

.table-card th {
  color: var(--brand-dark);
  background: #f3f7fc;
  font-size: 0.83rem;
  text-transform: uppercase;
}

.table-card td {
  color: var(--text);
}

.table-card tr.unread-row td {
  background: #fffaf0;
  border-bottom-color: #f5d69a;
}

.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 7px;
  background: #eaf4ff;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.table-action:hover {
  background: var(--brand-blue);
  color: #fff;
}

.table-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.4fr) minmax(0, 1fr);
  gap: 10px 16px;
  margin: 18px 0 0;
}

.detail-list dt {
  color: var(--brand-dark);
  font-weight: 900;
}

.detail-list dd {
  margin: 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.detail-list-wide {
  grid-template-columns: minmax(140px, 0.25fr) minmax(0, 1fr);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef6ff;
  color: var(--brand-dark);
  font-weight: 900;
}

.report-detail-card {
  margin-bottom: 22px;
}

.report-pre {
  max-height: 560px;
  overflow: auto;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #dce7f5;
  background: #f8fbff;
  color: #102542;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.92rem;
  line-height: 1.55;
}

.manager-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.manager-sidebar {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 92px;
}

.manager-sidebar a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(31, 76, 143, 0.14);
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 900;
}

.manager-sidebar a.active,
.manager-sidebar a:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand-blue));
  color: #fff;
}

.manager-sidebar strong {
  font-size: 0.82rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(31, 76, 143, 0.1);
}

.manager-sidebar a.active strong,
.manager-sidebar a:hover strong {
  background: rgba(255, 255, 255, 0.18);
}

.manager-main {
  display: grid;
  gap: 18px;
}

.quick-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.manager-table-stack {
  display: grid;
  gap: 24px;
}

.manager-wide-table {
  padding: 22px;
}

.manager-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.manager-table-header h2 {
  margin-bottom: 6px;
}

.manager-table-header p {
  margin: 0;
  color: var(--muted);
}

.manager-dashboard-table {
  min-width: 1060px;
}

.manager-dashboard-table th,
.manager-dashboard-table td {
  padding: 15px 16px;
}

.manager-dashboard-table td {
  font-size: 0.96rem;
  line-height: 1.45;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.table-actions form {
  margin: 0;
}

.table-danger-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 7px;
  border: 1px solid #ffcaca;
  background: #fff1f1;
  color: #7d1b1b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.table-danger-action:hover {
  border-color: #b42318;
  background: #b42318;
  color: #fff;
}

.table-danger-action:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.data-browser table {
  min-width: 980px;
}

.data-browser td {
  max-width: 260px;
  overflow-wrap: anywhere;
}

.attachment-list,
.table-links {
  display: grid;
  gap: 8px;
}

.attachment-list {
  margin: 16px 0;
  padding: 14px;
  border-radius: 8px;
  background: #f4f8fd;
  border: 1px solid #dce7f5;
}

.attachment-list a,
.table-links a {
  color: var(--brand-blue);
  font-weight: 900;
  text-decoration: none;
}

.attachment-list a:hover,
.table-links a:hover {
  text-decoration: underline;
}

.client-response-list {
  display: grid;
  gap: 16px;
}

.client-response-card {
  padding: 18px;
  border-radius: 8px;
  border: 1px solid rgba(31, 76, 143, 0.14);
  background: #fff;
  box-shadow: 0 14px 34px rgba(9, 29, 59, 0.06);
}

.client-response-card.has-reply {
  border-color: rgba(14, 165, 233, 0.34);
  box-shadow: inset 5px 0 0 #0ea5e9, 0 14px 34px rgba(9, 29, 59, 0.08);
}

.client-response-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.client-response-head span:first-child {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.client-response-head h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.15rem;
}

.client-response-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.client-response-meta div {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8fd;
  border: 1px solid #e2ebf6;
}

.client-response-meta dt {
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.client-response-meta dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.studio-reply-box {
  padding: 14px;
  border-radius: 8px;
  background: #f8fbff;
  border: 1px solid #dce7f5;
}

.studio-reply-box strong {
  display: block;
  color: var(--brand-dark);
}

.studio-reply-box p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.danger-zone {
  margin-top: 26px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid #ffcaca;
  background: #fff7f7;
}

.danger-zone h3 {
  color: #7d1b1b;
}

.danger-zone label {
  display: grid;
  gap: 7px;
  max-width: 360px;
  margin: 14px 0;
  color: #7d1b1b;
  font-weight: 900;
}

.danger-zone input {
  width: 100%;
}

.danger-zone .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid #b42318;
  background: #b42318;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.danger-zone .danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-risposto {
  background: #eefcf3;
  color: #125229;
}

.status-done,
.status-chiusa,
.status-archiviata,
.status-active {
  background: #eefcf3;
  color: #125229;
}

.status-in-progress,
.status-in_esame,
.status-preventivo {
  background: #eef6ff;
  color: var(--brand-dark);
}

.status-pending,
.status-richiesta_integrazione {
  background: #fff7e6;
  color: #8a5200;
}

.status-disabled {
  background: #f1f3f6;
  color: #596579;
}

.status-new,
.status-nuova,
.status-nuovo {
  background: #fff2d8;
  color: #7a4b00;
}

.status-in_esame {
  background: #eaf4ff;
  color: var(--brand-dark);
}

.status-richiesta_integrazione {
  background: #fff7e8;
  color: #7a4b00;
}

.status-preventivo {
  background: #eefcf3;
  color: #125229;
}

.status-chiusa {
  background: #eef0f4;
  color: #4d5967;
}

.status-archiviato,
.status-archiviata {
  background: #eef0f4;
  color: #4d5967;
}

.admin-doc-list {
  display: grid;
  gap: 18px;
}

.document-admin-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.delete-form {
  grid-column: 1 / -1;
  margin: 0;
}

.danger-button {
  border: 1px solid #cc3535;
  border-radius: 8px;
  padding: 11px 15px;
  background: #fff1f1;
  color: #7d1b1b;
  font-weight: 900;
  cursor: pointer;
}

.profile-form {
  display: grid;
  gap: 22px;
}

.profile-password-card {
  margin-top: 18px;
}

.profile-form h3 {
  margin: 26px 0 0;
  color: var(--brand-dark);
}

.sticky-actions {
  position: sticky;
  bottom: 14px;
  z-index: 5;
  padding: 14px;
  border: 1px solid rgba(31, 76, 143, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(9, 29, 59, 0.12);
  backdrop-filter: blur(12px);
}

.inline-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.inline-search input {
  min-height: 46px;
  border: 1px solid rgba(31, 76, 143, 0.24);
  border-radius: 8px;
  padding: 11px 13px;
  font: inherit;
}

.inline-search input:focus {
  outline: 3px solid rgba(0, 158, 224, 0.18);
  border-color: #009ee0;
}

.stack-form button:disabled,
.course-request-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.muted {
  color: var(--muted);
}

.manager-search {
  grid-template-columns: minmax(280px, 1fr) auto auto auto;
}

.manager-user-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 22px;
  align-items: start;
}

.manager-user-card {
  min-height: 100%;
}

.manager-user-card h2 {
  margin-bottom: 8px;
}

.manager-user-card > p {
  margin-bottom: 0;
}

.manager-reset-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e7edf5;
}

.manager-help-card {
  background:
    linear-gradient(135deg, rgba(31, 76, 143, 0.06), rgba(0, 158, 224, 0.08)),
    #fff;
}

.manager-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.manager-checklist li {
  padding: 12px 14px;
  border: 1px solid rgba(31, 76, 143, 0.12);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 700;
}

.users-admin-table {
  min-width: 1240px;
}

.users-admin-table td:first-child {
  color: var(--brand-dark);
}

.manager-company-form label:first-of-type {
  grid-column: 1 / -1;
}

.status-role {
  color: #1f4c8f;
  background: #edf4ff;
}

.status-pending {
  color: #7a4a00;
  background: #fff3d6;
}

.status-active {
  color: #125229;
  background: #e9f9ef;
}

.status-disabled {
  color: #626b79;
  background: #eef1f5;
}

@media (max-width: 980px) {
  .manager-search,
  .manager-user-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .page-area .content {
    width: min(100% - 28px, 100%);
  }

  .stack-form.two-cols,
  .dashboard-grid,
  .metrics-grid,
  .document-admin-card,
  .detail-grid,
  .manager-layout,
  .inline-search {
    grid-template-columns: 1fr;
  }

  .manager-sidebar {
    position: static;
  }

  .detail-list,
  .detail-list-wide,
  .client-response-meta {
    grid-template-columns: 1fr;
  }

  .client-response-head {
    display: grid;
  }

  .auth-card {
    padding: 24px;
  }
}


