/* ============ under_score — light base, navy+orange brand, dark accent sections ============ */
:root {
  /* brand */
  --orange: #f0502e;
  --orange-hi: #ff5e3a;
  --orange-soft: #fdede8;
  --navy: #142440; /* brand navy from logo */
  --navy-2: #0d1830; /* deeper navy for footer */
  --navy-3: #0a1326; /* deepest */
  /* light surfaces */
  --bg: #ffffff;
  --bg-soft: #f6f5f2; /* warm off-white */
  --bg-soft-2: #f1efea;
  --card: #ffffff;
  /* text on light */
  --ink: #142440;
  --text: #3a3e4a;
  --muted: #6e7280;
  --muted-2: #9a9da8;
  /* lines */
  --line: #ebe8e1;
  --line-2: #e1ddd4;
  /* dark section text */
  --d-text: rgba(255, 255, 255, 0.74);
  --d-muted: rgba(255, 255, 255, 0.5);
  --d-line: rgba(255, 255, 255, 0.1);
  --d-line-2: rgba(255, 255, 255, 0.18);
  --d-card: #172445;
  /* type */
  --font-d: "Poppins", system-ui, sans-serif;
  --font-b: "Manrope", system-ui, sans-serif;
  --maxw: 1200px;
  --shadow-card: 0 14px 40px rgba(20, 36, 64, 0.08);
  --shadow-float: 0 22px 60px rgba(20, 36, 64, 0.16);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* Sfondo scuro dietro la pagina: in overscroll (rimbalzo ai bordi
     top/bottom) si vede questo invece del bianco */
  background: #0b0b0b;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-d);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}
p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.accent {
  color: var(--orange);
}
.us {
  color: var(--orange);
  font-weight: 700;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}
.kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.kicker.center {
  justify-content: center;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  border-radius: 0;
  padding: 13px 26px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover {
  background: var(--orange-hi);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-2);
}
.btn-light {
  background: #fff;
  color: var(--navy);
}
.btn-light:hover {
  background: #f1f1f1;
}
.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1.5px solid var(--d-line-2);
}
.btn-ghost-dark:hover {
  border-color: #fff;
}
.btn .arr {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin-right: -14px;
}
.btn-light .arr {
  background: var(--orange);
  color: #fff;
}

/* generic section */
section.blk {
  padding: 104px 0;
}
.sec-head {
  max-width: 720px;
}
.sec-head.center {
  margin: 0 auto;
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 700;
  margin-top: 16px;
}
.sec-head .sub {
  color: var(--muted);
  font-size: 18px;
  margin-top: 16px;
}

