/* =========================
   FOODTRIPGO – BUSINESS SYSTEM
   business.css
   Solo componenti B2B condivisi.
   Gli stili specifici stanno nei CSS pagina:
   - business-home.css
   - come-funziona-business.css
   - servizi-business.css
   - candidatura-business.css
========================= */

/* =========================
   BASE B2B
========================= */

.ftg-biz-page,
.ftg-business-page,
.ftg-business-process-page,
.ftg-serv-page,
.ftg-cand-page,
.ftg-legal-page,
.ftg-terms-page {
  overflow-x: clip;
}

/* =========================
   HERO B2B CONDIVISA
========================= */

.ftg-biz-hero,
.ftg-business-hero,
.ftg-serv-hero,
.ftg-cand-hero,
.ftg-legal-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0;
  overflow: hidden;
  isolation: isolate;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ftg-biz-hero__media,
.ftg-business-hero__media,
.ftg-serv-hero__media,
.ftg-cand-hero__media,
.ftg-legal-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ftg-biz-hero__media img,
.ftg-business-hero__media img,
.ftg-serv-hero__media img,
.ftg-cand-hero__media img,
.ftg-legal-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ftg-biz-hero__overlay,
.ftg-business-hero__overlay,
.ftg-serv-hero__overlay,
.ftg-cand-hero__overlay,
.ftg-legal-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.20), rgba(0,0,0,.06)),
    linear-gradient(180deg, rgba(0,0,0,.04), rgba(0,0,0,.16));
}

.ftg-biz-hero .container,
.ftg-business-hero .container,
.ftg-serv-hero .container,
.ftg-cand-hero .container,
.ftg-legal-hero .container {
  position: relative;
  z-index: 2;
}

.ftg-biz-hero__panel,
.ftg-business-hero__panel,
.ftg-serv-hero__panel,
.ftg-cand-hero__panel,
.ftg-legal-hero__panel {
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 54px);
  border-radius: var(--radius-b2b);
  text-align: center;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.13),
      rgba(255,255,255,.055)
    ) !important;
  border: 1px solid rgba(255,255,255,.24) !important;
  box-shadow:
    0 16px 42px rgba(0,0,0,.16),
    inset 0 0 0 1px rgba(255,255,255,.08) !important;
  backdrop-filter: blur(14px) saturate(128%) !important;
  -webkit-backdrop-filter: blur(14px) saturate(128%) !important;
}

.ftg-biz-hero__panel h1,
.ftg-business-hero__panel h1,
.ftg-serv-hero__panel h1,
.ftg-cand-hero__panel h1,
.ftg-legal-hero__panel h1 {
  max-width: 860px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-size: clamp(2.25rem, 4.5vw, 4.45rem);
  line-height: .98;
  letter-spacing: -.04em;
  text-shadow: 0 10px 28px rgba(0,0,0,.24);
}

.ftg-biz-hero__panel p,
.ftg-business-hero__panel p,
.ftg-serv-hero__panel p,
.ftg-cand-hero__panel p,
.ftg-legal-hero__panel p {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255,255,255,.88);
  font-size: 1.04rem;
  line-height: 1.65;
  text-shadow: 0 8px 22px rgba(0,0,0,.20);
}

/* =========================
   BOTTONI B2B
========================= */

.ftg-biz-page .btn,
.ftg-business-page .btn,
.ftg-business-process-page .btn,
.ftg-serv-page .btn,
.ftg-cand-page .btn,
.business-page .btn,
.btn-business,
.btn-dark,
.btn-business-square,
.ftg-business-square-btn,
.ftg-biz-network-fab,
[data-floating-business-fab] {
  border-radius: var(--radius-b2b) !important;
}

.ftg-business-hero .hero-actions .btn-outline,
.ftg-biz-hero .hero-actions .btn-outline,
.ftg-serv-hero .hero-actions .btn-outline,
.ftg-cand-hero .hero-actions .btn-outline {
  background: rgba(0,0,0,.72) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,.34) !important;
  box-shadow:
    0 10px 24px rgba(0,0,0,.24),
    0 6px 18px rgba(219,39,39,.12);
}

.ftg-business-hero .hero-actions .btn-outline:hover,
.ftg-business-hero .hero-actions .btn-outline:focus-visible,
.ftg-biz-hero .hero-actions .btn-outline:hover,
.ftg-biz-hero .hero-actions .btn-outline:focus-visible,
.ftg-serv-hero .hero-actions .btn-outline:hover,
.ftg-serv-hero .hero-actions .btn-outline:focus-visible,
.ftg-cand-hero .hero-actions .btn-outline:hover,
.ftg-cand-hero .hero-actions .btn-outline:focus-visible {
  background: rgba(255,255,255,.92) !important;
  color: #000000 !important;
  border-color: rgba(255,255,255,.92) !important;
}

