/*-----------------------------------*\
  #home.css - Stili specifici per la homepage
\*-----------------------------------*/

/**
 * Miglioramenti della homepage per uniformarla allo stile delle pagine interne
 */


/*-----------------------------------*\
  #SERVICE SECTION - ENHANCED
\*-----------------------------------*/


.service {
  background: var(--cultured);
}

.service .section-subtitle {
  text-align: center;
}

.service .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--radius-10);
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border-top: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-1);
  border-top-color: var(--violet-blue-crayola);
}

.service-card .card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--lavender-web) 0%, var(--cultured) 100%);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.service-card .card-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.service-card .card-title {
  margin-bottom: 15px;
  color: var(--charcoal);
}

.service-card .card-text {
  flex-grow: 1;
  margin-bottom: 20px;
  color: var(--black-coral);
}

.service-card .btn-text {
  color: var(--violet-blue-crayola);
  font-weight: var(--fw-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-1);
}

.service-card .btn-text:hover {
  gap: 12px;
}


/*-----------------------------------*\
  #ABOUT SECTION - ENHANCED
\*-----------------------------------*/

.about {
  padding: var(--section-padding) 0;
}

.about .container {
  display: grid;
  gap: 50px;
}

.about-banner {
  box-shadow: var(--shadow-2);
}

.about-banner img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition-2);
}

.about-banner:hover img {
  transform: scale(1.05);
}

.about-content .section-subtitle {
  color: var(--violet-blue-crayola);
}

.about-content .section-title {
  margin-bottom: 30px;
}

.about-item {
  margin-bottom: 15px;
}

.info-card {
  background: var(--white);
  border-radius: var(--radius-8);
  box-shadow: var(--shadow-3);
  padding: 20px;
  transition: var(--transition-1);
}

.info-card:hover {
  box-shadow: var(--shadow-2);
}

.info-card .card-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

.info-card .card-title ion-icon {
  color: var(--violet-blue-crayola);
  font-size: 1.5rem;
}

.info-card .card-title .span {
  color: var(--charcoal);
  font-weight: var(--fw-700);
}

.info-card .card-text {
  color: var(--black-coral);
  line-height: 1.7;
  padding-left: 40px;
}


/*-----------------------------------*\
  #FEATURE SECTION - ENHANCED
\*-----------------------------------*/

.feature {
  background: var(--cultured);
}

.feature .container {
  display: grid;
  gap: 50px;
}

.feature-banner {
  overflow: hidden;
  box-shadow: var(--shadow-2);
  aspect-ratio: 4 / 3;
}

.feature-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.feature-banner:hover img {
  transform: scale(1.05);
}

.feature-content .section-subtitle {
  color: var(--violet-blue-crayola);
}

.feature-content .section-title {
  margin-bottom: 20px;
}

.feature-content .section-text {
  margin-bottom: 30px;
  color: var(--black-coral);
}

.feature-list {
  display: grid;
  gap: 15px;
}

.feature-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-8);
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-3);
  transition: var(--transition-1);
}

.feature-card:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-2);
}

.feature-card .card-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--violet-blue-crayola), var(--blue-crayola));
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.feature-card .span {
  color: var(--charcoal);
  font-weight: 500;
}


/*-----------------------------------*\
  #BLOG/PROJECT SECTION - ENHANCED
\*-----------------------------------*/

.project {
  background: var(--white);
}

.project .section-subtitle {
  text-align: center;
}

.project .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.project-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-1);
}

.project-card .card-banner {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-card .card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-2);
}

.project-card:hover .card-banner img {
  transform: scale(1.1);
}

.project-card .card-content {
  padding: 30px;
}

.project-card .card-title {
  color: var(--charcoal);
  margin-bottom: 15px;
  transition: var(--transition-1);
}

.project-card .card-title:hover {
  color: var(--violet-blue-crayola);
}

.project-card .card-text {
  color: var(--black-coral);
  margin-bottom: 20px;
  line-height: 1.7;
}

.project-card .card-meta-list {
  display: flex;
  gap: 20px;
}

.project-card .card-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cadet-blue-crayola);
  font-size: 1.4rem;
}

.project-card .card-meta-item ion-icon {
  color: var(--violet-blue-crayola);
}


/*-----------------------------------*\
  #HERO - ENHANCED
\*-----------------------------------*/

.hero {
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--violet-blue-crayola) 0%, var(--charcoal) 100%);
  opacity: 0.9;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: var(--fs-1);
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-text {
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.btn-wrapper {
  justify-content: center;
}

.hero-slider {
  margin-top: 50px;
}


/*-----------------------------------*\
  #CTA SECTION - NEW
\*-----------------------------------*/

.home-cta {
  background: transparent;
  padding: 80px 0;
  text-align: center;
}

.home-cta .cta-title {
  color: var(--charcoal);
  margin-bottom: 20px;
}

.home-cta .cta-text {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--black-coral);
  font-size: var(--fs-5);
}

.home-cta .btn-cta {
  background: linear-gradient(135deg, var(--violet-blue-crayola) 0%, var(--charcoal) 100%);
  color: var(--white);
  padding: 16px 40px;
  border-radius: var(--radius-pill);
  font-weight: var(--fw-700);
  display: inline-block;
  transition: var(--transition-1);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.home-cta .btn-cta:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}


/*-----------------------------------*\
  #RESPONSIVE - TABLET
\*-----------------------------------*/

@media (min-width: 768px) {
  .about .container,
  .feature .container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .footer .container {
    grid-template-columns: 1fr 1fr 1fr;
  }
  
  .service .grid-list,
  .project .grid-list {
    grid-template-columns: repeat(2, 1fr);
  }
}


/*-----------------------------------*\
  #RESPONSIVE - DESKTOP
\*-----------------------------------*/

@media (min-width: 1024px) {
  .service .grid-list {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
  }
  
  .hero-content {
    text-align: left;
  }
  
  .hero-text {
    margin-left: 0;
  }
  
  .btn-wrapper {
    justify-content: flex-start;
  }
  
  .hero-slider {
    margin-top: 0;
  }
}
