/*
Theme Name: 3DTech
Theme URI: https://3dtech.it/
Author: 3DTech
Description: Tema WordPress personalizzato derivato dal prototipo HTML 3DTech.
Version: 0.1.10
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: tdtech
*/

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fira Sans";
  src: url("assets/fonts/fira-sans-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue-950: #071a24;
  --blue-900: #0e2a3a;
  --blue-800: #12384c;
  --orange: #f28c28;
  --red: #c7352b;
  --yellow: #f5c542;
  --ink: #222222;
  --muted: #666666;
  --line: #e5ddd2;
  --cream: #fff8ef;
  --paper: #ffffff;
  --soft: #f4f4f4;
  --shadow: 0 22px 60px rgba(7, 26, 36, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Fira Sans", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

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

/* Keep the legal documents readable on phones without changing their content. */
body.privacy-policy #main-content,
body.cmplz-document #main-content {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding-block: 48px 64px;
}

body.privacy-policy #main-content a,
body.cmplz-document #main-content a {
  overflow-wrap: anywhere;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-preview-toggle {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--blue-950);
  font-weight: 900;
  box-shadow: 0 12px 30px rgba(7, 26, 36, 0.26);
  cursor: pointer;
}

.mobile-preview-toggle:hover {
  background: #f7cf7a;
}

.mobile-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(7, 26, 36, 0.82);
}

.mobile-preview-frame {
  width: min(390px, calc(100vw - 36px));
  height: min(780px, calc(100vh - 70px));
  padding: 12px;
  border-radius: 34px;
  background: #101820;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.mobile-preview-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
  background: var(--cream);
}

.mobile-preview-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 91;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--blue-950);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.is-mobile-preview-child .mobile-preview-toggle {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 26, 36, 0.94);
  border-bottom: 1px solid rgba(255, 248, 239, 0.14);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  min-width: 220px;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: invert(1);
}

.brand strong,
.footer-brand {
  display: block;
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1;
}

.brand small,
.footer-claim {
  display: block;
  margin-top: 3px;
  color: #f7cf7a;
  font-size: 0.78rem;
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 700;
}

.primary-nav a {
  padding: 10px 0;
}

.primary-nav a:hover {
  color: var(--yellow);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  display: list-item;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}

.nav-dropdown[open] summary,
.nav-dropdown summary:hover {
  color: var(--yellow);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 20;
  display: grid;
  min-width: 250px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(7, 26, 36, 0.98);
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--yellow);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 800;
  text-align: center;
}

.nav-highlight {
  color: var(--yellow);
  font-weight: 900;
}

.nav-highlight:hover {
  color: #f7cf7a;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 6px;
  background: transparent;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--paper);
}

.section-dark {
  color: var(--paper);
  background: var(--blue-950);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 78px);
  background:
    linear-gradient(90deg, rgba(7, 26, 36, 0.96) 0%, rgba(7, 26, 36, 0.86) 34%, rgba(7, 26, 36, 0.45) 63%, rgba(7, 26, 36, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 26, 36, 0.78) 0%, rgba(7, 26, 36, 0.08) 52%),
    url("assets/images/hero-hands.webp") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--yellow));
}

.hero-grid {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.95fr);
  align-items: center;
  gap: 54px;
  padding: 70px 0 78px;
}

.hero-full {
  min-height: calc(100vh - 78px);
  box-sizing: border-box;
  grid-template-columns: minmax(0, 760px);
  padding: 34px 0 46px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.section-dark .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.4rem);
  line-height: 0.98;
  font-weight: 900;
  max-width: 860px;
}

h2 {
  margin: 0;
  color: var(--blue-900);
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1.05;
  font-weight: 900;
}

h3 {
  margin: 0;
  color: var(--blue-900);
  font-size: 1.16rem;
  line-height: 1.18;
  font-weight: 850;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.16rem;
}

