@charset "UTF-8";

/* =========================================================================
   SINTELOPS - STRIPE DESIGN SYSTEM (from DESIGN.md)
   ========================================================================= */

:root {
  /* Colors - Stripe System */
  --stripe-purple: #533afd;
  --stripe-purple-hover: #4434d4;
  --stripe-purple-light: #b9b9f9;
  
  --stripe-navy: #061b31;        /* Primary heading */
  --stripe-brand-dark: #1c1e54;  /* Dark brand sections */
  
  --stripe-body: #64748d;        /* Standard text */
  --stripe-label: #273951;       /* Secondary headings/labels */
  
  --stripe-bg: #ffffff;
  --stripe-bg-alt: #f6f9fc;
  
  /* Accents */
  --stripe-ruby: #ea2261;
  --stripe-magenta: #f96bee;
  --stripe-success: #15be53;
  --stripe-success-text: #108c3d;

  /* Borders */
  --border-default: #e5edf5;
  --border-dark: rgba(255, 255, 255, 0.1);

  /* Shadows */
  --shadow-ambient: rgba(23, 23, 23, 0.06) 0px 3px 6px;
  --shadow-standard: rgba(50, 50, 93, 0.25) 0px 30px 45px -30px, rgba(0, 0, 0, 0.1) 0px 18px 36px -18px;
  --shadow-deep: rgba(3, 3, 39, 0.25) 0px 14px 21px -14px, rgba(0, 0, 0, 0.1) 0px 8px 17px -8px;

  /* Layout */
  --section-padding: 96px;
  --max-width: 1080px;
}

/* =========================================================================
   GLOBAL RESET & BASICS
   ========================================================================= */

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

body {
  font-family: "sohne-var", "SF Pro Display", -apple-system, system-ui, sans-serif;
  font-feature-settings: "ss01";
  background-color: var(--stripe-bg);
  color: var(--stripe-body);
  font-size: 16px;
  line-height: 1.4;
  font-weight: 300;
  overflow-x: hidden;
}

a {
  color: var(--stripe-purple);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--stripe-purple-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================================================
   FAQ / ACCORDION UI
   ========================================================================= */

details.faq-item {
  background: var(--stripe-bg);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-ambient);
  transition: box-shadow 0.3s ease;
}

details.faq-item:hover {
  box-shadow: var(--shadow-standard);
}

details.faq-item summary {
  padding: 24px;
  font-size: 20px;
  font-weight: 300;
  color: var(--stripe-navy);
  cursor: pointer;
  list-style: none; /* Rimuove il triangolo di default (Chrome/Firefox) */
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

details.faq-item summary::-webkit-details-marker {
  display: none; /* Rimuove il triangolo di default su Safari */
}

details.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--stripe-purple);
  font-weight: 300;
  transition: transform 0.3s ease;
}

details.faq-item[open] summary::after {
  transform: rotate(45deg);
}

details.faq-item[open] summary {
  border-bottom: 1px solid var(--border-default);
}

.faq-content {
  padding: 24px;
  font-size: 16px;
  color: var(--stripe-body);
  line-height: 1.5;
  background: var(--stripe-bg-alt);
}

.faq-content p {
  margin-bottom: 12px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

/* =========================================================================
   TYPOGRAPHY
   ========================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 300;
  color: var(--stripe-navy);
  font-feature-settings: "ss01";
}

.headline-super {
  font-size: 56px;
  line-height: 1.03;
  letter-spacing: -1.4px;
}

.section-title {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.96px;
  margin-bottom: 32px;
}

.section-title-light {
  font-size: 48px;
  line-height: 1.15;
  letter-spacing: -0.96px;
  margin-bottom: 32px;
  color: #ffffff;
}

.section-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--stripe-purple);
  margin-bottom: 16px;
  display: block;
}

.section-label-light {
  font-size: 14px;
  font-weight: 400;
  color: var(--stripe-magenta);
  margin-bottom: 16px;
  display: block;
}

.lead {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  color: var(--stripe-body);
  max-width: 720px;
  margin-bottom: 24px;
}

.lead-light {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  color: rgba(255,255,255,0.7);
  max-width: 720px;
  margin-bottom: 24px;
}

/* Emphasized italic text (Hero) */
.headline-super em {
  font-style: normal;
  color: var(--stripe-ruby);
}

/* Tabular numbers */
.stat-num, .service-num, .timeline-num {
  font-feature-settings: "ss01", "tnum";
}

/* =========================================================================
   LAYOUT UTILS
   ========================================================================= */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

.section {
  padding: var(--section-padding) 0;
  background-color: var(--stripe-bg);
}

.section-alt {
  padding: var(--section-padding) 0;
  background-color: var(--stripe-brand-dark);
  color: #ffffff;
}

.section-light {
  padding: var(--section-padding) 0;
  background-color: var(--stripe-bg-alt);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: 0;
}

.divider-dark {
  border: none;
  border-top: 1px solid var(--border-dark);
  margin: 0;
}

/* =========================================================================
   UI COMPONENTS
   ========================================================================= */

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  font-feature-settings: "ss01";
}

