:root {
  --bg: #f6f8fb;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-2: rgba(255, 255, 255, 0.80);
  --text: rgba(10, 18, 32, 0.92);
  --muted: rgba(10, 18, 32, 0.62);
  --line: rgba(10, 18, 32, 0.10);
  --shadow: 0 18px 60px rgba(10, 18, 32, 0.10);
  --radius: 18px;
  --radius-sm: 14px;
  --max: 1120px;
  --topbar-h: 72px;
  --accent: rgba(35, 120, 255, 0.95);
  --accent-soft: rgba(35, 120, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--topbar-h) + 18px);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(900px 520px at 10% 0%, rgba(35, 120, 255, 0.10), transparent 60%),
    radial-gradient(900px 520px at 95% 10%, rgba(255, 140, 60, 0.08), transparent 60%),
    radial-gradient(900px 520px at 60% 95%, rgba(40, 200, 140, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}


.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.70);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--topbar-h);
  gap: 16px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 56px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav a {
  opacity: 0.95;
  padding: 9px 12px;
  border-radius: 12px;
}

.nav a:hover {
  background: rgba(10, 18, 32, 0.06);
  text-decoration: none;
}

.nav a.active {
  background: rgba(10, 18, 32, 0.06);
  border: 1px solid rgba(10, 18, 32, 0.08);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hamburger::before {
  top: -6px;
}

.hamburger::after {
  top: 6px;
}


.hero {
  padding: 56px 0 18px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.kicker {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
}

.lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}


.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(10, 18, 32, 0.10);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(10, 18, 32, 0.08);
  text-decoration: none;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  background: var(--accent-soft);
  border-color: rgba(35, 120, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  box-shadow: none;
}

.btn--ghost:hover {
  background: rgba(10, 18, 32, 0.06);
  border-color: rgba(10, 18, 32, 0.10);
}

.btn--sm {
  padding: 10px 12px;
  border-radius: 12px;
}

.btn--full {
  width: 100%;
}


.btn-mail:hover {
  background: rgba(255, 140, 60, 0.14);
  border-color: rgba(255, 140, 60, 0.38);
}


.section {
  padding: 56px 0;
  scroll-margin-top: calc(var(--topbar-h) + 18px);
}

.section--alt {
  background: rgba(255, 255, 255, 0.65);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 30px;
}

h3 {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.feature ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.sep {
  border: none;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.80);
  padding: 10px 12px;
  border-radius: 999px;
  color: rgba(10, 18, 32, 0.82);
  font-size: 13px;
}


label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  color: rgba(10, 18, 32, 0.85);
  font-weight: 650;
  font-size: 13px;
}

input,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(10, 18, 32, 0.12);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(35, 120, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(35, 120, 255, 0.10);
}


.footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.75);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  :root {
    --topbar-h: 62px;
  }

  .logo-img {
    height: 48px;
    max-width: 240px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
  }

  .grid--3 {
    grid-template-columns: 1fr;
  }

  .grid--2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    right: 20px;
    top: calc(var(--topbar-h) + 6px);
    width: min(320px, calc(100% - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav a {
    padding: 12px 12px;
  }

  .nav.nav--open {
    display: flex;
  }
}

.photo {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.80);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}


.photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}


.intro {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 9999;

  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(6px);

  opacity: 1;
  pointer-events: all;
}


.intro__logo {
  width: min(280px, 72vw);
  height: auto;

  opacity: 0;
  transform: translateY(24px) scale(0.82);
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.16));

  animation: introLogoIn 1.6s cubic-bezier(.25, .8, .25, 1) forwards;
}

@keyframes introLogoIn {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.82);
  }

  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


.intro--out {
  animation: introFadeOut 800ms ease forwards;
}

@keyframes introFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.map-container {
  margin-top: 0.75rem;
  overflow: hidden;
}

.feature--split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
}

.feature__image {
  width: 420px;
  height: 260px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 14px;
}

.feature__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.settori-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}


.settori-card {
  display: flex;
  align-items: center;
  gap: 15px;

  padding: 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(10, 18, 32, 0.10);
  box-shadow: 0 18px 60px rgba(10, 18, 32, 0.10);
}


.settori-card__title {
  font-size: 22px;
  margin: 0;
  white-space: nowrap;
}


.settori-card__imgbox {
  margin-left: auto;
  width: 200px;
  height: 130px;
  overflow: hidden;
  border-radius: 14px;
  flex-shrink: 0;
}


.settori-card__imgbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section__head_settori {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  text-align: center;
  font-size: 80px;
}

.photo_contatti {
  width: 100%;
  height: 350px;
  border-radius: 25px;
  overflow: hidden;
}

.photo_contatti img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}