.hero-claim {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 12px 16px;
  border-left: 6px solid var(--orange);
  background: rgba(7, 26, 36, 0.58);
  color: #f7cf7a;
  font-size: clamp(1.12rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.42);
}

.hero-full .hero-copy {
  max-width: 760px;
  transform: translateY(-34px);
}

.hero-full h1 {
  max-width: 740px;
  color: rgba(255, 248, 239, 0.72);
  font-size: clamp(2.55rem, 4.3vw, 4.55rem);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.24);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0 0;
}

.button-primary {
  background: var(--orange);
  color: var(--blue-950);
  border: 2px solid var(--orange);
  box-shadow: 0 14px 34px rgba(242, 140, 40, 0.25);
}

.button-primary:hover {
  background: #ff9f3a;
}

.button-secondary {
  color: var(--paper);
  border: 2px solid rgba(255, 248, 239, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

.button-secondary:hover {
  border-color: var(--yellow);
}

.microcopy {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.hero-media {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blue-800);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 26, 36, 0.22), transparent 36%),
    linear-gradient(0deg, rgba(7, 26, 36, 0.28), transparent 46%);
}

.hero-media img {
  width: 100%;
  min-height: 430px;
  aspect-ratio: 1.64;
  object-fit: cover;
}

.hero-media-clean img {
  min-height: 0;
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #143748, #0b202c);
}

.hero-badge {
  position: absolute;
  z-index: 2;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 16px 18px;
  border-left: 5px solid var(--orange);
  background: rgba(7, 26, 36, 0.84);
  color: var(--paper);
}

.hero-badge-inline {
  position: static;
  width: min(100%, 520px);
  margin-top: 24px;
  background: rgba(7, 26, 36, 0.72);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  font-size: 1rem;
}

.hero-badge span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
}

.highlight-yellow {
  color: #f5c542 !important;
  font-weight: 950;
}

section {
  padding: 92px 0;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading .section-subtle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.98rem;
  line-height: 1.6;
}

.problem-band {
  position: relative;
  background:
    linear-gradient(rgba(255, 248, 239, 0.9), rgba(255, 248, 239, 0.9)),
    url("assets/images/sfondo.webp") center/cover;
}

.problem-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--yellow));
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.process-card {
  position: relative;
  min-height: 215px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(14, 42, 58, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 248, 239, 0.82)),
    radial-gradient(circle at 100% 0%, rgba(242, 140, 40, 0.28), transparent 34%);
  box-shadow: 0 18px 46px rgba(7, 26, 36, 0.12);
}

.process-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--yellow));
}

.process-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 128px;
  height: 128px;
  border: 1px solid rgba(245, 197, 66, 0.6);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(245, 197, 66, 0.95), rgba(242, 140, 40, 0.95) 46%, rgba(199, 53, 43, 0.95) 100%);
  box-shadow: 0 18px 42px rgba(242, 140, 40, 0.28);
}

.process-card span {
  position: absolute;
  right: 6px;
  bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  margin-bottom: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue-950);
  font-size: 2.8rem;
  font-weight: 950;
  box-shadow: none;
}

.process-card h3,
.process-card p {
  position: relative;
  z-index: 1;
}

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

.process-card-wide {
  grid-column: span 2;
  background:
    linear-gradient(135deg, rgba(14, 42, 58, 0.96), rgba(18, 56, 76, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(245, 197, 66, 0.24), transparent 36%);
}

.process-card-wide h3,
.process-card-wide p {
  color: var(--paper);
}

.process-card-wide p {
  color: rgba(255, 255, 255, 0.78);
}

.cards-grid {
  display: grid;
  gap: 22px;
}

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

.problem-card,
.sector-list article,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(7, 26, 36, 0.07);
}

.problem-card {
  padding: 26px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--blue-900);
  color: var(--yellow);
  font-weight: 900;
}

.problem-card p,
.tech-card p,
.sector-list p,
.trust-box p,
.form-copy p,
.site-footer p {
  color: var(--muted);
}

