/* ========== RESET & UTILITIES ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: center;
}


:root {
  --green: #1B8E2D;
  --green-light: #44C657;
  --navy: #2C4A6B;
  --navy-soft: #3B5D80;
  --sky: #E8F2F9;
  --mint: #E9F7F0;
  --sand: #F4F6F8;
  --bg: #F3F6F5;       
  --card: #FFFFFF;
  --ink: #1A1A1A;
  --muted: #4C5963;
  --shadow: rgba(0,0,0,0.06);
}

/* ========== FULLPAGE MODERNO + SCROLLBAR FANCY ========== */

html {
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
  display: none;
}



@media (hover: hover) and (pointer: fine) {
  main.ico-home {
    scrollbar-width: thin;
    scrollbar-color: var(--green) rgba(27,142,45,0.1);
  }

  main.ico-home::-webkit-scrollbar {
    width: 8px;
    background: transparent;
  }

  main.ico-home::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--green), #22A53C);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s ease;
  }

  main.ico-home::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(#22A53C, var(--green));
  }
}

section.fullpage-section {
  min-height: 100dvh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: clamp(40px, 6vh, 120px) 24px;
  position: relative;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.fullpage-section > .container {
  display: block; 
  text-align: center;
  margin: 0 auto;
  max-width: 1200px;
}
.hero.fullpage-section > .container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero .hero-inner {
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.site-footer {
  padding: 60px 24px;
  background: linear-gradient(135deg, #f9fbfc, #f0f7f2);
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  box-shadow: 0 -10px 30px rgba(0,0,0,0.03);
}



body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

/* ========== PROGRESS BAR ========== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--green); /* statico */
  z-index: 1000;
  transition: width 0.2s ease;
  pointer-events: none;
}

body.scrolling .progress-bar {
  background: linear-gradient(90deg, var(--green), #22A53C, #03ee32);
  background-size: 300% 100%;
  animation: progressPulse 5s linear infinite;
}

@keyframes progressPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(230, 236, 241, 0.6);
}

.header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  height: 40px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--ink);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 120px;
  overflow: hidden;
  background: #f8fdfc;
  isolation: isolate;
}

.hero-parallax {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}


/* Swirl animato (conic gradient rotante) */
.hero-swirl {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(27, 142, 45, 0.03),
    rgba(44, 74, 107, 0.03),
    rgba(86, 204, 242, 0.02),
    transparent
  );
  animation: swirl 30s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes swirl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Effetto glow diagonale animato */
.hero-glow {
  position: absolute;
  top: -30%;
  left: -30%;
  width: 160%;
  height: 160%;
  background: radial-gradient(
    ellipse at 30% 30%,
    rgba(86, 204, 242, 0.12),
    transparent 40%
  ), radial-gradient(
    ellipse at 70% 70%,
    rgba(27, 142, 45, 0.1),
    transparent 50%
  );
  animation: drift 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: overlay;
}
/* ========== PARALLAX LAYERS & SHAPES ========== */
.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.shape {
  position: absolute;
  opacity: 0.6;
  mix-blend-mode: screen; /* Effetto luce */
  will-change: transform;
}

/* Cerchio */
.shape.circle {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 142, 45, 0.3), transparent 70%);
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite alternate;
}

/* Diamante */
.shape.diamond {
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(44, 74, 107, 0.3), transparent);
  transform: rotate(45deg);
  top: 60%;
  right: 15%;
  animation: pulse 4s ease-in-out infinite;
}

/* Blob morbido */
.shape.blob {
  width: 200px;
  height: 200px;
  background: radial-gradient(ellipse at center, rgba(86, 204, 242, 0.4), transparent 70%);
  border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
  top: 30%;
  right: 10%;
  animation: morph 12s ease-in-out infinite;
}

/* Quadrato */
.shape.square {
  width: 80px;
  height: 80px;
  background: rgba(27, 142, 45, 0.2);
  top: 70%;
  left: 20%;
  animation: rotate 10s linear infinite;
}

