/* ============================================
   MONOPO SAIGON — Hero Section Styles
   ============================================ */


/* Reset & Base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


:root {
  --color-bg: #000000;
  --color-fg: #ffffff;
  --color-fg-muted: rgba(255, 255, 255, 0.5);
  --color-fg-subtle: rgba(255, 255, 255, 0.3);
  --color-accent: #c8ff00;
  --font-heading: 'Outfit', orbitron;
  --font-body: 'Inter', sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}


html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


body {
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}


a {
  color: inherit;
  text-decoration: none;
}


ul {
  list-style: none;
}

/* ============================================
   FIX DEFINITIVO LOGO HERO (FORZATURA IN CIMA)
   ============================================ */
img.nav-logo-img {
  height: 100px !important;
  width: auto !important;
  max-width: 150px !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 768px) {
  img.nav-logo-img {
    height: 30px !important;
  }
}

/* ============================================ */

/* ============================================
   Ripple Canvas
   ============================================ */
#ripple-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}


/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  z-index: 1;
  overflow: hidden;
}


/* ============================================
   Navigation
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 0 clamp(24px, 4vw, 60px);
  mix-blend-mode: difference;
  background: transparent;
  transition: background 0.35s ease, mix-blend-mode 0s;
}

/* Mobile: sfondo quando la pagina viene scrollata */
@media (max-width: 768px) {
  .nav--scrolled {
    background: #050508ff !important;
    mix-blend-mode: normal !important;
  }
}


/* ── Layout Header (Forza gli elementi ai lati opposti) ── */
.nav-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* ── Contenitore Logo (Blocca il restringimento e lo ancora a sinistra) ── */
.nav-logo-link {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  text-decoration: none;
}

/* ── Immagine Logo (Reset e fluidità) ── */
/* ── Immagine Logo (Reset e fluidità) ── */
.nav-logo-img {
  display: block;
  /* Dimensioni aumentate: parte da 40px, scala fino a 60px sui monitor grandi */
  height: clamp(40px, 5vw, 60px) !important;
  width: auto !important;
  max-width: none !important;
  object-fit: contain;
}

/* ── Regole specifiche per Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-inner {
    padding-left: 5px !important;
    /* 1. Lo appiccichiamo al bordo sinistro */
    padding-right: 20px !important;
  }

  .nav-logo-link {
    flex-shrink: 0 !important;
    margin-left: -10px !important;
    /* 2. Tiriamo il box verso sinistra per compensare lo spazio vuoto del PNG */
  }

  .nav-logo-img {
    height: 60px !important;
    /* 3. Altezza base generosa */

    /* 4. IL TRUCCO MAGICO: Ingrandisce tutto del 40% (modifica 1.4 in 1.6 se serve più grande) */
    transform: scale(1.4) !important;

    /* 5. Assicura che ingrandendosi rimanga ancorato a sinistra senza sbavare al centro */
    transform-origin: left center !important;
  }
}

/* ── Regole specifiche per Mobile (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-inner {
    padding-left: 0px !important;
    /* Appiccicato al bordo assoluto */
    padding-right: 20px !important;
  }

  .nav-logo-link {
    flex-shrink: 0 !important;
    margin-left: -15px !important;
    /* Lo tiriamo ancora più a sinistra per azzerare lo spazio vuoto del PNG */
  }

  .nav-logo-img {
    height: 70px !important;
    /* Aumentiamo la base di partenza */

    /* IL TRUCCO ESTREMO: Ingrandiamo l'immagine dell'80% in più */
    transform: scale(1.8) !important;

    transform-origin: left center !important;
  }
}



.nav-logo:hover {
  opacity: 0.7;
}


.logo-svg {
  width: 90px;
  height: 24px;
  color: var(--color-fg);
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}


.nav-link {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  transition: opacity 0.3s ease;
  padding: 8px 0;
}

.nav--scrolled {
  background-color: rgba(5, 5, 8, 0.7) !important;
  /* Colore scuro semi-trasparente */
  backdrop-filter: blur(12px);
  /* L'effetto sfocatura magico */
  -webkit-backdrop-filter: blur(12px);
  /* Per Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  /* Un bordino tech sottilissimo */
  transition: all 0.4s ease;
}


.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-fg);
  transition: width 0.4s var(--ease-out-expo);
}


.nav-link:hover::after {
  width: 100%;
}


.nav-link:hover {
  opacity: 0.8;
}


/* Mobile Menu Button — 3 linee */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  z-index: 202;
  position: relative;
}

.menu-line {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--color-fg);
  transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1),
    opacity 0.3s ease,
    width 0.3s ease;
  transform-origin: center;
}

/* Linea centrale si restringe poi scompare → X elegante */
.nav-menu-btn.active .menu-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-menu-btn.active .menu-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================
   Hero Content
   ============================================ */
.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 clamp(24px, 4vw, 60px);
  padding-top: 80px;
  position: relative;
}


.hero-title-wrapper {
  margin-bottom: clamp(24px, 3vw, 48px);
  overflow: hidden;
}


.hero-title {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.04em;
}


.title-line {
  display: block;
  overflow: hidden;
}


.title-line-1 {
  font-size: clamp(52px, 10vw, 160px);
}


.title-line-2 {
  font-size: clamp(52px, 10vw, 160px);
  padding-left: clamp(40px, 8vw, 140px);
}


.title-word {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: revealWord 1.2s var(--ease-out-expo) forwards;
  animation-delay: calc(var(--delay) * 0.15s + 0.4s);
}


@keyframes revealWord {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Description */
.hero-description {
  max-width: 560px;
  margin-left: clamp(4px, 1vw, 12px);
  overflow: hidden;
}


.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.8125rem, 1.1vw, 0.9375rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-fg-muted);
  letter-spacing: 0.01em;
}


.tagline-line {
  display: block;
  overflow: hidden;
}


.tagline-text {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  animation: revealTagline 1s var(--ease-out-expo) forwards;
}


.tagline-line:nth-child(1) .tagline-text {
  animation-delay: 0.9s;
}