.method-section {
  background: var(--paper);
}

.split-layout {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 62px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
}

.timeline span {
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--blue-950);
  font-size: 1.5rem;
  font-weight: 900;
}

.timeline p {
  margin: 8px 0 0;
  color: var(--muted);
}

.technology-section {
  position: relative;
  padding-bottom: 44px;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--soft) 42%, #eceff0 100%);
  border-top: 1px solid rgba(14, 42, 58, 0.14);
}

.technology-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  background: rgba(14, 42, 58, 0.18);
  transform: translateX(-50%);
}

.tech-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--blue-900) 0%, var(--blue-800) 100%);
  box-shadow: 0 18px 42px rgba(7, 26, 36, 0.18);
}

.tech-card img {
  width: 100%;
  aspect-ratio: 1.42;
  object-fit: cover;
}

.tech-card > div {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.tech-card p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.78);
}

.inline-card-title {
  display: inline;
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.08rem;
  line-height: 1.2;
}

.tech-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tech-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--yellow);
  font-weight: 900;
}

.tech-card .tech-contact-link {
  color: var(--yellow);
}

.tech-card .tech-contact-link:hover {
  color: #f7cf7a;
}

.sector-section {
  background: var(--paper);
}

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

.sector-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-900);
  box-shadow: 0 16px 38px rgba(7, 26, 36, 0.11);
}

.sector-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.355;
  object-fit: cover;
  background: #fff8ef;
}

.sector-card--industry img {
  aspect-ratio: 1.5;
}

.sector-card div {
  padding: 22px;
}

.sector-card h3 {
  color: var(--paper);
  font-size: 1.18rem;
}

.sector-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.sector-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
}

.sector-feature {
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue-900);
  color: var(--paper);
  box-shadow: var(--shadow);
}

.sector-feature img {
  width: 100%;
  aspect-ratio: 1.8;
  object-fit: cover;
}

.sector-feature div {
  padding: 28px;
}

.sector-feature h3 {
  color: var(--paper);
  font-size: 1.55rem;
}

.sector-feature p {
  color: rgba(255, 255, 255, 0.78);
}

.sector-list {
  display: grid;
  gap: 18px;
}

.sector-list article {
  padding: 24px;
}

.trust-section {
  padding: 0 0 92px;
  background:
    linear-gradient(180deg, var(--soft) 0%, #eceff0 100%);
}

.trust-box {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 34px;
  align-items: center;
  padding: 48px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

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

.trust-list li {
  position: relative;
  padding: 16px 18px 16px 48px;
  border-radius: 6px;
  background: var(--soft);
  color: var(--blue-900);
  font-weight: 800;
}

.trust-list li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
}

.confidentiality-box {
  margin-top: 28px;
  padding: 26px 30px;
  border-left: 6px solid var(--red);
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--orange) 0%, #ffb24a 48%, var(--yellow) 100%);
  color: var(--blue-950);
  box-shadow: 0 16px 38px rgba(225, 91, 43, 0.18);
}

.confidentiality-box h3 {
  margin: 0;
  color: var(--blue-950);
  font-size: 1.35rem;
}

.confidentiality-box p {
  max-width: 900px;
  margin: 10px 0 0;
  color: rgba(7, 26, 36, 0.82);
  font-size: 1.03rem;
}

.form-section {
  background: linear-gradient(135deg, var(--blue-900), var(--red));
}

.service-evaluation-panel[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 44px;
  align-items: start;
}

.form-copy h2,
.form-copy p {
  color: var(--paper);
}

.form-main-text {
  margin-top: 0;
  font-size: clamp(1.45rem, 2.25vw, 2.15rem);
  line-height: 1.18;
  font-weight: 850;
}

.contact-card {
  margin-top: 28px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.95);
}

.contact-card h3 {
  color: var(--blue-900);
}

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

