/* === COLLABORAZIONI PAGE STYLES === */

.main-collaborazioni {
  position: relative;
  top: 65px;
  left: 0;
  max-width: 100% !important;
  width: 100% !important;
  height: calc(100vh - 65px) !important;
  max-height: calc(100vh - 65px) !important;
  box-sizing: border-box !important;
  z-index: 10;
  border-radius: 0px !important;
  overflow-y: auto;
}
.spiegazione-main.collabora-con-noi {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}

/* === HERO SECTION === */
.collaboration-hero {
  min-height: calc(100vh - 185px);
  height: calc(100vh - 185px);
  max-height: calc(100vh - 185px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 80px 20px;
  background-image: url("../images/risolvi 2.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.24);
}

.collaboration-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.collaboration-hero .hero-content {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.hero-text {
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 15px;
  white-space: nowrap;
  text-align: center;
  justify-content: center;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.5);
}

.hero-highlight {
  color: #e60000;
  position: relative;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 68, 68, 0.3);
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #c60000, #ff4444);
  border-radius: 2px;
}

.hero-logo {
  height: 60px;
  width: auto;
  text-shadow:
    2px 2px 8px rgba(0, 0, 0, 0.8),
    0 0 15px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.8)) !important;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 25px;
  line-height: 1.6;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.5);
}

.hero-description {
  margin-bottom: 30px;
}

.hero-description p {
  font-size: 1.1rem;
  color: #ffffff;
  line-height: 1.6;
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 15px;
  border-left: 4px solid #e60000;
  backdrop-filter: blur(5px);
  text-shadow:
    1px 1px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.5);
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  text-align: center;
  animation: fadeInUp 1s ease-out 0.3s both;
  flex: 1;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: #e60000;
  margin-bottom: 5px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  text-shadow:
    2px 2px 6px rgba(0, 0, 0, 0.8),
    0 0 10px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 68, 68, 0.3);
}

.stat-label {
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 500;
  text-shadow:
    1px 1px 4px rgba(0, 0, 0, 0.8),
    0 0 8px rgba(0, 0, 0, 0.5);
}

/* === HERO VISUAL === */
.hero-visual {
  position: relative;
  height: auto;
  max-height: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-cards {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.floating-card {
  position: relative;
  background: rgba(255, 255, 255, 0.892);
  border-radius: 20px;
  padding: 15px 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-width: 140px;
  height: 120px;
  opacity: 0;
  transform: translateY(30px);
  animation: floatIn 1s ease-out forwards;
  border: 1px solid #f0f0f0;
  transition: all 0.3s ease;
}

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

.floating-card i {
  font-size: 2.5rem;
  color: #e60000;
  margin-bottom: 5px;
}

.floating-card span {
  font-weight: 600;
  color: #333;
  font-size: 1rem;
  text-align: center;
  line-height: 1.3;
}

.card-1 {
  animation-delay: 0.2s;
}

.card-2 {
  animation-delay: 0.4s;
}

.card-3 {
  animation-delay: 0.6s;
}

/* === OPPORTUNITY SECTION === */
.opportunity-section {
  padding: 100px 20px;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeInUp 1s ease-out;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.section-header p {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.opportunity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.opportunity-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.opportunity-card:nth-child(1) {
  animation-delay: 0.2s;
}
.opportunity-card:nth-child(2) {
  animation-delay: 0.4s;
}
.opportunity-card:nth-child(3) {
  animation-delay: 0.6s;
}

.opportunity-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #e60000, #ff4444);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.opportunity-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.opportunity-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #e60000, #ff4444);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
}

.card-icon::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.opportunity-card:hover .card-icon::before {
  transform: rotate(45deg) translate(50%, 50%);
}

.card-icon i {
  font-size: 2rem;
  color: white;
  z-index: 2;
}

.opportunity-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.opportunity-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding: 8px 0;
  color: #555;
  position: relative;
  padding-left: 25px;
}

.benefits-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #e60000;
  font-weight: bold;
}

/* === VALUE SECTION === */
.value-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.24);
  border-radius: 40px;
  z-index: 10;
}

.value-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.value-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.value-text p {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 40px;
}

.value-metrics {
  display: flex;
  gap: 30px;
}

.metric {
  text-align: center;
}

.metric-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e60000, #ff4444);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
}

.metric-number {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
}

.metric p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.value-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.growth-chart {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 350px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 40px 20px 50px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Griglia di sfondo */
.chart-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 15px;
  overflow: hidden;
}

.grid-line {
  position: absolute;
  background: rgba(0, 0, 0, 0.05);
}

.grid-line.horizontal {
  left: 60px;
  right: 20px;
  height: 1px;
}

.grid-line.vertical {
  top: 40px;
  bottom: 50px;
  width: 1px;
}