/* ============ TOP UTILITY BAR ============ */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13.5px;
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 46px;
  gap: 20px;
}
.topbar .tb-left {
  display: flex;
  align-items: center;
  gap: 26px;
}
.topbar .tb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .tb-item svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex: none;
}
.topbar .tb-soc {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .tb-soc a {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  transition: background 0.2s;
}
.topbar .tb-soc a:hover {
  background: var(--orange);
}
.topbar .tb-soc svg {
  width: 13px;
  height: 13px;
}

/* ============ HEADER ============ */
header.nav {
  position: sticky;
  top: 0;
  z-index: 120;
  background: transparent;
  transition:
    background 0.3s,
    backdrop-filter 0.3s,
    box-shadow 0.3s,
    transform 0.35s ease;
}
/* Header nascosto scorrendo verso il basso, riappare verso l'alto */
header.nav.nav-hidden {
  transform: translateY(-100%);
}
header.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(20, 36, 64, 0.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 80px;
  gap: 32px;
}
.brand {
  margin-right: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand .logo {
  width: 34px;
  height: 42px;
  flex: none;
}
.brand .logo .wave {
  stroke: var(--navy);
}
.brand .wm {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 21px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand .sub {
  display: block;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: 8px;
  letter-spacing: 0.34em;
  color: var(--muted-2);
  margin-top: 4px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  position: relative;
  font-family: var(--font-d);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--orange);
}
.nav-links a::before {
  content: "_";
  position: absolute;
  left: -18px;
  bottom: 1px;
  color: var(--orange);
  font-weight: 700;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-right .btn-primary {
  padding: 9px 20px;
  font-size: 15px;
  box-shadow: none;
  border-radius: 0;
}
.nav-right .btn-primary:hover {
  box-shadow: none;
  transform: translateY(-1px);
  background: var(--orange-hi);
}
.nav-expert {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-expert .ic {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.nav-expert .et {
  font-size: 12px;
  color: var(--muted);
}
.nav-expert .ev {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}
.burger span {
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.3s;
}
.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(330px, 86vw);
  z-index: 130;
  background: #fff;
  transform: translateX(100%);
  transition: transform 0.32s ease;
  padding: 32px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -20px 0 60px rgba(20, 36, 64, 0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu .mm-top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.mobile-menu a {
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn {
  margin-top: 22px;
  justify-content: center;
}
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 48, 0.5);
  z-index: 125;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.scrim.show {
  opacity: 1;
  pointer-events: auto;
}

/* ============ HERO ============ */
.hero {
  background: linear-gradient(
    135deg,
    var(--orange-hi) 0%,
    var(--orange) 48%,
    #cf3b1b 100%
  );
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.45) 1.6px,
    transparent 1.8px
  );
  background-size: 30px 30px;
  background-position: 0 0;
  opacity: 0.4;
  -webkit-mask-image: radial-gradient(
    ellipse 90% 80% at 65% 35%,
    #000,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 90% 80% at 65% 35%,
    #000,
    transparent 78%
  );
}
.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-copy {
  position: relative;
  z-index: 3;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 700;
  margin-top: 18px;
  color: var(--ink);
}
.hero-motto {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-motto-line {
  display: block;
  font-weight: 800;
  line-height: 1.04;
}
.hero-cursor {
  display: inline-block;
  color: var(--orange);
  font-weight: 800;
  margin-left: 1px;
  animation: heroBlink 1.05s steps(1, end) infinite;
}
@keyframes heroBlink {
  0%,
  55% {
    opacity: 1;
  }
  56%,
  100% {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-cursor {
    animation: none;
  }
}
.hero-copy .lead {
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 460px;
}
.hero-copy .lead b {
  color: var(--ink);
  font-weight: 600;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}
.hero-cta .btn-primary {
  padding: 9px 22px;
  font-size: 15px;
}
.watch {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.watch .pl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--orange);
  color: var(--orange);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.watch:hover .pl {
  background: var(--orange);
  color: #fff;
}
.hero-photo {
  position: relative;
  padding-bottom: 48px;
}
.hero-photo .img-ph {
  display: flex;
  width: 100%;
  height: 560px;
}
.hero-frame {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero-frame .hero-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-frame-back {
  width: 80%;
  height: 440px;
  margin-left: auto;
}
.hero-frame-back .hero-img {
  object-position: 74% 22%;
}
.hero-frame-front {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  height: 300px;
  z-index: 3;
  box-shadow: var(--shadow-float);
}
.hero-frame-front .hero-img {
  object-position: 50% 28%;
  filter: grayscale(1) contrast(0.92) brightness(1.32);
}
.hero-frame-front::after {
  background: var(--orange);
  mix-blend-mode: multiply;
  opacity: 1;
}

/* logo partner — WINDTRE Business */
.wt-partner {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.wt-partner-logo {
  height: 40px;
  width: auto;
  display: block;
}
.wt-partner-tag {
  align-self: stretch;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  font-family: "Montserrat", var(--font-d);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: #fff;
  text-align: center;
}
.hero-partner {
  margin-bottom: 24px;
}

/* ============ FEATURE CARDS ============ */
.features {
  background: var(--bg);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: -72px;
  position: relative;
  z-index: 5;
}
.fcard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 38px 32px;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}
.fcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}
.fcard .fico {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.fcard h3 {
  font-size: 22px;
  font-weight: 700;
}
.fcard p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
}
.fcard .more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14px;
  color: var(--orange);
  transition: gap 0.2s;
}
.fcard .more:hover {
  gap: 13px;
}
.fcard.filled {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 18px 44px rgba(240, 80, 46, 0.3);
}
.fcard.filled .fico {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.fcard.filled h3 {
  color: #fff;
}
.fcard.filled p {
  color: rgba(255, 255, 255, 0.88);
}
.fcard.filled .more {
  color: #fff;
}

/* ============ ABOUT ============ */
.about {
  background: var(--bg);
}
.about .grid {
  display: grid;
  grid-template-columns: 1.04fr 1fr;
  gap: 64px;
  align-items: center;
}
.about h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  margin-top: 16px;
}
.about .body {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 30px;
}
.check .ct {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.check .ct .cd {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
}
.check p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14.5px;
  padding-left: 34px;
}
.bars {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.bar .bl {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 9px;
}
.bar .track {
  height: 7px;
  border-radius: 999px;
  background: var(--bg-soft-2);
  overflow: hidden;
}
.bar .fill {
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
  width: 0;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}
.about .cta-row {
  margin-top: 36px;
}
.about-photo {
  position: relative;
}
.about-photo .pframe {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo .img-ph {
  display: flex;
  width: 100%;
  height: 540px;
}
.float-stat {
  position: absolute;
  left: -26px;
  bottom: 34px;
  background: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 16px;
}
.float-stat .fs-ic {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  flex: none;
}
.float-stat .fs-num {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--ink);
}
.float-stat .fs-num .suf {
  color: var(--orange);
}
.float-stat .fs-lbl {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* ============ SERVIZI ============ */
.services-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  margin-top: 46px;
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.scard {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  border-radius: 0;
  overflow: hidden;
  background: var(--card);
  border: none;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.scard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
}
.scard-top {
  padding: 32px 32px 20px;
  position: relative;
  z-index: 2;
}
.scard-top h3 {
  font-size: 27px;
  font-weight: 700;
  color: var(--ink);
}
.scard-top p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}
.scard-media {
  position: relative;
  flex: 1;
  min-height: 230px;
}
.scard-media .img-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.scard-media .scard-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.scard-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  padding: 18px 20px;
  background: #fff;
  min-height: 64px;
}
.scard-logos img {
  height: 20px;
  width: auto;
  display: block;
}
.scard-logos .tech-badge {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: #142440;
  border: 1.5px solid #142440;
  padding: 3px 8px;
  line-height: 1;
}
.scard-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--card) 0%, transparent 26%),
    linear-gradient(180deg, transparent 35%, rgba(240, 80, 46, 0.55) 100%);
}
.scard-btn {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  text-align: center;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fff;
  color: var(--orange);
  padding: 17px;
  border-radius: 999px;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.scard-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3);
}
/* Indicatore carosello: nascosto su desktop, attivo solo su mobile */
.carousel-dots {
  display: none;
}

/* ============ STATS (dark band) ============ */
.dark {
  background: var(--navy-2);
  color: #fff;
}
.dark h2,
.dark h3,
.dark h4 {
  color: #fff;
}
.stats {
  background: var(--navy-2);
  color: #fff;
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 62px 26px;
  text-align: center;
  border-left: 1px solid var(--d-line);
}
.stat:first-child {
  border-left: none;
}
.stat .num {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(36px, 4vw, 54px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat .num .suf {
  color: var(--orange);
}
.stat .lbl {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--d-text);
}

/* ============ DARK CTA BAND ============ */
.ctaband {
  background: var(--navy-3);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.ctaband::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 80, 46, 0.16), transparent 70%);
}
.ctaband .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 64px 0;
  position: relative;
  z-index: 2;
}
.ctaband h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  max-width: 620px;
}
.ctaband p {
  color: var(--d-text);
  font-size: 17px;
  margin-top: 14px;
  max-width: 560px;
}
.ctaband .cta-right {
  flex: none;
}

