/* 
H: HEADER 
*/
.header-medtech {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.logo-medtech {
  max-height: 32px;
  width: auto;
  display: block;
}
.section-lg {
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
}

/* =========================================
   H: PATTERN 
   (riutilizzabile)
   ========================================= */

.tech-bg {
  position: relative;
  overflow: hidden;
}

.tech-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 65%);
}
/* =========================================
   H: GLOW
   ========================================= */

.section-glow {
  position: relative;
}

.section-glow::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  top: -160px;
  right: -180px;
  background: rgba(0, 160, 210, 0.14);
  filter: blur(70px);
  border-radius: 999px;
  pointer-events: none;
}
/* =========================================
   H: DIVIDER
   ========================================= */

.section-divider {
  position: relative;
  height: 1px;
  margin: 4rem 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(240, 125, 33, 0.6),
    rgba(0, 160, 210, 0.35),
    transparent
  );
}
/* =========================================
   H: TECHBORDER 
   (signature)
   ========================================= */

.tech-border {
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.tech-border::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px; /* spessore bordo */
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    rgba(240, 125, 33, 0.85),
    rgba(0, 160, 210, 0.55),
    rgba(240, 125, 33, 0.35)
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}

/* =========================================
   H: HERO
   ========================================= */

.hero-medtech {
  background:
    radial-gradient(
      1100px 600px at 12% 10%,
      rgba(240, 125, 33, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 92% 22%,
      rgba(0, 160, 210, 0.16),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

/* Kicker */
.hero-kicker {
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(17, 17, 17, 0.55);
}

/* Titolo: Zen Dots solo qui (come da tema) */
.hero-title {
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.08;
}

/* Sottotitolo leggibile */
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(17, 17, 17, 0.72);
  max-width: 52ch;
}

/* Card premium (glass soft) */
.hero-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.hero-card-title {
  font-weight: 700;
  color: var(--medtech-gray);
}

/* Chip */
.hero-chip {
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.04);
  border: 1px solid rgba(17, 17, 17, 0.06);
  color: rgba(17, 17, 17, 0.7);
  font-size: 0.9rem;
}

/* Effetti grafici: due “blob” + griglia */
.hero-shape {
  position: absolute;
  width: 520px;
  height: 520px;
  filter: blur(52px);
  opacity: 0.65;
  border-radius: 999px;
  pointer-events: none;
}

.hero-shape-ado {
  left: -180px;
  top: -160px;
  background: rgba(240, 125, 33, 0.42);
}

.hero-shape-ink {
  right: -230px;
  top: 30px;
  background: rgba(60, 60, 60, 0.28);
}

/* Griglia “tech” leggerissima */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.35) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 60%);
}

/* =========================================
   H: SERVICES
   ========================================= */

.service-card {
  background: var(--bg);
  /*border: 1px solid var(--border);
  border-radius: var(--radius-lg);*/
  padding: 1.6rem 1.4rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(240, 125, 33, 0.45);
}
.service-card.tech-border:hover::before {
  opacity: 0.75;
}

.service-title {
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
  color: var(--medtech-gray);
}

.service-text {
  font-size: 0.95rem;
  color: rgba(17, 17, 17, 0.72);
  margin-bottom: 0;
}

/* =========================================
   H: ICONS
   ========================================= */

.service-ico {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 160, 210, 0.08);
  border: 1px solid rgba(0, 160, 210, 0.18);
  margin-bottom: 0.9rem;
  color: rgba(0, 160, 210, 0.9);
  font-size: 1.25rem;
}

/* Micro-interazione (molto soft) */
.service-card:hover .service-ico {
  background: rgba(240, 125, 33, 0.1);
  border-color: rgba(240, 125, 33, 0.25);
  color: rgba(240, 125, 33, 0.95);
}

/* =========================================
   H: OBBLIGHI
   ========================================= */

.obligation-list {
  padding-left: 1.1rem;
  color: rgba(17, 17, 17, 0.75);
}

.obligation-list li {
  margin-bottom: 0.35rem;
}

/* H: Normative collapsible */
.norme-details {
  border-top: 1px solid rgba(17, 17, 17, 0.12);
  padding-top: 1rem;
}

.norme-summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}

.norme-summary::-webkit-details-marker {
  display: none;
}

.norme-summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 500;
  opacity: 0.7;
}

.norme-details[open] .norme-summary::after {
  content: '–';
}

.norme-summary:hover {
  color: var(--ado-orange);
}

.norme-list {
  padding-left: 1rem;
}

.norme-list li {
  margin-bottom: 0.75rem;
}

/* Box rischi */
.risk-box {
  background: rgba(240, 125, 33, 0.06);
  border: 1px solid rgba(240, 125, 33, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.5rem;
}

.risk-title {
  font-size: 1.05rem;
  color: var(--medtech-gray);
}

.risk-list {
  padding-left: 1.1rem;
  margin-bottom: 0;
  color: rgba(17, 17, 17, 0.78);
}

.risk-list li {
  margin-bottom: 0.45rem;
}

.risk-cta {
  font-weight: 600;
  color: var(--ado-orange);
}
/* =========================================
   H: CONTACT
   ========================================= */

.contact-form {
  background: var(--bg);
  padding: 1.8rem 1.6rem;
  /*border: 1px solid var(--border);*/
  border-radius: var(--radius-lg);
}

.form-label {
  font-weight: 500;
}

.form-control,
.form-select {
  border-radius: 12px;
  padding: 0.55rem 0.65rem;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(240, 125, 33, 0.55);
  box-shadow: 0 0 0 0.2rem rgba(240, 125, 33, 0.15);
}

.contact-alert {
  border-radius: 14px;
}

/* =========================================
   H: FOOTER
   ========================================= */

.footer-medtech {
  background: #0f0f10;
  color: rgba(255, 255, 255, 0.82);
}

.logo-medtech-footer {
  max-height: 20px;
  width: auto;
  display: block;
}

.footer-brand {
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  margin: 0;
}

.footer-title {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

.footer-text {
  color: rgba(255, 255, 255, 0.72);
  max-width: 60ch;
}

.footer-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
}

.footer-label {
  color: rgba(255, 255, 255, 0.55);
  margin-right: 0.35rem;
}

.footer-medtech a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.footer-medtech a:hover {
  color: var(--ado-orange);
  text-decoration: underline;
}

.footer-sep {
  border-color: rgba(255, 255, 255, 0.12);
}

.footer-small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.9rem;
}

.footer-logo-adomedical {
  max-height: 30px;
}