.btn-primary {
  background-color: var(--stripe-purple);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--stripe-purple-hover);
}

.btn-gold {
  /* Refactored to Ghost/Outlined Stripe style */
  background-color: transparent;
  color: var(--stripe-purple) !important;
  border: 1px solid var(--stripe-purple-light);
}

.btn-gold:hover {
  background-color: rgba(83, 58, 253, 0.05);
}

.btn-light {
  background-color: rgba(255,255,255,0);
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.4);
}

.btn-light:hover {
  background-color: rgba(255,255,255,0.05);
}

/* NAVBAR */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
  padding: 0 40px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 6px 6px;
}

.nav-brand {
  font-weight: 500;
  font-size: 20px;
  color: var(--stripe-navy);
}

.nav-menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--stripe-navy);
}

.nav-link:hover, .nav-link.active {
  color: var(--stripe-purple);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--stripe-navy);
  font-size: 24px;
  cursor: pointer;
}

/* HERO SECTION */
.hero {
  background: var(--stripe-bg);
  color: var(--stripe-navy);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero .headline-super {
  color: var(--stripe-navy);
}

.hero-tagline {
  font-size: 18px;
  font-weight: 300;
  color: var(--stripe-body);
  max-width: 540px;
  line-height: 1.4;
  margin-top: 32px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 56px;
  padding-top: 48px;
  border-top: 1px solid var(--border-default);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 64px;
  font-weight: 300;
  color: var(--stripe-purple);
  line-height: 1;
  letter-spacing: -1.2px;
}

.stat-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--stripe-navy);
  margin-top: 8px;
}

/* SERVICES CARDS */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.service-card {
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 6px;
  border: 1px solid var(--border-default);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-ambient);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-standard);
}

.service-num {
  font-size: 26px;
  font-weight: 300;
  color: var(--stripe-label);
  line-height: 1;
  margin-bottom: 24px;
  display: block;
}

.service-title {
  font-size: 22px;
  font-weight: 300;
  color: var(--stripe-navy);
  margin-bottom: 16px;
  letter-spacing: -0.22px;
}

.service-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--stripe-body);
  line-height: 1.4;
  margin-bottom: 24px;
}

.service-bullets {
  list-style: none;
  border-top: 1px dashed var(--border-default);
  padding-top: 24px;
}

.service-bullets li {
  font-size: 14px;
  color: var(--stripe-body);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.4;
}

.service-bullets li::before {
  content: '•';
  color: var(--stripe-purple);
  position: absolute;
  left: 0;
}

/* OUTCOMES / RISULTATI */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.outcome-card {
  background: var(--stripe-brand-dark);
  padding: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-ambient);
  transition: all 0.3s ease;
}

.outcome-card:hover {
  box-shadow: var(--shadow-standard);
  border-color: rgba(255,255,255,0.2);
}

.outcome-icon {
  font-size: 22px;
  margin-bottom: 16px;
  display: block;
  color: var(--stripe-ruby);
  font-weight: 300;
}

.outcome-title {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 12px;
}

.outcome-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* TEAM CARDS */
.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.team-card {
  background: #ffffff;
  padding: 48px 40px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  box-shadow: var(--shadow-ambient);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-standard);
}

.team-initial {
  font-size: 32px;
  font-weight: 300;
  color: var(--stripe-navy);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}

.team-role-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--stripe-purple);
  margin-bottom: 24px;
  display: block;
}

