/* ============================================
   AGRITURISMO IL GIOGO - SECTIONS STYLES
   Step 2: Complete Content Sections
   ============================================ */

/* ============================================
   ABOUT SECTION - CHI SIAMO
   ============================================ */

.about {
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.05);
}

.about__image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
}

.about__content {
  padding: var(--space-xl) 0;
}

.about__content p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.about__content p:last-child {
  margin-bottom: 0;
}

.about__highlight {
  background: linear-gradient(
    135deg,
    var(--color-primary-light),
    var(--color-primary)
  );
  color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.about__highlight-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.about__highlight-text {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  margin: 0;
}

/* ============================================
   EXPERIENCE SECTION - ESPERIENZA
   ============================================ */

.experience {
  background: linear-gradient(
      135deg,
      rgba(74, 103, 65, 0.9),
      rgba(58, 82, 49, 0.95)
    ),
    url("../images/foto a scorrimento/174757.jpg") center/cover fixed;
  color: var(--color-white);
  text-align: center;
}

.experience .section__title,
.experience .section__subtitle {
  color: var(--color-white);
}

.experience__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.experience__item {
  text-align: center;
  padding: var(--space-xl);
}

.experience__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
}

.experience__icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-white);
}

.experience__item:hover .experience__icon {
  background-color: var(--color-secondary);
  transform: scale(1.1);
}

.experience__item-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.experience__item-text {
  font-size: var(--fs-sm);
  opacity: 0.9;
  color: var(--color-white);
  margin: 0;
}

/* ============================================
   APARTMENTS SECTION - APPARTAMENTI
   ============================================ */

.apartments__intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.apartments__intro p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

.apartments__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl);
}

.apartment-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.apartment-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.apartment-card__gallery {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.apartment-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 0;
  position: relative;
}

.apartment-card__slide {
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.apartment-card__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

/* Gallery Navigation Arrows */
.apartment-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.apartment-card__nav:hover {
  background-color: var(--color-primary);
}

.apartment-card__nav:hover svg {
  fill: var(--color-white);
}

.apartment-card__nav svg {
  width: 20px;
  height: 20px;
  fill: var(--color-black);
  transition: fill var(--transition-fast);
}

.apartment-card__nav--prev {
  left: 10px;
}

.apartment-card__nav--next {
  right: 10px;
}

/* Gallery Dots Indicator */
.apartment-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.apartment-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.apartment-card__dot.active {
  background-color: var(--color-white);
  transform: scale(1.2);
}

.apartment-card__dot:hover {
  background-color: var(--color-white);
}

.apartment-card:hover .apartment-card__gallery img {
  transform: scale(1.1);
}

.apartment-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.apartment-card__content {
  padding: var(--space-xl);
}

.apartment-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-black);
}

.apartment-card__subtitle {
  color: var(--color-primary);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-md);
}

.apartment-card__description {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: var(--lh-relaxed);
}

.apartment-card__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray);
}

.apartment-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.apartment-card__feature svg {
  width: 18px;
  height: 18px;
  fill: var(--color-primary);
  flex-shrink: 0;
}

.apartment-card__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-gray);
}

.apartment-card__price-label {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

.apartment-card__price-value {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  color: var(--color-primary);
}

.apartment-card__price-value span {
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--color-text-light);
}

/* Apartments Info Box */
.apartments__info {
  margin-top: var(--space-3xl);
  background: linear-gradient(
    135deg,
    var(--color-light-gray),
    var(--color-white)
  );
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.apartments__info-item {
  padding: var(--space-lg);
}

.apartments__info-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-md);
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.apartments__info-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--color-white);
}

.apartments__info-title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-style: italic;
  margin-bottom: var(--space-xs);
}

.apartments__info-text {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================
   PHOTO GALLERY - Cross-dissolve slideshow
   ============================================ */

.photo-gallery {
  margin-top: var(--space-3xl);
  width: 100%;
}

.photo-gallery__slider {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background-color: #1a1a1a;
}

.photo-gallery__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-gallery__slide.active {
  opacity: 1;
  z-index: 2;
}

/* Ambient background effect - blurred version of the image */
.photo-gallery__slide::before {
  content: "";
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(60px) brightness(0.4);
  transform: scale(1.1);
  z-index: -1;
  opacity: 0.85;
}

.photo-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .photo-gallery__slider {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .photo-gallery__slider {
    height: 300px;
  }
}

/* ============================================
   TERRITORY SECTION - TODI E DINTORNI
   ============================================ */

.territory__intro {
  max-width: 800px;
  margin: 0 auto var(--space-3xl);
  text-align: center;
}

.territory__intro p {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
}

.territory__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.territory-card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
}

.territory-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-2xl);
}

/* Territory Carousel */
.territory-card__carousel {
  position: relative;
  height: 300px;
  overflow: hidden;
  background-color: var(--color-black);
}

.territory-card__slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  gap: 0;
  position: relative;
}

.territory-card__slide {
  min-width: 100%;
  max-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.territory-card__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.territory-card:hover .territory-card__slide img {
  transform: scale(1.05);
}

/* Territory Carousel Navigation */
.territory-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
}

.territory-card:hover .territory-card__nav {
  opacity: 1;
}

.territory-card__nav:hover {
  background-color: var(--color-primary);
  transform: translateY(-50%) scale(1.1);
}

.territory-card__nav:hover svg {
  fill: var(--color-white);
}

.territory-card__nav svg {
  width: 18px;
  height: 18px;
  fill: var(--color-black);
  transition: fill var(--transition-fast);
}

.territory-card__nav--prev {
  left: 10px;
}

.territory-card__nav--next {
  right: 10px;
}

