/* ========== 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%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  margin-right: 20px;
}

.lang-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
}

.lang-btn:hover {
  background: rgba(27, 142, 45, 0.1);
  transform: scale(1.05);
}

.lang-btn.active {
  background: var(--green);
  box-shadow: 0 2px 8px rgba(27, 142, 45, 0.3);
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
  margin-bottom: 10px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
  color: white;
  border: 2px solid transparent;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.social-icon.linkedin {
  background: #0077b5;
}

.social-icon.whatsapp {
  background: #25D366;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.social-icon.instagram:hover {
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.3);
}

.social-icon.linkedin:hover {
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.3);
}

.social-icon.whatsapp:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.social-icon svg {
  width: 20px;
  height: 20px;
}
/* SVG con fill (LinkedIn/WhatsApp): bianco pieno.
   SVG con stroke (Instagram outline): rispetta il currentColor inline. */
.social-icon.linkedin svg,
.social-icon.whatsapp svg { fill: #fff; }
.social-icon.instagram svg { color: #fff; fill: none; }
.social-icon.instagram svg [fill="currentColor"] { fill: currentColor; }

.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);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}


.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(4, minmax(0, 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;
}

.logo-lab-card-media {
  background:
    linear-gradient(135deg, rgba(20,40,60,0.82), rgba(27,142,45,0.78)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.16) 0 12px, rgba(255,255,255,0.04) 12px 24px);
  position: relative;
  overflow: hidden;
}

.logo-lab-card-media::before {
  content: "";
  position: absolute;
  inset: 38px 46px;
  border-radius: 18px;
  background:
    linear-gradient(90deg, #fff 0 58%, transparent 58%),
    radial-gradient(circle at 76% 38%, #fff 0 9%, transparent 10%),
    linear-gradient(135deg, transparent 0 62%, #fff 63% 100%);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
}

.logo-lab-card-media::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 10px rgba(255,255,255,0.20);
  transform: rotate(8deg);
}

.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;
}



@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;
  }

  .lang-switcher {
    margin-right: 0;
    margin-bottom: 8px;
    align-self: center;
  }

  .social-icons {
    margin-top: 12px;
  }

  .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;
  }
}

/* ========== PACCHETTI & PREZZI SECTION ========== */
.ico-packages-section {
  background: linear-gradient(135deg, #f9fbfc, #f0f7f2);
  padding: 80px 24px;
}

.ico-packages-pricing-note {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 8px;
  padding: 8px 16px;
  background: var(--sky);
  border-radius: 20px;
  display: inline-block;
}

/* Business Packages Grid */
.ico-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 60px 0;
}

.ico-packages-card {
  background: var(--card);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 28px var(--shadow);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  border: 2px solid transparent;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ico-packages-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 50px rgba(27, 142, 45, 0.15);
}

.ico-packages-card--featured {
  border-color: var(--green);
  transform: scale(1.02);
}

.ico-packages-card--featured:hover {
  transform: scale(1.04) translateY(-8px) !important;
  box-shadow: 0 25px 60px rgba(27, 142, 45, 0.25);
}

.ico-packages-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ico-packages-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.ico-packages-card-header h3 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink);
}

.ico-packages-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 16px;
}

.ico-packages-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1;
}

.ico-packages-features li {
  position: relative;
  padding: 12px 0 12px 32px;
  color: var(--muted);
  line-height: 1.5;
  border-bottom: 1px solid var(--sand);
}

.ico-packages-features li:last-child {
  border-bottom: none;
}

.ico-packages-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

/* Accordion */
.ico-packages-accordion {
  margin-bottom: 24px;
}

