@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');

:root {
  --bg-color: #ffffff;
  --bg-color-alt: #f9f9f9;
  --bg-cream: #ffffed;
  --tech-blue: #2386c8;
  --bg-dark: #121212;
  --text-main: #1a1a1a;
  --text-muted: #555555;
  --text-light: #ffffff;
  --text-light-muted: rgba(255, 255, 255, 0.7);
  --primary: #2b2b2b;
  --primary-hover: #000000;
  --primary-glow: rgba(0, 0, 0, 0.1);
  --surface: #ffffff;
  --surface-border: rgba(0, 0, 0, 0.08);
  
  --font-sans: 'DM Sans', sans-serif;
  --font-serif: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* Header & Navbar */
header {
  position: fixed;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  padding: 1rem 2.5rem;
  background: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 237, 0.1);
  border-radius: 50px;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo span {
  color: var(--primary);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 237, 0.7);
}

nav a:hover {
  color: var(--text-light);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  color: var(--text-main);
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--bg-color-alt);
  color: #000;
}

.btn {
  background: var(--primary);
  color: var(--text-light);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  color: var(--text-light);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-light {
  background: var(--surface);
  color: var(--text-main);
}

.btn-light:hover {
  background: var(--bg-color-alt);
  color: var(--text-main);
}

/* Typography elements */
.serif-italic {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 600;
  color: var(--tech-blue);
}

/* Magic UI Underline Effect */
.highlighter-wrapper {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.magic-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 24px;
  z-index: -1;
  color: #FF9800; /* Il colore arancione indicato dallo snippet */
}

.magic-underline path {
  stroke-dasharray: 250;
  stroke-dashoffset: 250;
  animation: magicDraw 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s forwards;
}

@keyframes magicDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.section-tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Hero Section */
.hero {
  padding: 10rem 5% 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

/* Hero Retro Grid */
.retro-grid {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  opacity: 0.7; /* Aumentato da 0.5 a 0.7 */
  perspective: 200px;
  z-index: 0;
}

.retro-grid-wrapper {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: rotateX(65deg);
}

.retro-grid-animated {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 600vw;
  height: 300vh;
  margin-left: -50%;
  transform-origin: 100% 0 0;
  background-repeat: repeat;
  background-size: 60px 60px;
  background-image: linear-gradient(to right, rgba(0,0,0,0.25) 1px, transparent 0),
                    linear-gradient(to bottom, rgba(0,0,0,0.25) 1px, transparent 0); /* Aumentato da 0.15 a 0.25 */
  animation: retro-grid-anim 15s linear infinite;
}

.retro-grid-gradient {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to top, var(--bg-color) 0%, transparent 90%);
}

@keyframes retro-grid-anim {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Ensure Hero content is above the grid */
.hero .section-tag,
.hero h1,
.hero p,
.hero .btn {
  position: relative;
  z-index: 1;
}

/* Trusted By (Marquee) */
.trusted-by {
  padding: 0 0 4rem;
  overflow: hidden;
}

.trusted-by p {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: transparent;
  padding: 2.5rem 0;
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
}

.marquee-container::before,
.marquee-container::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-color), transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-color), transparent);
}

.marquee-content {
  display: flex;
  gap: 4rem;
  padding-right: 4rem;
  align-items: center;
  flex-shrink: 0;
  animation: scroll 60s linear infinite;
  white-space: nowrap;
}

.marquee-content h3 {
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: 600;
}

.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.marquee-name {
  font-size: 0.95rem;
  color: var(--text-dark-muted);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.2;
}