.contact-card strong {
  color: var(--blue-950);
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 270px;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(7, 26, 36, 0.16);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 270px;
  border: 0;
  pointer-events: none;
}

.map-card a {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(7, 26, 36, 0) 40%, rgba(7, 26, 36, 0.78) 100%);
  color: var(--paper);
  font-weight: 900;
  text-align: center;
}

.map-card a:hover {
  color: var(--yellow);
}

.quote-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 7px;
}

label,
legend {
  color: var(--blue-900);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d7d7d7;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

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

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

.checkbox-grid label,
.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.checkbox-grid input,
.privacy-row input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
}

.privacy-row {
  align-items: flex-start;
}

.form-submit {
  width: 100%;
  min-height: 54px;
  border: 0;
  cursor: pointer;
}

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

.service-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--blue-950);
  background:
    linear-gradient(90deg, rgba(7, 26, 36, 0.98) 0%, rgba(7, 26, 36, 0.9) 34%, rgba(7, 26, 36, 0.54) 66%, rgba(7, 26, 36, 0.2) 100%),
    linear-gradient(0deg, rgba(7, 26, 36, 0.78) 0%, rgba(7, 26, 36, 0.06) 58%),
    url("assets/images/scan-3d-hero-cropped.webp");
  background-position: center, center, center top;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-color: var(--blue-950);
}

.cad-page .service-hero {
  background:
    linear-gradient(90deg, rgba(7, 26, 36, 0.98) 0%, rgba(7, 26, 36, 0.9) 34%, rgba(7, 26, 36, 0.54) 66%, rgba(7, 26, 36, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 26, 36, 0.8) 0%, rgba(7, 26, 36, 0.08) 58%),
    url("assets/images/cad-cam-hero-realistic.webp");
  background-position: center, center, center center;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-color: var(--blue-950);
}

.stampa-3d-page {
  --generated-service-hero: url("assets/images/stampa-3d-hero-realistic.webp");
}

.fresatura-cnc-page {
  --generated-service-hero: url("assets/images/fresatura-cnc-hero-realistic.webp");
}

.termoformatura-page {
  --generated-service-hero: url("assets/images/termoformatura-hero-realistic.webp");
}

.stampi-silicone-resina-page {
  --generated-service-hero: url("assets/images/stampi-silicone-resina-hero-realistic.webp");
}

.iniezione-plastica-page {
  --generated-service-hero: url("assets/images/iniezione-plastica-hero-realistic.webp");
}

.carbonio-compositi-page {
  --generated-service-hero: url("assets/images/carbonio-compositi-hero-realistic.webp");
}

.colata-metalli-page {
  --generated-service-hero: url("assets/images/colata-metalli-hero-realistic.webp");
}

.generated-service-page .service-hero {
  background:
    linear-gradient(90deg, rgba(7, 26, 36, 0.98) 0%, rgba(7, 26, 36, 0.9) 34%, rgba(7, 26, 36, 0.54) 66%, rgba(7, 26, 36, 0.22) 100%),
    linear-gradient(0deg, rgba(7, 26, 36, 0.8) 0%, rgba(7, 26, 36, 0.08) 58%),
    var(--generated-service-hero);
  background-position: center, center, center center;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  background-color: var(--blue-950);
}

.service-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 9px;
  background: linear-gradient(90deg, var(--orange), var(--red), var(--yellow));
}

.service-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: center;
  justify-items: start;
  min-height: 590px;
  padding: 66px 0 34px;
}

.service-hero-copy {
  width: 100%;
  max-width: 1180px;
  transform: translateY(-46px);
}

.service-hero h1 {
  max-width: 760px;
  color: var(--paper);
  font-size: clamp(2.65rem, 4.8vw, 5rem);
}

.service-hero-lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.service-hero-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(100%, 1080px);
  margin-top: 22px;
}

.service-hero-info-grid-secondary {
  margin-top: 16px;
}