/* ============ FAQ ============ */
.faq {
  background: var(--bg-soft);
}
.faq-list {
  margin-top: 44px;
  max-width: 880px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.faq-item.open {
  border-color: var(--orange);
  box-shadow: var(--shadow-card);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  transition: color 0.2s;
}
.faq-q:hover {
  color: var(--orange);
}
.faq-q .pm {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: 0.25s;
}
.faq-q .pm::before,
.faq-q .pm::after {
  content: "";
  position: absolute;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.25s;
}
.faq-q .pm::before {
  width: 13px;
  height: 2px;
}
.faq-q .pm::after {
  width: 2px;
  height: 13px;
}
.faq-item.open .pm {
  background: var(--orange);
}
.faq-item.open .pm::before,
.faq-item.open .pm::after {
  background: #fff;
}
.faq-item.open .pm::after {
  transform: rotate(90deg);
  opacity: 0;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a .inner {
  padding: 0 26px 26px;
  color: var(--muted);
  font-size: 16px;
}

/* ============ FORM ============ */
.candidatura {
  background: var(--bg);
}
.form-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}
.form-aside h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 700;
  margin-top: 16px;
}
.form-aside .ptext {
  color: var(--muted);
  font-size: 17.5px;
  margin-top: 16px;
}
.map-embed {
  margin-top: 20px;
}
.map-embed iframe {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(1.05);
}
.contact-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-item {
  display: flex;
  gap: 13px;
  align-items: center;
  transition: color 0.2s;
}
.contact-item .ci-min {
  color: var(--orange);
  flex: none;
}
.contact-item .cv {
  font-family: var(--font-b);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
}
.contact-item:hover .cv {
  color: var(--orange);
}
.form-card {
  background: #fff;
  border: none;
  border-radius: 0;
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 16px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  display: block;
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--ink);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 15.5px;
  padding: 13px 15px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.field textarea {
  resize: vertical;
  min-height: 104px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-2);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: #fff;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23142440' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.field .err {
  color: var(--orange);
  font-size: 12.5px;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid select {
  border-color: var(--orange);
  background: #fff;
}
.field.invalid .err {
  display: block;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 22px;
}
.consent input {
  width: 19px;
  height: 19px;
  flex: none;
  accent-color: var(--orange);
  margin-top: 2px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 16px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.form-success.show {
  display: block;
}
.form-success .ok {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: var(--orange);
}
.form-success h3 {
  font-size: 25px;
  font-weight: 700;
}
.form-success p {
  color: var(--muted);
  margin-top: 12px;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-3);
  color: var(--d-text);
  padding: 78px 0 28px;
}
footer .brand .logo .wave {
  stroke: #fff;
}
footer .brand .wm {
  color: #fff;
}
footer .brand .sub {
  color: rgba(255, 255, 255, 0.42);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.5fr;
  gap: 44px;
}
.foot-partner {
  align-self: start;
}
.foot-brand .brand {
  margin-bottom: 20px;
}
.foot-brand p {
  color: var(--d-text);
  font-size: 15px;
  max-width: 300px;
}
.foot-soc {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.foot-soc a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  transition: 0.2s;
}
.foot-soc a:hover {
  background: var(--orange);
}
.foot-soc svg {
  width: 16px;
  height: 16px;
}
.foot-col h4 {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 12px;
}
.foot-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.foot-col a,
.foot-col .li {
  display: block;
  color: var(--d-text);
  font-size: 15px;
  padding: 6px 0;
  transition: color 0.2s;
}
.foot-col a:hover {
  color: var(--orange);
}
.foot-col .li {
  color: rgba(255, 255, 255, 0.82);
}
.foot-col .li span {
  color: var(--d-muted);
  font-size: 11.5px;
  display: block;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.foot-hours .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--d-line);
  font-size: 14.5px;
}
.foot-hours .row span:first-child {
  color: var(--d-text);
}
.foot-hours .row span:last-child {
  color: #fff;
  font-family: var(--font-d);
  font-weight: 600;
}
.foot-cta {
  margin-top: 18px;
}
.foot-bottom {
  margin-top: 54px;
  padding-top: 26px;
  border-top: 1px solid var(--d-line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--d-muted);
  font-size: 13.5px;
}