.ico-packages-accordion-trigger {
  width: 100%;
  background: var(--sand);
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.ico-packages-accordion-trigger:hover {
  background: var(--sky);
}

.ico-packages-accordion-trigger:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.ico-packages-accordion-icon {
  transition: transform 0.2s ease;
  font-size: 18px;
  font-weight: 700;
}

.ico-packages-accordion-trigger[aria-expanded="true"] .ico-packages-accordion-icon {
  transform: rotate(45deg);
}

.ico-packages-accordion-content {
  margin-top: 12px;
  padding: 16px;
  background: var(--sky);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.ico-packages-accordion-content[hidden] {
  display: none;
}

.ico-packages-accordion-content:not([hidden]) {
  opacity: 1;
  max-height: 200px;
}

/* Actions */
.ico-packages-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ico-packages-link-secondary {
  text-align: center;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.ico-packages-link-secondary:hover {
  background: var(--sky);
  color: var(--green);
}

/* Event Package Featured */
.ico-packages-featured {
  margin: 60px 0 40px;
}

.ico-packages-event-card {
  background: linear-gradient(135deg, var(--green), #22A53C);
  border-radius: 20px;
  padding: 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.ico-packages-event-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.ico-packages-event-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.ico-packages-event-header h3 {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 8px;
}

.ico-packages-event-card .ico-packages-price {
  color: white;
  font-size: 36px;
  margin: 0 0 16px;
}

.ico-packages-event-desc {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: 0.9;
}

.ico-packages-event-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ico-packages-event-features li {
  position: relative;
  padding: 12px 0 12px 32px;
  margin-bottom: 8px;
  line-height: 1.5;
}

.ico-packages-event-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 18px;
}

.ico-packages-event-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.ico-packages-event-card .cta {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.ico-packages-event-card .cta:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}

.ico-packages-event-card .ico-packages-link-secondary {
  color: rgba(255, 255, 255, 0.9);
}

.ico-packages-event-card .ico-packages-link-secondary:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Trust Microcopy */
.ico-packages-trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.ico-packages-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--card);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--shadow);
  transition: all 0.2s ease;
}

.ico-packages-trust-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--shadow);
}

.ico-packages-trust-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint);
  border-radius: 50%;
  flex-shrink: 0;
}

.ico-packages-trust-item span:last-child {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .ico-packages-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .ico-packages-event-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .ico-packages-trust {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .ico-packages-section {
    padding: 60px 16px;
  }
  
  .ico-packages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0;
  }
  
  .ico-packages-card {
    padding: 24px;
  }
  
  .ico-packages-card--featured {
    transform: none;
  }
  
  .ico-packages-card--featured:hover {
    transform: translateY(-4px);
  }
  
  .ico-packages-badge {
    font-size: 11px;
    padding: 4px 12px;
  }
  
  .ico-packages-price {
    font-size: 28px;
  }
  
  .ico-packages-event-card {
    padding: 32px 24px;
  }
  
  .ico-packages-event-header h3 {
    font-size: 24px;
  }
  
  .ico-packages-event-card .ico-packages-price {
    font-size: 28px;
  }
  
  .ico-packages-event-desc {
    font-size: 16px;
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .ico-packages-card,
  .ico-packages-accordion-trigger,
  .ico-packages-accordion-content,
  .ico-packages-trust-item,
  .ico-packages-event-card::before {
    transition: none;
    animation: none;
  }
  
  .ico-packages-card:hover,
  .ico-packages-card--featured:hover {
    transform: none;
  }
}

/* ========== BREADCRUMB NAVIGATION ========== */
.breadcrumb-nav {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(230, 236, 241, 0.6);
  padding: 8px 0;
}

.breadcrumb {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
}

.breadcrumb li {
  color: var(--muted);
}

.breadcrumb li a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb li a:hover {
  color: var(--green);
}

.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin: 0 8px;
  color: var(--muted);
}

@media (max-width: 768px) {
  .breadcrumb-nav {
    display: none;
  }
}



/* Language flags */
.lang-switcher .lang-flag{width:22px;height:16px;display:block;border-radius:4px;}
.lang-switcher .lang-btn{padding:6px 8px;display:inline-flex;align-items:center;justify-content:center;}