.tagline-line:nth-child(2) .tagline-text {
  animation-delay: 1.0s;
}


.tagline-line:nth-child(3) .tagline-text {
  animation-delay: 1.1s;
}


.tagline-line:nth-child(4) .tagline-text {
  animation-delay: 1.2s;
}


@keyframes revealTagline {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


/* Label */
.hero-label {
  position: absolute;
  bottom: clamp(32px, 5vh, 64px);
  right: clamp(24px, 4vw, 60px);
  overflow: hidden;
}


.label-text {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  transform: translateY(110%);
  opacity: 0;
  animation: revealTagline 1s var(--ease-out-expo) forwards;
  animation-delay: 1.4s;
}


/* ============================================
   Scroll Indicator
   ============================================ */
.scroll-indicator {
  position: absolute;
  bottom: clamp(32px, 5vh, 64px);
  left: clamp(24px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 1.8s;
}


@keyframes fadeInScroll {
  to {
    opacity: 1;
  }
}


.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-fg-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
  animation-delay: 2s;
}


@keyframes scrollPulse {


  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(1);
  }


  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}


.scroll-text {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
}


/* ============================================
   Background Grain / Texture
   ============================================ */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 128px;
  opacity: 0.03;
  pointer-events: none;
  z-index: 2;
}


/* ============================================
   Responsive — Full Multi-Device System
   ============================================ */

/* ── Mobile S (≤ 360px) ── */
@media (max-width: 360px) {
  .nav-inner {
    height: 56px;
  }

  .nav {
    padding: 0 16px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(36px, 13vw, 52px);
    text-align: center;
    padding-left: 0 !important;
  }

  .hero-content {
    padding: 0 16px;
    padding-top: 56px;
    padding-bottom: 100px;
    justify-content: flex-end;
    align-items: center;
  }

  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .career-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 20px;
  }

  .career-apply-btn {
    width: 100%;
    text-align: center;
  }

  .contact-submit {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    height: 240px;
  }
}

/* ── Mobile M (≤ 480px) ── */
@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-inner {
    height: 60px;
  }

  .nav {
    padding: 0 20px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(40px, 13vw, 64px);
    text-align: center;
    padding-left: 0 !important;
  }

  .hero-content {
    padding: 0 20px;
    padding-top: 60px;
    padding-bottom: 110px;
    justify-content: flex-end;
    align-items: center;
  }

  .hero-label {
    display: none;
  }

  .scroll-indicator {
    left: auto;
    right: 20px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .career-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .career-apply-btn {
    width: 100%;
    text-align: center;
  }

  .contact-submit {
    width: 100%;
    align-self: stretch;
    text-align: center;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    height: 260px;
  }

  .glass-card {
    max-width: 100%;
  }
}

/* ── Mobile L / Phablet (≤ 640px) ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-inner {
    height: 64px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(44px, 12vw, 72px);
  }

  .title-line-2 {
    padding-left: clamp(24px, 7vw, 52px);
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 120px;
    justify-content: flex-end;
  }

  .hero-label {
    display: none;
  }

  .scroll-indicator {
    left: auto;
    right: 24px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
  }

  .career-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .career-apply-btn {
    width: 100%;
    text-align: center;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    height: 280px;
  }
}

/* ── Tablet Portrait (≤ 768px) ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-menu-btn {
    display: flex;
  }

  .nav-inner {
    height: 64px;
  }

  .hero-content {
    padding-top: 64px;
    justify-content: flex-end;
    padding-bottom: 120px;
  }

  .title-line-2 {
    padding-left: clamp(24px, 6vw, 60px);
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-label {
    display: none;
  }

  .scroll-indicator {
    left: auto;
    right: 24px;
  }

  /* About / Services */
  .about-container {
    flex-direction: column !important;
    gap: 40px;
  }

  .about-paragraph {
    font-size: 1rem;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 32px;
  }

  .glass-card {
    max-width: 380px;
  }

  /* Career */
  .career-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px;
  }

  .career-apply-btn {
    align-self: flex-start;
  }

  /* Contact */
  .contact-container {
    flex-direction: column !important;
    gap: 40px;
  }

  /* Work */
  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item {
    height: 280px;
  }
}

/* ── Tablet Landscape (769px – 1024px) ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-links {
    display: flex;
    gap: 24px;
  }

  .nav-menu-btn {
    display: none;
  }

  .nav-inner {
    height: 72px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(60px, 9vw, 110px);
  }

  .title-line-2 {
    padding-left: clamp(48px, 7vw, 100px);
  }

  .hero-content {
    padding-top: 72px;
    justify-content: center;
  }

  /* About / Services */
  .about-container {
    flex-direction: row;
    gap: 48px;
    align-items: center;
  }

  .about-paragraph {
    font-size: 1rem;
    max-width: 100%;
  }

  .glass-card {
    max-width: 320px;
  }

  /* Contact */
  .contact-container {
    flex-direction: row;
    gap: 48px;
  }

  /* Career */
  .career-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  /* Work */
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item {
    height: 300px;
  }
}

/* ── Desktop (1025px – 1280px) ── */
@media (min-width: 1025px) and (max-width: 1280px) {
  .nav-inner {
    height: 76px;
  }

  .nav-links {
    gap: 32px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(80px, 9.5vw, 140px);
  }

  .title-line-2 {
    padding-left: clamp(64px, 8vw, 120px);
  }

  .hero-content {
    padding-top: 76px;
  }

  .about-container {
    flex-direction: row;
    gap: 64px;
    align-items: center;
  }

  .contact-container {
    flex-direction: row;
    gap: 64px;
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item {
    height: 320px;
  }
}

/* ── Wide Desktop (1281px – 1440px) ── */
@media (min-width: 1281px) and (max-width: 1440px) {
  .nav-inner {
    height: 80px;
  }

  .nav-links {
    gap: 36px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(100px, 10vw, 160px);
  }

  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item {
    height: 340px;
  }
}

/* ── Ultra Wide (> 1440px) ── */
@media (min-width: 1441px) {
  .nav {
    padding: 0 80px;
  }

  .hero-content {
    padding: 0 80px;
    padding-top: 80px;
  }

  .title-line-1,
  .title-line-2 {
    font-size: 160px;
  }

  .title-line-2 {
    padding-left: 140px;
  }

  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1400px;
  }

  .work-item {
    height: 360px;
  }

  .about-container,
  .contact-container {
    max-width: 1400px;
  }

  .career-container {
    max-width: 1200px;
  }
}