/* ============ STICKY BAR ============ */
.stickybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 115;
  background: var(--navy);
  border-top: 2px solid var(--orange);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.stickybar.show {
  transform: translateY(0);
}
.stickybar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
}
.stickybar .txt strong {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 16px;
  display: block;
  color: #fff;
}
.stickybar .txt span {
  color: var(--d-text);
  font-size: 14px;
}
.stickybar .acts {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stickybar .close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--d-line-2);
  background: none;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: none;
}
.stickybar .close:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* reveal */
.reveal {
  opacity: 1;
  transform: none;
}

/* ============ 404 NOT FOUND (tema scuro WindTre) ============ */
.nf {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
/* il contenuto 404 occupa lo spazio sopra il footer ed è centrato */
.nf-main {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
}
/* il footer resta a tutta larghezza, sopra la rete animata */
.nf footer {
  position: relative;
  z-index: 1;
}
/* alone arancione soffuso dietro al contenuto */
.nf::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 58% 50% at 50% 42%,
    rgba(255, 106, 0, 0.22),
    transparent 70%
  );
}
.nf-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
  pointer-events: none;
}
.nf-inner {
  position: relative;
  z-index: 2;
  max-width: 460px;
}
.nf-brand {
  display: inline-flex;
  justify-content: center;
  margin: 0 auto 44px;
}
/* sul tema scuro le onde del logo vanno in bianco (il segno resta arancione) */
.nf-brand .logo .wave {
  stroke: #fff;
}
.nf-code {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: clamp(110px, 24vw, 190px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(
    135deg,
    var(--orange-hi) 0%,
    var(--orange) 55%,
    #cf3b1b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 12px 40px rgba(255, 106, 0, 0.35));
}
.nf-title {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  margin-top: 10px;
}
.nf-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin-top: 14px;
}
.nf-cta {
  margin-top: 32px;
}

/* ============ PAGINE LEGALI (privacy policy, ecc.) ============ */
/* Stesso impianto della 404: tema scuro WindTre, rete animata di sfondo e
   alone arancione soffuso dietro al contenuto. */
.legal {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  overflow: hidden;
}
.legal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 42% at 50% 0%,
    rgba(255, 106, 0, 0.18),
    transparent 70%
  );
}
.legal-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
}
.legal-body {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 820px;
  padding-top: 132px;
  padding-bottom: 88px;
}
.legal-title {
  font-size: clamp(34px, 6vw, 52px);
  margin-top: 14px;
}
.legal-updated {
  color: var(--muted);
  font-size: 15px;
  margin-top: 12px;
}
.legal-section {
  margin-top: 40px;
}
.legal-section h2 {
  font-size: 22px;
  margin-bottom: 14px;
}
.legal-section p {
  color: var(--text);
}
.legal-section p + p {
  margin-top: 16px;
}
.legal-section ul,
.legal-section ol {
  margin: 16px 0 0;
  padding-left: 22px;
  color: var(--text);
}
.legal-section li {
  margin-top: 8px;
}
.legal-section li::marker {
  color: var(--orange);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1120px) {
  .nav-expert {
    display: none;
  }
  .nav-links {
    gap: 22px;
  }
}
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-photo {
    order: -1;
  }
  .hero-photo .img-ph {
    height: 380px;
  }
  .hero-frame-back {
    height: 340px;
  }
  .hero-frame-front {
    height: 220px;
  }
  .feat-grid {
    grid-template-columns: 1fr;
    margin-top: -56px;
  }
  .about .grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .services-cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .stats .wrap {
    grid-template-columns: 1fr 1fr;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--d-line);
  }
  .stat:nth-child(odd) {
    border-left: none;
  }
  .form-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  /* Mobile: titolo "Lavora con noi", poi il form di contatto,
     quindi contatti e mappa sotto al form */
  .form-aside {
    display: contents;
  }
  .form-aside h2 {
    order: 1;
  }
  .form-card {
    order: 2;
  }
  .contact-list {
    order: 3;
    margin-top: 0;
  }
  .map-embed {
    order: 4;
    margin-top: 0;
  }
  .ctaband .inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 720px) {
  .nav-links,
  .nav-expert,
  .nav-right .btn {
    display: none;
  }
  .burger {
    display: flex;
  }
  .topbar .tb-item.addr {
    display: none;
  }
  .frow,
  .checks {
    grid-template-columns: 1fr;
  }
  /* Servizi: carosello a una card alla volta su mobile */
  .services-cards {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    gap: 0;
    margin: 36px -28px 0;
    padding: 4px 0 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .services-cards::-webkit-scrollbar {
    display: none;
  }
  .services-cards .scard {
    flex: 0 0 100%;
    scroll-snap-align: center;
    min-height: 440px;
  }
  /* Indicatore (puntini) del carosello servizi */
  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
  }
  .carousel-dots .cdot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(20, 36, 64, 0.22);
    cursor: pointer;
    transition:
      background 0.25s,
      transform 0.25s,
      width 0.25s;
  }
  .carousel-dots .cdot.active {
    background: var(--orange);
    width: 24px;
  }
  .stickybar .txt span {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr;
  }
  section.blk {
    padding: 72px 0;
  }
  .hero {
    padding: 48px 0 80px;
  }
  .float-stat {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: -26px;
    white-space: nowrap;
  }
  .about-photo {
    margin-bottom: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============ IMAGE PLACEHOLDERS (sostituire con foto reali) ============ */
.img-ph {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--navy) 0%,
    var(--navy-2) 58%,
    #1d3358 100%
  );
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-d);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.img-ph::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 80, 46, 0.3), transparent 70%);
  pointer-events: none;
}
.img-ph svg {
  color: var(--orange);
  opacity: 0.9;
  position: relative;
  z-index: 1;
}
.img-ph span {
  position: relative;
  z-index: 1;
  max-width: 78%;
  line-height: 1.4;
}