/* ========== SEZIONE LAVORI / PORTFOLIO ========== */

.ico-works-section {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(27,142,45,0.06), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(44,74,107,0.07), transparent 55%),
    linear-gradient(180deg, #fbfdfb 0%, #f3f6f5 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Parallax background shapes */
.ico-works-parallax {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ico-works-shape {
  position: absolute;
  will-change: transform;
  opacity: .55;
  /* mix-blend-mode rimosso: causava text washout su sfondi scuri/multicolor */
}
.ico-works-shape--circle {
  width: 380px; height: 380px; top: 10%; left: -120px;
  background: radial-gradient(circle, rgba(27,142,45,0.18), transparent 70%);
  border-radius: 50%;
}
.ico-works-shape--blob {
  width: 320px; height: 320px; bottom: 5%; right: -80px;
  background: radial-gradient(ellipse at center, rgba(44,74,107,0.18), transparent 70%);
  border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%;
  animation: works-morph 16s ease-in-out infinite alternate;
}
.ico-works-shape--diamond {
  width: 140px; height: 140px; top: 50%; right: 12%;
  background: linear-gradient(45deg, rgba(86,204,242,0.20), transparent);
  transform: rotate(45deg);
  opacity: .35;
}
@keyframes works-morph {
  0%   { border-radius: 40% 60% 70% 30% / 50% 40% 60% 50%; }
  100% { border-radius: 60% 40% 30% 70% / 60% 50% 50% 40%; }
}

.ico-works-section .container { position: relative; z-index: 1; }

/* Filter chips */
.ico-works-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px;
  margin: 18px 0 32px;
}
.ico-works-filter {
  appearance: none;
  border: 1px solid rgba(44,74,107,0.18);
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(6px);
  color: var(--navy);
  font: 500 14px/1 'Inter', sans-serif;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  letter-spacing: .01em;
}
.ico-works-filter:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27,142,45,0.12);
}
.ico-works-filter.is-active {
  background: linear-gradient(135deg, var(--green), #22A53C);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(27,142,45,0.28);
}

/* Grid */
.ico-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  width: 100%;
}

.ico-works-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--muted);
  padding: 60px 20px;
  font-size: 16px;
}

/* Card */
.ico-works-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: var(--card);
  box-shadow: 0 6px 22px rgba(20,40,60,0.08);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
  aspect-ratio: 4/3;
  outline: none;
}
.ico-works-card:hover,
.ico-works-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 18px 38px rgba(27,142,45,0.18), 0 4px 12px rgba(20,40,60,0.10);
}
.ico-works-card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* Card "link esterno" — apre il sito reale */
a.ico-works-card.ico-works-card--link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.ico-works-card-media--link {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f7faf9 0%, #eef3f6 100%);
}
[data-theme="dark"] .ico-works-card-media--link {
  background: linear-gradient(135deg, #1f2530 0%, #161a22 100%);
}
.ico-works-link-host {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% + 26px));
  font: 700 13.5px/1 'Inter', sans-serif;
  letter-spacing: .04em;
  color: #2C4A6B;
  text-transform: uppercase;
  opacity: .65;
  text-align: center;
  padding: 0 12px;
  word-break: break-all;
  z-index: 1;
}
[data-theme="dark"] .ico-works-link-host { color: #cfd6e0; opacity: .55; }

.ico-works-link-favicon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, calc(-50% - 22px));
  width: 84px !important;
  height: 84px !important;
  object-fit: contain !important;
  background: rgba(255,255,255,0.0);
  border-radius: 14px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.22));
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
}
[data-theme="dark"] .ico-works-link-favicon {
  background: rgba(255,255,255,0.04);
}
.ico-works-card--link:hover .ico-works-link-favicon {
  transform: translate(-50%, calc(-50% - 28px)) scale(1.08);
}
/* Variante "preview": screenshot reale del sito a tutta card.
   Generato dallo script scripts/fetch-previews.mjs. */