/* ============================================
   Mobile Nav Overlay — Stile monopo.vn
   Full screen, slide da destra, link grandi
   ============================================ */

/* Overlay container */
.nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(80px, 12vh, 120px) clamp(28px, 8vw, 60px) clamp(40px, 8vh, 80px);
  /* Slide da destra con clip-path */
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.7s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
  overflow: hidden;
}

.nav-overlay.open {
  clip-path: inset(0 0 0 0%);
  pointer-events: all;
}

/* Barra superiore nell'overlay: logo + close */
.nav-overlay-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(60px, 10vh, 80px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(24px, 6vw, 60px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Bottone X chiudi */
.nav-overlay-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-overlay-close::before,
.nav-overlay-close::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.8);
  transition: background 0.2s ease;
}

.nav-overlay-close::before {
  transform: rotate(45deg);
}

.nav-overlay-close::after {
  transform: rotate(-45deg);
}

.nav-overlay-close:hover::before,
.nav-overlay-close:hover::after {
  background: #fff;
}

/* Lista link navigazione */
.nav-overlay-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Singolo item — linea separatrice */
.nav-overlay-item {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.nav-overlay-item:last-of-type {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* Slide-in animation per ogni link (da destra) */
.nav-overlay-item-inner {
  transform: translateX(60px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s ease;
}

.nav-overlay.open .nav-overlay-item:nth-child(1) .nav-overlay-item-inner {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.22s;
}

.nav-overlay.open .nav-overlay-item:nth-child(2) .nav-overlay-item-inner {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.29s;
}

.nav-overlay.open .nav-overlay-item:nth-child(3) .nav-overlay-item-inner {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.36s;
}

.nav-overlay.open .nav-overlay-item:nth-child(4) .nav-overlay-item-inner {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.43s;
}

.nav-overlay.open .nav-overlay-item:nth-child(5) .nav-overlay-item-inner {
  transform: translateX(0);
  opacity: 1;
  transition-delay: 0.50s;
}

/* Link stile: grande, lowercase bold */
.nav-overlay-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(14px, 3.5vh, 26px) 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 7.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  text-transform: lowercase;
  transition: color 0.2s ease;
  position: relative;
}

.nav-overlay-link:hover {
  color: var(--color-accent);
}

/* Freccia decorativa a destra */
.nav-overlay-arrow {
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  color: var(--color-accent);
  flex-shrink: 0;
}

.nav-overlay-link:hover .nav-overlay-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Footer dell'overlay — email di contatto stile monopo */
.nav-overlay-footer {
  position: absolute;
  bottom: clamp(28px, 5vh, 48px);
  left: clamp(28px, 8vw, 60px);
  right: clamp(28px, 8vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-overlay.open .nav-overlay-footer {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.55s;
}

.nav-overlay-email {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-overlay-email:hover {
  color: rgba(255, 255, 255, 0.7);
}

.nav-overlay-lang {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}


/* ============================================
   Intro Overlay
   ============================================ */
.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000004;
  transition: opacity 0.05s linear;
}

.intro-overlay canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-done {
  pointer-events: none;
  opacity: 0 !important;
  display: none;
}


/* ── Freeze hero animations while intro plays ── */
.intro-playing .title-word,
.intro-playing .tagline-text,
.intro-playing .label-text {
  animation: none !important;
  opacity: 0;
  transform: translateY(110%);
}

.intro-playing .scroll-indicator {
  animation: none !important;
  opacity: 0;
}


/* ── Re-trigger hero reveals after intro ── */
.intro-finished .title-word {
  /* 3.6s = stessa durata dell'entrata di rotateWord (0%→20% su 18s)
     così BRAND, DESIGN e SVILUPPO completano la salita nello stesso istante */
  animation: revealWord 3.6s var(--ease-out-expo) forwards !important;
  animation-delay: 0.05s !important;
}

.intro-finished .tagline-text {
  animation: revealTagline 1s var(--ease-out-expo) forwards !important;
}

.intro-finished .tagline-line:nth-child(1) .tagline-text {
  animation-delay: 0.45s !important;
}

.intro-finished .tagline-line:nth-child(2) .tagline-text {
  animation-delay: 0.55s !important;
}

.intro-finished .tagline-line:nth-child(3) .tagline-text {
  animation-delay: 0.65s !important;
}

.intro-finished .tagline-line:nth-child(4) .tagline-text {
  animation-delay: 0.75s !important;
}

.intro-finished .label-text {
  animation: revealTagline 1s var(--ease-out-expo) forwards !important;
  animation-delay: 0.9s !important;
}

.intro-finished .scroll-indicator {
  animation: fadeInScroll 1s ease forwards !important;
  animation-delay: 1.3s !important;
}

/* ============================================
   Work Page Styles
   ============================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  width: 100%;
  max-width: 1200px;
  z-index: 10;
  padding-bottom: 80px;
}

.work-item {
  position: relative;
  height: 320px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease, background 0.4s ease;
}

.work-item-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  z-index: 1;
}

.work-item-content {
  position: relative;
  z-index: 2;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-category {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  transition-delay: 0.1s;
}

.work-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-fg);
}

.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.work-item:hover .work-item-content {
  transform: translateY(0);
}

.work-item:hover .work-category {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================
   About Page Styles
   ============================================ */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 48px;
  width: 100%;
  max-width: 1200px;
  z-index: 10;
  padding-bottom: 80px;
}

@media (min-width: 769px) {
  .about-container {
    flex-direction: row;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
  }
}

.about-text-content {
  flex: 1;
}

.about-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: revealWord 1s var(--ease-out-expo) forwards;
  animation-delay: 0.6s;
}

.about-paragraph {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-fg-muted);
  margin-bottom: 24px;
  max-width: 600px;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 0.8s;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  margin-top: clamp(48px, 6vh, 72px);
  max-width: 680px;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 1s;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 64px);
  line-height: 0.9;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-fg);
  margin-bottom: 14px;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: 100%;
    margin-top: 40px;
  }

  .stat-number {
    font-size: clamp(32px, 10vw, 44px);
    margin-bottom: 10px;
  }

  .stat-label {
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .about-stats {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .stat-item {
    align-items: flex-start;
  }
}

.about-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 1.2s;
}