/* Assi */
.chart-axes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.y-axis {
  position: absolute;
  left: 0;
  top: 40px;
  bottom: 50px;
  width: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 10px;
}

.x-axis {
  position: absolute;
  bottom: 0;
  left: 60px;
  right: 20px;
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-top: 10px;
}

.axis-label {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
}

/* SVG Chart */
.chart-svg {
  position: absolute;
  top: 40px;
  left: 60px;
  right: 20px;
  bottom: 50px;
  width: calc(100% - 80px);
  height: calc(100% - 90px);
}

.chart-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s ease-out forwards;
}

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

/* Punti dati */
.chart-data-points {
  position: absolute;
  top: 40px;
  left: 60px;
  right: 20px;
  bottom: 50px;
  pointer-events: none;
}

.data-point {
  position: absolute;
  transform: translate(-50%, 50%);
  animation: fadeInPoint 0.5s ease-out forwards;
  opacity: 0;
}

.data-point:nth-child(1) {
  animation-delay: 0.3s;
}

.data-point:nth-child(2) {
  animation-delay: 0.6s;
}

.data-point:nth-child(3) {
  animation-delay: 0.9s;
}

.data-point:nth-child(4) {
  animation-delay: 1.2s;
}

.point-marker {
  width: 14px;
  height: 14px;
  background: #e60000;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow:
    0 4px 12px rgba(230, 0, 0, 0.4),
    0 0 0 4px rgba(230, 0, 0, 0.1);
  margin: 0 auto;
  animation: pulsePoint 2s infinite;
  animation-delay: inherit;
}

.point-value {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #e60000;
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.point-value::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #e60000;
}

@keyframes fadeInPoint {
  from {
    opacity: 0;
    transform: translate(-50%, 50%) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1);
  }
}

@keyframes pulsePoint {
  0%,
  100% {
    box-shadow:
      0 4px 12px rgba(230, 0, 0, 0.4),
      0 0 0 4px rgba(230, 0, 0, 0.1);
  }
  50% {
    box-shadow:
      0 4px 12px rgba(230, 0, 0, 0.6),
      0 0 0 8px rgba(230, 0, 0, 0);
  }
}

/* === PARTNERSHIP SECTION === */
.partnership-section {
  padding: 100px 20px;
  background: transparent;
  z-index: 1;
}

.partnership-tabs {
  max-width: 1000px;
  margin: 0 auto;
}

.tab-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 15px 30px;
  border: 2px solid #e60000;
  background: transparent;
  color: #e60000;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover,
.tab-btn.active {
  background: #e60000;
  color: white;
}

.tab-content {
  position: relative;
  min-height: 300px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.5s ease-out;
}

.tab-panel.active {
  display: block;
}

.partnership-details {
  text-align: center;
  padding: 40px;
}

.partnership-details h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

.partnership-details p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.partnership-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.feature:hover {
  background: #e60000;
  color: white;
  transform: translateY(-5px);
}

.feature i {
  font-size: 1.5rem;
  color: #e60000;
}

.feature:hover i {
  color: white;
}

/* === SUCCESS SECTION === */
.success-section {
  padding: 100px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #e0e0e0;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.24);
  border-radius: 40px;
}

.success-stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.story-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.story-card:nth-child(1) {
  animation-delay: 0.2s;
}
.story-card:nth-child(2) {
  animation-delay: 0.4s;
}
.story-card:nth-child(3) {
  animation-delay: 0.6s;
}

.story-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.story-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.story-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #e60000, #ff4444);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-avatar i {
  color: white;
  font-size: 1.2rem;
}

.story-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.story-info span {
  font-size: 0.9rem;
  color: #666;
}

.story-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.story-metrics {
  display: flex;
  gap: 15px;
}

.metric {
  background: #f8f9fa;
  color: #e60000;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* === CTA SECTION === */
.cta-section {
  padding: 60px;
  color: black;
  text-align: center;
}

.cta-content {
  max-width: 800px;
  border-radius: 100px;
  background: transparent;
  padding: 60px 40px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: black !important;
}

.cta-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 15px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.cta-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e60000;
  color: white;
}

.cta-primary:hover {
  background: #c60000;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.cta-secondary {
  background: transparent;
  color: #e60000;
  border: 2px solid #e60000;
}

.cta-secondary:hover {
  background: transparent;
  color: #c60000;
  border: 2px solid #c60000;
  transform: translateY(-3px);
}

.cta-features {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.cta-feature i {
  font-size: 1.2rem;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 2.5rem;
    flex-direction: column;
  }

  .hero-stats {
    justify-content: center;
    gap: 30px;
  }

  .value-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .value-metrics {
    justify-content: center;
  }

  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .success-stories {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-features {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .opportunity-card {
    padding: 30px 20px;
  }

  .partnership-features {
    grid-template-columns: 1fr;
  }
}
