/* ============================================
   DESIGN SYSTEM — CSS Variables
   ============================================ */
:root {
  --accent: #FF5500;
  --accent-hover: #E64A00;
  --accent-glow: rgba(255, 85, 0, 0.35);
  --bg-white: #FFFFFF;
  --bg-off: #F8F9FA;
  --bg-dark: #111111;
  --text-dark: #111111;
  --text-light: #FFFFFF;
  --text-muted: rgba(100, 100, 100, 0.7);
  --border-light: rgba(0, 0, 0, 0.06);
  --radius: 20px;
  --radius-sm: 12px;
  --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul,
ol {
  list-style: none;
}

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

/* Reveal Mask for Text Animations */
.reveal-mask {
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.7rem, 0.8rem, 1rem);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.section-label::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}


.section-label::after {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero__highlight {
  color: var(--accent);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 50px;
  cursor: none;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(255, 85, 0, 0.3);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--text-dark);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn--secondary:hover {
  background: var(--bg-off);
  border-color: rgba(0, 0, 0, 0.2);
}

.btn--big {
  padding: 1.2rem 2.5rem;
  font-size: 1.1rem;
}

.btn--full {
  width: 100%;
  padding: 1.2rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 1000;
  padding: 1.25rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.navbar__logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2rem;
  color: var(--text-dark);
  letter-spacing: -1px;
}

.navbar__logo span {
  color: var(--accent);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.navbar__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  position: relative;
  transition: color var(--transition);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition);
}

.navbar__links a:hover {
  color: var(--accent);
}

.navbar__links a:hover::after {
  width: 100%;
}

/* Active link */
.navbar__link--active {
  color: var(--accent) !important;
}

.navbar__link--active::after {
  width: 100% !important;
}

.navbar__cta {
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: var(--text-light) !important;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.navbar__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.navbar__cta::after {
  display: none !important;
}

/* Mobile menu */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-white);
}

/* Animated grid background */
.hero__grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 1px;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.hero__grid-cell {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 2px;
  transition: background-color 0.8s ease;
}

/* Floating particles */
.hero__particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero__particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }

  10% {
    opacity: 0.25;
  }

  90% {
    opacity: 0.15;
  }

  100% {
    transform: translateY(-120px) translateX(40px);
    opacity: 0;
  }
}

/* Decorative gradient orbs */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}

.hero__orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -200px;
  right: -150px;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #FF8844 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
}

.hero__orb--3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #FFAA66 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
}

.hero__headline {
  font-size: clamp(3rem, calc(1vw + 5vh), 4.5rem);
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero__line {
  display: block;
  white-space: nowrap;
}

#hero_first_line {
  line-height: 1.3;
}