/* =========================
   FLOATING NAV B2B
========================= */

.business-floating-nav,
.ftg-biz-floating-nav {
  position: fixed;
  left: 50%;
  top: 82px;
  z-index: 900;
  width: auto;
  max-width: min(92vw, 900px);
  transform: translateX(-50%) translateY(-14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity .24s ease,
    transform .24s ease,
    visibility .24s ease;
}

.business-floating-nav.is-visible,
.ftg-biz-floating-nav.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.business-floating-nav-inner,
.ftg-biz-floating-nav-inner {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  border-radius: var(--radius-b2b);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(255,255,255,.52);
  box-shadow: 0 16px 38px rgba(0,0,0,.12);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.business-floating-nav-inner::-webkit-scrollbar,
.ftg-biz-floating-nav-inner::-webkit-scrollbar {
  display: none;
}

.business-floating-nav a,
.ftg-biz-floating-nav a {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  padding: 8px 12px 10px;
  border-radius: var(--radius-b2b-sm);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1;
  color: #111111;
  white-space: nowrap;
  transition:
    color .22s ease,
    background .22s ease;
}

.business-floating-nav a::after,
.ftg-biz-floating-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(219,39,39,0),
      rgba(219,39,39,.95),
      rgba(219,39,39,0)
    );
  transform: scaleX(0);
  opacity: 0;
  transition:
    transform .24s ease,
    opacity .24s ease;
}

.business-floating-nav a:hover,
.business-floating-nav a:focus-visible,
.business-floating-nav a.is-current,
.business-floating-nav a.is-active,
.ftg-biz-floating-nav a:hover,
.ftg-biz-floating-nav a:focus-visible,
.ftg-biz-floating-nav a.is-current,
.ftg-biz-floating-nav a.is-active {
  color: var(--red);
  background: rgba(219,39,39,.06);
}

.business-floating-nav a:hover::after,
.business-floating-nav a:focus-visible::after,
.business-floating-nav a.is-current::after,
.business-floating-nav a.is-active::after,
.ftg-biz-floating-nav a:hover::after,
.ftg-biz-floating-nav a:focus-visible::after,
.ftg-biz-floating-nav a.is-current::after,
.ftg-biz-floating-nav a.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* =========================
   GRID B2B CONDIVISE
========================= */

.ftg-cand-grid,
.ftg-biz-target__grid,
.ftg-serv-target__grid,
.ftg-biz-pillars__grid,
.ftg-serv-pillars__grid,
.ftg-biz-process__steps,
.ftg-serv-process__steps,
.ftg-cand-steps,
.ftg-serv-activation__grid,
.travel-steps-grid,
.ftg-business-target-grid,
.ftg-business-value-grid,
.ftg-business-process-grid,
.social-proof-grid,
.ftg-biz-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 42px;
}

/* =========================
   CARD B2B CONDIVISE
========================= */

.ftg-cand-grid > div,
.ftg-biz-target__item,
.ftg-serv-target__item,
.ftg-biz-process-step,
.ftg-serv-process-step,
.ftg-cand-steps > div,
.travel-step-card,
.ftg-business-process-card,
.ftg-business-value-card {
  position: relative;
  overflow: hidden;
  padding: 28px 24px 24px;
  border-radius: var(--radius-b2b);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.98),
      rgba(247,247,247,.98)
    );
  border: 1px solid rgba(0,0,0,.075);
  box-shadow: 0 16px 38px rgba(0,0,0,.055);
  transition:
    transform .24s ease,
    box-shadow .24s ease,
    border-color .24s ease,
    background .24s ease;
}

.ftg-cand-grid > div::before,
.ftg-biz-target__item::before,
.ftg-serv-target__item::before,
.ftg-biz-process-step::before,
.ftg-serv-process-step::before,
.ftg-cand-steps > div::before,
.travel-step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--red);
  opacity: .82;
}

.ftg-cand-grid > div:hover,
.ftg-biz-target__item:hover,
.ftg-serv-target__item:hover,
.ftg-biz-process-step:hover,
.ftg-serv-process-step:hover,
.ftg-cand-steps > div:hover,
.travel-step-card:hover,
.ftg-business-process-card:hover {
  transform: translateY(-3px);
  border-color: rgba(219,39,39,.22);
  box-shadow: 0 22px 50px rgba(0,0,0,.085);
}

/* =========================
   INDICI / BADGE B2B
========================= */

.travel-step-index,
.ftg-biz-pillar-card__index,
.ftg-serv-pillar-card__icon,
.ftg-biz-process-step__index,
.ftg-serv-process-step span,
.ftg-cand-steps > div span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 34px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: var(--radius-b2b-sm);
  background: rgba(219,39,39,.10);
  color: var(--red);
  font-size: .82rem;
  font-weight: 900;
}