.ico-works-card-media--link-preview {
  display: block;
  background: #0e1218;
}
.ico-works-link-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .35s ease;
}
.ico-works-card--link-preview:hover .ico-works-link-preview {
  transform: scale(1.04);
}
.ico-works-link-arrow {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font: 600 18px/1 'Inter', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
  z-index: 2;
  transition: transform .25s ease;
}
.ico-works-card--link:hover .ico-works-link-arrow {
  transform: translate(2px, -2px) rotate(0deg);
}
.ico-works-card-overlay--link {
  /* sempre visibile (non c'è hover-only) per le card link, mostra hostname e titolo */
  opacity: 1;
  transform: none;
  background: linear-gradient(180deg, transparent 35%, rgba(15,30,45,0.88) 100%);
}
.ico-works-card-overlay--link .ico-works-card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  letter-spacing: .02em;
  opacity: .9;
}

.ico-works-card-media {
  position: absolute; inset: 0;
  overflow: hidden;
}
.ico-works-card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .35s ease;
  display: block;
}
.ico-works-card:hover .ico-works-card-media img,
.ico-works-card:focus-visible .ico-works-card-media img {
  transform: scale(1.08);
  filter: saturate(1.05);
}

.ico-works-card-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font: 600 11px/1 'Inter', sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  z-index: 2;
}

.ico-works-card-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent 35%, rgba(15,30,45,0.85) 100%);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1);
  z-index: 2;
  text-align: left;
}
.ico-works-card:hover .ico-works-card-overlay,
.ico-works-card:focus-visible .ico-works-card-overlay {
  opacity: 1;
  transform: translateY(0);
}
.ico-works-card-title {
  font: 700 18px/1.25 'Inter', sans-serif;
  margin: 0 0 4px;
  color: #fff;
}
.ico-works-card-meta {
  font: 400 13px/1.4 'Inter', sans-serif;
  color: rgba(255,255,255,0.85);
  margin: 0;
}
.ico-works-card-cue {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font: 300 24px/1 'Inter', sans-serif;
  box-shadow: 0 4px 10px rgba(0,0,0,0.18);
}

