/* ==========================================================================
   EVEN TEAM BUILDING — FOGLIO DI STILE COMPLETO (HOMEPAGE + PAGINE INTERNE)
   ========================================================================== */

:root {
  --orange: #FFA500;
  --orange-dark: #E69500;
  --dark: #1A1A1A;
  --text: #222222;
  --text-muted: #666666;
  --bg-card: #EFEFEF;
  --bg-soft: #F7F7F7;
  --white: #FFFFFF;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --container: 1160px;
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

/* ==========================================================================
   BOTTONI
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}

.btn--orange {
  background-color: var(--orange);
  color: var(--white);
}

.btn--orange:hover {
  background-color: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn--dark {
  background-color: var(--dark);
  color: var(--white);
}

.btn--dark:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline-white:hover {
  background-color: var(--white);
  color: var(--orange);
}

/* ==========================================================================
   HEADER BARRA ARANCIONE PIENA (HOMEPAGE + PAGINE INTERNE)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--orange);
  padding: 14px 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.logo-white {
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.05em;
  color: var(--white);
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
}

.logo-white img {
  height: 36px;
  width: auto;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 700;
}

.lang-switch button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

.lang-switch button.active {
  color: var(--white);
}

.hamburger-btn {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

/* ==========================================================================
   MENU LATERALE A SCOMPARSA (DRAWER IBRIDO ANIMATO CON LINGUETTE SFALSATE)
   ========================================================================== */

.nav-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 390px;
  max-width: 92vw;
  height: 100dvh;
  background-color: var(--white);
  color: var(--dark);
  z-index: 200;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  border-left: 3px solid var(--orange);
  box-shadow: -16px 0 42px rgba(0, 0, 0, 0.25);
  transition: right 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-drawer.open {
  right: 0;
}

@keyframes drawerFadeDown {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabShootLeft {
  0% {
    opacity: 0;
    translate: -105% 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes tabShootRight {
  0% {
    opacity: 0;
    translate: 105% 0;
  }
  100% {
    opacity: 1;
    translate: 0 0;
  }
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px 14px;
  border-bottom: 1px solid #EFEFEF;
}

.nav-drawer.open .nav-drawer__top {
  animation: drawerFadeDown 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s backwards;
}

.nav-drawer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.05em;
  color: var(--orange);
  text-transform: lowercase;
}

.nav-drawer__brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.nav-drawer__brand:hover img {
  transform: rotate(-12deg) scale(1.1);
}

.nav-drawer__top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-drawer__home-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  background-color: var(--bg-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
}

.nav-drawer__home-pill:hover {
  background-color: var(--orange);
  color: var(--white);
}

.nav-drawer__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-soft);
  border: none;
  color: var(--dark);
  font-size: 1.45rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.nav-drawer__close:hover {
  background-color: var(--orange);
  color: var(--white);
  transform: rotate(90deg);
}

/* Linguette sfalsate */
.nav-drawer__stagger-nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 6px 0;
}

.drawer-tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 83%;
  min-height: 48px;
  background-color: var(--orange);
  color: var(--white);
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(255, 165, 0, 0.24);
  transition: width 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.25s ease,
              background-color 0.25s ease,
              box-shadow 0.25s ease;
}