.glass-card {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.1) 0%, transparent 50%);
  animation: rotateGradient 10s linear infinite;
}

@keyframes rotateGradient {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.glass-card-inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.glass-card-inner h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-fg);
  margin-bottom: 16px;
}

.glass-card-inner p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-fg-muted);
}

/* ============================================
   Career Page Styles — premium card layout
   ============================================ */

.career-wrapper {
  width: 100%;
  max-width: 1200px;
  padding-bottom: 80px;
  z-index: 10;
}

.career-intro {
  margin-bottom: clamp(40px, 5vh, 64px);
}

.career-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Card job orizzontale: icona · testo · bottone */
.career-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(24px, 4vw, 52px);
  padding: clamp(26px, 3vw, 40px) clamp(28px, 3.5vw, 44px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 50%, rgba(200, 255, 0, 0.10), transparent 34%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    background 0.35s ease;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  text-decoration: none;
}

.career-item:nth-child(1) { animation-delay: 0.7s; }
.career-item:nth-child(2) { animation-delay: 0.9s; }
.career-item:nth-child(3) { animation-delay: 1.1s; }

.career-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 255, 0, 0.32);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
  background:
    radial-gradient(circle at 92% 50%, rgba(200, 255, 0, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.038);
}

/* ── Icona cerchio con glow ── */
.career-icon {
  position: relative;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.22), rgba(200, 255, 0, 0.04) 70%);
  box-shadow: 0 0 28px rgba(200, 255, 0, 0.14);
}

.career-icon-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 255, 0, 0.18), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.career-icon svg {
  width: 36px;
  height: 36px;
  stroke: #c8ff00;
  position: relative;
  z-index: 1;
}

/* ── Info ruolo ── */
.career-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.career-role {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.2vw, 38px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-fg);
  margin: 0;
}

.career-details {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.48);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  line-height: 1.5;
}

/* ── Pill Apply Now ── */
.career-apply-btn {
  flex-shrink: 0;
  min-width: 160px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(200, 255, 0, 0.85);
  background: transparent;
  color: #c8ff00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.career-apply-btn:hover {
  background: rgba(200, 255, 0, 0.09);
  box-shadow: 0 0 22px rgba(200, 255, 0, 0.18);
  transform: translateY(-1px);
}

/* ============================================
   Contact Page Styles — premium reference layout
   ============================================ */

.ctc-wrapper {
  width: 100%;
  max-width: 1200px;
  padding-bottom: 80px;
  z-index: 10;
}

.ctc-header {
  margin-bottom: clamp(36px, 5vh, 56px);
}

/* ── 2 colonne: form + info ── */
.ctc-body {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}

/* ─────────────────────────────────────
   FORM CARD
───────────────────────────────────── */
.ctc-form-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 0 0 1px rgba(200, 255, 0, 0.04),
    0 16px 48px rgba(0, 0, 0, 0.28);
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 0.6s;
}

.ctc-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Singolo campo con icona */
.ctc-field {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}

/* Icona campo */
.ctc-field-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 22px;
}

.ctc-field--textarea .ctc-field-icon {
  margin-top: 24px;
}

.ctc-field-icon svg {
  width: 18px;
  height: 18px;
  stroke: rgba(200, 255, 0, 0.7);
}

/* Label + input wrapper */
.ctc-field-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ctc-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

.ctc-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.5;
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  outline: none;
  resize: none;
  box-sizing: border-box;
}

.ctc-input:focus {
  border-color: rgba(200, 255, 0, 0.45);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, 0.07);
}

.ctc-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.ctc-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Submit button */
.ctc-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  padding: 15px 36px;
  border-radius: 999px;
  background: var(--color-accent);
  border: none;
  color: #000;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  align-self: flex-start;
}

.ctc-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200, 255, 0, 0.28);
}

.ctc-submit svg {
  flex-shrink: 0;
}

/* ─────────────────────────────────────
   INFO CARDS — colonna destra
───────────────────────────────────── */
.ctc-info-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 0.85s;
}

.ctc-info-card {
  display: grid;
  grid-template-columns: 64px 1px minmax(0, 1fr);
  align-items: center;
  column-gap: 24px;
  padding: 28px 32px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 100%, rgba(200, 255, 0, 0.055), transparent 38%),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.ctc-info-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 100% 100%, rgba(200, 255, 0, 0.10), transparent 42%),
    rgba(255, 255, 255, 0.038);
}

/* Linea verticale verde — esplicita su grid-column 2 */
.ctc-info-card::before {
  content: '';
  grid-column: 2;
  grid-row: 1;
  width: 1px;
  height: 64px;
  background: rgba(200, 255, 0, 0.55);
  border-radius: 1px;
  align-self: center;
  justify-self: center;
}

/* Icona cerchio — grid-column 1 */
.ctc-info-icon {
  grid-column: 1;
  grid-row: 1;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c8ff00;
  background: rgba(200, 255, 0, 0.06);
  box-shadow: 0 0 18px rgba(200, 255, 0, 0.10);
  flex-shrink: 0;
}

.ctc-info-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  display: block;
}

/* Contenuto — grid-column 3 */
.ctc-info-content {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ctc-info-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.4vw, 28px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--color-fg);
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}

.ctc-info-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}