/* Triangolo */
.shape.triangle {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid rgba(44, 74, 107, 0.25);
  top: 10%;
  right: 30%;
  animation: bounce 6s ease-in-out infinite;
}

/* Anello */
.shape.ring {
  width: 160px;
  height: 160px;
  border: 8px solid rgba(86, 204, 242, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseRing 5s ease-in-out infinite;
}

/* ========== ANIMAZIONI FORME ========== */
@keyframes float {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-40px) rotate(5deg); }
}
/* ========== CANVAS PARTICELLE ========== */
#particlesCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

.hero-swirl, .hero-glow {
  z-index: 2; 
}
@keyframes pulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.2); }
}

@keyframes morph {
  0% { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
  25% { border-radius: 60% 40% 30% 70% / 40% 50% 50% 60%; }
  50% { border-radius: 30% 70% 60% 40% / 60% 50% 40% 50%; }
  75% { border-radius: 70% 30% 40% 60% / 50% 60% 50% 40%; }
  100% { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulseRing {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
}

@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(4%, 6%) rotate(2deg); }
}

.hero-inner {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px; 
  padding: 36px 24px; 
  background: rgba(255, 255, 255, 0.65);
  /*backdrop-filter: blur(16px);*/
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(230, 236, 241, 0.6);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

.logo-floating {
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}

.logo-hero {
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.1));
}

.eyebrow {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

.lead {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  margin: 0 auto 32px;
  max-width: 700px;
}

.cta-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--green), #22A53C);
  color: white;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 24px rgba(27, 142, 45, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.7s;
}

.cta:hover::before {
  left: 100%;
}

.cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(27, 142, 45, 0.4);
  filter: saturate(1.1);
}

.cta--ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  box-shadow: none;
}

.cta--ghost:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--green);
  color: var(--green);
}

/* ========== SECTIONS ========== */
section {
  padding: 100px 0;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.section-head h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 16px;
}

.section-sub {
  font-size: clamp(18px, 2vw, 20px);
  color: var(--muted);
  margin: 0;
}

/* GRID */
.grid {
  display: grid;
  gap: 32px;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* CARD */
.card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px var(--shadow);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  isolation: isolate;
  min-height: 400px;
}
.card .link {
  position: absolute;
  inset: 0;
  z-index: 5;
  text-indent: -9999px;
  overflow: hidden;
}
.card__body .link {
  position: static;
  text-indent: 0;
  z-index: 10;
}

.card__media {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 250px;
}

.card:hover {
  transform: translateY(-10px) rotateX(1deg) rotateY(-1deg);
  box-shadow: 0 20px 50px rgba(27, 142, 45, 0.25);
  border-color: var(--green);
}
.card:hover .link::after {
  width: 100%;
}

.card:hover .link {
  color: var(--green);
}

.card__media {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.1), transparent 60%);
}

.card__body {
  padding: 28px;
}

.card h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}

.card p {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.6;
}

.link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  padding: 4px 0;
}

.link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: width 0.3s ease;
}

.link:hover::after {
  width: 100%;
}

/* ========== ABOUT ========== */
.about {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FBF7 100%);
}

.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about__media {
  height: 500px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid var(--line);
}

.about__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  border-radius: 24px;
}

.about h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin: 0 0 20px;
}

.about p {
  font-size: 18px;
  margin: 0 0 24px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
  justify-content: center;
}

.chip {
  padding: 10px 20px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 14px;
  color: var(--green-600);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* ========== CTA BAND ========== */
.cta-band {
  background: rgba(240, 250, 245, 0.8);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(27,142,45,0.05) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.05); opacity: 0.1; }
}

.cta-band h2 {
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 800;
  margin: 0 0 24px;
}

.cta-band p {
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
  color: var(--muted);
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 24px 0; 
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: -2px; 
}

/* ========== ANIMAZIONI REVEAL ========== */
[data-anim] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