/* =========================
   SOCIAL PROOF CONDIVISO
========================= */

.social-proof-card,
.ftg-biz-proof-card {
  overflow: hidden;
  border-radius: var(--radius-b2b);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 16px 38px rgba(0,0,0,.06);
  transition:
    transform .24s ease,
    box-shadow .24s ease;
}

.social-proof-card:hover,
.ftg-biz-proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0,0,0,.09);
}

.social-proof-media,
.ftg-biz-proof-card__media {
  aspect-ratio: 1.18 / 1;
  background:
    linear-gradient(
      135deg,
      rgba(219,39,39,.14),
      rgba(0,0,0,.06)
    );
}

.social-proof-media img,
.ftg-biz-proof-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-proof-body,
.ftg-biz-proof-card__caption {
  display: block;
  padding: 14px 16px 16px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,.06);
}

.social-proof-meta {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0,0,0,.48);
}

/* =========================
   FAQ B2B CONDIVISE
========================= */

.ftg-business-faq-list {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.ftg-business-faq-card {
  position: relative;
  width: min(100%, 720px);
  padding: 26px 24px;
  border-radius: var(--radius-b2b);
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.96),
      rgba(250,250,250,.98)
    );
  border: 1px solid rgba(0,0,0,.075);
  box-shadow: 0 16px 38px rgba(0,0,0,.055);
}

.ftg-business-faq-card:nth-child(even) {
  margin-left: auto;
}

.ftg-business-faq-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}

.ftg-business-faq-card:nth-child(odd)::before {
  left: 0;
}

.ftg-business-faq-card:nth-child(even)::before {
  right: 0;
}

.ftg-business-faq-card h3 {
  margin-bottom: 12px;
  color: #111111;
}

.ftg-business-faq-card p {
  color: rgba(0,0,0,.70);
  line-height: 1.68;
}

.ftg-business-faq-card p + p {
  margin-top: 10px;
}

/* =========================
   FLOATING CTA BUSINESS
========================= */

.ftg-business-page .ftg-global-fab,
.ftg-business-page [data-floating-business-fab],
.ftg-serv-page .ftg-global-fab,
.ftg-serv-page [data-floating-business-fab],
.ftg-cand-page .ftg-global-fab,
.ftg-cand-page [data-floating-business-fab] {
  border-radius: var(--radius-b2b) !important;
}

.ftg-biz-network-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: auto;
  z-index: 950;
  width: auto;
  max-width: max-content;
  min-height: 52px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-b2b);
  font-weight: 800;
  font-size: .9rem;
  color: #ffffff;
  white-space: nowrap;
  background:
    linear-gradient(
      135deg,
      #DB2727 0%,
      #c92525 46%,
      #111111 100%
    );
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity .22s ease,
    transform .22s ease,
    filter .22s ease;
}

.ftg-biz-network-fab.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ftg-biz-network-fab:hover {
  filter: brightness(1.08);
}

/* =========================
   FORM B2B CONDIVISI
========================= */

.ftg-cand-form {
  display: grid;
  gap: 16px;
  margin-top: 34px;
  padding: clamp(22px, 4vw, 38px);
  border-radius: var(--radius-b2b);
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 18px 42px rgba(0,0,0,.06);
}

.ftg-cand-form input,
.ftg-cand-form select,
.ftg-cand-form textarea {
  border-radius: var(--radius-b2b);
}

.ftg-consent,
.ftg-form-consent {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-b2b);
  background: rgba(219,39,39,.035);
  border: 1px solid rgba(219,39,39,.14);
}

.ftg-consent input[type="checkbox"],
.ftg-form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: var(--red);
}

.ftg-consent span,
.ftg-form-consent span {
  display: block;
  font-weight: 500 !important;
  font-size: .9rem !important;
  line-height: 1.55;
  color: rgba(17,17,17,.84) !important;
}

.ftg-consent a,
.ftg-form-consent a {
  color: var(--red);
  text-decoration: underline;
  font-weight: 700;
}

/* =========================
   LEGAL B2B CONDIVISO
========================= */