.ctc-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  width: fit-content;
  transition: color 0.25s ease, transform 0.25s ease;
}

.ctc-info-link:hover {
  color: #c8ff00;
  transform: translateX(3px);
}

.ctc-info-link svg {
  flex-shrink: 0;
  stroke: rgba(255, 255, 255, 0.35);
  transition: stroke 0.25s ease;
}

.ctc-info-link:hover svg {
  stroke: #c8ff00;
}

/* Social in lista verticale */
.ctc-social-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─────────────────────────────────────
   RESPONSIVE CONTACT
───────────────────────────────────── */

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  .ctc-body {
    grid-template-columns: 1fr 300px;
    gap: 28px;
  }
}

/* Tablet portrait ≤ 860px: 1 colonna */
@media (max-width: 860px) {
  .ctc-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
  .ctc-info-card {
    grid-template-columns: 52px 1px minmax(0, 1fr);
    column-gap: 18px;
    padding: 24px;
    border-radius: 22px;
  }

  .ctc-info-card::before {
    height: 54px;
  }

  .ctc-info-icon {
    width: 48px;
    height: 48px;
  }

  .ctc-info-icon svg {
    width: 21px;
    height: 21px;
  }

  .ctc-info-title {
    font-size: 21px;
    margin-bottom: 6px;
  }

  .ctc-info-text,
  .ctc-info-link {
    font-size: 0.9rem;
  }
}

/* Mobile ≤ 580px */
@media (max-width: 580px) {
  .ctc-wrapper {
    padding-bottom: 60px;
  }

  .ctc-form-card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .ctc-field {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .ctc-field-icon {
    width: 38px;
    height: 38px;
    margin-top: 20px;
  }

  .ctc-field-icon svg {
    width: 16px;
    height: 16px;
  }

  .ctc-submit {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }
}

/* ============================================
   Inner Pages — Fluid Padding Utility
   ============================================ */
/* Used in about/career/services/work/contact hero-content */
.inner-page-content {
  padding-top: clamp(100px, 15vh, 180px) !important;
  justify-content: flex-start !important;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .inner-page-content {
    padding-top: clamp(80px, 12vh, 120px) !important;
  }
}

@media (max-width: 480px) {
  .inner-page-content {
    padding-top: clamp(70px, 14vh, 100px) !important;
  }
}

/* Contact container responsive */
@media (min-width: 769px) {
  .contact-container {
    flex-direction: row;
    gap: clamp(40px, 6vw, 80px);
  }
}

/* Work grid responsive — fluid columns */
@media (min-width: 1025px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1441px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* About stats responsive wrap */
@media (max-width: 520px) {
  .about-stats {
    flex-direction: column;
    gap: 16px;
    margin-top: 28px;
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Career role font responsive */
@media (max-width: 640px) {
  .career-role {
    font-size: 1.25rem;
  }

  .career-apply-btn {
    padding: 10px 22px;
    font-size: 0.75rem;
  }
}

/* About paragraph max-width fluido */
@media (min-width: 769px) {
  .about-paragraph {
    max-width: 100%;
  }
}

/* ============================================
   MOBILE NAVIGATION & HAMBURGER
   ============================================ */

/* Nascondi l'hamburger su Desktop */
.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
  /* Deve stare sopra l'overlay */
}

/* Stile delle 3 linee dell'hamburger */
.menu-line {
  width: 100%;
  height: 2px;
  background-color: var(--color-fg, #ffffff);
  /* Adatta al tuo colore testo */
  transition: all 0.3s ease-in-out;
  transform-origin: left center;
}

/* Animazione Hamburger -> X quando ha la classe .active */
.nav-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg);
}

.nav-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
  width: 0;
}

.nav-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg);
}

/* Stile dell'Overlay generato dal JS */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(5, 5, 8, 0.98);
  /* Sfondo scuro in linea col tema */
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Quando il JS aggiunge la classe .open */
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Stile dei link nel menu mobile */
.nav-overlay-list {
  list-style: none;
  padding: 0;
  text-align: center;
}

.nav-overlay-item {
  margin: 24px 0;
  overflow: hidden;
}