.marquee-content img {
  height: 85px;
  min-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

@keyframes scroll-reverse {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.marquee-content.reverse {
  animation: scroll-reverse 60s linear infinite;
}

/* Sections Containers */
.section-wrapper {
  padding: 2rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.dark-box {
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 40px;
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.dark-box h2 {
  color: var(--text-light);
}

.dark-box p {
  color: var(--text-light-muted);
}

/* Why Choose Us - Split Layout */
.features-split {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  align-items: center;
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .features-split {
    flex-direction: row;
    justify-content: space-between;
  }
  .features-text {
    flex: 1;
    max-width: 500px;
  }
  .features-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
}

.features-image img {
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid var(--surface-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(0);
  transition: transform 0.5s ease;
}

.features-image img:hover {
  transform: translateY(-10px);
}

.features-text h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.features-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Chatbot Section */
.chatbot-section {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.chatbot-section h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.chatbot-section > p {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.video-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(255, 255, 237,0.1);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.video-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatbot-section .caption {
  font-size: 1.8rem;
  color: var(--text-light);
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Bento Grid */
.bento-section {
  padding: 6rem 5%;
  max-width: 100%;
  margin: 0;
}

#servizi.dark-box {
  border-radius: 0;
  background-color: #050505;
}

.bento-header, .bento-grid {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

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

.bento-header h2 {
  font-size: 3.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.bento-card {
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 30px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease-out, background-color 0.15s ease-out, border-color 0.15s ease-out;
}

.bento-card:hover {
  background-color: #2a2a2a;
  border-color: #444;
  transform: translateY(-3px);
}

.bento-img {
  width: 100%;
  height: 200px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  background: var(--bg-color-alt);
}

.bento-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #ffffff;
}

.bento-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Su tablet, la prima e l'ultima card prendono tutta la larghezza, le due centrali si dividono lo spazio */
  .bento-card:nth-child(1),
  .bento-card:nth-child(4) {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  /* Su desktop: asimmetria stile puzzle */
  .bento-card:nth-child(1) {
    grid-column: span 2; /* 66% larghezza */
  }
  .bento-card:nth-child(2) {
    grid-column: span 1; /* 33% larghezza */
  }
  .bento-card:nth-child(3) {
    grid-column: span 1; /* 33% larghezza */
  }
  .bento-card:nth-child(4) {
    grid-column: span 2; /* 66% larghezza */
  }
}

/* Reviews */
.reviews {
  padding: 8rem 5%;
  background: #050505;
  border-radius: 40px;
  max-width: 1400px;
  margin: 4rem auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.reviews::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(220, 80, 50, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(120, 50, 200, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 100, 255, 0.1) 0%, transparent 70%);
  /* filter: blur(100px); rimosso per migliorare le performance (evita il lag) */
  z-index: -1;
  pointer-events: none;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.reviews-container h2 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
  color: #ffffed;
}

.reviews-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.review-card {
  background: rgba(255, 255, 237, 0.05);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 237, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  flex: 1 1 320px;
  max-width: 400px;
}

.review-card:hover {
  background: rgba(255, 255, 237, 0.08);
  border-color: rgba(255, 255, 237, 0.2);
  transform: translateY(-8px);
}

.review-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  order: -1; /* Mette l'autore sopra il testo */
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: #e83e8c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 1.1rem;
  color: #ffffed;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
  color: #ffffed;
  font-weight: 500;
}

.author-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 237, 0.5);
  font-weight: 400;
}

.review-text {
  font-size: 1.05rem;
  line-height: 1.6;
  font-style: normal;
  color: rgba(255, 255, 237, 0.85);
  font-weight: 300;
  order: 0;
}



/* Contact */
.contact {
  padding: 8rem 5%;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 40px 40px 0 0;
  text-align: center;
  margin-top: 4rem;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.contact p {
  color: var(--text-light-muted);
  margin-bottom: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: left;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-light-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 237, 0.05);
  border: 1px solid rgba(255, 255, 237, 0.1);
  border-radius: 16px;
  padding: 1.2rem;
  color: var(--text-light);
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 237, 0.3);
  background: rgba(255, 255, 237, 0.1);
}

.contact-form .btn {
  margin-top: 1rem;
  padding: 1.2rem;
  font-size: 1.1rem;
  background: var(--text-light);
  color: var(--bg-dark);
}

.contact-form .btn:hover {
  background: #e0e0e0;
}

/* Comprehensive Footer */
.main-footer {
  background: var(--bg-dark);
  color: var(--text-light-muted);
  padding: 6rem 5% 10vw; /* Aggiunto molto padding in basso per la scritta */
  border-top: 1px solid rgba(255, 255, 237,0.05);
  position: relative;
  overflow: hidden;
}

/* Giant Background Text */
.main-footer::after {
  content: "FRECCIA SERVIZI";
  position: absolute;
  bottom: -4vw; /* Spinto tutto in basso */
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(5rem, 11.5vw, 18rem);
  font-weight: 900;
  font-family: var(--font-sans);
  color: rgba(255, 255, 237, 0.03); /* Very low brightness */
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -0.02em;
  line-height: 0.75;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  margin-bottom: 1.5rem;
}

.footer-brand p {
  margin-bottom: 2rem;
  max-width: 350px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 237,0.05);
  border-radius: 20px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255, 255, 237,0.15);
}

.footer-links-group h4 {
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links-group a {
  display: inline-block;
  color: var(--text-light-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.footer-links-group a:hover {
  color: var(--text-light);
  transform: translateX(3px);
}

.footer-links-group p {
  color: var(--text-light-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 237,0.1);
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: var(--text-light-muted);
  font-size: 0.85rem;
}

.footer-legal a:hover {
  color: var(--text-light);
}

.footer-bottom > p {
  font-size: 0.85rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger {
  width: 28px;
  height: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-light);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: left center;
}

@media (max-width: 992px) {
  header {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 1rem 5%;
    border-top: none;
    border-left: none;
    border-right: none;
  }
  
  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 1000;
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    font-size: 1.5rem;
  }

  .nav-menu .btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
    margin-top: 1rem;
    display: inline-block;
  }

  .dropdown > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .dropdown > a svg {
    position: absolute;
    right: -28px;
    transition: transform 0.3s ease;
  }

  .dropdown.active > a svg {
    transform: rotate(180deg);
  }

  /* Dropdown on mobile */
  .dropdown-menu {
    position: static;
    transform: none !important;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    min-width: 100%;
    padding: 1rem 0 0 0;
  }

  .dropdown.active .dropdown-menu {
    display: flex;
    animation: fadeIn 0.3s ease;
  }

  .dropdown-menu a {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 237, 0.7);
  }

  .dropdown-menu a:hover {
    background: rgba(255, 255, 237, 0.1);
    color: #ffffed;
  }
  
  /* Hamburger Animation when active */
  .menu-toggle.active .hamburger span:nth-child(1) {
    transform: rotate(45deg);
  }
  .menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
  }
}

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

/* Responsive */
@media (max-width: 768px) {

  .hero {
    padding: 6.5rem 5% 2rem;
  }
  .features-text h2, .chatbot-section h2, .bento-header h2, .reviews-container h2, .contact h2 {
    font-size: 2.5rem;
  }
  .dark-box {
    border-radius: 24px;
    padding: 4rem 5%;
  }
  .dropdown-menu {
    left: auto;
    right: 0;
    transform: translateY(10px);
  }
  .dropdown:hover .dropdown-menu {
    transform: translateY(0);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
  .footer-legal {
    justify-content: center;
  }
}

/* ==========================================================================
   Service Pages New Layout
   ========================================================================== */

/* Service Hero Additions */
.service-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.service-hero h1 {
  font-size: clamp(3rem, 5vw, 5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.service-hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* Service Intro - 50/50 Layout */
.service-intro {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 900px) {
  .service-intro {
    flex-direction: row;
  }
  .service-intro.reverse {
    flex-direction: row-reverse;
  }
}

.service-intro-text {
  flex: 1;
}

.service-intro-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.service-intro-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.service-intro-text ul {
  list-style: none;
  margin-bottom: 2rem;
}

.service-intro-text ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 500;
}

.service-intro-text ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: bold;
}

.service-intro-image {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  width: 100%;
}

.service-intro-image img,
.service-intro-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  aspect-ratio: 4/3;
}

.service-intro-image:hover img,
.service-intro-image:hover video {
  transform: scale(1.05);
}

/* Features Grid */
.service-features-section {
  padding: 6rem 5%;
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.service-features-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.service-features-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-features-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.service-features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .service-features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-color);
  padding: 2.5rem;
  border-radius: 20px;
  border: 1px solid var(--surface-border);
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.2);
}