/* Lightbox */
.ico-works-lightbox {
  position: fixed; inset: 0;
  background: rgba(10,18,28,0.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity .24s ease;
  padding: 24px;
}
.ico-works-lightbox.is-open { opacity: 1; }
.ico-works-lightbox[hidden] { display: none !important; }

.ico-works-lightbox-figure {
  position: relative;
  max-width: min(1100px, 92vw);
  max-height: 92vh;
  display: flex; flex-direction: column;
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  animation: works-zoom-in .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes works-zoom-in {
  from { transform: scale(.96); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.ico-works-lightbox-img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #0f1a24;
  display: block;
}

.ico-works-lightbox-caption {
  padding: 18px 22px 20px;
  text-align: left;
}
.ico-works-lightbox-title {
  font: 700 22px/1.2 'Inter', sans-serif;
  color: var(--ink);
  margin: 0 0 6px;
}
.ico-works-lightbox-meta {
  font: 500 13px/1.3 'Inter', sans-serif;
  color: var(--muted);
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.ico-works-lightbox-desc {
  font: 400 15px/1.55 'Inter', sans-serif;
  color: var(--ink);
  margin: 0;
}
.ico-works-lightbox-counter {
  position: absolute; top: 14px; right: 18px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font: 600 12px/1 'Inter', sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
}

.ico-works-lightbox-close,
.ico-works-lightbox-nav {
  position: absolute;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.95);
  color: var(--navy);
  font-size: 28px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  transition: transform .2s ease, background .2s ease;
  z-index: 10;
}
.ico-works-lightbox-close { top: 24px; right: 24px; font-size: 32px; }
.ico-works-lightbox-nav   { top: 50%; transform: translateY(-50%); }
.ico-works-lightbox-nav--prev { left: 24px; }
.ico-works-lightbox-nav--next { right: 24px; }
.ico-works-lightbox-close:hover,
.ico-works-lightbox-nav:hover {
  background: var(--green);
  color: #fff;
}
.ico-works-lightbox-nav:hover { transform: translateY(-50%) scale(1.06); }

/* Mobile tweaks ≤768px */
@media (max-width: 768px) {
  /* Sezione: rilassiamo il vincolo fullpage altrimenti tutto resta squashato in alto */
  .ico-works-section {
    min-height: auto;
    padding: 56px 20px 72px;
    scroll-snap-align: none;
  }

  /* Header sezione più compatto e leggibile */
  .ico-works-section .section-head h2 {
    font-size: clamp(28px, 7.5vw, 36px);
    line-height: 1.15;
  }
  .ico-works-section .section-sub {
    font-size: 14.5px;
    line-height: 1.55;
    padding: 0 4px;
    max-width: 540px;
    margin: 8px auto 0;
  }

  /* Grid: una colonna piena */
  .ico-works-grid { grid-template-columns: 1fr; gap: 14px; }

  /* Card più alte per mostrare meglio la cover */
  .ico-works-card { aspect-ratio: 16/11; }

  /* Filter chips: scroll orizzontale fluido + indicatore di taglio */
  .ico-works-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    padding: 4px 12px 8px;
    margin: 14px -20px 22px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* fade ai bordi per suggerire scroll */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 16px), transparent 100%);
  }
  .ico-works-filters::-webkit-scrollbar { display: none; }
  .ico-works-filter {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 9px 14px;
    font-size: 13px;
    background: #fff;            /* più solidi, niente blur che desatura su mobile */
    backdrop-filter: none;
  }

  /* Overlay sempre visibile su touch (non c'è hover) */
  .ico-works-card-overlay {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, transparent 35%, rgba(8,18,28,0.88) 100%);
    padding: 16px;
  }
  .ico-works-card-cue { display: none; }
  .ico-works-card-title { font-size: 17px; }
  .ico-works-card-meta  { font-size: 12.5px; }
  .ico-works-card-cat   { top: 10px; left: 10px; font-size: 10.5px; padding: 5px 9px; }

  /* Shapes parallax: ridimensiona/limita su mobile per non soffocare il contenuto */
  .ico-works-shape--circle { width: 220px; height: 220px; opacity: .35; }
  .ico-works-shape--blob   { width: 200px; height: 200px; opacity: .35; }
  .ico-works-shape--diamond { display: none; }

  /* Lightbox: fullscreen + thumb-zone friendly */
  .ico-works-lightbox { padding: 0; }
  .ico-works-lightbox-figure {
    max-width: 100vw; max-height: 100dvh;
    border-radius: 0;
    height: 100dvh;
  }
  .ico-works-lightbox-img { max-height: 56vh; }
  .ico-works-lightbox-caption { padding: 14px 16px 22px; }
  .ico-works-lightbox-title { font-size: 18px; }
  .ico-works-lightbox-desc  { font-size: 14px; line-height: 1.5; }
  .ico-works-lightbox-close { top: 10px; right: 10px; width: 44px; height: 44px; font-size: 26px; }
  .ico-works-lightbox-nav { width: 44px; height: 44px; font-size: 24px; }
  .ico-works-lightbox-nav--prev { left: 8px; }
  .ico-works-lightbox-nav--next { right: 8px; }
  .ico-works-lightbox-counter { top: 10px; right: 64px; }
}

/* Mobile small (≤375px) — iPhone SE & simili */
@media (max-width: 380px) {
  .ico-works-section { padding: 44px 16px 60px; }
  .ico-works-section .section-head h2 { font-size: 26px; }
  .ico-works-card-title { font-size: 16px; }
  .ico-works-filter { padding: 8px 12px; font-size: 12.5px; }
  .ico-works-lightbox-img { max-height: 50vh; }
}