.service-hero-info {
  padding: 24px;
  border: 1px solid rgba(255, 248, 239, 0.22);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: rgba(7, 26, 36, 0.74);
  color: var(--paper);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
}

.service-hero-info h2 {
  color: var(--paper);
  font-size: 1.28rem;
  line-height: 1.1;
}

.service-hero-info p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.scan-use-section {
  background: var(--paper);
}

.service-detail-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
}

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

.service-detail-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(14, 42, 58, 0.16);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(7, 26, 36, 0.08);
}

.service-detail-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 950;
}

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

.service-case-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--soft) 100%);
}

.service-case-box {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 34px;
  align-items: start;
  padding: 38px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 18px 42px rgba(7, 26, 36, 0.1);
}

.service-case-inline {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
  width: min(100vw - 40px, 1180px);
  margin-top: 18px;
}

.service-case-box p {
  color: var(--muted);
}

.service-case-box h2 {
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.service-case-steps {
  display: grid;
  gap: 14px;
}

.service-case-steps article {
  padding: 20px;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: var(--soft);
}

.service-case-steps span {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
}

.service-case-steps strong {
  display: block;
  color: var(--blue-900);
  font-size: 1.08rem;
  font-weight: 900;
}

.service-case-steps p {
  margin: 8px 0 0;
}

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

.scan-use-card {
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgba(14, 42, 58, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7f7f7 100%);
  box-shadow: 0 16px 36px rgba(7, 26, 36, 0.08);
}

.scan-use-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 950;
}

.scan-use-card p,
.scan-output-copy p,
.scan-output-list p,
.scan-method-grid p,
.scan-reality-box p,
.scan-brief-grid p {
  color: var(--muted);
}

.scan-output-section {
  background:
    linear-gradient(135deg, var(--blue-900), var(--blue-800));
}

.scan-output-grid {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 44px;
  align-items: start;
}

.scan-output-copy h2,
.scan-output-copy p {
  color: var(--paper);
}

.scan-output-list {
  display: grid;
  gap: 16px;
}

.scan-output-list article {
  padding: 24px;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.scan-output-list strong {
  display: block;
  color: var(--blue-900);
  font-size: 1.16rem;
  font-weight: 900;
}

.scan-output-list p {
  margin: 8px 0 0;
}

.scanner-strength-section {
  background:
    linear-gradient(180deg, var(--soft) 0%, #eceff0 100%);
}

.scanner-strength-grid {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  gap: 44px;
  align-items: start;
}

.scanner-strength-copy {
  position: sticky;
  top: 112px;
}

.scanner-strength-copy p:not(.eyebrow),
.scanner-strength-list p {
  color: var(--muted);
}

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

.scanner-strength-list article {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(14, 42, 58, 0.14);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(7, 26, 36, 0.08);
}

.scanner-strength-list span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--red);
  font-weight: 950;
}

.scanner-strength-list p {
  margin: 10px 0 0;
}

.scan-method-section {
  background: var(--cream);
}

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

.scan-method-grid article {
  position: relative;
  padding: 24px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(7, 26, 36, 0.08);
}

.scan-method-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 6px;
  background: var(--orange);
  color: var(--blue-950);
  font-size: 1.3rem;
  font-weight: 950;
}

.scan-reality-section {
  padding-top: 0;
  background: var(--cream);
}

.scan-reality-box {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 34px;
  align-items: center;
  padding: 46px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.scan-brief-section {
  background:
    linear-gradient(180deg, var(--soft) 0%, #eceff0 100%);
}

.scan-brief-grid {
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 42px;
  align-items: start;
}

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

.scan-brief-list span {
  min-height: 92px;
  padding: 18px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue-900);
  font-weight: 850;
  box-shadow: 0 12px 28px rgba(7, 26, 36, 0.08);
}

.service-hero-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1 / -1;
  gap: 26px;
  width: min(100vw - 40px, 1180px);
  margin-top: 16px;
  padding: 28px 30px;
  border-radius: 8px;
  background: rgba(14, 42, 58, 0.86);
  color: var(--paper);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(12px);
}

