/* ==========================================
   PAGINA AZIENDA - STYLES
   ========================================== */

/* === CONTAINER === */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
    max-width: 100%;
}

/* === HERO AZIENDA === */
.hero {
    position: relative;
    height: 85vh;
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    background-image: url('img/aziendahero.jpg'),
                      linear-gradient(135deg, rgba(44,62,80,0.9) 0%, rgba(52,73,94,0.9) 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    margin-top: 70px;
}

.hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44,62,80,0.8) 0%, rgba(52,73,94,0.6) 100%);
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero .hero-label {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero .hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
}

/* === CHI SIAMO === */
.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.chi-siamo-content p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.chi-siamo-content strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.chi-siamo-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    min-width: 140px;
    flex: 1;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    line-height: 1;
    display: block;
}

.stat-card .stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    font-weight: 500;
    display: block;
}

/* === TIMELINE STORIA === */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.timeline-item:nth-child(even) {
    direction: rtl;
}

.timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
}

.timeline-year {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: right;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-year {
    text-align: left;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -1.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(0,132,138,0.2);
}

.timeline-item:nth-child(even) .timeline-year::after {
    left: -1.75rem;
    right: auto;
}

.timeline-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.7;
}

.timeline-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* === VALORI === */
.valori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.valore-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border-top: 4px solid transparent;
}

.valore-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--primary-color);
}

.valore-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.valore-card:hover .valore-icon {
    transform: scale(1.1) rotate(5deg);
}

.valore-icon svg {
    stroke: var(--white);
}

.valore-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.valore-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* === FORNITORI === */
.fornitori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.fornitore-card {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.fornitore-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.fornitore-image {
    height: 250px;
    overflow: hidden;
}

.fornitore-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-normal);
}

.fornitore-card:hover .fornitore-image img {
    transform: scale(1.08);
}

.fornitore-content {
    padding: 2rem;
}

.fornitore-content h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.fornitore-content p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fornitore-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.fornitore-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.fornitore-features li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* === CTA FINAL === */
.cta-final {
    background-color: #007176;
    color: var(--white);
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
    .hero {
        margin-top: 80px;
    }

    .chi-siamo-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }

    .chi-siamo-stats {
        grid-template-columns: 1fr;
    }

    .fornitori-grid {
        grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .chi-siamo-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 767px) {
  /* === TIMELINE MOBILE RESPONSIVE === */
  .timeline {
    padding: 1rem 0;
    margin: 0 auto;
    max-width: 100%;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 2.5rem;
    padding-left: 50px;
    direction: ltr;
  }

  .timeline-item:nth-child(even) {
    direction: ltr;
  }

  .timeline-year {
    font-size: 2rem;
    text-align: left;
    margin-bottom: 1rem;
    position: relative;
  }

  .timeline-item:nth-child(even) .timeline-year {
    text-align: left;
  }

  .timeline-year::after {
    left: -40px;
    right: auto;
    width: 16px;
    height: 16px;
    border-width: 3px;
    box-shadow: 0 0 0 4px rgba(0,132,138,0.15);
  }

  .timeline-item:nth-child(even) .timeline-year::after {
    left: -40px;
    right: auto;
  }

  .timeline-content {
    padding: 1.5rem;
    margin-bottom: 0;
  }

  .timeline-item:nth-child(even) .timeline-content {
    direction: ltr;
  }

  /* === VALORI GRID MOBILE === */
  .valori-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .valore-card {
    padding: 2rem 1.5rem;
  }

  /* === FORNITORI GRID MOBILE === */
  .fornitori-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .fornitore-card {
    max-width: 100%;
  }

  /* === STAT CARDS MOBILE === */
  .chi-siamo-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .stat-card {
    width: 100%;
    min-width: unset;
    flex: none;
  }

  /* === SECTIONS PADDING MOBILE === */
  section {
    padding: 2.5rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  /* === HERO MOBILE === */
  .hero {
    height: 60vh;
    min-height: 450px;
    margin-top: 60px;
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  /* === CTA BUTTONS MOBILE === */
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-buttons .btn {
    width: 100%;
  }
}