.drawer-tab::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 80%;
  height: 100%;
  background: linear-gradient(110deg, transparent 15%, rgba(255, 255, 255, 0.34) 50%, transparent 85%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.drawer-tab:hover::after {
  left: 150%;
}

.drawer-tab--left {
  margin-right: auto;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  padding: 11px 26px 11px 22px;
}

.nav-drawer.open .drawer-tab--left {
  animation: tabShootLeft 0.54s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
}

.drawer-tab--left:hover {
  width: 88%;
  background-color: var(--dark);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.drawer-tab--right {
  margin-left: auto;
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  padding: 11px 22px 11px 26px;
}

.nav-drawer.open .drawer-tab--right {
  animation: tabShootRight 0.54s cubic-bezier(0.34, 1.45, 0.64, 1) backwards;
}

.drawer-tab--right:hover,
.drawer-accordion.is-open .drawer-tab--accordion {
  width: 88%;
  background-color: var(--dark);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.nav-drawer.open .nav-drawer__stagger-nav > *:nth-child(1) { animation-delay: 0.10s; }
.nav-drawer.open .nav-drawer__stagger-nav > *:nth-child(2) .drawer-tab { animation-delay: 0.16s; }
.nav-drawer.open .nav-drawer__stagger-nav > *:nth-child(3) { animation-delay: 0.22s; }
.nav-drawer.open .nav-drawer__stagger-nav > *:nth-child(4) { animation-delay: 0.28s; }
.nav-drawer.open .nav-drawer__stagger-nav > *:nth-child(5) { animation-delay: 0.34s; }

.drawer-tab__chevron {
  font-size: 0.95rem;
  line-height: 1;
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.drawer-accordion.is-open .drawer-tab__chevron {
  transform: rotate(180deg);
}

/* Pannello a fisarmonica dei 7 format */
.drawer-accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-accordion.is-open .drawer-accordion-panel {
  grid-template-rows: 1fr;
}

.drawer-accordion-inner {
  overflow: hidden;
}

.drawer-formats-box {
  margin: 10px 20px 2px;
  padding: 8px;
  background-color: var(--bg-soft);
  border-radius: 16px;
  border: 1px solid #EAEAEA;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-format-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 10px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity 0.28s ease,
              transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
              background-color 0.2s ease,
              box-shadow 0.2s ease;
}

.drawer-accordion.is-open .drawer-format-link {
  opacity: 1;
  transform: translateX(0);
}

.drawer-accordion.is-open .drawer-format-link:nth-child(1) { transition-delay: 0.04s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(2) { transition-delay: 0.08s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(3) { transition-delay: 0.12s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(4) { transition-delay: 0.16s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(5) { transition-delay: 0.20s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(6) { transition-delay: 0.24s; }
.drawer-accordion.is-open .drawer-format-link:nth-child(7) { transition-delay: 0.28s; }

.drawer-format-link__main {
  display: flex;
  align-items: center;
  gap: 9px;
}

.drawer-format-link__num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.drawer-format-link strong {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  transition: color var(--transition);
}

.drawer-format-link__tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
}

.drawer-format-link:hover {
  background-color: var(--white);
  transform: translateX(4px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  transition-delay: 0s !important;
}

.drawer-format-link:hover strong {
  color: var(--orange);
}

/* Footer rapido del drawer */
.nav-drawer__footer {
  padding: 16px 22px 0;
  border-top: 1px solid #EFEFEF;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-drawer.open .nav-drawer__footer {
  animation: drawerFadeUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.38s backwards;
}

.nav-drawer__cta {
  width: 100%;
  padding: 12px 18px;
  font-size: 0.88rem;
  border-radius: var(--radius-pill);
}

.nav-drawer__cta:hover {
  background-color: var(--orange);
  color: var(--white);
}

.nav-drawer__quick-contacts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.nav-drawer__quick-contacts a {
  color: var(--dark);
  font-weight: 700;
}

.nav-drawer__quick-contacts a:hover {
  color: var(--orange);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.32s ease, visibility 0.32s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   1. HERO SPLIT 60% ILLUSTRAZIONE / 40% TESTO (CON EFFETTO 3D A SBALZO)
   ========================================================================== */

.hero-split {
  display: grid;
  grid-template-columns: 60% 40%;
  min-height: 540px;
  width: 100%;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-split__media {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-split__media img {
  width: 108%;
  max-width: none;
  height: auto;
  object-fit: contain;
  transform: translate(170px, -55px) scale(1.1);
  transform-origin: center right;
  filter: drop-shadow(16px 22px 26px rgba(0, 0, 0, 0.2));
}

.hero-split__content {
  position: relative;
  z-index: 1;
  background-color: var(--orange);
  color: var(--white);
  padding: 24px 10% 64px 11%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-split__content h1 {
  font-size: clamp(2rem, 2.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 22ch;
}

.hero-split__content p {
  font-size: clamp(1rem, 1.12vw, 1.08rem);
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 34px;
  opacity: 0.96;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions .btn {
  padding: 14px 28px;
  font-size: 0.94rem;
}

.hero-actions .btn--dark {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

/* ==========================================================================
   2. SEZIONE CATEGORIE TEAM BUILDING (TITOLO CENTRATO + SLIDER CON FRECCE)
   ========================================================================== */

.categories-section {
  padding: 24px 0 64px;
  background-color: var(--white);
}

.categories-header {
  text-align: center;
  margin-bottom: 36px;
}

.categories-header .eyebrow {
  display: block;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.categories-header h2 {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  padding: 8px 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition), opacity var(--transition);
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.12);
}

.carousel-arrow--prev {
  left: 12px;
}

.carousel-arrow--next {
  right: 12px;
}

.categories-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 3.35);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 20px 12px;
  cursor: grab;
}

.categories-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.categories-track::-webkit-scrollbar {
  display: none;
}

.cat-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition);
}

.cat-card:hover {
  transform: translateY(-5px);
}

.cat-card__photo {
  height: 270px;
  background-color: #DCDCDC;
  overflow: hidden;
}

.cat-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter var(--transition);
}

.cat-card:hover .cat-card__photo img {
  filter: grayscale(0%);
}

.cat-card__footer {
  background-color: var(--orange);
  color: var(--white);
  padding: 16px 20px 18px;
}

.cat-card__footer h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.cat-card__footer span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 2px;
}

/* ==========================================================================
   3. LOGHI CLIENTI (100 AZIENDE + MAN-RIGHT + GRIGLIA 4x2)
   ========================================================================== */

.clients-section {
  padding: 52px 0 44px;
  background-color: var(--white);
  box-shadow: 0 0 28px rgba(0, 0, 0, 0.07);
  position: relative;
  z-index: 2;
}

.clients-heading {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--dark);
  margin-bottom: 32px;
}

.clients-heading span {
  color: var(--orange);
  font-weight: 700;
  font-size: 1.18em;
}

.clients-showcase {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 44px;
  align-items: center;
}

.clients-illustration img {
  width: 100%;
  max-width: 215px;
  height: auto;
}

.clients-logos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px 24px;
  align-items: center;
  justify-items: center;
}

.client-logo-cell {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--orange);
}

.client-logo-cell img {
  max-height: 44px;
  max-width: 140px;
  width: auto;
  object-fit: contain;
}

/* ==========================================================================
   4. FORM PREVENTIVO
   ========================================================================== */

.quote-method-band {
  padding: 84px 0 56px;
  background-color: var(--white);
}

.quote-box-centered {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-box-centered h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 36px;
}

.quote-box-centered h2 span {
  color: var(--orange);
  font-weight: 800;
}

.quote-form-wrap {
  position: relative;
}

.quote-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  text-align: left;
}

.form-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border-radius: 10px;
  border: 1.5px solid #F3C677;
  background-color: var(--white);
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input::placeholder {
  color: #777777;
}

.form-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.14);
}

.btn--quote-submit {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  border-radius: 10px;
  background-color: var(--orange);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(255, 165, 0, 0.25);
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn--quote-submit:hover {
  background-color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.quote-sitting-art {
  position: absolute;
  right: -216px;
  bottom: -6px;
  width: 235px;
  height: auto;
  z-index: 2;
  pointer-events: none;
}

.form-feedback {
  margin-top: 16px;
  font-size: 0.94rem;
  font-weight: 700;
  text-align: center;
}

/* ==========================================================================
   4B. SEZIONE FULL-SCREEN TEAM COACHING & IL NOSTRO METODO
   ========================================================================== */

.team-coaching-stage {
  min-height: calc(100vh - 68px);
  padding: 72px 0 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 76%, #F7F7F7 100%);
  position: relative;
}

.coaching-center {
  width: 100%;
  text-align: center;
}

@keyframes chevronFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

.coaching-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  margin-bottom: 36px;
  opacity: 0.85;
  animation: chevronFloat 2.6s ease-in-out infinite;
  transition: color var(--transition), opacity var(--transition);
}

.coaching-chevron:hover {
  color: var(--orange);
  opacity: 1;
}

.coaching-center .eyebrow {
  display: block;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.coaching-center h2 {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--orange);
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 20px;
}

.coaching-lead {
  max-width: 500px;
  margin: 0 auto 48px;
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.method-subtitle {
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 40px;
}

/* Riga 0.1 ANALISI - 0.5 FOLLOW UP distribuita a tutta larghezza */
.method-pills-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 16px;
  width: 100%;
}

.method-step {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  transition: transform 0.25s ease;
}

.method-step__num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  padding-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

.method-step__badge {
  background-color: var(--orange);
  color: var(--white);
  font-size: clamp(0.84rem, 1.05vw, 0.98rem);
  font-weight: 700;
  text-transform: uppercase;
  padding: 9px 22px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.method-step.is-active .method-step__badge,
.method-step:hover .method-step__badge {
  background-color: var(--dark);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.method-detail-box {
  max-width: 640px;
  margin: 26px auto 0;
  padding: 14px 22px;
  background-color: var(--bg-soft);
  border-left: 4px solid var(--orange);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.45;
  transition: opacity 0.2s ease;
}

.coaching-cta-wrap {
  margin-top: 38px;
}

.coaching-cta-btn {
  padding: 14px 30px;
  font-size: 0.94rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.coaching-cta-btn:hover {
  background-color: var(--orange);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(255, 165, 0, 0.28);
}

/* ==========================================================================
   5. FASCIA ONDA NATURALE (SISTEMA / VALUTAZIONE / ESPERIENZA / MISURA)
   ========================================================================== */

.wave-pillars-section {
  position: relative;
  width: 100%;
  min-height: 510px;
  padding: 64px 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #F7F7F7 0%, #F7F7F7 40%, #FFFFFF 100%);
  overflow-x: clip;
}

.wave-pillars-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

@keyframes waveDashFlow {
  to {
    stroke-dashoffset: -48;
  }
}

.wave-pillars-bg path:last-of-type {
  animation: waveDashFlow 2.4s linear infinite;
}

.wave-pillars-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}

.wave-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  transition: transform var(--transition);
}

.wave-pillar--low {
  transform: translateY(82px);
}

.wave-pillar--low:hover {
  transform: translateY(78px);
}

.wave-pillar--high {
  transform: translateY(-82px);
}

.wave-pillar--high:hover {
  transform: translateY(-86px);
}

.wave-pillar__icon {
  width: 176px;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 56%, rgba(255, 255, 255, 0) 78%);
  border-radius: 50%;
}

.wave-pillar__icon img {
  max-width: 160px;
  max-height: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.wave-pillar__text h4 {
  color: var(--orange);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.wave-pillar__text p {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

/* ==========================================================================
   6. PAGINE INTERNE FORMAT (CARD GRIGIA + 4 FOTO CHE SBORDANO)
   ========================================================================== */

.formats-page {
  padding: 56px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 84px;
}

.format-card {
  width: 92%;
  max-width: var(--container);
  margin: 0 auto;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: center;
  position: relative;
}

.format-card--reverse {
  grid-template-columns: 1.12fr 0.88fr;
}

.format-card--reverse .format-text {
  order: 2;
}

.format-card--reverse .stagger-photos {
  order: 1;
}

.format-cat-tag {
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
}

.format-text h1,
.format-text h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
  color: var(--orange);
  line-height: 1.15;
  margin: 2px 0 6px;
  text-transform: uppercase;
}

.format-subtitle {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.format-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 22px;
}

.objectives-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: var(--dark);
}

.badges-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.badge-pill {
  background-color: var(--orange);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 7px;
  line-height: 1.2;
}

.badge-pill--dark {
  background-color: var(--dark);
}

.stagger-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: center;
}

.stagger-photos img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  background-color: #D4D4D4;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.stagger-photos img:nth-child(1) {
  height: 255px;
  margin-top: 24px;
}

.stagger-photos img:nth-child(2) {
  height: 390px;
  margin-top: -58px;
  margin-bottom: -58px;
}

.stagger-photos img:nth-child(3) {
  height: 345px;
  margin-top: -24px;
  margin-bottom: -42px;
}

.stagger-photos img:nth-child(4) {
  height: 235px;
  margin-bottom: 20px;
}

.illustration-cta {
  padding: 40px 0 24px;
  text-align: center;
}

.illustration-cta img {
  max-width: 540px;
  margin: 0 auto 24px;
}

.illustration-cta p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ==========================================================================
   7. FOOTER STRUTTURATO (CONTATTI + MENU RAPIDO + GRUPPO + STRISCIA LEGALE)
   ========================================================================== */

.footer-wrapper {
  position: relative;
  margin-top: 40px;
}

.footer-doodle {
  display: block;
  width: 195px;
  max-width: 45vw;
  height: auto;
  margin: 0 9% -10px auto;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.site-footer {
  background-color: var(--orange);
  color: var(--white);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 1fr;
  gap: 44px;
  align-items: start;
}

.footer-heading {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding-bottom: 10px;
  margin-bottom: 20px;
  position: relative;
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 2px;
  background-color: var(--white);
}

.footer-brand-img {
  height: 36px;
  width: auto;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.92;
  margin-bottom: 18px;
}

.footer-info p,
.footer-info a {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 8px;
  display: block;
}

.footer-info a:hover {
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--white);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  transition: transform var(--transition);
}

.footer-socials a:hover {
  transform: translateY(-2px);
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 22px;
}

.footer-nav a {
  font-size: 0.94rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition);
}

.footer-nav a::before {
  content: "›";
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1;
}

.footer-nav a:hover {
  transform: translateX(4px);
}

.btn--footer-white {
  background-color: var(--white);
  color: var(--orange);
  padding: 10px 20px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn--footer-white:hover {
  background-color: var(--dark);
  color: var(--white);
}

.group-card {
  background-color: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  padding: 22px 20px;
  text-align: center;
}

.group-card p {
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 14px;
}

.parent-company-box {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  color: var(--dark);
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: transform var(--transition), box-shadow var(--transition);
}

.parent-company-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.parent-company-box img {
  max-height: 32px;
  width: auto;
}

.subsidiaries-links {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(255, 255, 255, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
}

.subsidiaries-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-legal-links {
  margin-top: 4px;
}

.footer-legal-links a {
  text-decoration: underline;
  font-weight: 600;
}

.footer-credits a {
  text-decoration: underline;
  font-weight: 700;
}

/* ==========================================================================
   MODALE CATALOGO PDF
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 450px;
  width: 100%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ==========================================================================
   ANIMAZIONI REVEAL ALLO SCROLL (APP.JS)
   ========================================================================== */

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mantiene gli sfalsamenti verticali dei 4 pilastri sull'onda su desktop */
.wave-pillar.wave-pillar--low.reveal-up {
  transform: translateY(108px);
}
.wave-pillar.wave-pillar--low.reveal-up.is-visible {
  transform: translateY(82px);
}
.wave-pillar.wave-pillar--low.reveal-up.is-visible:hover {
  transform: translateY(76px);
}

.wave-pillar.wave-pillar--high.reveal-up {
  transform: translateY(-56px);
}
.wave-pillar.wave-pillar--high.reveal-up.is-visible {
  transform: translateY(-82px);
}
.wave-pillar.wave-pillar--high.reveal-up.is-visible:hover {
  transform: translateY(-88px);
}

/* Ingresso elastico dei personaggi illustrati */
.reveal-character {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.clients-illustration.reveal-character {
  transform: translateX(-28px);
}
.clients-illustration.reveal-character.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.quote-sitting-art.reveal-character {
  transform: translateX(-22px);
}
.quote-sitting-art.reveal-character.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.footer-doodle.reveal-character {
  transform: translateY(24px);
}
.footer-doodle.reveal-character.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   BANNER NOTIFICA ESITO INVIO FORM (SUCCESSO / ERRORE)
   ========================================================================== */

.form-feedback {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  border-radius: 10px;
  line-height: 1.5;
}

.form-feedback.is-success {
  padding: 13px 18px;
  background-color: #EDF9F0;
  border: 1.5px solid #28A745;
  color: #155724;
}

.form-feedback.is-error {
  padding: 13px 18px;
  background-color: #FFF2F2;
  border: 1.5px solid #DC3545;
  color: #842029;
}

.form-feedback.is-error a {
  color: #842029;
  font-weight: 800;
  text-decoration: underline;
}

/* Banner flottante in alto centrato (visibile ovunque nella pagina) */
.even-banner {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translate(-50%, -24px);
  width: min(540px, 92vw);
  background-color: var(--white);
  color: var(--dark);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  border-left: 6px solid var(--orange);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.even-banner.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.even-banner--success {
  border-left-color: #28A745;
}

.even-banner--error {
  border-left-color: #DC3545;
}

.even-banner__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: var(--white);
  margin-top: 2px;
}

.even-banner--success .even-banner__icon {
  background-color: #28A745;
}

.even-banner--error .even-banner__icon {
  background-color: #DC3545;
}

.even-banner__body {
  flex: 1;
  text-align: left;
}

.even-banner__title {
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 3px;
}

.even-banner__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
  margin: 0;
}

.even-banner__text a {
  color: var(--orange-dark);
  font-weight: 800;
  text-decoration: underline;
}

.even-banner__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color var(--transition);
}

.even-banner__close:hover {
  color: var(--dark);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1240px) {
  .quote-box-centered {
    max-width: 680px;
  }

  .quote-sitting-art {
    width: 185px;
    right: -170px;
    bottom: -5px;
  }
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-split__media {
    justify-content: center;
    margin-right: 0;
    margin-top: -62px;
    margin-bottom: -182px;
    padding: 0;
  }

  .hero-split__media img {
    width: 106%;
    max-width: 560px;
    transform-origin: center center;
    transform: translateX(4.5%);
    filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.18));
  }

  .hero-split__content {
    padding: 155px 6% 48px;
  }

  .categories-track {
    grid-auto-columns: 260px;
  }

  .clients-showcase,
  .format-card,
  .format-card--reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .clients-logos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .quote-sitting-art {
    display: none;
  }

  .team-coaching-stage {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .method-pills-row {
    justify-content: center;
    gap: 14px 18px;
  }

  .wave-pillars-bg {
    display: none;
  }

  .wave-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    min-height: auto;
    gap: 28px 16px;
  }

  .wave-pillar,
  .wave-pillar--low,
  .wave-pillar--high,
  .wave-pillar.wave-pillar--low.reveal-up,
  .wave-pillar.wave-pillar--high.reveal-up,
  .wave-pillar.wave-pillar--low.reveal-up.is-visible,
  .wave-pillar.wave-pillar--high.reveal-up.is-visible {
    transform: none !important;
  }

  .wave-pillar__icon {
    width: 136px;
    height: 136px;
  }

  .wave-pillar__icon img {
    max-width: 120px;
    max-height: 120px;
  }

  .wave-pillar--high .wave-pillar__icon {
    order: 1;
  }

  .wave-pillar--high .wave-pillar__text {
    order: 2;
  }

  .formats-page {
    gap: 36px;
    padding: 36px 0;
  }

  .format-card {
    padding: 28px 24px;
    gap: 28px;
  }

  .format-card--reverse .format-text,
  .format-card--reverse .stagger-photos {
    order: unset;
  }

  .stagger-photos img:nth-child(1),
  .stagger-photos img:nth-child(2),
  .stagger-photos img:nth-child(3),
  .stagger-photos img:nth-child(4) {
    height: 220px;
    margin: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .quote-form-grid {
    grid-template-columns: 1fr;
  }

  .stagger-photos {
    grid-template-columns: repeat(2, 1fr);
  }

  .stagger-photos img {
    height: 175px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}