.feature-card-icon {
  width: 50px;
  height: 50px;
  background: var(--text-main);
  color: var(--text-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Call to Action - Dark */
.service-cta {
  padding: 8rem 5%;
  background: var(--text-main);
  color: var(--text-light);
  text-align: center;
}

.service-cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.service-cta p {
  font-size: 1.2rem;
  color: rgba(255, 255, 237,0.7);
  max-width: 600px;
  margin: 0 auto 3rem;
}

.service-cta .btn {
  background: var(--text-light);
  color: var(--text-main);
}

.service-cta .btn:hover {
  background: rgba(255, 255, 237,0.9);
  transform: translateY(-2px);
}

/* ==========================================================================
   Chi Siamo Page
   ========================================================================== */

/* Flow-style Hero Section */
.flow-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.flow-hero-bg img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(100%);
  transform: scale(1.05);
  will-change: transform;
}

.flow-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
}

/* Curved text arcs */
.flow-hero-arc {
  position: absolute;
  z-index: 2;
  width: clamp(280px, 35vw, 500px);
  height: auto;
  opacity: 0.55;
  will-change: transform, opacity;
}

.flow-hero-arc text {
  fill: rgba(255, 255, 237, 0.85);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.flow-hero-arc--top-left {
  top: 2%;
  left: -2%;
}

.flow-hero-arc--top-right {
  top: 2%;
  right: -2%;
}

/* Hero content */
.flow-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #ffffed;
  will-change: transform, opacity;
}

.flow-hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 240, 0.95);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .flow-hero-arc {
    width: 220px;
    opacity: 0.35;
  }
  .flow-hero-arc text {
    font-size: 11px;
  }
  .flow-hero-arc--top-left {
    top: 5%;
    left: -5%;
  }
  .flow-hero-arc--top-right {
    top: 5%;
    right: -5%;
  }
}

@media (max-width: 480px) {
  .flow-hero-arc {
    display: none;
  }
}

/* Story Section */
.story-section {
  padding: 8rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.story-title {
  position: sticky;
  top: 150px;
}

.story-title h2 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.story-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), transparent);
  border-radius: 2px;
}

.story-content p {
  font-size: 1.35rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.story-content .story-lead {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 3rem;
}

@media (max-width: 992px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .story-title {
    position: relative;
    top: 0;
  }
  .story-title h2 {
    font-size: 3.5rem;
  }
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Sticky Scroll Reveal (Metodo Section)
   ========================================================================== */
.sticky-scroll-section {
  padding: 6rem 5%;
  background-color: #050505;
  color: var(--text-light);
  border-radius: 0;
  max-width: 100%;
  margin: 0;
  position: relative;
  overflow: clip;
  z-index: 1;
  transition: background-color 0.8s ease;
  will-change: background-color;
  transform: translateZ(0);
}

.sticky-scroll-header {
  text-align: center;
  margin-bottom: 4rem;
}

.sticky-scroll-header h2 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.sticky-scroll-header p {
  font-size: 1.4rem;
  color: var(--text-light-muted);
}

.sticky-scroll-container {
  display: flex;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

/* Left column: scrollable text */
.sticky-scroll-text {
  flex: 1;
  padding: 2rem 0;
}

.sticky-scroll-item {
  padding: 6rem 0;
  opacity: 0.25;
  transition: opacity 0.5s ease;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sticky-scroll-item.active {
  opacity: 1;
}

.sticky-scroll-item h3 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: var(--text-light);
}

.sticky-scroll-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light-muted);
  max-width: 480px;
}

/* Right column: sticky visual */
.sticky-scroll-visual {
  flex: 1;
  position: sticky;
  top: calc(50vh - 175px);
  height: 350px;
  align-self: flex-start;
  margin-top: calc(30vh - 175px + 2rem);
}

.sticky-scroll-card {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.sticky-scroll-card.active {
  opacity: 1;
}

.sticky-visual-gradient {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  position: relative;
}

.sticky-visual-number {
  font-family: var(--font-serif);
  font-size: 7rem;
  font-weight: 400;
  color: rgba(255, 255, 237, 0.2);
  line-height: 1;
}

.sticky-visual-label {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 237, 0.9);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .sticky-scroll-container {
    flex-direction: column;
    gap: 2rem;
  }

  .sticky-scroll-visual {
    position: relative;
    top: auto;
    height: 250px;
    order: -1;
  }

  .sticky-scroll-item {
    min-height: auto;
    padding: 2rem 0;
  }
}

/* Timeline Section (Premium) */
.timeline-section {
  position: relative;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* The central glowing line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 237, 0.05);
  transform: translateX(-50%);
}

.timeline-line-fill {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, #00d2ff, #0066ff);
  transform: translateX(-50%);
  height: 0%;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
  z-index: 1;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
}

/* Glowing Dots */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: var(--text-main);
  border: 3px solid var(--bg-color);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 237, 0.05);
  z-index: 2;
  transition: all 0.3s ease;
}

.timeline-item.active .timeline-dot {
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.8), 0 0 0 6px rgba(0, 210, 255, 0.2);
  background: #00d2ff;
  border-color: #00d2ff;
}

/* Content Box */
.timeline-content {
  width: calc(50% - 40px);
  background: rgba(255, 255, 237, 0.02);
  border: 1px solid rgba(255, 255, 237, 0.05);
  padding: 2.5rem;
  border-radius: 20px;
  position: relative;
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.timeline-item.active .timeline-content {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item.active:hover .timeline-content {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 237, 0.2);
}

.timeline-item:nth-child(odd) .timeline-content {
  text-align: left;
}

.timeline-item:nth-child(even) .timeline-content {
  text-align: right;
}

/* Huge background step numbers */
.step-number {
  position: absolute;
  top: -25px;
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255, 255, 237, 0.03);
  z-index: -1;
  font-family: var(--font-serif);
  line-height: 1;
}

.timeline-item:nth-child(odd) .step-number {
  left: 10px;
}