.nav-overlay-link {
  font-family: 'Michroma', sans-serif;
  font-size: clamp(28px, 6vw, 48px);
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-overlay-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.nav-overlay-link:hover {
  color: #a1a1aa;
}

.nav-overlay-link:hover .nav-overlay-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Nascondiamo il bottone close extra del JS per usare solo l'hamburger come X */
.nav-overlay-header {
  display: none;
}

.nav-overlay-footer {
  position: absolute;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  color: #a1a1aa;
}

/* ============================================
   RESPONSIVE LAYOUT FIXES
   ============================================ */

@media (max-width: 768px) {

  /* Mostra l'hamburger e nascondi i link desktop */
  .nav-menu-btn {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  /* Sistema il logo per non farlo accavallare */
  .nav-inner {
    padding: 16px 24px;
    justify-content: space-between;
  }

  /* Impila verticalmente i contenuti di About, Contact, Services */
  .about-container,
  .contact-container,
  .career-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 0 24px 60px 24px;
    /* Margini laterali sicuri */
  }

  /* Evita che i titoli enormi taglino lo schermo */
  .hero-title {
    word-wrap: break-word;
    hyphens: auto;
  }

  /* Sistema le statistiche nella pagina About */
  .about-stats {
    flex-direction: column;
    gap: 20px;
  }

  /* Riduci il padding superiore nei contenuti interni per fare spazio */
  .inner-page-content {
    margin-top: 100px;
    /* Abbassato rispetto al desktop */
  }

  /* Fix per il modulo di contatto su mobile */
  .form-input,
  .form-textarea {
    width: 100%;
    box-sizing: border-box;
  }

  /* ============================================
   MOBILE RESPONSIVE HERO FIX
   ============================================ */

  @media (max-width: 768px) {

    /* Contenitore principale centrato */
    .hero-content,
    .inner-page-content {
      padding: 0 24px !important;
      width: 100%;
      box-sizing: border-box;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    /* Prevenire lo scroll orizzontale */
    .hero-title-wrapper {
      width: 100%;
      overflow: visible !important;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    /* Ridimensionamento fluido titoli */
    .title-line-1,
    .title-line-2 {
      font-size: clamp(40px, 10vw, 80px) !important;
      line-height: 1.1;
      padding-left: 0 !important;
      text-align: center !important;
      display: block;
      width: 100%;
    }

    .title-line-3 {
      font-size: clamp(32px, 8vw, 60px) !important;
      height: clamp(36px, 9vw, 70px) !important;
      margin-top: 12px;
      width: 100%;
    }

    .carousel-word {
      left: 50% !important;
      transform: translateX(-50%) translateY(110%);
      width: 100%;
      text-align: center;
    }
  }

  /* ============================================
   HAMBURGER MENU & NAV RESPONSIVE
   ============================================ */

  /* 1. Desktop - Grandezza base del logo */
  .nav-logo-img {
    height: 35px !important;
    /* Dimensione PC */
    width: auto !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Stile base hamburger (nascosto su PC) */
  .nav-menu-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    width: 40px;
    height: 28px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 9999;
  }

  .menu-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-fg, #ffffff);
    border-radius: 4px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
  }

  /* 2. Mobile (<= 768px) */
  @media (max-width: 768px) {

    /* Nascondi link, mostra hamburger */
    .nav-links {
      display: none !important;
    }

    .nav-menu-btn {
      display: flex !important;
    }

    /* Spinge logo a sinistra e hamburger a destra */
    .nav-inner {
      display: flex !important;
      justify-content: space-between !important;
      align-items: center !important;
      width: 100% !important;
      padding-left: 20px !important;
      padding-right: 20px !important;
      box-sizing: border-box !important;
    }

    /* Contenitore del link a sinistra */
    .nav-logo-link {
      display: flex !important;
      align-items: center !important;
      margin: 0 !important;
      padding: 0 !important;
    }

    /* Dimensione logo su Mobile */
    .nav-logo-img {
      height: 28px !important;
      /* Dimensione Mobile */
    }
  }

  /* Fix smartphone molto stretti (es. iPhone SE) */
  @media (max-width: 480px) {

    .title-line-1,
    .title-line-2 {
      font-size: clamp(32px, 12vw, 50px) !important;
    }

    .title-line-3 {
      font-size: clamp(24px, 10vw, 40px) !important;
      height: clamp(30px, 12vw, 45px) !important;
    }
  }



  /* --- 1. Su schermi Desktop (Computer) --- */
  .nav-logo-img {
    height: 40px !important;
    /* Riportato a una dimensione elegante per desktop */
    width: auto !important;
    display: block !important;
  }

  /* --- 2. Su schermi Mobile (Smartphone) --- */
  @media (max-width: 768px) {

    /* Corretto il refuso "8px" in "768px" */
    .nav-logo-img {
      height: 30px !important;
      /* Dimensione corretta per smartphone */
      width: auto !important;
      display: block !important;
      margin: 0 !important;
    }

    /* Regolazione dello spazio della barra per il nuovo logo ridotto */
    .nav-inner {
      height: 64px !important;
    }

    /* ── Desktop (1025px – 1280px) ── */
    @media (min-width: 1025px) and (max-width: 1280px) {

      /* ... altre regole ... */
      .title-line-1,
      .title-line-2 {
        font-size: clamp(60px, 8vw, 100px);
        /* Ridotto il massimo da 140 a 100 */
      }

      .title-line-2 {
        padding-left: clamp(40px, 6vw, 80px);
        /* Regolato l'allineamento */
      }

      /* ... */
    }

    /* ── Wide Desktop (1281px – 1440px) ── */
    @media (min-width: 1281px) and (max-width: 1440px) {

      /* ... altre regole ... */
      .title-line-1,
      .title-line-2 {
        font-size: clamp(80px, 8vw, 120px);
        /* Ridotto il massimo da 160 a 120 */
      }

      /* ... */
    }

    /* ── Ultra Wide (> 1440px) ── */
    @media (min-width: 1441px) {

      /* ... altre regole ... */
      .title-line-1,
      .title-line-2 {
        font-size: 130px;
        /* Ridotto il fisso da 160 a 130 */
      }

      .title-line-2 {
        padding-left: 100px;
        /* Regolato l'allineamento */
      }

      /* Unifichiamo le due classi in modo che funzioni ovunque su Desktop */
      .nav-logo img,
      .nav-logo-img {
        height: 40px !important;
        /* Definisci l'altezza elegante per tutte le pagine */
        width: auto !important;
        display: block !important;
      }

      /* ... */
    }
  }
}


/* ============================================================
   MOBILE VERTICAL PAGE LAYOUT
   Solo su mobile (≤768px): trasforma il sito in una singola
   pagina continua verticale, nascondendo le sezioni su desktop.
   ============================================================ */

/* ── Desktop: nascondi le sezioni mobile ── */
.mobile-section {
  display: none;
}

/* ── Mobile: mostra le sezioni e imposta layout verticale ── */
@media (max-width: 768px) {

  /* Il body diventa scrollabile verticalmente come una normale pagina lunga */
  body {
    overflow-y: auto !important;
    overflow-x: hidden;
  }

  /* La hero su mobile diventa un blocco a dimensione naturale (non più 100vh fissi) */
  .hero {
    height: 100vh;
    min-height: 500px;
    flex-shrink: 0;
    overflow: visible;
    /* Non nascondere il contenuto che si estende */
  }

  /* Il canvas ripple è fixed, copre solo la viewport: ok */

  /* Mostra le sezioni verticali mobile come blocchi nel flusso del documento */
  .mobile-section {
    display: block;
    width: 100%;
    background: var(--color-bg);
    position: relative;
    z-index: 1;
  }

  /* Separatore visivo tra sezioni */
  .mobile-section+.mobile-section {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* Wrapper interno: padding orizzontale e verticale per le sezioni */
  .mobile-section-inner {
    padding: 60px 24px 80px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
  }

  /* Titoli nelle sezioni mobile: centrati, senza indent orizzontale */
  .mobile-section .hero-title-wrapper {
    text-align: center;
    overflow: visible;
  }

  .mobile-section .title-line-1,
  .mobile-section .title-line-2 {
    text-align: center !important;
    padding-left: 0 !important;
    font-size: clamp(36px, 10vw, 68px) !important;
    overflow: visible;
  }

  /* Work grid nelle sezioni mobile: colonna singola */
  .mobile-section .work-grid {
    grid-template-columns: 1fr;
    margin-top: 32px;
    padding-bottom: 0;
    gap: 16px;
  }

  .mobile-section .work-item {
    height: 220px;
  }

  /* About / Services container nelle sezioni mobile: colonna */
  .mobile-section .about-container {
    flex-direction: column;
    gap: 32px;
    margin-top: 32px;
    padding-bottom: 0;
    max-width: 100%;
  }

  .mobile-section .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
    animation: none;
    opacity: 1;
  }

  .mobile-section .about-subtitle {
    animation: none;
    opacity: 1;
  }

  .mobile-section .about-paragraph {
    animation: none;
    opacity: 1;
    max-width: 100%;
    font-size: 1rem;
  }

  .mobile-section .glass-card {
    max-width: 100%;
    aspect-ratio: auto;
    padding: 28px;
  }

  .mobile-section .about-visual {
    animation: none;
    opacity: 1;
  }

  /* Career container nelle sezioni mobile */
  .mobile-section .career-container {
    flex-direction: column;
    margin-top: 32px;
    padding-bottom: 0;
    max-width: 100%;
    gap: 16px;
  }

  .mobile-section .career-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    animation: none;
    opacity: 1;
  }

  .mobile-section .career-apply-btn {
    width: 100%;
    text-align: center;
  }

  /* Contact container nelle sezioni mobile */
  .mobile-section .contact-container {
    flex-direction: column;
    gap: 40px;
    margin-top: 32px;
    padding-bottom: 0;
    max-width: 100%;
  }

  .mobile-section .contact-form {
    animation: none;
    opacity: 1;
  }

  .mobile-section .contact-info {
    animation: none;
    opacity: 1;
  }

  .mobile-section .contact-submit {
    width: 100%;
    text-align: center;
    align-self: stretch;
  }

  /* Stat-number / label nelle sezioni mobile */
  .mobile-section .stat-number {
    font-size: 2rem;
  }

  /* Transizione fluida di base per la barra di navigazione */
  .nav {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease !important;
  }

  /* L'effetto vetro magico quando si scrolla (Desktop & Mobile) */
  .nav--scrolled {
    background-color: rgba(5, 5, 8, 0.65) !important;
    /* Colore scuro ultra-trasparente */
    backdrop-filter: blur(12px) !important;
    /* Sfocatura dello sfondo */
    -webkit-backdrop-filter: blur(12px) !important;
    /* Supporto obbligatorio per Safari */
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    /* Un bordino tech quasi invisibile */
  }

}

/* ==========================================================================
   EFFETTO VETRO SMERIGLIATO HEADER (Desktop & Mobile)
   Aggiunto in fondo per sovrascrivere regole precedenti
   ========================================================================== */

.nav {
  transition: all 0.4s ease !important;
}

.nav.nav--scrolled {
  background-color: rgba(5, 5, 8, 0.65) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* ==========================================================================
   EFFETTO VETRO (GLASSMORPHISM) HEADER
   ========================================================================== */

/* Rendiamo la transizione fluida quando la classe nav--scrolled viene aggiunta */
.nav {
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease, border-bottom 0.4s ease !important;
}

/* L'effetto vero e proprio quando si scrolla */
.nav.nav--scrolled {
  background-color: rgba(5, 5, 8, 0.7) !important;
  /* Grigio-nero scuro semi-trasparente */
  backdrop-filter: blur(12px) !important;
  /* Sfocatura dello sfondo (Blur) */
  -webkit-backdrop-filter: blur(12px) !important;
  /* Supporto per Safari */
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  /* Sottile linea di demarcazione */
}

/* HEADER GLASS EFFECT */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;

  padding: 0 clamp(24px, 4vw, 60px);

  background: rgba(5, 5, 8, 0.18);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.18);

  mix-blend-mode: normal;
  transition:
    background 0.35s ease,
    backdrop-filter 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* Quando scrolli diventa appena più presente */
.nav--scrolled {
  background: rgba(5, 5, 8, 0.34) !important;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);

  border-bottom: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 50px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   SERVICES PAGE — griglia servizi premium
   ========================================================================== */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 80px);
  max-width: 860px;
  margin-top: clamp(56px, 7vh, 88px);
  align-items: start;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 1s;
}