[data-anim].in {
  opacity: 1;
  transform: translateY(0);
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-wrap {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 80px 24px;
  }

  .hero-inner {
    padding: 32px 24px;
  }

  .logo-hero {
    height: 60px;
  }

  h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .section-head h2,
  .about h2,
  .cta-band h2 {
    font-size: clamp(28px, 6vw, 36px);
  }
}

@media (max-width: 640px) {
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .cta-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .about__media {
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
/* ========== SCROLL INDICATOR ========== */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(44, 74, 107, 0.6);
  font-size: 14px;
  animation: bounce 2s infinite;
  z-index: 5;
  pointer-events: none;
}

.scroll-arrow {
  font-size: 24px;
  margin-bottom: 8px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

@media (max-width: 768px) {
  .scroll-indicator {
    display: none;
  }
}
/* ========== TEAM BUBBLES ========== */
.team {
  background: linear-gradient(180deg, #FFFFFF 0%, #F6FBF7 100%);
  padding: 100px 0;
}
.team-container {
  flex-direction: row !important;
  align-items: flex-start !important;
  justify-content: center;
  padding: 60px 0;
}


.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 40px;
  justify-items: center;
  margin-top: 60px;
  padding: 0 20px;
  width: 100%;
  max-width: 1200px;
}
/* ========== TEAM BACKGROUND ========== */
.team-bg {
  background-image: url('assets/img/team/team-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  position: relative;
  overflow: hidden;
}

.team-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.75); 
  z-index: -1;
}

.team-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px); 
  -webkit-backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 60px 40px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  max-width: 1200px;
  width: 90vw;
}

.team-bg .section-head h2,
.team-bg .section-head .section-sub,
.team-bg .bubble-name,
.team-bg .bubble-role {
  position: relative;
  z-index: 2;
}
@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .bubble-image {
    width: 150px;
    height: 150px;
  }

  .bubble-name {
    font-size: 18px;
  }
}
.team-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 280px;
  transition: var(--transition);
  cursor: default;
}

.team-bubble:hover {
  transform: translateY(-10px) scale(1.03);
}

.bubble-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
  transition: var(--transition);
}

.team-bubble:hover .bubble-image {
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: scale(1.05);
}

.bubble-name {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}

.bubble-role {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }

  .bubble-image {
    width: 150px;
    height: 150px;
  }

  .bubble-name {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
/* ========== CATALOGO ========== */
.catalog-section {
  background: var(--bg);
  padding: 60px 0;
}

.catalog-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  background: white;
  position: relative;
  aspect-ratio: 16 / 9; 
}

.catalog-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.text-center {
  text-align: center;
}

.catalog-cta {
  margin-top: 40px;
}

@media (max-width: 768px) {
catalog-wrapper {
    aspect-ratio: auto; 
    height: 80vh; 
    min-height: 500px;
    border-radius: 20px;
    margin: 20px auto;
  }

  .catalog-wrapper iframe {
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
}
@media (max-width: 480px) {
  .catalog-wrapper {
    height: 90vh;
    min-height: 400px;
    margin: 16px auto;
  }
}
/* ========== CANVAS PARTICELLE NEL CTA ========== */
.cta-logo-cloud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.cta-logo-cloud img {
  position: absolute;
  opacity: 1;
  will-change: transform;
}
.theme-toggle button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ink);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle button:hover {
  background: rgba(0,0,0,0.05);
}
.theme-logo {
  transition: opacity 0.2s ease;
}

[data-theme="dark"] .theme-toggle button {
  color: #f0f0f0;
  background: rgba(255,255,255,0.1);
}