.service-hero-final-cta h2 {
  color: var(--paper);
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  line-height: 1.1;
}

.service-hero-final-cta p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
}

.site-footer {
  padding: 58px 0 24px;
  background: var(--blue-950);
  color: rgba(255, 255, 255, 0.78);
}

.mini-footer {
  padding: 18px 0;
  background: var(--blue-950);
}

.mini-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mini-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.mini-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.mini-footer .copyright {
  display: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.8fr;
  gap: 42px;
}

.footer-brand,
.site-footer h3 {
  color: var(--paper);
}

.site-footer p {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer nav {
  display: grid;
  gap: 10px;
}

.site-footer.mini-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer a:hover {
  color: var(--yellow);
}

.copyright {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 78px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px;
    border-radius: 8px;
    background: var(--blue-950);
    box-shadow: var(--shadow);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 14px;
  }

  .nav-dropdown summary {
    padding: 14px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 0 8px 8px;
    padding: 6px;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 11px 12px;
    white-space: normal;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(90deg, rgba(7, 26, 36, 0.94) 0%, rgba(7, 26, 36, 0.72) 48%, rgba(7, 26, 36, 0.28) 100%),
      linear-gradient(0deg, rgba(7, 26, 36, 0.8) 0%, rgba(7, 26, 36, 0.1) 58%),
      url("assets/images/hero-hands.webp") 62% center / cover no-repeat;
  }

  .service-hero {
    background:
      linear-gradient(90deg, rgba(7, 26, 36, 0.96) 0%, rgba(7, 26, 36, 0.82) 48%, rgba(7, 26, 36, 0.44) 100%),
      linear-gradient(0deg, rgba(7, 26, 36, 0.82) 0%, rgba(7, 26, 36, 0.08) 62%),
      url("assets/images/scan-3d-hero-cropped.webp");
    background-position: center, center, center top;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
    background-color: var(--blue-950);
  }

  .cad-page .service-hero {
    background:
      linear-gradient(90deg, rgba(7, 26, 36, 0.96) 0%, rgba(7, 26, 36, 0.82) 48%, rgba(7, 26, 36, 0.44) 100%),
      linear-gradient(0deg, rgba(7, 26, 36, 0.82) 0%, rgba(7, 26, 36, 0.08) 62%),
      url("assets/images/cad-cam-hero-realistic.webp");
    background-position: center, center, center center;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
    background-color: var(--blue-950);
  }

  .generated-service-page .service-hero {
    background:
      linear-gradient(90deg, rgba(7, 26, 36, 0.96) 0%, rgba(7, 26, 36, 0.82) 48%, rgba(7, 26, 36, 0.44) 100%),
      linear-gradient(0deg, rgba(7, 26, 36, 0.82) 0%, rgba(7, 26, 36, 0.08) 62%),
      var(--generated-service-hero);
    background-position: center, center, center center;
    background-repeat: no-repeat;
    background-size: auto, auto, cover;
    background-color: var(--blue-950);
  }

  .service-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    min-height: 520px;
    padding: 54px 0 38px;
  }

  .service-hero-copy {
    transform: translateY(-34px);
  }

  .service-hero-info {
    margin-top: 18px;
  }

  .service-hero-info-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-top: 18px;
  }

  .service-hero-final-cta {
    align-items: flex-start;
    flex-direction: column;
    max-width: 560px;
    width: 100%;
  }

  .hero-grid,
  .split-layout,
  .sector-layout,
  .trust-box,
  .service-case-box,
  .service-hero-grid,
  .scan-output-grid,
  .scan-reality-box,
  .scanner-strength-grid,
  .scan-brief-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    min-height: 0;
    padding-top: 54px;
  }

    .cards-3,
    .tech-grid,
    .sector-grid,
    .process-grid,
    .service-detail-grid,
    .scan-use-grid,
    .scanner-strength-list,
    .scan-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .scanner-strength-copy {
    position: static;
  }

  .process-card-wide {
    grid-column: span 2;
  }

}