/* ========== FORM CONTATTI (#contact) ========== */
/* Pannello "ad isola" ben leggibile sia in light che in dark mode.
   La cta-band cambia bg con il tema, ma il form resta un panel bianco con testo scuro. */
.ico-contact-form {
  max-width: 640px;
  margin: 28px auto 14px;
  padding: 28px 28px 24px;
  background: #ffffff;
  border: 1px solid rgba(20,40,60,0.08);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(20,40,60,0.10), 0 2px 8px rgba(20,40,60,0.04);
  text-align: left;
  position: relative;
  z-index: 2;
  font-family: 'Inter', system-ui, sans-serif;
}

.ico-contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important; height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

.ico-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ico-contact-field {
  display: flex; flex-direction: column;
  gap: 6px;
  text-align: left;
}
.ico-contact-grid .ico-contact-field { margin: 0; }

.ico-contact-label {
  font: 600 12.5px/1.2 'Inter', sans-serif;
  color: #2C4A6B; /* var(--navy) — non dipende dal tema così resta leggibile sul panel bianco */
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ico-contact-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: .65;
  font-size: 11.5px;
  margin-left: 4px;
  color: #4C5963;
}

.ico-contact-form input[type="text"],
.ico-contact-form input[type="email"],
.ico-contact-form input[type="tel"],
.ico-contact-form select,
.ico-contact-form textarea {
  width: 100%;
  font: 400 15px/1.4 'Inter', sans-serif;
  color: #1a1a1a;
  background: #f8fafc;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  padding: 11px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  outline: none;
}
.ico-contact-form textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Inter', sans-serif;
}
.ico-contact-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231a1a1a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}
.ico-contact-form input:focus,
.ico-contact-form select:focus,
.ico-contact-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(27,142,45,0.18);
  background: #fff;
}

.ico-contact-checkbox {
  display: flex; align-items: flex-start;
  gap: 10px;
  font: 400 13.5px/1.45 'Inter', sans-serif;
  color: #1a1a1a;
  margin-top: 14px;
  cursor: pointer;
}
.ico-contact-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--green);
  cursor: pointer;
}

.ico-contact-actions {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: 16px;
  margin-top: 18px;
}
.ico-contact-submit {
  /* riusa lo stile .cta esistente */
  cursor: pointer;
  border: 0;
  font: 600 15px/1 'Inter', sans-serif;
}
.ico-contact-submit:disabled { opacity: .65; cursor: not-allowed; }

