/* ==========================================================================
   Pagina Come lavoro — layout ed effetti da avantamarketing.co (sezione Process),
   colori e font del sito: pannello scuro come "L'opportunità è già nella tua lista"
   ========================================================================== */
.page:has(.process) .nav { position: absolute; top: 0; left: 0; right: 0; }

.process {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 200px 24px 120px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d0b0b;
  color: #fff;
}
/* alone bordeaux in alto (in un livello a parte, così il fondo resta uniforme con la sezione sotto) */
.process::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 800px;
  background: radial-gradient(60% 100% at 50% 0%, rgba(95, 0, 10, 0.55) 0%, transparent 100%);
  pointer-events: none;
}

/* forme ad angolo negli angoli (dall'originale) */
.process__corner {
  position: absolute;
  z-index: 0;
  width: 403px;
  height: auto;
  fill: var(--accent);
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 6;
  pointer-events: none;
}
.process__corner--tl { top: -150px; left: -160px; }
.process__corner--br { bottom: -150px; right: -150px; }
.offer2__copy strong { color: #fff; font-weight: 600; }

.process__head {
  position: relative;
  z-index: 2;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.process__eyebrow {
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.85);
}
.process__title {
  margin: 0;
  font-family: "Geist", var(--font-sans);
  font-size: 68px;
  font-weight: 400;
  line-height: 1.25em;
  letter-spacing: -0.06em;
  color: #fff;
}
.process__title mark {
  padding: 0 0.12em;
  border-radius: 23px;
  background: #8a0f1f;
  color: #fff;
}
.process__sub {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

/* Gli step: a zig-zag, uno a sinistra e uno a destra */
.process__steps {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1090px;
  margin-top: 40px;
  padding: 34px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.process__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 14 12;
}
.step { position: relative; z-index: 1; display: flex; padding: 0 30px; }
.step--left { justify-content: flex-start; }
.step--right { justify-content: flex-end; }

.step__card {
  width: 486px;
  padding: 31px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  background: #f6f1f0;
  color: #1c1c1c;
  box-shadow: 3px 5px 0 3px var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step__card:hover { transform: translate(-2px, -2px); box-shadow: 5px 7px 0 3px var(--accent); }
.step__icon { width: 40px; height: 40px; flex: none; color: var(--accent); }
.step__text { display: flex; flex-direction: column; gap: 10px; }
.step__text h3 {
  margin: 0;
  font-family: "Geist", var(--font-sans);
  font-size: 25px;
  font-weight: 600;
  line-height: 28px;
  letter-spacing: -0.02em;
  color: #1c1c1c;
}
.step__text p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: #222;
}

/* scarabocchio a freccia in basso a sinistra (dall'originale) */
.process__doodle {
  position: absolute;
  z-index: 1;
  bottom: 69px;
  left: 100px;
  width: 131px;
  height: 124px;
  transform: rotate(-10deg);
  pointer-events: none;
}

.process__cta { position: relative; z-index: 2; margin-top: 40px; align-self: center; width: auto; }

@media (max-width: 1100px) {
  .step__card { width: 440px; }
}
/* tablet e telefono: card una sotto l'altra, frecce nascoste come nell'originale */
@media (max-width: 920px) {
  .process { padding: 160px 20px 100px; }
  .process__title { font-size: 54px; }
  .process__lines, .process__doodle { display: none; }
  .process__steps { max-width: 560px; gap: 28px; }
  .step { padding: 0; }
  .step__card { width: 92%; }
  .process__corner { width: 260px; }
}
@media (max-width: 809.98px) {
  .process__title { font-size: 43px; }
  .process__sub { font-size: 15px; }
  .step__card { padding: 24px 20px; }
  .step__text h3 { font-size: 22px; }
  .process__corner--tl { top: -120px; left: -150px; }
  .process__corner--br { bottom: -120px; right: -150px; }
}

/* ==========================================================================
   Cosa sostituisce vs cosa ottieni — struttura da avantamarketing.co (Services),
   stesso stile della sezione Processo
   ========================================================================== */
.swap {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: -6px;
  padding: 46px 24px 140px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #0d0b0b;
  color: #fff;
}
.swap .process__sub { max-width: 760px; }

.swap__doodle {
  position: absolute;
  z-index: 0;
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.swap__doodle--loop { top: 30px; left: 0; width: 170px; }
.swap__doodle--spiral { top: 47%; right: 50px; width: 90px; }

.swap__heading {
  position: relative;
  z-index: 2;
  margin: 90px 0 36px;
  font-family: "Geist", var(--font-sans);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.05em;
  text-align: center;
  color: #fff;
}

.swap__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.swap__card {
  padding: 28px 24px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  background: #f6f1f0;
  color: #1c1c1c;
  text-align: center;
  box-shadow: 3px 5px 0 3px var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.swap__card:hover { transform: translate(-2px, -2px); box-shadow: 5px 7px 0 3px var(--accent); }
.swap__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.swap__card h3 {
  margin: 0;
  font-family: "Geist", var(--font-sans);
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.swap__card p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.4; letter-spacing: -0.02em; color: #222; }

/* Tab + riquadro "Cosa ottieni invece" */
.offer2 { position: relative; z-index: 2; width: 100%; max-width: 1180px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.offer2__tabs {
  width: 100%;
  max-width: 840px;
  padding: 6px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
}
.offer2__tab {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 500 17px/1.3 "Geist", var(--font-sans);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.offer2__tab:hover { background: rgba(255, 255, 255, 0.08); }
.offer2__tab.is-active { background: #f6f1f0; color: #1c1c1c; box-shadow: 0 2px 0 var(--accent); }
.offer2__tab:focus-visible { outline: 2px solid #f6f1f0; outline-offset: 2px; }

.offer2__box {
  width: 100%;
  padding: 56px;
  border: 8px solid #f6f1f0;
  border-radius: 48px;
  background: #1a1717;
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(95, 0, 10, 0.25);
}
.offer2__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: stretch; opacity: 0; }
.offer2__panel[hidden] { display: none; }
.offer2__panel.is-active { opacity: 1; transition: opacity 0.35s ease; }

.offer2__copy { display: flex; flex-direction: column; align-items: flex-start; }
.offer2__tag {
  margin-bottom: 26px;
  padding: 6px 14px;
  border-radius: 12px;
  background: #f6f1f0;
  color: #1c1c1c;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.offer2__name {
  margin: 0 0 30px;
  font-family: "Geist", var(--font-sans);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #fff;
}
.offer2__copy p { margin: 0 0 22px; font-size: 18px; line-height: 1.4; color: rgba(255, 255, 255, 0.88); }
.offer2__rule { width: 100%; margin: 12px 0 30px; border: 0; border-top: 2px solid rgba(255, 255, 255, 0.85); }
.offer2__inc-title { margin: 0 0 18px; font-family: "Geist", var(--font-sans); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.offer2__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  gap: 12px 28px;
}
.offer2__list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, 0.9); }
.offer2__li-icon { width: 17px; height: 17px; flex: none; fill: none; stroke: #e9b9c0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.offer2__art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-radius: 48px;
  background: #f6f1f0;
}
.offer2__circle {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2222 0%, #0d0b0b 75%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.offer2__art-icon { width: 46%; height: 46%; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.offer2__badge {
  position: absolute;
  top: 6%;
  right: 4%;
  width: 26%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 5px solid #0d0b0b;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 clamp(22px, 3vw, 40px)/1 "Geist", var(--font-sans);
}
.offer2__panel.is-active .offer2__circle { animation: offer2-pop 0.5s var(--ease-spring, ease); }
@keyframes offer2-pop { from { transform: scale(0.92); } to { transform: none; } }

@media (max-width: 1023.98px) {
  .offer2__box { padding: 36px; border-radius: 36px; }
  .offer2__panel { grid-template-columns: 1fr; gap: 36px; }
  .offer2__art { min-height: 320px; border-radius: 36px; order: -1; }
  .offer2__circle { width: 220px; }
  .swap__grid { grid-template-columns: 1fr; max-width: 480px; gap: 26px; }
  .swap__doodle--spiral { display: none; }
}
@media (max-width: 809.98px) {
  .swap { padding: 80px 16px 100px; }
  .swap__heading { margin: 64px 0 28px; font-size: 34px; }
  .swap__doodle--loop { width: 110px; top: 10px; }
  .offer2__tabs { padding: 5px; gap: 4px; }
  .offer2__tab { padding: 8px 6px; font-size: 13px; }
  .offer2__box { padding: 22px 18px; border-width: 6px; border-radius: 28px; }
  .offer2__art { min-height: 240px; border-radius: 24px; }
  .offer2__circle { width: 170px; }
  .offer2__name { font-size: 36px; margin-bottom: 20px; }
  .offer2__copy p { font-size: 16px; }
  .offer2__list { grid-template-columns: 1fr; }
}

/* Barra di navigazione in versione scura, per fondersi con la pagina */
.page:has(.process) .nav__bar {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.page:has(.process) .nav__wordmark,
.page:has(.process) .nav__links a { color: #fff; }
.page:has(.process) .nav__links a:hover,
.page:has(.process) .nav__links a[aria-current] { color: #e9b9c0; }
.page:has(.process) .nav__cta {
  border-color: rgba(255, 255, 255, 0.25);
  background: #f6f1f0;
  color: #1c1c1c;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px rgba(95, 0, 10, 0.35);
}
.page:has(.process) .nav__cta-icon svg { stroke: #1c1c1c; }
