@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;1,400;1,500&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #f4f4f0;
  --bg-color-alt: #e9e9e5;
  --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: 'Figtree', sans-serif;
  --font-serif: 'EB Garamond', 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, 255, 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);
  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, 255, 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);
}

.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-serif);
  font-style: italic;
  font-weight: 400;
}

.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: 12rem 5% 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 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;
}

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

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

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  background: #1a1a1a;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.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, #1a1a1a, transparent);
}

.marquee-container::after {
  right: 0;
  background: linear-gradient(to left, #1a1a1a, transparent);
}

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

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

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

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

/* 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: 4.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.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,255,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;
}

.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: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 1.5rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.bento-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  background: rgba(255, 255, 255, 0.6);
}

.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: var(--text-main);
}

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

@media (min-width: 768px) {
  .bento-card:nth-child(1),
  .bento-card:nth-child(2) {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento-card:nth-child(1) {
    grid-column: span 2;
  }
  .bento-card:nth-child(2) {
    grid-column: span 1;
  }
}

/* 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.4) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(120, 50, 200, 0.4) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(0, 100, 255, 0.3) 0%, transparent 60%);
  filter: blur(100px);
  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: #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: start;
}

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

.review-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 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: #fff;
}

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

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

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

/* Blog */
.blog {
  padding: 6rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.blog h2 {
  font-size: 3.5rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.blog-bubble {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 30px;
  padding: 2.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.blog-bubble:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.blog-bubble::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 50px;
  border-width: 20px 20px 0 0;
  border-style: solid;
  border-color: var(--surface-border) transparent transparent transparent;
}

.blog-bubble::before {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 51px;
  border-width: 18px 18px 0 0;
  border-style: solid;
  border-color: var(--surface) transparent transparent transparent;
  z-index: 1;
}

.blog-bubble .date {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-bubble h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

/* 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, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 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, 255, 0.3);
  background: rgba(255, 255, 255, 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,255,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, 255, 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,255,0.05);
  border-radius: 20px;
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(255,255,255,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,255,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;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
  nav ul {
    gap: 1rem;
  }
  .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,255,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,255,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: blur(2px) saturate(1.2);
  transform: scale(1.05);
  will-change: transform;
}

.flow-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg,
      rgba(80, 40, 120, 0.6) 0%,
      rgba(140, 60, 90, 0.5) 30%,
      rgba(30, 20, 60, 0.7) 70%,
      rgba(10, 10, 30, 0.8) 100%
    );
}

/* 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, 255, 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: #fff;
  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: 6rem 5%;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.story-section h2 {
  font-size: 3.5rem;
  margin-bottom: 2.5rem;
}

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

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

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(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, 255, 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, 255, 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, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 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, 255, 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, 255, 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, 255, 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;
}