/* logo mark: usa currentColor così segue l'accento del tema */
.brand .logo {
  color: var(--orange);
}

/* ============================================================
   THEME · WINDTRE — nero & arancione (stile WindTre)
   ============================================================ */
.theme-windtre {
  --orange: #ff6a00;
  --orange-hi: #ff8326;
  --orange-soft: rgba(255, 106, 0, 0.16);
  --navy: #0a0a0a;
  --navy-2: #050505;
  --navy-3: #000000;
  --bg: #0b0b0b;
  --bg-soft: #101010;
  --bg-soft-2: #1c1c1c;
  --card: #151515;
  --ink: #ffffff;
  --text: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.6);
  --muted-2: rgba(255, 255, 255, 0.44);
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --d-card: #151515;
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.55);
  --shadow-float: 0 22px 60px rgba(0, 0, 0, 0.7);
  background: #0b0b0b;
}
.theme-windtre .nav .brand .logo .wave {
  stroke: #fff;
}
.theme-windtre header.nav {
  background: transparent;
}
.theme-windtre header.nav.scrolled {
  background: rgba(11, 11, 11, 0.72);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}
.theme-windtre .nav-links a {
  color: rgba(255, 255, 255, 0.82);
}
.theme-windtre .nav-links a:hover {
  color: var(--orange);
}
.theme-windtre .burger {
  background: #151515;
  border-color: var(--line-2);
}
.theme-windtre .burger span {
  background: #fff;
}
.theme-windtre .mobile-menu {
  background: #0a0a0a;
}
.theme-windtre .mobile-menu a {
  color: #fff;
  border-bottom-color: var(--line);
}
.theme-windtre .hero {
  background: var(--bg-soft);
}
.theme-windtre .features,
.theme-windtre .about,
.theme-windtre .candidatura {
  background: var(--bg);
}
.theme-windtre .faq {
  background: var(--bg-soft);
}
.theme-windtre .fcard {
  background: var(--card);
  border-color: var(--line);
}
.theme-windtre .fcard.filled {
  background: linear-gradient(135deg, #ff6a00, #ff8326);
  border-color: transparent;
  box-shadow: 0 18px 44px rgba(255, 106, 0, 0.32);
}
.theme-windtre .faq-item {
  background: var(--card);
  border-color: var(--line);
}
.theme-windtre .faq-q .pm {
  background: #1d1d1d;
}
.theme-windtre .faq-q .pm::before,
.theme-windtre .faq-q .pm::after {
  background: #fff;
}
.theme-windtre .form-card {
  background: var(--card);
  border-color: var(--line);
}
.theme-windtre .field input,
.theme-windtre .field textarea {
  background: #1a1a1a;
  border-color: var(--line-2);
  color: #fff;
}
.theme-windtre .field input:focus,
.theme-windtre .field textarea:focus {
  background: #202020;
  border-color: var(--orange);
}
.theme-windtre .field select {
  background-color: #1a1a1a;
  border-color: var(--line-2);
  color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}
.theme-windtre .field select:focus {
  background-color: #202020;
  border-color: var(--orange);
}
.theme-windtre .float-stat {
  background: var(--card);
}
.theme-windtre .bar .track {
  background: #1c1c1c;
}
.theme-windtre .btn-navy {
  background: #1d1d1d;
  color: #fff;
  border: 1px solid var(--line-2);
}
.theme-windtre .btn-navy:hover {
  background: #262626;
}
.theme-windtre .services {
  background: var(--bg);
}
.theme-windtre .scard {
  background: var(--card);
  border-color: var(--line);
}
.theme-windtre .scard-media::after {
  background: linear-gradient(180deg, var(--card) 0%, transparent 26%),
    linear-gradient(180deg, transparent 35%, rgba(255, 106, 0, 0.6) 100%);
}
.theme-windtre .scard-btn {
  color: #ff6a00;
}
/* Niente navy nel tema Black & Orange: i segnaposto foto usano grigi neutri. */
.theme-windtre .img-ph {
  background: linear-gradient(135deg, #1d1d1d 0%, #0c0c0c 58%, #000000 100%);
}
/* Sezioni "Lavora con noi" e "Candidati" su sfondo bianco: ridefinisco
   localmente la palette chiara così testo, card e bordi si adattano. */
.theme-windtre .about {
  background: #f2f1ec;
  --bg: #f2f1ec;
  --bg-soft: #eae8e2;
  --bg-soft-2: #e4e1da;
  --card: #fbfaf7;
  --navy: #0f0f0f;
  --navy-2: #0a0a0a;
  --navy-3: #000000;
  --ink: #111111;
  --text: #3a3a3c;
  --muted: #6b6b6e;
  --muted-2: #9a9a9d;
  --line: #e7e5df;
  --line-2: #d8d5cd;
  --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.1);
  --shadow-float: 0 22px 60px rgba(0, 0, 0, 0.12);
}
.theme-windtre .about .bar .track {
  background: #eceae4;
}
.theme-windtre .candidatura {
  background: #000;
}
