/* Homepage Styles - Pastasciutta Roma inspired design */

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  height: 100%;
}

.swiper-slide {
  position: relative;
  height: 100vh;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 10;
  max-width: 800px;
  padding: 2rem;
  background: rgba(44, 85, 48, 0.8);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.slide-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.swiper-pagination {
  bottom: 30px !important;
}

.swiper-pagination-bullet {
  background: white !important;
  opacity: 0.7;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--accent-color) !important;
}

/* Value Propositions Section */
.value-propositions {
  padding: 5rem 0;
  background: var(--light-background);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.value-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.value-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.value-icon {
  margin-bottom: 1.5rem;
}

.value-image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent-color);
}

.value-item h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.value-item p {
  color: var(--light-text);
  line-height: 1.6;
}

/* About Section */
.about-section {
  padding: 5rem 0;
  background: white;
}

.about-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--light-text);
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: var(--box-shadow-md);
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: var(--light-background);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.feature-item {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.feature-icon {
  margin-bottom: 1.5rem;
  text-align: center;
}

.feature-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-color);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  text-align: center;
}

.feature-item p {
  color: var(--light-text);
  line-height: 1.6;
  text-align: center;
}

/* Location Section */
.location-section {
  padding: 5rem 0;
  background: white;
}

.location-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.location-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.location-info p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--light-text);
  margin-bottom: 2rem;
}

.location-details {
  background: var(--light-background);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
}

.location-details p {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.location-details p:last-child {
  margin-bottom: 0;
}

.location-map {
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow-md);
}

/* Menu Preview Section */
.menu-preview-section {
  padding: 5rem 0;
  background: var(--light-background);
}

.menu-preview-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.menu-preview-section > .container > p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.menu-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.menu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-item h3 {
  font-size: 1.3rem;
  margin: 1rem;
  color: var(--primary-color);
}

.menu-item p {
  margin: 0 1rem 1rem;
  color: var(--light-text);
  line-height: 1.5;
}

.menu-cta {
  text-align: center;
}

/* Gallery Section */
.gallery-section {
  padding: 5rem 0;
  background: white;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.gallery-section > .container > p {
  text-align: center;
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-md);
}

.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Social Section */
.social-section {
  padding: 5rem 0;
  background: var(--light-background);
  text-align: center;
}

.social-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.social-section p {
  font-size: 1.1rem;
  color: var(--light-text);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  transition: var(--transition);
  box-shadow: var(--box-shadow-sm);
  border: 2px solid transparent;
  font-weight: 600;
  font-size: 1rem;
}

.social-link:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.social-link:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.3);
}

.social-link img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.social-link:hover img {
  transform: scale(1.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--button-font);
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.btn-secondary {
  background: var(--accent-color);
  color: white;
}

.btn-secondary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Responsive Design */
@media (max-width: 768px) {
  .slide-content h1 {
    font-size: 2.5rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .about-section .container,
  .location-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .value-grid,
  .features-grid,
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
  
  .social-links {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .social-link {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .slide-content h1 {
    font-size: 2rem;
  }
  
  .value-item,
  .feature-item {
    padding: 1.5rem;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Reviews Section */
.reviews-section {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid #eee;
}

.reviews-section h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

.reviews-carousel {
  position: relative;
  margin-bottom: 3rem;
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 1.5rem;
}

.reviews-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 0;
  width: 100%;
}

.review-card {
  min-width: 100%;
  flex-shrink: 0;
  opacity: 0.7;
  transform: scale(0.95);
  transition: all 0.5s ease-in-out;
  padding: 1.8rem;
  background: white;
  border-radius: 15px;
  box-shadow: var(--box-shadow-sm);
  border-left: 4px solid var(--accent-color);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.review-card.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: var(--box-shadow-md);
  border-left-width: 6px;
}

.review-card:hover {
  transform: scale(1.02);
  box-shadow: var(--box-shadow-lg);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.review-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
}

.review-stars {
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  color: #ffd700;
  text-align: center;
}

.review-text {
  font-style: italic;
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-size: 1rem;
  flex-grow: 1;
  max-width: 100%;
}

.review-author {
  color: var(--primary-color);
  font-weight: 600;
  text-align: center;
  margin: 0;
  font-size: 1rem;
}

.reviews-cta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.reviews-cta .btn {
  min-width: 200px;
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
  position: relative;
  z-index: 10;
}

.carousel-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-sm);
  border: 2px solid transparent;
}

.carousel-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

.carousel-btn:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.3);
}

.carousel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-dots {
  display: flex;
  gap: 0.8rem;
  margin: 0 1rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(44, 85, 48, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary-color);
  transform: scale(1.2);
}

.dot:hover {
  background: var(--secondary-color);
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .reviews-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .reviews-cta .btn {
    min-width: 250px;
  }
  
  .carousel-nav {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
  }
  
  .carousel-btn svg {
    width: 16px;
    height: 16px;
  }
  
  .dot {
    width: 10px;
    height: 10px;
  }
}