.service-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--color-fg);
  margin-bottom: 16px;
  display: block;
}

.service-description {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  max-width: 260px;
  margin: 0;
}

/* ── Tablet (≤ 1024px): rimane 3 colonne, gap più stretto ── */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    max-width: 100%;
  }
}

/* ── Mobile (≤ 768px): sempre 3 colonne orizzontali, compatte ── */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 100%;
    margin-top: 40px;
  }

  .service-title {
    font-size: clamp(14px, 4vw, 22px);
    margin-bottom: 10px;
    letter-spacing: -0.02em;
  }

  .service-description {
    max-width: 100%;
    font-size: 0.62rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    white-space: normal;
  }
}

/* ==========================================================================
   SERVICES PAGE — layout premium con card
   ========================================================================== */

/* Wrapper principale — contenitore a tutta larghezza */
.svc-wrapper {
  width: 100%;
  max-width: 1200px;
  padding-bottom: 80px;
  z-index: 10;
}

/* ── Riga superiore: intro sinistra + card destra ── */
.svc-hero {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
  align-items: flex-start;
  margin-bottom: clamp(48px, 7vh, 72px);
}

.svc-intro {
  flex: 1;
  min-width: 0;
}

/* Card "Let's collaborate" */
.svc-collab-card {
  flex-shrink: 0;
  width: clamp(260px, 32%, 400px);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 24px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
  animation-delay: 1s;
}

