/* Enterprise Page Specific Styles - uses design tokens from main style.css */

/* Section spacing utility class */
.alia-section-spacing {
  margin-top: var(--space-7xl);
}
.enterprise-hero.alia-section-spacing{
  margin-top: var(--space-3xl); /* o un valore fisso: 32px */
}


/* Enterprise Box Section - Already defined in style.css with design tokens */

.enterprise-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 165, 207, 0.25);
}

.enterprise-box-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--light-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--space-2xl);
    z-index: 2;
}

.enterprise-box-title {
    font-family: 'Satoshi', sans-serif;
    font-size: var(--section-title-size);
    font-weight: var(--section-title-weight);
    color: white;
    line-height: 1.1;
    margin: 0;
    max-width: 70%;
    letter-spacing: var(--section-title-spacing);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.enterprise-box-arrow {
    position: absolute;
    top: 80%;
    right: var(--space-2xl);
    transform: translateY(-50%);
    width: var(--space-4xl);
    height: var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.enterprise-box-arrow:hover {
    transform: translateY(-50%) translateX(8px) scale(1.1);
}

.enterprise-box-arrow svg {
    transition: all 0.3s ease;
}

.enterprise-box-arrow:hover svg {
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.3));
}

.enterprise-box-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.enterprise-box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive Design for Enterprise Box */


/* Enterprise hero section */
.enterprise-hero {
  background: var(--light-bg);
  width: 100%;
  padding-top: calc(var(--space-3xl) * 2.5);
}

.enterprise-hero-container {
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
  padding: 0 36px;
}