.ico-contact-feedback {
  margin: 0;
  font: 500 14px/1.3 'Inter', sans-serif;
  color: #4C5963;
  min-height: 1.2em;
}
.ico-contact-feedback[data-kind="ok"]      { color: #1B8E2D; }
.ico-contact-feedback[data-kind="error"]   { color: #c0392b; }
.ico-contact-feedback[data-kind="pending"] { color: #4C5963; }

.ico-contact-or {
  margin: 18px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--muted);
  font: 400 14px/1.4 'Inter', sans-serif;
}
.ico-contact-or a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

/* Dark mode — il pannello resta chiaro per coerenza visiva con la cta-band trasparente */
[data-theme="dark"] .ico-contact-form {
  background: #f4f6f8;
  border-color: rgba(255,255,255,0.08);
  box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}
[data-theme="dark"] .ico-contact-or { color: rgba(240,240,240,0.75); }
[data-theme="dark"] .ico-contact-or a { color: #2ecc71; }

@media (max-width: 720px) {
  .ico-contact-grid { grid-template-columns: 1fr; gap: 12px; }
  .ico-contact-form { padding: 22px 18px 18px; border-radius: 14px; }
  .ico-contact-actions { flex-direction: column; align-items: stretch; }
  .ico-contact-submit { width: 100%; }
  .ico-contact-feedback { text-align: center; }
}


/* ========== PAGINA RINGRAZIAMENTO (grazie.html) ========== */
.ico-thanks-section {
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(27,142,45,0.10), transparent 55%),
    linear-gradient(180deg, #fbfdfb 0%, #f3f6f5 100%);
}
/* override del .fullpage-section > .container { display: block } */
.ico-thanks-section > .ico-thanks-wrap {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ico-thanks-icon {
  color: var(--green);
  background: rgba(27,142,45,0.12);
  width: 124px; height: 124px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
  animation: thanks-pop .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes thanks-pop {
  0%   { transform: scale(.6); opacity: 0; }
  70%  { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); }
}
.ico-thanks-title {
  font: 800 clamp(36px, 6vw, 56px)/1.05 'Inter', sans-serif;
  color: var(--ink);
  margin: 0;
}
.ico-thanks-lead {
  font: 400 18px/1.5 'Inter', sans-serif;
  color: var(--muted);
  max-width: 540px;
  margin: 0;
}
.ico-thanks-meta {
  font: 400 14.5px/1.5 'Inter', sans-serif;
  color: var(--muted);
}
.ico-thanks-meta a { color: var(--green); text-decoration: none; font-weight: 500; }
.ico-thanks-meta a:hover { text-decoration: underline; }

.ico-thanks-actions {
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center;
  margin-top: 16px;
}
.ico-thanks-link-secondary {
  color: var(--navy);
  text-decoration: none;
  font: 500 15px/1 'Inter', sans-serif;
  padding: 10px 4px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.ico-thanks-link-secondary:hover { color: var(--green); border-bottom-color: var(--green); }

[data-theme="dark"] .ico-thanks-section {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(46,204,113,0.14), transparent 55%),
    linear-gradient(180deg, #161618 0%, #121214 100%);
}
[data-theme="dark"] .ico-thanks-icon {
  color: #2ecc71;
  background: rgba(46,204,113,0.18);
}
[data-theme="dark"] .ico-thanks-link-secondary { color: #cfe3d6; }
[data-theme="dark"] .ico-thanks-link-secondary:hover { color: #2ecc71; border-bottom-color: #2ecc71; }

/* Dark mode — il sito usa [data-theme="dark"] (vedi theme.js + dark.css) */
[data-theme="dark"] .ico-works-section {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(46,204,113,0.10), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(74,111,165,0.10), transparent 55%),
    linear-gradient(180deg, #161618 0%, #121214 100%);
}
[data-theme="dark"] .ico-works-filter {
  background: rgba(36,36,40,0.85);
  border-color: rgba(255,255,255,0.10);
  color: #e9eef3;
}
[data-theme="dark"] .ico-works-filter:hover { color: #2ecc71; border-color: #2ecc71; }
[data-theme="dark"] .ico-works-filter.is-active {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: #fff;
}
[data-theme="dark"] .ico-works-card {
  background: #1e1e22;
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
}
[data-theme="dark"] .ico-works-card-cat {
  background: rgba(20,20,24,0.92);
  color: #cfe3d6;
}
[data-theme="dark"] .ico-works-empty { color: #a0a0a0; }
[data-theme="dark"] .ico-works-lightbox-figure { background: #1e1e22; }
[data-theme="dark"] .ico-works-lightbox-title  { color: #f3f6f5; }
[data-theme="dark"] .ico-works-lightbox-desc   { color: #d5dde6; }
[data-theme="dark"] .ico-works-lightbox-meta   { color: #b6c0cc; }
[data-theme="dark"] .ico-works-lightbox-close,
[data-theme="dark"] .ico-works-lightbox-nav    { background: rgba(40,40,46,0.95); color: #f3f6f5; }
[data-theme="dark"] .ico-works-lightbox-counter{ background: rgba(40,40,46,0.92); color: #f3f6f5; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ico-works-card,
  .ico-works-card-media img,
  .ico-works-card-overlay,
  .ico-works-shape--blob,
  .ico-works-lightbox-figure,
  .ico-works-lightbox-nav,
  .ico-works-lightbox-close { transition: none !important; animation: none !important; }
}