.svc-collab-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  font-weight: 600;
  color: var(--color-fg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0;
}

.svc-collab-text {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.svc-collab-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.25s ease, gap 0.25s ease;
}

.svc-collab-cta:hover {
  opacity: 0.75;
  gap: 12px;
}

/* ── Griglia 3 card servizi ── */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

/* Singola card servizio */
.svc-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
  opacity: 0;
  animation: fadeInScroll 1s ease forwards;
}

.svc-card:nth-child(1) { animation-delay: 1.1s; }
.svc-card:nth-child(2) { animation-delay: 1.25s; }
.svc-card:nth-child(3) { animation-delay: 1.4s; }

.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(200, 255, 0, 0.06);
}

/* ── Icona + glow verde ── */
.svc-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: clamp(24px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.svc-icon-glow {
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(200, 255, 0, 0.30);
  filter: blur(14px);
  bottom: -6px;
  right: -10px;
  pointer-events: none;
}

.svc-icon-wrap svg {
  position: relative;
  z-index: 1;
  color: #fff;
  flex-shrink: 0;
}

/* Titolo card */
.svc-card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  font-weight: 600;
  color: var(--color-fg);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 14px;
}

/* Accento verde — linea divisore */
.svc-card-line {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Descrizione */
.svc-card-desc {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.48);
  margin: 0;
}

/* ──────────────────────────────────────────────
   RESPONSIVE
   ────────────────────────────────────────────── */

/* Tablet landscape (769px – 1199px) */
@media (max-width: 1199px) {
  .svc-hero {
    gap: 32px;
  }

  .svc-collab-card {
    width: clamp(240px, 35%, 360px);
  }

  .svc-cards {
    gap: 20px;
  }
}

/* Tablet portrait / phablet (481px – 768px) */
@media (max-width: 768px) {
  .svc-hero {
    flex-direction: column;
    gap: 28px;
    margin-bottom: 36px;
  }

  .svc-collab-card {
    width: 100%;
  }

  .svc-collab-title {
    font-size: 1.25rem;
  }

  .svc-cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .svc-card {
    padding: 28px 24px;
  }

  .svc-card-title {
    font-size: 1.15rem;
  }

  .svc-icon-wrap {
    margin-bottom: 22px;
  }
}

/* Mobile small (≤ 480px) */
@media (max-width: 480px) {
  .svc-wrapper {
    padding-bottom: 60px;
  }

  .svc-collab-card {
    padding: 24px 20px;
  }

  .svc-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .svc-card-title {
    font-size: 1.05rem;
  }

  .svc-card-desc {
    font-size: 0.84rem;
  }

  .svc-collab-cta {
    font-size: 0.72rem;
    padding: 10px 0;
  }
}

/* ==========================================================================
   CAREER — breakpoint responsive
   ========================================================================== */

/* Tablet (≤ 1024px): gap più stretto, bottone più compatto */
@media (max-width: 1024px) {
  .career-item {
    gap: clamp(20px, 3vw, 36px);
    padding: 28px 30px;
  }

  .career-apply-btn {
    min-width: 140px;
    padding: 0 22px;
    font-size: 0.75rem;
  }
}

/* Mobile (≤ 768px): stack verticale, bottone full-width */
@media (max-width: 768px) {
  .career-wrapper {
    padding-bottom: 60px;
  }

  .career-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 22px;
    border-radius: 24px;
  }

  .career-icon {
    width: 64px;
    height: 64px;
  }

  .career-icon svg {
    width: 30px;
    height: 30px;
  }

  .career-role {
    font-size: clamp(22px, 7vw, 32px);
  }

  .career-apply-btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 0.78rem;
  }
}

/* Mobile small (≤ 480px) */
@media (max-width: 480px) {
  .career-item {
    padding: 22px 18px;
    border-radius: 20px;
    gap: 18px;
  }

  .career-icon {
    width: 56px;
    height: 56px;
  }

  .career-icon svg {
    width: 26px;
    height: 26px;
  }

  .career-role {
    font-size: clamp(20px, 6.5vw, 28px);
  }

  .career-details {
    font-size: 0.82rem;
  }
}

/* ==========================================================================
   CONTACT FORM — feedback UI (errori, toast, spinner)
   ========================================================================== */

/* Campo in errore */
.ctc-input--error {
  border-color: rgba(255, 80, 80, 0.65) !important;
  background: rgba(255, 60, 60, 0.06) !important;
  box-shadow: 0 0 0 3px rgba(255, 60, 60, 0.08) !important;
}

/* Messaggio errore inline sotto il campo */
.ctc-field-error {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255, 100, 100, 0.9);
  letter-spacing: 0.02em;
}

/* ── Toast notifica (successo / errore) ── */
.ctc-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 14px;
  max-width: 380px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  /* stato iniziale: nascosto sotto */
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ctc-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

.ctc-toast--success {
  background: rgba(20, 30, 20, 0.92);
  border: 1px solid rgba(200, 255, 0, 0.35);
  color: rgba(255, 255, 255, 0.88);
}

.ctc-toast--success svg {
  stroke: #c8ff00;
  flex-shrink: 0;
}

.ctc-toast--error {
  background: rgba(30, 15, 15, 0.92);
  border: 1px solid rgba(255, 80, 80, 0.35);
  color: rgba(255, 255, 255, 0.85);
}

.ctc-toast--error svg {
  stroke: rgba(255, 100, 100, 0.9);
  flex-shrink: 0;
}

/* ── Spinner rotante sul bottone durante l'invio ── */
@keyframes ctc-rotate {
  to { transform: rotate(360deg); }
}

.ctc-spin {
  animation: ctc-rotate 0.8s linear infinite;
  flex-shrink: 0;
}

/* Bottone disabilitato durante l'invio */
.ctc-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 480px) {
  .ctc-toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
    border-radius: 12px;
  }
}