/* Territory Carousel Dots */
.territory-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.territory-card__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0;
}

.territory-card__dot.active {
  background-color: var(--color-white);
  transform: scale(1.3);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.territory-card__dot:hover {
  background-color: var(--color-white);
  transform: scale(1.2);
}

/* Territory Card Content */
.territory-card__content {
  padding: var(--space-lg);
  position: relative;
}

.territory-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  margin-bottom: var(--space-xs);
  color: var(--color-black);
}

.territory-card__distance {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.territory-card__distance svg {
  width: 14px;
  height: 14px;
  fill: var(--color-primary);
}

/* Territory Card Description Wrapper */
.territory-card__description-wrapper {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, margin-top 0.4s ease-out;
}

.territory-card__description-wrapper.active {
  max-height: 200px;
  margin-top: var(--space-md);
}

.territory-card__description {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--color-text-light);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-gray);
}

/* Territory Toggle Button */
.territory-card__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: var(--space-md) auto 0;
  background-color: var(--color-primary);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.territory-card__toggle:hover {
  background-color: var(--color-primary-dark);
  transform: scale(1.1);
}

.territory-card__toggle-icon {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  transition: transform var(--transition-fast);
}

.territory-card__description-wrapper.active
  ~ .territory-card__toggle
  .territory-card__toggle-icon {
  transform: rotate(180deg);
}

/* Territory Highlights */
.territory__highlights {
  margin-top: var(--space-3xl);
  padding: var(--space-2xl);
  background-color: var(--color-light-gray);
  border-radius: var(--radius-lg);
}

.territory__highlights-title {
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.territory__highlights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.territory__highlight-item {
  text-align: center;
  padding: var(--space-md);
}

.territory__highlight-item svg {
  width: 40px;
  height: 40px;
  fill: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.territory__highlight-item span {
  display: block;
  font-size: var(--fs-sm);
  color: var(--color-text-light);
}

/* ============================================
   CONTACT SECTION - CONTATTI
   ============================================ */

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
}

.contact__info {
  padding-right: var(--space-xl);
}

.contact__info-title {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.contact__info-text {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-xl);
}

.contact__details {
  margin-bottom: var(--space-xl);
}

.contact__detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.contact__detail-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.contact__detail-icon {
  width: 50px;
  height: 50px;
  background-color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact__detail-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.contact__detail-content h4 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-xs);
}

.contact__detail-content p,
.contact__detail-content a {
  font-size: var(--fs-sm);
  color: var(--color-text-light);
  margin: 0;
}

.contact__detail-content a:hover {
  color: var(--color-primary);
}

/* Map Wrapper */
.contact__map-wrapper {
  height: 100%;
  min-height: 400px;
}

/* Map Container */
.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 100%;
  min-height: 400px;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* CTA Box */
.contact__cta {
  margin-top: var(--space-xl);
  padding: var(--space-xl);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--color-white);
}

.contact__cta-title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  font-style: italic;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.contact__cta-text {
  font-size: var(--fs-sm);
  opacity: 0.9;
  margin-bottom: var(--space-lg);
  color: var(--color-white);
}

.contact__cta .btn {
  background-color: var(--color-white);
  color: var(--color-primary);
}

.contact__cta .btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */

@media (max-width: 992px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about__image {
    order: -1;
  }

  .experience__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .apartments__grid {
    grid-template-columns: 1fr;
  }

  .apartments__info {
    grid-template-columns: 1fr;
  }

  .territory__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .territory__highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact__info {
    padding-right: 0;
  }

  .contact__map {
    min-height: 350px;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */

@media (max-width: 576px) {
  .experience__grid {
    grid-template-columns: 1fr;
  }

  .experience__icon {
    width: 60px;
    height: 60px;
  }

  .experience__icon svg {
    width: 30px;
    height: 30px;
  }

  .apartment-card__gallery {
    height: 250px;
  }

  .apartment-card__features {
    grid-template-columns: 1fr;
  }

  .territory__grid {
    grid-template-columns: 1fr;
  }

  .territory-card__carousel {
    height: 250px;
  }

  .territory__highlights-grid {
    grid-template-columns: 1fr;
  }

  .contact__detail-item {
    flex-direction: column;
    text-align: center;
  }

  .contact__map {
    min-height: 300px;
  }
}

/* ============================================
   IMAGE GALLERY LIGHTBOX (Future Enhancement)
   ============================================ */

.gallery-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox.active {
  display: flex;
}

.gallery-lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 50px;
  height: 50px;
  background: none;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.gallery-lightbox__close:hover {
  background-color: var(--color-white);
}

.gallery-lightbox__close svg {
  width: 24px;
  height: 24px;
  fill: var(--color-white);
}

.gallery-lightbox__close:hover svg {
  fill: var(--color-black);
}

.gallery-lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}

/* ============================================
   MAP STYLE BUTTONS
   ============================================ */

.map-style-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 15px;
}

.map-style-btn {
  padding: 8px 16px;
  border: 2px solid var(--color-primary);
  background-color: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.map-style-btn:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-style-btn.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
}

/* Google Maps Button - Blue */
.map-style-btn--gmaps {
  background-color: #1e88e5;
  color: var(--color-white);
  border-color: #1e88e5;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.map-style-btn--gmaps:hover {
  background-color: #1565c0;
  border-color: #1565c0;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.4);
}

@media (max-width: 576px) {
  .map-style-buttons {
    gap: 4px;
    flex-wrap: nowrap;
  }

  .map-style-btn {
    padding: 6px 8px;
    font-size: 10px;
  }

  .map-style-btn--gmaps {
    padding: 6px 8px;
    font-size: 10px;
  }
}