.web-bg {
  background-image: url('assets/img/team/web-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
.marketing-bg {
  background-image: url('assets/img/team/marketing-background.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}
/* ========== MOBILE OPTIMIZED — VERSIONE DEFINITIVA ========== */

@media (max-width: 768px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  .container {
    width: 95vw;
    margin: 0 auto;
    padding: 0 16px;
  }

  section {
    padding: 60px 20px;
  }

  .header-wrap {
    padding: 12px 20px;
  }

  .logo {
    height: 36px;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: all 0.2s ease;
  }

  .mobile-toggle:hover {
    background: rgba(27, 142, 45, 0.1);
    color: var(--green);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-bottom: 1px solid var(--line);
    z-index: 999;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    font-size: 18px;
    padding: 14px 0;
    text-align: center;
    min-height: 50px;
  }

  .hero {
    min-height: auto;
    padding: 60px 24px 80px;
  }

  .hero-inner {
    padding: 28px 20px;
  }

  h1 {
    font-size: clamp(26px, 6vw, 34px);
    line-height: 1.2;
  }

  .lead {
    font-size: clamp(15px, 4vw, 17px);
  }

  .cta-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .cta {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    text-align: center;
    min-height: 48px;
    border-radius: 20px;
  }

  .grid.grid--3 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    justify-content: center;
    width: 100%;
  }

  .card {
    width: 100%;
    max-width: 95%;
    margin: 0 auto 20px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  }

  .card__media {
    height: 200px;
  }

  .card__body {
    padding: 22px;
    min-height: 200px; 
  }

  .card h3 {
    font-size: 20px;
  }

  .card p {
    font-size: 15px;
  }

  .about-wrap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about__media {
    height: 240px;
  }

  .chips {
    gap: 8px;
  }

  .chip {
    padding: 8px 14px;
    font-size: 13px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bubble-image {
    width: 120px;
    height: 120px;
  }

  .bubble-name {
    font-size: 16px;
  }

  .bubble-role {
    font-size: 14px;
  }

  .cta-band h2 {
    font-size: clamp(22px, 5vw, 30px);
  }

  .cta-band p {
    font-size: 15px;
  }

  .catalog-wrapper {
    aspect-ratio: auto;
    height: 500px;
    margin: 20px auto;
  }

  .site-footer {
    padding: 20px 12px;
    font-size: 13px;
  }

  a, button, .cta, .mobile-toggle, .theme-toggle button {
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
  }

  .link {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .scroll-indicator {
    display: none;
  }
}
@media (max-width: 768px) {
  .container {
    width: 100%;
    padding: 0 16px;
  }

  .hero.fullpage-section > .container {
    padding: 40px 20px;
  }

  .catalog-wrapper {
    max-width: 100%;
    height: auto;
    min-height: 70vh; 
  }
}
@media (max-width: 768px) {
  html {
    scroll-padding-top: 60px; 
  }
}
/* ===== Mobile menu: transizione fluida + overlay ===== */
@media (max-width: 768px) {
  .site-header .main-nav {
    position: fixed;
    top: var(--header-height, 64px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 20px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    z-index: 1000;

    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
    pointer-events: none;

    transition:
      opacity .35s ease,
      transform .35s cubic-bezier(.2,.8,.2,1),
      visibility 0s linear .35s; 
  }

  .site-header .main-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity .45s ease,
      transform .45s cubic-bezier(.2,.8,.2,1),
      visibility 0s; 
  }

  .nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);      
  backdrop-filter: blur(3px);          
  -webkit-backdrop-filter: blur(3px);
  z-index: 900;                        
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
 .nav-overlay.active {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease;
}
  body.menu-open {
  overflow: hidden;
  touch-action: none;
}
  /* Dark mode */
  [data-theme="dark"] .site-header .main-nav {
    background: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  [data-theme="dark"] .nav-overlay {
  background: rgba(0, 0, 0, 0.55);
  }
}
@media (max-width: 768px) {
  .site-header.scrolled {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  }
  .site-header.scrolled .logo {
    height: 32px;
  }
}
@media (max-width: 768px) {
  [data-anim] { transform: translateY(15px); }
}
@media (max-width: 768px) {
  .cta {
    box-shadow: 0 6px 18px rgba(27,142,45,0.4);
  }
}
@media (max-width: 768px) {
  .card {
    min-height: 360px;
  }
  .card__media {
    height: 200px;
  }
}