.timeline-item:nth-child(even) .step-number {
  right: 10px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}

.timeline-content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Mobile responsive timeline */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }
  
  .timeline-item {
    justify-content: flex-end;
  }
  
  .timeline-item:nth-child(even) {
    justify-content: flex-end;
  }
  
  .timeline-dot {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 70px);
    text-align: left !important;
  }
  
  .timeline-item:nth-child(even) .step-number {
    right: auto;
    left: 10px;
  }
}

/* ==========================================================================
   Tag Novità (Post-it appeso)
   ========================================================================== */
.tag-novita-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.tag-novita {
  position: relative;
  display: inline-block;
  padding: 10px 30px;
  background: #111; /* Dark background to make neon pop */
  color: #00d2ff;
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: 1.3rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 4px 6px 15px rgba(0,0,0,0.5);
  border: 1px solid rgba(0, 210, 255, 0.3);
  border-bottom-right-radius: 20px 5px; /* Angolo leggermente piegato come un post-it */
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.6), 0 0 20px rgba(0, 210, 255, 0.4);
}

/* Piece of tape */
.tag-novita::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(4deg);
  width: 45px;
  height: 16px;
  background: rgba(255, 255, 237, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border-radius: 2px;
}

/* Parallax Strip */
.parallax-strip {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../img/team-minimal.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  text-align: center;
  overflow: hidden;
  margin: 0;
}

.parallax-strip .parallax-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.parallax-strip .parallax-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.parallax-strip h2 {
  font-size: 5rem;
  color: #ffffed;
  margin: 0;
  letter-spacing: -0.02em;
}

.why-us-content {
  background-color: var(--bg-color);
  padding: 6rem 5%;
}

.why-us-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.why-us-container > p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 300;
  max-width: 900px;
  margin: 0 auto;
}

.why-us-container strong {
  font-weight: 600;
  color: var(--primary);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 5rem;
  text-align: left;
}

.why-us-item {
  padding: 3rem 2.5rem;
  background: var(--bg-color-alt);
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-us-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  background: var(--surface);
}

.why-us-icon {
  font-size: 3rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1;
}

.why-us-item h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
  font-weight: 600;
}

.why-us-item p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
}

.why-us-cta {
  margin-top: 6rem;
  display: flex;
  justify-content: center;
}

.cta-box {
  background: #050505;
  color: var(--bg-color);
  padding: 4rem 3rem;
  border-radius: 30px;
  text-align: center;
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-box::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(220, 80, 50, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 70% 30%, rgba(120, 50, 200, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 50% 80%, rgba(0, 100, 255, 0.1) 0%, transparent 70%);
  /* filter: blur(80px); rimosso per migliorare le performance (evita il lag) */
  z-index: -1;
  pointer-events: none;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary);
  z-index: 2;
}

.cta-box h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--bg-color);
}

.cta-box p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  max-width: 600px;
  margin: 0;
  color: var(--bg-color);
}