.enterprise-hero-left {
  flex: 1 1 220px;
  padding-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.enterprise-logo {
  width: 170px;
  margin-bottom: 38px;
}

.enterprise-title {
  font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 450;
  color: #093651;
  margin: 0 0 28px 0;
  line-height: 1.07;
  letter-spacing: -1px;
}

.enterprise-gradient {
  background: linear-gradient(90deg, #00A5CF 0%, #6E46AE 52%, #F9423A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 450;
  display: inline-block;
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
}

.enterprise-desc {
  font-size: var(--body-text-size);
  color: #2A4251;
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.28;
}

.enterprise-btn-contact {
  display: inline-block;
  background: #00A5CF;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-family: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 450;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
}
.enterprise-btn-contact:hover {
  background: #0090B5;
}

.enterprise-hero-right {
  flex: 1 0 512px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 512px;
}

.enterprise-card {
  background: #fff;
  border-radius: 8px;
  width: 380px;
  height: 560px;
  min-width: 380px;
  min-height: 560px;
  box-shadow: 0 8px 44px 0 rgba(0, 162, 224, 0.09);
  padding: 46px 48px 40px 48px;
  transform: rotate(3.39deg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}


.enterprise-card-price {
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 400;
  color: #17394a;
  margin: 0 0 18px 0;
  letter-spacing: -0.8px;}

.enterprise-card-price-gradient {
  background: linear-gradient(90deg, #00A5CF 0%, #6E46AE 52%, #F9423A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 450;
  font-size: 35px;
  text-align: center;
  letter-spacing: -1.15px;
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
}

.enterprise-card-desc {
  color: #193D58;
  font-size: var(--body-text-size);
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.32;
}

.enterprise-card-list {
  list-style: none;
  padding: 0 0 0 0;
  margin: 0 0 46px 0;
  font-size: 1.13rem;
  color: #17394a;
}
.enterprise-card-list li {
  margin-bottom: 18px;
  position: relative;
  padding-left: 28px;
  font-size: 1.03rem;
}
.enterprise-card-list li:before {
     content: "";
      background-image: url('/static/img/check.svg');
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
      width: 16px;
      height: 16px;
  position: absolute;
  left: 0;
  top: 1;
    display: inline-block;
}

.info-icon {
  display: inline-block;
  color: #00A5CF;
  background: #EBFDFF;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
  margin-left: 3px;
  cursor: pointer;
  vertical-align: middle;
}






/* Section Foto Box */
.enterprise-section-pack {
  background: #E9FAFF;
  width: 100%;
  display: flex;
  justify-content: center;
}

.enterprise-pack-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 44px 0 rgba(0, 162, 224, 0.08);
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  /* Spaziatura generale con le altre sezioni gestita da .alia-section-spacing */
}

.enterprise-pack-content {
  flex: 1 1 0;
  padding: 62px 54px 54px 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.enterprise-pack-title {
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 450;
  color: #17394a;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
}

.enterprise-pack-desc {
  font-size: var(--body-text-size);
  color: #093651;
  font-weight: 400;
  line-height: 1.33;
  margin: 0;
}

.enterprise-pack-img-wrap {
  flex: 0 0 420px;
  display: flex;
  align-items: stretch;
  /* Attenzione! Serve overflow hidden per i corner perfetti */
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  overflow: hidden;
  background: #f6fbfe;
}
.enterprise-pack-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
}


/* Section Boxes */

.enterprise-features {
  background: #E9FAFF;
  padding-top: 0;
  padding-bottom: 0;
}

.enterprise-features-head {
  text-align: center;
  max-width: 1040px;
  margin:256px auto 32px auto;
}

.enterprise-features-title {
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 450;
  color: #15344E;
  margin: 0 auto;
  line-height: 1.09;
  letter-spacing: -1.2px;
}

.enterprise-features-title .gradient-text {
  font-size: inherit;
  font-weight: 450;
  /* Gradient come da Figma */
  background: linear-gradient(90deg, #00A5CF 0%, #6E46AE 48%, #F9423A 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  background-size: 200% 100%;
  animation: gradientFlow 3s ease-in-out infinite;
}

.enterprise-features-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px; /* SPACING tra box */
  max-width: 1120px;
  margin: 0 auto;
  justify-items: center;
  align-items: stretch;
}


.feature-box {
  background: rgb(255,255,255,0.16);
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 162, 224, 0.09);
  width: 192px;
  height: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: box-shadow 0.17s;
  padding: 24px 24px;
  position: relative;
}

.feature-box:hover {
     box-shadow: 0 12px 60px 0 rgba(0, 162, 224, 0.25);
      transform: translateY(-4px);
      background: #DFF7FF;
}

/* Hide the original img tags */
.feature-box img.feature-icon {
  display: none;
}

/* Create gradient icons using pseudo-elements */
.feature-box::before {
  content: '';
  width: 44px;
  height: 44px;
  background: linear-gradient(45deg, #A4E7FB 0%, #00A5CF 48%, #0037CF 100%);
  mask-image: var(--icon-mask);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--icon-mask);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  flex-shrink: 0;
}

/* Set specific mask for each feature box */
.feature-box:nth-child(1)::before { --icon-mask: url('/static/img/Enterprise SVG/gear.svg'); }
.feature-box:nth-child(2)::before { --icon-mask: url('/static/img/Enterprise SVG/handshake.svg'); }
.feature-box:nth-child(3)::before { --icon-mask: url('/static/img/Enterprise SVG/announce.svg'); }
.feature-box:nth-child(4)::before { --icon-mask: url('/static/img/Enterprise SVG/human.svg'); }
.feature-box:nth-child(5)::before { --icon-mask: url('/static/img/Enterprise SVG/staff.svg'); }
.feature-box:nth-child(6)::before { --icon-mask: url('/static/img/Enterprise SVG/monitoring.svg'); }
.feature-box:nth-child(7)::before { --icon-mask: url('/static/img/Enterprise SVG/check-circle.svg'); }
.feature-box:nth-child(8)::before { --icon-mask: url('/static/img/Enterprise SVG/performance.svg'); }
.feature-box:nth-child(9)::before { --icon-mask: url('/static/img/Enterprise SVG/dev.svg'); }
.feature-box:nth-child(10)::before { --icon-mask: url('/static/img/Enterprise SVG/interview.svg'); }

.feature-label {
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: 16px;
  color: #10314B;
  font-weight: 450;
  text-align: center;
  margin: 0;
  line-height: 1.3;
  flex-shrink: 0;
}


/* Section Form */
.enterprise-contact {
  background: var (--light-bg);
  width: 100%;
  display: flex;
  justify-content: center;
}

.enterprise-contact-form {
  background: none;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.enterprise-contact-title {
  text-align: center;
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: var(--section-title-size);
  font-weight: 450;
  color: #143047;
  margin-bottom: 42px;
  letter-spacing: -0.3px;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 32px;
  margin-bottom: 0;
}
.form-group {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 38px;
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: var(--body-text-size);
  background: none;
  border: none;
  border-bottom: 2px solid #1A5767;
  border-radius: 0;
  padding: 12px 0 8px 0;
  color: #143047;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-bottom: 2px solid #00A5CF;
}

/* Stili specifici per il select */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%231A5767' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}

.form-group select option {
  background: #fff;
  color: #143047;
  padding: 8px 12px;
}
.form-group textarea {
  min-height: 38px;
  font-size: var(--body-text-size);
}

.form-group.form-fullwidth {
  flex: 1 1 100%;
}

.enterprise-contact-btn {
  background: #00A5CF;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 16px 0;
  margin-top: 18px;
  font-family: 'Satoshi', Arial, sans-serif;
  font-size: 1.14rem;
  font-weight: 450;
  cursor: pointer;
  transition: background 0.18s;
  width: 100%;
  box-shadow: none;
}
.enterprise-contact-btn:hover {
  background: #0090B5;
}

/* =========================================
   TABLET (≤1024px)
   ========================================= */
@media (max-width: 1024px) {
  /* contenitore */
  .enterprise-hero-container { 
    flex-direction: column; 
    gap: 44px; 
    align-items: flex-start; 
    padding: 0 24px; 
  }

  /* card hero a dimensione fluida, niente rotazione */
  .enterprise-hero-right { min-width: 0; }
  .enterprise-card {
    width: 100%;
    max-width: 640px;
    min-width: 0;
    height: auto;
    padding: 32px 24px;
    transform: none;
    margin: 0 auto;
  }

  /* pack: impilo */
  .enterprise-pack-card { 
    flex-direction: column; 
    border-radius: 18px; 
    max-width: 98vw; 
  }
  .enterprise-pack-img-wrap,
  .enterprise-pack-img {
    border-top-right-radius: 0;
    border-bottom-right-radius: 18px;
    border-bottom-left-radius: 18px;
    border-top-left-radius: 0;
    width: 100%;
    min-height: 200px;
  }
  .enterprise-pack-content { padding: 32px 18px 18px; }

  /* features: 2 colonne su tablet */
  .enterprise-features-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 96vw;
    gap: 12px;
  }
  .feature-box { width: 100%; height: 140px; }

  /* form: colonna */
  .enterprise-contact-form { max-width: 98vw; }
  .form-row { flex-direction: column; gap: 0; }
}

/* =========================================
   MOBILE (≤768px)
   ========================================= */
@media (max-width: 768px) {
  /* ritmo generale e padding */
  .alia-section-spacing { margin-top: 48px; }
  .enterprise-hero-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 16px 0;
    margin-top: 16px;
    opacity: 1;
    will-change: opacity, transform;
  }


  .enterprise-hero-container { padding: 0 12px; gap: 24px;  align-items: center; }
  .enterprise-hero-left { align-items: center; padding: 0 16px 0; }
 
  .enterprise-title,
  .enterprise-desc {
    text-align: center;
  }

  .enterprise-logo { width: 120px; margin-bottom: 16px; }
  .enterprise-pack-card { margin:0 24px 0; }
  .enterprise-pack-content { padding: 0 24px 16px; }
  .enterprise-pack-title { padding: 16px 0 0; }
 
  
  .enterprise-title { font-size: var(--section-title-size); line-height: 1.2; margin: 0 0 16px; }
  .enterprise-desc  { font-size: var(--body-text-size);  line-height: 1.45; margin-bottom: 24px; }
  .enterprise-features-title { padding: 16px 24px 32px;}
  .enterprise-contact-form { padding: 0 24px 0; }
  
                             }

  /* ===== FIX Hero + Card per mobile (direzione su, no tagli, navbar visibile) ===== */
  @media (max-width: 768px) {
    /* Navbar sempre sopra */
    .navbar {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 9999;
      background: #fff; /* colore header */
    }

    /* La hero offre abbastanza spazio alla card e non la taglia */
    .enterprise-hero {
      position: relative;
      min-height: max(100vh, 620px);
      padding-top: 72px;         /* adegua se la tua navbar è diversa */
      padding-bottom: 80px;
      overflow: visible;
      z-index: 1;

      /* centrare hero-title + bottone nel viewport mobile */
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;         /* sicurezza extra per i contenuti */
    }

    /* Card sticky: parte poco sotto la navbar e si muove VERSO L'ALTO */
    .enterprise-card {
      position: sticky;
      top: 72px;                       /* subito sotto la navbar */
      margin: 0 auto;
      width: 92vw;
      max-width: 420px;

      /* Stato iniziale (più in basso e ruotata) */
      opacity: 0;                                  /* non presente al load */
      transform: translateY(24px) rotate(-6deg);    /* ruotata e più bassa */
      /* Altezza che non supera il viewport: evita il taglio sul fondo */
      height: min(560px, calc(100vh - 120px));
      min-height: auto;

      z-index: 1;                      /* mai sopra la navbar */
      transition: none;                /* l’animazione è gestita da JS (scroll) */
      will-change: transform, opacity;
    }

    /* Stato target quando è centrata (sale e diventa piena/diritta) */
   
  }