.hero__rotator {
  position: relative;
  height: 1.3em;
  margin-top: -0.05em;
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.hero__rotator-item {
  position: absolute;
  width: max-content;
  text-align: center;
  line-height: 1.3;
  opacity: 0;
  visibility: hidden;
}

.hero__rotator-item:first-child {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.hero__headline .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.hero__headline .word-inner {
  display: inline-block;
  will-change: transform;
}

.hero__sub {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, calc(0.7vw + 1vh), 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(2vh + 0.8vw);
  line-height: clamp(1.2, calc(0.7vw + 1vh), 1.3);
}

.hero__sub strong {
  color: var(--text-dark);
  font-weight: 700;
}

.hero__sub-br {
  display: block;
}

.hero__buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__buttons>.btn {
  padding: 2vh 2rem;
  font-size: clamp(1.1rem, calc(0.5vw + 1.2vh), 1.3rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: var(--text-light);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.btn--big {
  padding: 1.25rem 3rem;
  font-size: 1.15rem;
  border-radius: 60px;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 1vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ============================================
   PAGE HERO (sub-pages)
   ============================================ */
.page-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background: var(--bg-off);
}

.page-hero__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.15;
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.page-hero__title {
  font-size: clamp(3rem, calc(2vw + 4vh), 6rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.page-hero__sub {
  font-size: clamp(1.1rem, calc(0.7vw + 1vh), 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   PAIN POINT SECTION
   ============================================ */
.pain {
  padding: 4rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  transition: background 0.1s, color 0.1s;
}

.pain__inner {
  max-width: 60%;
}

.pain__headline {
  font-size: clamp(2.5rem, calc(0.25vw + 6vh), 4.5rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.pain__text {
  font-size: clamp(1rem, calc(0.5vw + 1.3vh), 1.3rem);
  line-height: 1.7;
  color: var(--text-muted);
  transition: color 0.1s;
}

.pain__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.pain__stat-number {
  font-family: var(--font-heading);
  font-size: calc(2vw + 1vh);
  font-weight: 800;
  color: var(--accent);
}

.pain__stat-label {
  font-size: clamp(0.9rem, calc(0.5vw + 1.3vh), 1.1rem);
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .pain__inner {
    max-width: 95vw;
  }

  .pain__headline {
    font-size: 2rem;
  }

  .pain__stat-number {
    font-size: 2rem;
  }
}

/* ============================================
   WHY US — ACCORDION
   ============================================ */
.why-accordion-section {
  padding: 8rem 2rem;
  background: var(--bg-off);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-accordion-header {
  text-align: center;
  margin-bottom: 4rem;
}

.why-accordion-title {
  font-size: clamp(2.2rem, calc(1vw + 5vh), 4rem);
  letter-spacing: -1px;
}

.why-accordion {
  width: 100%;
  max-width: 900px;
  border-top: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: color 0.4s ease;
  color: var(--text-dark);
}

.accordion-header {
  padding: 2.5rem 0;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.accordion-item:hover .accordion-header {
  color: var(--accent);
}

.accordion-item.is-active {
  color: var(--accent);
}

.accordion-number {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  opacity: 0.6;
}

.accordion-title {
  font-size: clamp(1.5rem, calc(0.8vw + 5vh), 2.5rem);
  letter-spacing: -1px;
  margin: 0;
}

.accordion-content {
  height: 0;
  overflow: hidden;
}

.accordion-inner {
  padding-bottom: 2.5rem;
  padding-left: 3.5rem;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 700px;
}

@media (max-width: 768px) {

  .why-accordion-title {
    font-size: 2.5rem;
  }

  .accordion-inner {
    padding-left: 0;
  }

  .accordion-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .accordion-title {
    font-size: 2rem;
  }
}

/* ============================================
   SERVICES — SPLIT SCREEN
   ============================================ */
.services-hz {
  width: 100%;
  padding: 15vh 0;
  /* Pinned */
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.services-hz__intro {
  text-align: center;
  margin: 0 auto 2rem auto;
  padding: 0 2rem;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-hz__title {
  font-size: clamp(2.5rem, calc(1.5vw + 6vh), 4.5rem);
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.services-hz__desc {
  font-size: clamp(1.2rem, calc(0.5vw + 1.5vh), 1.6rem);
  color: var(--text-muted);
  line-height: 1.6;
}

.services-hz__container {
  width: 100%;
  max-width: 100%;
  /* allows full bleed track */
  display: flex;
  flex-direction: column;
  padding-left: 5vw;
  /* Start padding for the track */
}

.services-hz__track {
  display: flex;
  gap: 3vw;
  width: max-content;
  /* allows children to sit horizontally */
  padding-right: 10vw;
  /* End padding */
}

.hz-card {
  position: relative;
  width: clamp(380px, 45vw, 680px);
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, border-color;
  cursor: pointer;
  /* Height: auto to fit content, with minimum for fullscreen feel */
  height: auto;
  min-height: 65vh;
  overflow: hidden;
}

.hz-card:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
}

.hz-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.hz-card__3d {
  position: relative;
  /* Slightly reduced vs original 250px to leave room for desc at all heights */
  width: clamp(250px, 55%, 60%);
  aspect-ratio: 1;
  object-fit: contain;
  margin: 0 auto;
  transform: translateY(-30px);
  display: block;
  z-index: 10;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.15));
  will-change: transform;
  flex-shrink: 0;
}

.hz-card__num {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1;
}

.hz-card__arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hz-card:hover .hz-card__arrow {
  opacity: 0;
  transform: translateX(0);
}

.hz-card__text-container {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 0;
}

.hz-card__title {
  font-size: clamp(1.6rem, 2.5vw, 2.8rem);
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  flex-shrink: 0;
}

.hz-card__desc {
  font-size: clamp(1.1rem, 1.3vw, 1.35rem);
  color: var(--text-muted);
  line-height: 1.6;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

/*
  Targeted fix for screens with limited height (laptops, etc).
  Ensure cards fit without cutting text.
*/
@media (min-width: 901px) and (max-height: 1100px) {
  .hz-card {
    height: auto;
    min-height: 75vh;
    padding: 2rem;
  }

  .hz-card__3d {
    width: 280px;
    aspect-ratio: 1;
    margin-bottom: 0.5rem;
    transform: translateY(-20px);
  }

  .services-hz__intro {
    margin-bottom: 1.5rem;
  }

  .services-hz__title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 0.5rem;
  }

  .services-hz__desc {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  }
}

/* Fallback for Mobile (Stack vertically, no horizontal pin) */
@media (max-width: 900px) {
  .services-hz {
    height: auto;
    overflow: visible;
    padding: 6rem 0;
  }

  .services-hz__container {
    flex-direction: column;
    width: 100%;
  }

  .services-hz__intro {
    width: 100%;
    padding: 0 2rem;
    margin-bottom: 4rem;
  }

  .services-hz__title {
    font-size: 2.5rem;
  }

  .services-hz__track {
    flex-direction: column;
    padding: 0 2rem;
    gap: 2rem;
    width: 100%;
  }

  .hz-card {
    width: 100%;
    height: auto;
    min-height: 280px;
    padding: 2.5rem;
  }

  .hz-card__3d {
    width: 180px;
    height: 180px;
    margin: 1rem auto 2rem auto;
  }

  .hz-card__title {
    font-size: 1.8rem;
  }

  .hz-card__desc {
    font-size: 1rem;
  }
}

/*
  Landscape / short-screen fix:
  Screens wider than 900px but short (e.g. iPhone landscape, small laptops)
  switch to vertical stacking to avoid clipping. 
*/
@media (min-width: 901px) and (max-height: 700px) {
  .services-hz {
    height: auto !important;
    overflow: visible !important;
    padding: 5rem 0 !important;
  }

  .services-hz__intro {
    margin-bottom: 3rem;
  }

  .services-hz__container {
    padding-left: 0;
  }

  .services-hz__track {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding: 0 3vw;
    gap: 2rem;
  }

  .hz-card {
    width: 100%;
    height: auto;
    min-height: 350px;
    padding: 2rem;
  }

  .hz-card__3d {
    width: 170px;
    aspect-ratio: 1;
    margin: 0.5rem auto 1.5rem auto;
  }

  .hz-card__title {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
  }

  .hz-card__desc {
    font-size: 0.95rem;
  }
}

/* ============================================
   PORTFOLIO (Realizzazioni)
   ============================================ */
.portfolio-page {
  padding-top: 15vh;
  min-height: 100vh;
  background: var(--bg-white);
}

.portfolio-hero {
  padding: 0 5vw;
  margin-bottom: 4rem;
}

.portfolio-title {
  font-size: clamp(3rem, 8vw, 7rem);
  letter-spacing: -2px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 800;
}

.portfolio-list-section {
  padding: 0 5vw 10vh;
}

.portfolio-list {
  border-top: 2px solid var(--border-light);
}

.portfolio-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 2px solid var(--border-light);
  cursor: none;
  /* override default cursor */
  transition: opacity 0.4s ease;
}

.portfolio-item__name {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 700;
  letter-spacing: -1px;
}

.portfolio-item__cat {
  font-size: 1.25rem;
  color: var(--text-muted);
}

/* Hover Image Reveal Box */
.portfolio-reveal {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  will-change: transform, opacity;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-reveal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .portfolio-reveal {
    display: none;
    /* Disable on mobile */
  }

  .portfolio-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 0;
    gap: 0.5rem;
  }
}

/* ============================================
   ABOUT (Chi Siamo)
   ============================================ */
.about-page {
  padding-top: 15vh;
  min-height: 100vh;
  background: var(--bg-white);
}

.about-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -1.5px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 2rem;
}

.about-desc {
  font-size: clamp(1.25rem, 2vw, 2rem);
  color: var(--text-muted);
  max-width: 800px;
  line-height: 1.5;
}

.about-text-block {
  padding: 8rem 5vw;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.about-text-block h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.about-text-block p {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  color: var(--text-muted);
  line-height: 1.6;
}

/* Parallax Container */
.parallax-section {
  padding: 0 5vw;
}

.parallax-container {
  width: 100%;
  height: 70vh;
  /* Fixed height for effect */
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}

.parallax-container--small {
  max-width: 1000px;
  height: 50vh;
  margin: 0 auto;
}

.parallax-img {
  width: 100%;
  height: 120%;
  /* Taller than container to allow scrolling */
  object-fit: cover;
  position: absolute;
  top: -10%;
  /* Start slightly above */
  left: 0;
  will-change: transform;
}

/* ----------------------------------
   OLD PORTFOLIO (Realizzazioni)
   ---------------------------------- */
/* ============================================
   CUSTOM CURSOR
   ============================================ */
@media (pointer: fine) {
  * {
    cursor: none !important;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--accent);
    pointer-events: none;
    z-index: 9999;
    /* initial state invisible to avoid top-left corner glitch */
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, opacity;
  }
}

.portfolio {
  padding: 4rem 2rem 6rem;
  background: var(--bg-white);
}

.portfolio__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 3rem;
}

.portfolio-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.06);
  border: 1px solid var(--border-light);
  transition: transform var(--transition), box-shadow var(--transition);
  will-change: transform, opacity;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-card__img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.portfolio-card__img-wrap img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s cubic-bezier(.4, 0, .2, 1);
}

.portfolio-card:hover .portfolio-card__img-wrap img {
  transform: scale(1.05);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__overlay {
  opacity: 1;
}

.portfolio-card__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(10px);
  transition: transform var(--transition);
}

.portfolio-card:hover .portfolio-card__visit {
  transform: translateY(0);
}

.portfolio-card__info {
  padding: 1.75rem 2rem 2rem;
}

.portfolio-card__title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portfolio-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.portfolio-card__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.portfolio-card__tag {
  padding: 0.3rem 0.75rem;
  background: var(--bg-off);
  color: var(--text-muted);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 3rem 4rem;
  background: var(--bg-white);
}

.contact__wrapper {
  max-width: 1100px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.contact__title {
  font-size: clamp(3rem, calc(2vw + 3.5vh), 6rem);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.contact__sub {
  font-size: clamp(1.1rem, calc(0.7vw + 1vh), 1.3rem);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact__detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-off);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact__detail-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.contact__detail-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition);
}

a.contact__detail-value:hover {
  color: var(--accent);
}

/* Contact Form */
.contact__form-wrap {
  background: var(--bg-off);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.04);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact__form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact__form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact__form-input {
  padding: 0.85rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--bg-white);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact__form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.contact__form-input::placeholder {
  color: #C4C9D0;
}

.contact__form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ============================================
   CTA / FOOTER
   ============================================ */
.cta {
  margin-top: 10vh;
  padding: 8rem 2rem;
  background: var(--bg-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta__orb {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 2;
  max-width: 60vw;
  margin: 0 auto;
}

.cta__headline {
  font-size: clamp(2.5rem, calc(1vw + 4vh), 4rem);
  color: var(--text-light);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.cta__sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .cta__inner {
    max-width: 95vw;
  }

  .cta__headline {
    font-size: 2rem;
  }

  .cta__headline br {
    display: none;
  }

  .cta__sub {
    font-size: 1rem;
  }
}

.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

.footer a {
  color: var(--accent);
  transition: color var(--transition);
}

.footer a:hover {
  color: #FF8844;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-title {
  font-size: clamp(3rem, calc(2vw + 4vh), 6rem);
  line-height: 1.3;
  letter-spacing: -2px;
  margin-bottom: 2rem;
}

.about-hero__line {
  display: inline-block;
  will-change: transform;
}

.about-desc {
  font-size: clamp(1.2rem, calc(0.7vw + 1vh), 1.4rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* 3D Split Section */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  min-height: 100vh;
  align-items: start;
  padding: 5vh 5vw;
}

.about-split__text {
  position: sticky;
  top: 20vh;
  padding-bottom: 10vh;
}

.about-split__headline {
  font-size: clamp(3rem, calc(2vw + 4vh), 6rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.about-split__p {
  font-size: clamp(1.1rem, calc(0.7vw + 1vh), 1.3rem);
  color: var(--text-muted);
  line-height: 1.7;
}

.about-split__p strong {
  color: var(--text-dark);
  font-weight: 700;
}

.about-split__visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.floating-3d {
  width: 60%;
  max-width: 500px;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.15));
  will-change: transform;
}

/* The Shift Method */
.about-method {
  padding: 10rem 5vw;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.about-method__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.about-method__title {
  font-size: clamp(3rem, 5vw, 5rem);
  letter-spacing: -2px;
  margin-bottom: 3rem;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.method-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition), background var(--transition);
}

.method-item:hover {
  border-color: var(--accent);
  background: rgba(255, 85, 0, 0.05);
  transform: translateY(-10px);
}

.method-item__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.method-item__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent);
  font-weight: 800;
  line-height: 1;
}

.method-item__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.method-item__desc {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  font-size: 1.05rem;
}

/* ── About Hero: accent line variant ─── */
.about-hero__line--accent {
  color: var(--accent);
}

/* ============================================
   ABOUT — STATS BAR
   ============================================ */
.about-stats {
  padding: 5rem 5vw;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-white);
}

.about-stats__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1;
  color: var(--text-dark);
}

.about-stat__suffix {
  font-size: 0.6em;
  color: var(--accent);
  vertical-align: baseline;
}

.about-stat__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* ============================================
   ABOUT — MANIFESTO
   ============================================ */
.about-manifesto {
  padding: 20vh 5vw;
  background: var(--bg-white);
}

.about-manifesto__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 6rem;
  align-items: start;
}

.about-manifesto__label {
  padding-top: 0.75rem;
}

.about-manifesto__content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-manifesto__headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, calc(2vw + 3vh), 4.5rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 3rem;
}

.about-manifesto__body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-manifesto__body p {
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
}

.about-manifesto__body strong {
  color: var(--text-dark);
  font-weight: 700;
}

.about-manifesto__cta {
  align-self: flex-start;
  margin-top: 1rem;
}

/* ============================================
   ABOUT — FINAL CTA SECTION
   ============================================ */
.about-cta-section {
  padding: 20vh 5vw;
  background: var(--bg-white);
  border-top: 1px solid var(--border-light);
  text-align: center;
  color: var(--text-dark) !important;
}

.about-cta__inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-cta__headline {
  font-family: var(--font-heading);
  font-size: clamp(3rem, calc(2vw + 4vh), 6rem);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.about-cta__sub {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2.5rem;
}

.about-cta__btn {
  font-size: 1.1rem;
  padding: 1.1rem 2.5rem;
}

/* ── About page: responsive ─────────────────── */
@media (max-width: 900px) {
  .about-stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 2rem;
  }

  .about-manifesto__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-manifesto {
    padding: 6rem 1.5rem;
  }

  .about-cta-section {
    padding: 6rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .about-stats {
    padding: 4rem 1.5rem;
  }

  .about-stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .about-cta-section {
    text-align: left;
  }

  .about-cta__inner {
    align-items: flex-start;
  }
}

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

@media (max-width: 1024px) {
  .why {
    height: auto;
  }

  .why__cards {
    grid-template-columns: 1fr;
    height: auto;
  }

  #whyCard2,
  #whyCard3 {
    grid-column: auto;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .navbar__links {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(17, 17, 17, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 2.5rem;
    z-index: 999;
    clip-path: circle(0px at calc(100% - 3rem) 3rem);
    visibility: hidden;
    transition: none;
  }

  .navbar__links a {
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 600;
  }

  .navbar__cta {
    font-size: 1.2rem !important;
    padding: 1rem 2rem !important;
  }

  .navbar__toggle {
    display: flex;
    z-index: 1000;
  }

  .navbar__toggle span {
    background: var(--text-dark);
  }

  .navbar.menu-open .navbar__toggle span {
    background: var(--text-light);
  }

  .navbar.menu-open .navbar__toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .navbar.menu-open .navbar__toggle span:nth-child(2) {
    opacity: 0;
  }

  .navbar.menu-open .navbar__toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .pain__stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero {
    padding: 8rem 1.5rem 4rem;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .contact {
    padding: 6rem 1.5rem 3rem;
  }
}

/* ============================================
   MOBILE FIXES ADDED BY SYSTEM
   ============================================ */
@media (max-width: 768px) {

  /* ── Mobile Hero: Premium Editorial Layout ───────────────── */

  /* Content block: left-aligned */
  .hero__content {
    align-items: flex-start !important;
    text-align: left !important;
    width: 100%;
    height: max-content;
  }

  /* Section label */
  .hero__label {
    font-size: 0.65rem !important;
    letter-spacing: 4px !important;
    margin-bottom: 2.5rem !important;
  }

  /* Headline: large, bold, left-aligned, text wraps */
  .hero__headline {
    font-size: clamp(2.5rem, 10.5vw, 3.2rem) !important;
    align-items: flex-start !important;
    letter-spacing: -2px !important;
    margin-bottom: 1.75rem !important;
    width: 100% !important;
  }

  /* On mobile the reveal-mask must NOT clip — text is 2 lines on small screens */
  .hero .reveal-mask {
    overflow: visible !important;
  }

  .hero__line {
    white-space: normal !important;
    line-height: 1.15 !important;
    display: block !important;
    text-align: left !important;
  }

  /* Rotator: left-aligned, height set by hero-fit.js, no clip needed */
  .hero__rotator {
    justify-content: flex-start !important;
    overflow: visible !important;
    width: 100% !important;
    /* min-height ensures at least 2 lines are reserved before JS measures */
    min-height: 2.5em;
  }

  .hero__rotator-item {
    width: 100% !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.15 !important;
  }

  /* Subtext */
  .hero__sub {
    font-size: 1rem !important;
    text-align: left !important;
    margin: 0 0 2.5rem !important;
    max-width: 100% !important;
    line-height: 1.7 !important;
  }

  .hero__sub-br {
    display: none !important;
  }

  /* Buttons: stacked full-width */
  .hero__buttons {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 0.875rem !important;
  }

  .hero__buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 1rem !important;
    padding: 1.05rem 1.5rem !important;
  }

  /* Scroll hint: only show on tall phones */
  .hero__scroll-hint {
    display: none;
  }

  @media (min-height: 750px) {
    .hero__scroll-hint {
      display: flex;
    }
  }

  /* Orbs: reposition for mobile impact */
  .hero__orb--1 {
    width: 280px !important;
    height: 280px !important;
    top: -80px !important;
    right: -80px !important;
    opacity: 0.55 !important;
  }

  .hero__orb--2 {
    width: 180px !important;
    height: 180px !important;
    bottom: 5rem !important;
    left: -60px !important;
    opacity: 0.3 !important;
  }

  /* About split layout fix */
  .about-split {
    grid-template-columns: 1fr !important;
    padding: 4rem 1.5rem !important;
    gap: 3rem !important;

  }

  .about-split__text {
    order: -1;
    position: static !important;
  }

  .about-title {
    font-size: clamp(2.5rem, 9vw, 3.5rem) !important;
  }

  .floating-3d {
    max-width: 300px !important;
  }

  /* CTA Footer Fix */
  .cta__btn-wrap a {
    width: 90% !important;
    max-width: 400px !important;
    white-space: normal !important;
    font-size: clamp(0.9rem, 4vw, 1.15rem) !important;
    padding: 1rem !important;
    display: inline-flex !important;
    text-align: center !important;
    justify-content: center !important;
    margin: 0 auto;
    height: auto !important;
    line-height: 1.3 !important;
  }

  .cta__btn-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

/* ============================================
   DESKTOP FIXES FOR NEW NAVBAR
   ============================================ */
#navbar__mobile-logo,
.navbar__socials {
  display: none;
}

.navbar__menu-items {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

/* ============================================
   MOBILE FIXES FOR NEW NAVBAR 
   ============================================ */
@media (max-width: 768px) {
  .navbar__links {
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 6rem 3rem 3rem !important;
    gap: 0 !important;
  }

  .navbar__menu-items {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-top: 7rem;
    width: 100%;
  }

  .navbar__links a {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    text-align: left;
    width: 100%;
  }

  #navbar__mobile-logo {
    display: block;
    position: absolute;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-weight: 700 !important;
    font-size: 2.4rem !important;
    color: var(--text-light) !important;
    letter-spacing: -1px;
    text-align: center !important;
  }

  #navbar__mobile-logo span {
    color: var(--accent);
  }

  /* Redesign the CTA to be consistent with normal links */
  .navbar__cta {
    background: transparent !important;
    color: var(--text-light) !important;
    padding: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-weight: 500 !important;
    font-size: 1.8rem !important;
    margin-top: 0 !important;
    display: block !important;
  }

  .navbar__cta:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--accent) !important;
  }

  .navbar__socials {
    display: none;
    /* User requested display: none for now */
    gap: 1.5rem;
    position: absolute;
    bottom: 3rem;
    left: 3rem;
  }

  .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
  }

  .social-link svg {
    width: 24px;
    height: 24px;
    color: var(--text-light);
    opacity: 0.7;
    transition: opacity 0.3s;
  }

  .social-link:hover svg {
    opacity: 1;
    color: var(--accent);
  }
}

/* ============================================
   ABOUT HERO — SPLIT LAYOUT (text + sphere)
   ============================================ */

/* Override the old centered about-hero to a flex split on desktop */
.about-hero {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 5rem 5vw 6rem;
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.about-hero__text {
  flex: 1 1 55%;
  min-width: 0;
}

.about-hero__sphere {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero__sphere-img {
  width: clamp(220px, 28vw, 480px);
  height: clamp(220px, 28vw, 480px);
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(255, 85, 0, 0.25));
  will-change: transform;
  transform-style: preserve-3d;
}

/* Below 1280px: stack sphere ABOVE the text */
@media (max-width: 1280px) {
  .about-hero {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 1rem 5vw 4rem;
    gap: 2rem;
  }

  .about-hero__text {
    flex: none;
    width: 100%;
  }

  .about-hero__sphere {
    order: -1;
    /* sphere above */
  }

  .about-hero__sphere-img {
    width: clamp(160px, 45vw, 320px);
    height: clamp(160px, 45vw, 320px);
  }

  /* Re-center label and desc */
  .about-hero .section-label {
    justify-content: center;
  }

  .about-hero .about-desc {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {
  .about-hero {
    padding: 0rem 1.5rem 3rem;
    gap: 1.5rem;
  }

  .about-hero__sphere-img {
    width: clamp(140px, 50vw, 240px);
    height: clamp(140px, 50vw, 240px);
  }
}

/* ============================================
   FOOTER STYLES (Fat Footer Reveal)
   ============================================ */
.fat-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -1;
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 5rem 5vw 2rem;
}

.fat-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.fat-footer__col-brand .fat-footer__logo {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 1rem;
  display: block;
}

.fat-footer__col-brand p {
  line-height: 1.6;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

.fat-footer__title {
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.fat-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.fat-footer__list a,
.fat-footer__list span {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.fat-footer__list a:hover {
  color: var(--accent);
}

.fat-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Wrapper per reveal */
.main-wrapper {
  background-color: var(--bg-white);
  position: relative;
  z-index: 2;
  margin-bottom: 0;
  /* will be set by js based on footer height */
}

@media (max-width: 900px) {
  .fat-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .fat-footer__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .fat-footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* ============================================
   SOCIAL PROOF (Parlano di Noi)
   ============================================ */
.social-proof {
  padding: 6rem 5vw;
  background: var(--bg-off);
}

.social-proof__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.social-proof__header {
  text-align: center;
  margin-bottom: 4rem;
}

.social-proof__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
}

.case-study {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.case-study__client {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.case-study__icon {
  width: 50px;
  height: 50px;
  background: var(--bg-dark);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-study__client-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-dark);
}

.case-study__client-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.case-study__quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-dark);
  font-weight: 500;
  font-style: italic;
}

.case-study__results {
  margin-top: auto;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.case-study__results ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.case-study__results li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.case-study__results li svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}