.cta-box .btn {
  margin-top: 1rem;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.cta-box .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

@media (max-width: 992px) {
  .why-us-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* Companies Section */
.companies-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 6rem 2rem;
}

.companies-header {
  text-align: center;
  max-width: 600px;
}

.companies-header p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.companies-grid {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.company-card {
  width: 100%;
  max-width: 18rem; /* 72 * 0.25rem = 18rem */
  transition: transform 0.3s ease;
}

.company-card:hover {
  transform: translateY(-0.125rem);
}

.company-card img {
  width: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  display: block;
}

.company-card h3 {
  font-size: 1rem;
  color: var(--text-main);
  font-weight: 500;
  margin-top: 0.75rem;
  font-family: var(--font-sans);
}

.company-card p {
  font-size: 0.75rem;
  color: var(--tech-blue);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Text Reveal Scroll Effect */
.text-reveal-scroll {
    background: linear-gradient(
        to bottom,
        #1a1a1a 0%,
        #1a1a1a calc(var(--reveal-progress, 0%) - 15%),
        rgba(26, 26, 26, 0.05) calc(var(--reveal-progress, 0%) + 15%),
        rgba(26, 26, 26, 0.05) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
    will-change: background;
}

/* ==========================================================================
   Recent Projects Section (Sticky Title Layout)
   ========================================================================== */
.recent-projects-section {
    padding: 8rem 5%;
    background-color: var(--bg-light);
    position: relative;
}

.recent-projects-container {
    display: grid;
    grid-template-columns: 1fr 350px 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    align-items: flex-start;
}

.projects-col {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

/* Stagger right column */
.right-col {
    margin-top: 8rem;
}

.center-col {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.sticky-title-wrapper {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.sticky-title-wrapper h2 {
    font-size: 5rem;
    font-family: var(--font-serif);
    line-height: 1.1;
    color: var(--text-dark);
}

.scroll-down-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark-muted);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.arrow-down-icon {
    width: 28px;
    height: 28px;
    color: var(--tech-blue);
}

/* Project Cards */
.project-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    pointer-events: auto;
}

.project-image {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #e0e0e0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover .project-image {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

.project-card h3 {
    font-size: 1.8rem;
    font-family: var(--font-sans);
    margin: 0;
    color: var(--text-dark);
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-dark-muted);
    margin: 0;
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .recent-projects-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .center-col {
        position: relative;
        height: auto;
        grid-column: 1 / -1;
        margin-bottom: 4rem;
    }
    
    .sticky-title-wrapper h2 {
        font-size: 3rem;
    }
    
    .right-col {
        margin-top: 4rem;
    }
}

@media (max-width: 768px) {
    .recent-projects-container {
        grid-template-columns: 1fr;
    }
    
    .right-col {
        margin-top: 0;
    }
    
    .projects-col {
        gap: 4rem;
    }
}

/* ==========================================================================
   Project Modal
   ========================================================================== */
.project-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Sfondo scuro semitrasparente invece del blur pesante */
}

.project-modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.98); /* Quasi solido per non aver bisogno del blur */
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 20px;
    overflow-y: auto;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.project-modal.active .project-modal-content {
    transform: translateY(0);
}

.project-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    z-index: 100;
    transition: background 0.3s ease, color 0.3s ease;
}

.project-modal-close:hover {
    background: var(--tech-blue);
    color: white;
}

.project-modal-body {
    padding: 3rem;
}

.modal-project-image,
.modal-project-video {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-project-video {
    background: #000; /* Per i video è meglio avere uno sfondo nero mentre caricano */
}

.project-modal-body h2 {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.project-modal-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .project-modal-body {
        padding: 2rem;
    }
    .project-modal-body h2 {
        font-size: 2rem;
    }
}

/* -----------------------------------------------------------
   Bento Chat Animation (Smart Auto-Reply)
----------------------------------------------------------- */
.bento-chat-animation {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111, #1a1a1a);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.chat-window {
  width: 95%;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.chat-msg {
  padding: 14px 20px;
  border-radius: 18px;
  font-size: 1.15rem;
  line-height: 1.4;
  max-width: 90%;
  opacity: 0;
  animation-fill-mode: forwards;
}

.chat-msg.incoming {
  background: #333;
  color: #eee;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  animation: msg-in 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-msg.outgoing {
  background: var(--tech-blue, #2386c8);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation: msg-out 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-typing {
  align-self: flex-start;
  background: #333;
  padding: 14px 20px;
  border-radius: 18px;
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  animation: typing-appear 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.typing-dots {
  display: flex;
  gap: 4px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  background: #aaa;
  border-radius: 50%;
  animation: dot-bounce 1.4s infinite ease-in-out both;
}
.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.typing-timer {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #777;
  position: relative;
  overflow: hidden;
}
.typing-timer::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: #fff;
  animation: fill-up 8s infinite linear;
}

@keyframes msg-in {
  0%, 5% { opacity: 0; transform: translateY(-10px) scale(0.95); }
  10%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  95%, 100% { opacity: 0; transform: translateY(-10px) scale(0.95); }
}

@keyframes typing-appear {
  0%, 15% { opacity: 0; transform: translateY(10px) scale(0.95); }
  20%, 45% { opacity: 1; transform: translateY(0) scale(1); }
  50%, 100% { opacity: 0; transform: translateY(10px) scale(0.95); }
}

@keyframes fill-up {
  0%, 20% { height: 0%; }
  45% { height: 100%; }
  50%, 100% { height: 0%; }
}

@keyframes dot-bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-3px); }
}

@keyframes msg-out {
  0%, 50% { opacity: 0; transform: translateY(10px) scale(0.95); }
  55%, 90% { opacity: 1; transform: translateY(0) scale(1); }
  95%, 100% { opacity: 0; transform: translateY(10px) scale(0.95); }
}

/* -----------------------------------------------------------
   Bento Bulk Animation (Bulk Upload)
----------------------------------------------------------- */
.bento-bulk-animation {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(135deg, #121212, #1f1f1f);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
}

.bulk-drop-zone {
  position: absolute;
  width: 130px;
  height: 130px;
  border: 2px dashed rgba(255,255,255,0.3);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255,255,255,0.02);
  animation: drop-zone-fade 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.bulk-cards {
  position: absolute;
  width: 150px;
  height: 150px;
  z-index: 5;
  animation: cards-drag-drop 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.bulk-card {
  position: absolute;
  width: 55px;
  height: 65px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  top: 42px;
  left: 47px;
}

/* Initial stacked transforms & Grid transforms */
.bulk-card:nth-child(1) { animation-name: card-1; z-index: 4; }
.bulk-card:nth-child(2) { animation-name: card-2; z-index: 3; }
.bulk-card:nth-child(3) { animation-name: card-3; z-index: 2; }
.bulk-card:nth-child(4) { animation-name: card-4; z-index: 1; }

.bulk-check {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #22c55e;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  animation: check-pop 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.bulk-confetti {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}
.bulk-confetti span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  top: 50%;
  left: 50%;
}
.bulk-confetti span:nth-child(1) { background: #ff007a; animation: confetti-1 8s infinite; }
.bulk-confetti span:nth-child(2) { background: #00ffff; animation: confetti-2 8s infinite; }
.bulk-confetti span:nth-child(3) { background: #ffdb58; animation: confetti-3 8s infinite; }
.bulk-confetti span:nth-child(4) { background: #22c55e; animation: confetti-4 8s infinite; }

/* Animations */
@keyframes cards-drag-drop {
  0%, 10% { transform: translate(-150px, -50px) scale(1); opacity: 0;} /* Outside */
  15%, 35% { transform: translate(0, 0) scale(1); opacity: 1;} /* Dragged into drop zone */
  40%, 85% { transform: translate(0, 0) scale(1); opacity: 1;} /* Snaps to grid */
  95%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0; } /* Leaves */
}

/* -----------------------------------------------------------
   Bento Training Animation (System Prompt)
----------------------------------------------------------- */
.bento-training-animation {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111, #181818);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  gap: 30px;
}

.training-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-brain {
  font-size: 3.5rem;
  animation: brain-glow 8s infinite ease-in-out;
  border-radius: 50%;
  padding: 10px;
  background: rgba(255,255,255,0.02);
}

.ai-lock {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 1.2rem;
  background: #2a2a2a;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #555;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  animation: lock-open 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.training-sliders {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.slider-label {
  font-size: 0.65rem;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.slider-track {
  width: 90px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  position: relative;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255,255,255,0.8);
  transform: translateY(-50%);
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

.slider-thumb.s1 { animation-name: slider-move-1; }
.slider-thumb.s2 { animation-name: slider-move-2; }
.slider-thumb.s3 { animation-name: slider-move-3; }

/* Animations */
@keyframes lock-open {
  0%, 15% { opacity: 1; transform: scale(1) translateY(0); }
  18% { opacity: 1; transform: scale(1.2) translateY(-2px) rotate(-15deg); }
  22% { opacity: 1; transform: scale(1.1) translateY(-4px) rotate(10deg); }
  28%, 100% { opacity: 0; transform: scale(0.5) translateY(-20px); }
}

@keyframes brain-glow {
  0%, 25% { box-shadow: 0 0 20px 5px rgba(0, 100, 255, 0.2); }
  35%, 55% { box-shadow: 0 0 40px 10px rgba(138, 43, 226, 0.4); }
  65%, 85% { box-shadow: 0 0 50px 15px rgba(255, 140, 0, 0.5); }
  95%, 100% { box-shadow: 0 0 20px 5px rgba(0, 100, 255, 0.2); }
}

@keyframes slider-move-1 {
  0%, 25% { left: 20%; }
  35%, 55% { left: 80%; background: #b266ff; }
  65%, 85% { left: 40%; background: #ffaa33; }
  95%, 100% { left: 20%; background: #fff; }
}

@keyframes slider-move-2 {
  0%, 25% { left: 80%; }
  35%, 55% { left: 30%; background: #b266ff; }
  65%, 85% { left: 90%; background: #ffaa33; }
  95%, 100% { left: 80%; background: #fff; }
}

@keyframes slider-move-3 {
  0%, 25% { left: 50%; }
  35%, 55% { left: 90%; background: #b266ff; }
  65%, 85% { left: 20%; background: #ffaa33; }
  95%, 100% { left: 50%; background: #fff; }
}

@keyframes drop-zone-fade {
  0%, 25% { opacity: 1; transform: scale(1); }
  35% { opacity: 1; transform: scale(1.05); border-color: #22c55e; color: #22c55e; }
  38%, 100% { opacity: 0; transform: scale(0.9); }
}

@keyframes check-pop {
  0%, 42% { opacity: 0; transform: scale(0); }
  45%, 85% { opacity: 1; transform: scale(1); }
  90%, 100% { opacity: 0; transform: scale(0); }
}

/* Center is top:42px, left:47px. */
@keyframes card-1 {
  0%, 35% { transform: translate(-10px, -6px) rotate(-8deg); }
  40%, 90% { transform: translate(-35px, -40px) rotate(0deg); }
  100% { transform: translate(-35px, -40px) rotate(0deg); }
}
@keyframes card-2 {
  0%, 35% { transform: translate(4px, 5px) rotate(5deg); }
  40%, 90% { transform: translate(35px, -40px) rotate(0deg); }
  100% { transform: translate(35px, -40px) rotate(0deg); }
}
@keyframes card-3 {
  0%, 35% { transform: translate(8px, -4px) rotate(-4deg); }
  40%, 90% { transform: translate(-35px, 40px) rotate(0deg); }
  100% { transform: translate(-35px, 40px) rotate(0deg); }
}
@keyframes card-4 {
  0%, 35% { transform: translate(-6px, 8px) rotate(6deg); }
  40%, 90% { transform: translate(35px, 40px) rotate(0deg); }
  100% { transform: translate(35px, 40px) rotate(0deg); }
}

@keyframes confetti-1 { 0%,35%{opacity:0;transform:translate(0,0) scale(0);} 38%{opacity:1;transform:translate(-50px,-50px) scale(1.5);} 45%,100%{opacity:0;transform:translate(-80px,-80px) scale(0);} }
@keyframes confetti-2 { 0%,35%{opacity:0;transform:translate(0,0) scale(0);} 38%{opacity:1;transform:translate(50px,-40px) scale(1.5);} 45%,100%{opacity:0;transform:translate(80px,-60px) scale(0);} }
@keyframes confetti-3 { 0%,35%{opacity:0;transform:translate(0,0) scale(0);} 38%{opacity:1;transform:translate(-40px,50px) scale(1.5);} 45%,100%{opacity:0;transform:translate(-60px,80px) scale(0);} }
@keyframes confetti-4 { 0%,35%{opacity:0;transform:translate(0,0) scale(0);} 38%{opacity:1;transform:translate(50px,50px) scale(1.5);} 45%,100%{opacity:0;transform:translate(80px,80px) scale(0);} }

/* -----------------------------------------------------------
   Bento Creation Animation (Multi-Model Studio)
----------------------------------------------------------- */
.bento-creation-animation {
  width: 100%;
  height: 260px;
  border-radius: 20px;
  background: linear-gradient(135deg, #111, #181818);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  gap: 15px;
}

.creation-canvas {
  width: 180px;
  height: 140px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
}

.magic-wand {
  position: absolute;
  font-size: 2rem;
  z-index: 10;
  opacity: 0;
  animation: wand-magic 8s infinite cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.5));
}

.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}
.particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffdb58;
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 8px #ffdb58;
  left: 30%;
  top: 40%;
}
.particles span:nth-child(1) { animation: particle-pop 8s infinite 1.8s; }
.particles span:nth-child(2) { animation: particle-pop 8s infinite 2.2s; left: 60%; top: 30%; background: #00ffff; box-shadow: 0 0 8px #00ffff; }
.particles span:nth-child(3) { animation: particle-pop 8s infinite 2.6s; left: 40%; top: 70%; background: #ff00ff; box-shadow: 0 0 8px #ff00ff; }

.canvas-image {
  position: absolute;
  inset: 4px;
  border-radius: 12px;
  background: linear-gradient(45deg, #ff007a, #7a00ff, #00ffff);
  background-size: 200% 200%;
  opacity: 0;
  animation: image-form 8s infinite ease-in-out;
}

.caption-bar {
  width: 180px;
  height: 28px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 12px;
  overflow: hidden;
}

.typewriter-text {
  font-size: 0.75rem;
  color: #fff;
  font-family: var(--font-mono, monospace);
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(255,255,255,0.7);
  width: 0;
  animation: typing-text 8s infinite steps(25, end);
}
.typewriter-text::before {
  content: "Un tramonto cyberpunk...";
}

@keyframes wand-magic {
  0%, 15% { opacity: 0; transform: translate(-80px, 40px) rotate(-45deg) scale(0.5); }
  20% { opacity: 1; transform: translate(-40px, -20px) rotate(0deg) scale(1.2); }
  30% { transform: translate(30px, -30px) rotate(45deg) scale(1); }
  40% { transform: translate(40px, 30px) rotate(90deg) scale(1); }
  50% { opacity: 1; transform: translate(80px, 0) rotate(135deg) scale(1); }
  55%, 100% { opacity: 0; transform: translate(120px, -20px) rotate(180deg) scale(0.5); }
}

@keyframes particle-pop {
  0%, 10% { opacity: 0; transform: scale(0) translate(0,0); }
  15% { opacity: 1; transform: scale(1.5) translate(15px, -15px); }
  25%, 100% { opacity: 0; transform: scale(0) translate(30px, -30px); }
}

@keyframes image-form {
  0%, 35% { opacity: 0; filter: blur(10px); background-position: 0% 50%; }
  45% { opacity: 1; filter: blur(0); }
  50%, 85% { opacity: 1; filter: blur(0); background-position: 100% 50%; }
  95%, 100% { opacity: 0; filter: blur(10px); background-position: 0% 50%; }
}

@keyframes typing-text {
  0%, 45% { width: 0; opacity: 0; border-right-color: transparent; }
  46% { opacity: 1; border-right-color: rgba(255,255,255,0.7); }
  65%, 85% { width: 100%; opacity: 1; border-right-color: transparent; }
  95%, 100% { width: 0; opacity: 0; }
}

/* -----------------------------------------------------------
   Team AI Animations
----------------------------------------------------------- */

/* Graphic Designer */
.team-animation.graphic-designer {
  position: relative;
  width: 100%;
  height: 100%;
}

.designer-prompt-bar {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 30px;
  background: rgba(0,0,0,0.8);
  border-radius: 15px;
  display: flex;
  align-items: center;
  padding: 0 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 10;
}

.prompt-typing::after {
  content: 'Crea una grafica...';
  color: white;
  font-size: 0.8rem;
  font-family: monospace;
  animation: typingPrompt 6s infinite steps(20);
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 2px solid white;
}

@keyframes typingPrompt {
  0%, 10% { width: 0; }
  30%, 80% { width: 140px; }
  90%, 100% { width: 0; }
}

.designer-canvas-rich {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 2px dashed #ddd;
}

.canvas-skeleton {
  position: absolute;
  width: 100%;
  height: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.sk-circle { width: 40px; height: 40px; border-radius: 50%; background: #f0f0f0; }
.sk-line { width: 80%; height: 8px; background: #f0f0f0; border-radius: 4px; }
.sk-line.short { width: 50%; }

.canvas-image {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  font-size: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
  opacity: 0;
  animation: showImage 6s infinite;
}

.canvas-reveal-sweep {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: white;
  transform-origin: left;
  animation: sweepReveal 6s infinite;
}

.magic-brush {
  position: absolute;
  font-size: 2.5rem;
  z-index: 5;
  top: -10px; left: -10px;
  animation: brushMagic 6s infinite;
}

.sparkle {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0;
  z-index: 20;
}
.sparkle.s1 { top: 20%; left: 10%; animation: popSparkle 6s infinite 2.8s; }
.sparkle.s2 { bottom: 15%; right: 15%; animation: popSparkle 6s infinite 3.1s; }
.sparkle.s3 { top: 30%; right: 5%; font-size: 1rem; animation: popSparkle 6s infinite 2.9s; }

@keyframes sweepReveal {
  0%, 40% { transform: scaleX(1); opacity: 1; }
  50%, 80% { transform: scaleX(0); opacity: 1; }
  90%, 100% { transform: scaleX(0); opacity: 0; }
}

@keyframes showImage {
  0%, 40% { opacity: 0; }
  45%, 80% { opacity: 1; }
  90%, 100% { opacity: 0; }
}

@keyframes brushMagic {
  0%, 20% { transform: translate(-30px, -30px) rotate(-45deg); opacity: 0; }
  30% { transform: translate(30px, 30px) rotate(0deg); opacity: 1; }
  40% { transform: translate(80px, 80px) rotate(45deg); opacity: 1; }
  50% { transform: translate(150px, 150px) rotate(90deg); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes popSparkle {
  0%, 80% { transform: scale(0) rotate(0deg); opacity: 0; }
  10% { transform: scale(1.2) rotate(45deg); opacity: 1; }
  20% { transform: scale(0) rotate(90deg); opacity: 0; }
  100% { opacity: 0; }
}

/* Social Media Manager Rich */
.team-animation.social-manager-rich {
  position: relative;
  width: 100%;
  height: 100%;
}

.smm-platform {
  position: absolute;
  font-size: 1.5rem;
  background: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  opacity: 0.5;
  filter: grayscale(1);
  z-index: 5;
}

.smm-platform.p-ig { top: 15%; left: 10%; animation: lightUpIg 8s infinite; }
.smm-platform.p-in { bottom: 20%; right: 10%; animation: lightUpIn 8s infinite; }

.smm-dashboard {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
}

.smm-header {
  background: #f8fafc;
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.smm-title {
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  text-align: center;
}

.smm-progress-bar {
  width: 100%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.smm-progress-fill {
  width: 0%;
  height: 100%;
  background: #3b82f6;
  animation: progressFill 8s infinite;
}

.smm-calendar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 10px;
}

.smm-day {
  background: #f1f5f9;
  border-radius: 6px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.smm-post {
  width: 100%;
  height: 100%;
  background: #cbd5e1;
  opacity: 0;
  transform: scale(0.5);
}

.smm-post.c1 { background: #fca5a5; animation: postPop 8s infinite 1s; }
.smm-post.c2 { background: #93c5fd; animation: postPop 8s infinite 2.5s; }
.smm-post.c3 { background: #86efac; animation: postPop 8s infinite 4s; }
.smm-post.c4 { background: #fcd34d; animation: postPop 8s infinite 5.5s; }

.smm-rocket {
  position: absolute;
  font-size: 3rem;
  bottom: -20px;
  left: -20px;
  opacity: 0;
  z-index: 20;
  animation: rocketFly 8s infinite;
}

@keyframes progressFill {
  0%, 5% { width: 0%; }
  15%, 20% { width: 25%; }
  30%, 35% { width: 50%; }
  45%, 50% { width: 75%; }
  60%, 90% { width: 100%; }
  95%, 100% { width: 0%; }
}

@keyframes postPop {
  0% { opacity: 0; transform: scale(0.5); }
  10%, 90% { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(0.5); }
}

@keyframes lightUpIg {
  0%, 12% { opacity: 0.5; filter: grayscale(1); transform: scale(1); }
  15%, 90% { opacity: 1; filter: grayscale(0); transform: scale(1.2); box-shadow: 0 5px 15px rgba(236,72,153,0.3); }
  95%, 100% { opacity: 0.5; filter: grayscale(1); transform: scale(1); }
}

@keyframes lightUpIn {
  0%, 42% { opacity: 0.5; filter: grayscale(1); transform: scale(1); }
  45%, 90% { opacity: 1; filter: grayscale(0); transform: scale(1.2); box-shadow: 0 5px 15px rgba(14,118,168,0.3); }
  95%, 100% { opacity: 0.5; filter: grayscale(1); transform: scale(1); }
}

@keyframes rocketFly {
  0%, 65% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  70% { opacity: 1; transform: translate(40px, -40px) scale(1); }
  85% { opacity: 1; transform: translate(150px, -150px) scale(1.5); }
  86%, 100% { opacity: 0; transform: translate(200px, -200px) scale(0.5); }
}

/* Copywriter */
.team-animation.copywriter {
  position: relative;
  width: 100%;
  height: 100%;
}
.typewriter-paper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 130px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.typewriter-paper .line {
  height: 6px;
  background: #e2e8f0;
  border-radius: 4px;
  width: 0%;
}
.typewriter-paper .line:nth-child(1) { animation: typeLine 4s infinite 0.2s; }
.typewriter-paper .line:nth-child(2) { animation: typeLine 4s infinite 1.2s; }
.typewriter-paper .line.short { animation: typeLineShort 4s infinite 2.2s; }
.pen {
  position: absolute;
  font-size: 2.5rem;
  bottom: 10px;
  right: -10px;
  animation: penWrite 4s infinite;
}

@keyframes typeLine {
  0% { width: 0%; }
  15%, 90% { width: 100%; }
  100% { width: 0%; }
}
@keyframes typeLineShort {
  0% { width: 0%; }
  15%, 90% { width: 60%; }
  100% { width: 0%; }
}
@keyframes penWrite {
  0% { transform: translate(10px, -80px); }
  15% { transform: translate(40px, -80px); }
  25% { transform: translate(10px, -55px); }
  40% { transform: translate(40px, -55px); }
  50% { transform: translate(10px, -30px); }
  65% { transform: translate(25px, -30px); }
  80%, 100% { transform: translate(40px, 20px); }
}

/* PR Manager Rich */
.team-animation.pr-manager-rich {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-phone-frame {
  width: 180px;
  height: 210px;
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 4px solid #fff;
}

.pr-phone-header {
  background: #e2e8f0;
  padding: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #475569;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
}

.pr-status-dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: blinkDot 1s infinite;
}

@keyframes blinkDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.pr-chat-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.pr-msg {
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0;
  position: relative;
  width: fit-content;
  max-width: 90%;
}

.pr-msg.user {
  background: white;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pr-msg.ai {
  background: #3b82f6;
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 5px rgba(59,130,246,0.2);
}

.pr-msg.ai.shield-msg {
  background: #ef4444;
  position: absolute;
  top: 10px; left: 10px;
}

/* Animations timeline (8s loop) */
.bad-msg { animation: badMsgFlow 8s infinite; }
.shield-msg { animation: shieldMsgFlow 8s infinite; }
.good-msg { animation: goodMsgFlow 8s infinite; }
.reply-msg { animation: replyMsgFlow 8s infinite; }

.pr-scanner {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  opacity: 0;
  z-index: 10;
}

.pr-scanner.red {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: scanRed 8s infinite;
}

.pr-scanner.green {
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: scanGreen 8s infinite;
}

.pr-typing {
  background: #e2e8f0;
  padding: 6px 10px;
  border-radius: 10px;
  border-bottom-left-radius: 2px;
  display: flex;
  gap: 3px;
  width: fit-content;
  opacity: 0;
  animation: typingFlow 8s infinite;
}

.pr-typing span {
  width: 4px;
  height: 4px;
  background: #94a3b8;
  border-radius: 50%;
  animation: bounceDot 1.4s infinite ease-in-out both;
}
.pr-typing span:nth-child(1) { animation-delay: -0.32s; }
.pr-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

@keyframes badMsgFlow {
  0% { opacity: 0; transform: translateY(10px); }
  5%, 25% { opacity: 1; transform: translateY(0); }
  26%, 90% { opacity: 0; }
  91%, 100% { opacity: 0; }
}

@keyframes scanRed {
  0%, 15% { opacity: 0; top: 0; }
  18% { opacity: 1; top: 10px; }
  25% { opacity: 1; top: 35px; }
  28%, 100% { opacity: 0; top: 35px; }
}

@keyframes shieldMsgFlow {
  0%, 26% { opacity: 0; transform: scale(0.8); }
  30%, 90% { opacity: 1; transform: scale(1); }
  91%, 100% { opacity: 0; }
}

@keyframes goodMsgFlow {
  0%, 45% { opacity: 0; transform: translateY(10px); }
  50%, 90% { opacity: 1; transform: translateY(0); }
  91%, 100% { opacity: 0; }
}

@keyframes scanGreen {
  0%, 52% { opacity: 0; top: 40px; }
  55% { opacity: 1; top: 50px; }
  62% { opacity: 1; top: 75px; }
  65%, 100% { opacity: 0; top: 75px; }
}

@keyframes typingFlow {
  0%, 65% { opacity: 0; }
  66%, 75% { opacity: 1; }
  76%, 100% { opacity: 0; }
}

@keyframes replyMsgFlow {
  0%, 75% { opacity: 0; transform: translateY(10px); }
  78%, 90% { opacity: 1; transform: translateY(0); }
  91%, 100% { opacity: 0; }
}