.ftg-legal-page main,
.ftg-terms-page main {
  background:
    radial-gradient(circle at top right, rgba(219,39,39,.035), transparent 30%),
    linear-gradient(180deg, #f7f7f7 0%, #ffffff 100%);
}

.ftg-legal-section,
.ftg-terms-section {
  padding: 110px 0;
}

.ftg-legal-card,
.ftg-terms-card {
  padding: clamp(28px, 4vw, 54px);
  border-radius: var(--radius-b2b);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(0,0,0,.075);
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
}

.ftg-legal-card h2,
.ftg-terms-card h2 {
  margin-top: 36px;
}

.ftg-legal-card h2:first-child,
.ftg-terms-card h2:first-child {
  margin-top: 0;
}

.ftg-legal-card p,
.ftg-terms-card p,
.ftg-legal-card li,
.ftg-terms-card li {
  color: rgba(0,0,0,.72);
  line-height: 1.75;
}

/* =========================
   RESPONSIVE B2B CONDIVISO
========================= */

@media (max-width: 1180px) {
  .ftg-business-target-grid,
  .ftg-business-value-grid,
  .ftg-business-process-grid,
  .social-proof-grid,
  .ftg-cand-grid,
  .ftg-biz-target__grid,
  .ftg-serv-target__grid,
  .ftg-biz-pillars__grid,
  .ftg-serv-pillars__grid,
  .ftg-biz-process__steps,
  .ftg-serv-process__steps,
  .ftg-cand-steps,
  .ftg-biz-proof__grid,
  .ftg-serv-activation__grid,
  .travel-steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .business-floating-nav,
  .ftg-biz-floating-nav {
    display: none;
  }

  .ftg-biz-hero,
  .ftg-business-hero,
  .ftg-serv-hero,
  .ftg-cand-hero,
  .ftg-legal-hero {
    min-height: 100vh;
    padding: 76px 0;
  }

  .ftg-cand-page .ftg-cand-target .ftg-cand-grid,
  .ftg-cand-page .ftg-cand-process .ftg-cand-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .ftg-business-target-grid,
  .ftg-business-value-grid,
  .ftg-business-process-grid,
  .social-proof-grid,
  .ftg-cand-grid,
  .ftg-biz-target__grid,
  .ftg-serv-target__grid,
  .ftg-biz-pillars__grid,
  .ftg-serv-pillars__grid,
  .ftg-biz-process__steps,
  .ftg-serv-process__steps,
  .ftg-cand-steps,
  .ftg-biz-proof__grid,
  .ftg-serv-activation__grid,
  .travel-steps-grid {
    grid-template-columns: 1fr;
  }

  .ftg-biz-hero,
  .ftg-business-hero,
  .ftg-serv-hero,
  .ftg-cand-hero,
  .ftg-legal-hero {
    padding: 64px 0;
  }

  .ftg-biz-hero__panel,
  .ftg-business-hero__panel,
  .ftg-serv-hero__panel,
  .ftg-cand-hero__panel,
  .ftg-legal-hero__panel {
    padding: 24px 18px;
  }

  .ftg-business-faq-card,
  .ftg-business-faq-card:nth-child(even) {
    width: 100%;
    margin-left: 0;
  }

  .ftg-biz-network-fab {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
    min-height: 46px;
    padding: 0 18px;
    font-size: .86rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}
/* =========================
   FORM + FOTO AFFIANCATI
========================= */

.ftg-cand-form-layout{

  display:grid !important;

  grid-template-columns:
    minmax(0, 1fr)
    430px !important;

  gap:48px;

  align-items:start;

  width:100%;
}

.ftg-cand-form-wrap{

  width:100%;

  min-width:0;
}

.ftg-cand-side-image{

  width:100%;

  display:block;
}

.ftg-cand-side-image-box{

  position:sticky;

  top:110px;

  overflow:hidden;

  border-radius:var(--radius-b2b);

  border:1px solid rgba(0,0,0,.08);

  background:#111111;

  min-height:100%;

  box-shadow:
    0 24px 60px rgba(0,0,0,.12);
}

.ftg-cand-side-image-box::before{

  content:"";

  position:absolute;

  left:0;

  top:24px;

  bottom:24px;

  width:4px;

  z-index:3;

  background:
    linear-gradient(
      180deg,
      #DB2727 0%,
      #9f1717 50%,
      #000000 100%
    );
}

.ftg-cand-side-image-box img{

  display:block;

  width:100%;

  height:100%;

  min-height:920px;

  object-fit:cover;

  object-position:center;
}

/* mobile */

@media (max-width:1100px){

  .ftg-cand-form-layout{

    grid-template-columns:1fr !important;
  }

  .ftg-cand-side-image-box{

    position:relative;

    top:auto;
  }

  .ftg-cand-side-image-box img{

    min-height:420px;
  }
}
/* forza 4 card come la sezione collaborazione */

.ftg-process-grid-4{

  display:grid !important;

  grid-template-columns:
    repeat(4,minmax(0,1fr)) !important;

  gap:28px;
}

@media (max-width:1100px){

  .ftg-process-grid-4{

    grid-template-columns:
      repeat(2,minmax(0,1fr)) !important;
  }

}

@media (max-width:640px){

  .ftg-process-grid-4{

    grid-template-columns:1fr !important;
  }

}