@media (max-width: 680px) {
  .mobile-preview-toggle {
    display: none;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  section {
    padding: 64px 0;
  }

  .header-inner {
    min-height: 70px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .brand small {
    max-width: 190px;
  }

  .primary-nav {
    top: 70px;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .problem-title {
    max-width: 21rem;
    margin: 0 auto;
    font-size: 1.72rem;
    line-height: 1.18;
    text-wrap: balance;
    overflow-wrap: normal;
  }

  .problem-title br {
    display: none;
  }

  .hero {
    background:
      linear-gradient(90deg, rgba(7, 26, 36, 0.9) 0%, rgba(7, 26, 36, 0.7) 54%, rgba(7, 26, 36, 0.18) 100%),
      linear-gradient(0deg, rgba(7, 26, 36, 0.86) 0%, rgba(7, 26, 36, 0.22) 62%),
      url("assets/images/hero-hands.webp") 67% center / cover no-repeat;
  }

  .service-hero {
    background:
      linear-gradient(180deg, rgba(7, 26, 36, 0.04) 0%, rgba(7, 26, 36, 0.08) 26%, rgba(7, 26, 36, 0.94) 50%, var(--blue-950) 100%),
      url("assets/images/scan-3d-hero-cropped.webp");
    background-color: var(--blue-950);
    background-position: center top, center top;
    background-repeat: no-repeat;
    background-size: 100% auto, 100% auto;
  }

  .cad-page .service-hero {
    background:
      linear-gradient(180deg, rgba(7, 26, 36, 0.04) 0%, rgba(7, 26, 36, 0.1) 26%, rgba(7, 26, 36, 0.94) 50%, var(--blue-950) 100%),
      url("assets/images/cad-cam-hero-realistic.webp");
    background-color: var(--blue-950);
    background-position: center top, center top;
    background-repeat: no-repeat;
    background-size: 100% auto, 100% auto;
  }

  .generated-service-page .service-hero {
    background:
      linear-gradient(180deg, rgba(7, 26, 36, 0.04) 0%, rgba(7, 26, 36, 0.1) 26%, rgba(7, 26, 36, 0.94) 50%, var(--blue-950) 100%),
      var(--generated-service-hero);
    background-color: var(--blue-950);
    background-position: center top, center top;
    background-repeat: no-repeat;
    background-size: 100% auto, 100% auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 18px;
  }

  .hero-full .hero-copy {
    margin-bottom: -82px;
    transform: translateY(-82px);
  }

  .hero-media img {
    min-height: 310px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .cards-3,
  .tech-grid,
  .sector-grid,
  .process-grid,
  .service-detail-grid,
  .scan-use-grid,
  .scanner-strength-list,
  .scan-method-grid,
  .scan-brief-list,
  .form-split,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .service-hero-grid {
    min-height: 0;
    padding: clamp(230px, 48vw, 310px) 0 38px;
  }

  .cad-page .service-hero-grid {
    padding-top: clamp(190px, 44vw, 240px);
  }

  .service-hero-copy {
    transform: none;
  }

  .service-hero-info-grid {
    width: 100%;
    margin-top: 18px;
    gap: 14px;
  }

  .service-hero-final-cta {
    width: 100%;
    padding: 20px;
  }

  .service-hero-info {
    padding: 20px;
  }

  .service-hero-info h2 {
    font-size: 1.28rem;
  }

  .service-hero-actions {
    width: 100%;
  }

  .process-card,
  .process-card-wide {
    min-height: 0;
    grid-column: auto;
  }

  .timeline article {
    grid-template-columns: 48px 1fr;
    padding: 18px;
  }

  .timeline span {
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }

  .trust-box,
  .scan-reality-box,
  .service-case-box,
  .quote-form {
    padding: 24px;
  }
}