.team-desc {
  font-size: 16px;
  font-weight: 300;
  color: var(--stripe-body);
  line-height: 1.4;
  border-top: 1px dashed var(--border-default);
  padding-top: 24px;
}

/* TIMELINE (Process) */
.timeline {
  display: flex;
  margin-top: 64px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px; right: 16px;
  height: 1px;
  background: var(--border-default);
}

.timeline-phase {
  flex: 1;
  padding-top: 48px;
  padding-right: 24px;
  position: relative;
}

.timeline-dot {
  position: absolute;
  top: 8px; left: 0;
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 1px solid var(--border-default);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border-default);
}

.timeline-dot.highlight {
  border-color: var(--stripe-purple);
}

.timeline-dot.highlight::after {
  background: var(--stripe-purple);
}

.timeline-num {
  font-size: 12px;
  font-weight: 400;
  color: var(--stripe-label);
  margin-bottom: 12px;
}

.timeline-title {
  font-size: 18px;
  font-weight: 300;
  color: var(--stripe-navy);
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--stripe-body);
  line-height: 1.4;
}

.badge-cliente {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  background: rgba(21,190,83,0.2);
  border: 1px solid rgba(21,190,83,0.4);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--stripe-success-text);
  font-weight: 300;
}

/* PERIMETER (Cosa NON Facciamo) */
.not-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--border-dark);
  border-radius: 6px;
}

.not-item {
  padding: 32px;
  border-bottom: 1px solid var(--border-dark);
  border-right: 1px solid var(--border-dark);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.not-item:nth-child(even) { border-right: none; }
.not-item:nth-last-child(-n+2) { border-bottom: none; }

.not-x {
  font-size: 14px;
  font-weight: 500;
  color: var(--stripe-ruby);
  flex-shrink: 0;
}

.not-text {
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

/* TECH LIST */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.tech-item {
  border-left: 2px solid var(--stripe-magenta);
  padding-left: 24px;
}

.tech-item-title {
  font-size: 18px;
  font-weight: 300;
  color: #ffffff;
  margin-bottom: 12px;
}

.tech-item-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* FORMS */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--stripe-label);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  font-family: inherit;
  font-size: 16px;
  background: var(--stripe-bg);
  color: var(--stripe-navy);
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--stripe-purple);
  box-shadow: 0 0 0 2px rgba(83, 58, 253, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* CTA & FOOTER */
.cta-box {
  background: var(--stripe-brand-dark);
  border-radius: 6px;
  padding: 64px 40px;
  text-align: center;
  margin-top: 48px;
  box-shadow: var(--shadow-standard);
}

.footer {
  background: var(--stripe-bg);
  color: var(--stripe-body);
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-default);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 64px;
}

.footer-brand {
  font-size: 24px;
  font-weight: 500;
  color: var(--stripe-navy);
  margin-bottom: 16px;
}

.footer-nav {
  display: flex;
  gap: 32px;
}

.footer-nav a {
  font-size: 14px;
  color: var(--stripe-body);
}

.footer-nav a:hover {
  color: var(--stripe-purple);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-default);
}

.footer-note {
  font-size: 12px;
  color: var(--stripe-body);
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 991px) {
  .outcomes-grid, .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hide-mobile { display: none !important; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--stripe-bg);
    flex-direction: column;
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-default);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: block;
  }

  .hero-stats {
    flex-direction: column;
    gap: 32px;
  }

  .services-grid, .team-grid, .not-grid {
    grid-template-columns: 1fr;
  }

  .not-item {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .not-item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border-dark);
  }
  .not-item:last-child {
    border-bottom: none;
  }

  .timeline {
    flex-direction: column;
  }

  .timeline::before {
    top: 0;
    left: 8px;
    width: 1px;
    height: 100%;
    right: auto;
  }

  .timeline-phase {
    padding-top: 0;
    padding-left: 48px;
    padding-bottom: 48px;
  }
  
  .timeline-dot {
    top: 0;
    left: 0;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-nav {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 576px) {
  .outcomes-grid, .tech-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 40px 0; }
  .headline-super { font-size: 32px; letter-spacing: normal; }
  .section-title, .section-title-light { font-size: 32px; letter-spacing: -0.64px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
}
