/* INZIO SEZIONE HERO BANNER */
.hero-banner {
  position: relative;
  width: 100%;
  height: 70vh;
  /* o 100vh per fullscreen */
  overflow: hidden;
  background: var(--color-background);
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease-in-out;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content,
.hero-content2,
.hero-content3 {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  text-align: center;
  padding: 20px;
}

/* PRIMA SLIDE: Testo in alto */
.hero-content {
  top: 0; /* Regola questa percentuale per l'altezza desiderata */
}

/* SECONDA SLIDE: Testo un po' più basso (quasi centro) */
.hero-content2 {
  top: 45%;
}

/* TERZA SLIDE: Testo ancora più basso o centrale */
.hero-content3 {
  top: 30%;
}

.hero-content h1,
.hero-content2 h1,
.hero-content3 h1 {
  font-size: 48px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-content p,
.hero-content2 p,
.hero-content3 p {
  font-size: 24px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

/* FINE SEZIONE HERO BANNER */

/* INIZIO SEZIONE INTERVENTI */
.intervention-section {
  position: relative;
  padding-top: 30px;
  text-align: center;
}

.intervention-text p {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary-dark);
  margin: 0;
}

.intervention-underline {
  display: block;
  width: 70%;
  margin: 4px auto 0 auto;
  height: 3px;
  background-color: var(--color-primary-light);
  margin-top: 8px;
  border-radius: var(--radius-small);
  margin-bottom: 12px;
}

.intervention-carousel-wrapper {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.intervention-display-container {
  overflow: hidden;
  flex: 1;
  padding: 10px;
}

.intervention-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 60px;
  transition: transform 0.5s ease;
}

.intervention-container {
  position: relative;
  width: 360px;
  min-width: 360px;
  height: 240px;
  overflow: hidden;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  cursor: pointer;
  transition: transform var(--transition-main);
  flex-shrink: 0;
}

.intervention-container:hover {
  transform: scale(1.03);
}

.intervention-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.intervention-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.intervention-text-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-light);
  z-index: 2;
  text-align: center;
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.4s ease;
}

.intervention-container:hover .intervention-text-content {
  transform: translateY(0%);
  opacity: 1;
}

.intervention-text-content h3 {
  margin: 0;
  font-size: 22px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
}

.intervention-text-content p {
  margin-top: 10px;
  font-size: 16px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* Carousel Arrows */
.carousel-arrow {
  background-color: var(--color-primary-dark);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.carousel-arrow:hover:not(:disabled) {
  background-color: var(--color-primary-light);
  transform: scale(1.1);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: var(--color-primary-dark);
  transform: scale(1.3);
}

.indicator:hover {
  background-color: var(--color-primary-light);
}

/* FINE SEZIONE INTERVENTI */

/* INIZIO SEZIONE "LA NOSTRA STORIA" */
.story-section {
  padding: 40px 20px;
  margin-top: 60px;
  width: 100%;
}

.story-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.story-subtitle {
  font-size: 28px;
  color: var(--text-heading);
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.subtitle-underline {
  display: block;
  width: 60%;
  margin: 8px auto 30px auto;
  height: 3px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-small);
}

.story-display {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.story-text-section,
.story-image-section {
  flex: 1;
  max-width: 50%;
  min-width: 300px;
}

.story-text-section {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
  color: var(--text-main);
}

.story-image-section {
  flex: 1;
  min-width: 300px;
  height: auto;
  display: flex;
  justify-content: center;
}

.story-image-section img {
  width: 100%;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  object-fit: cover;
}

.intervention-text-content h3,
.intervention-text-content p {
  margin: 0 auto;
  text-align: center;
  padding: 0;
  width: 100%;
  display: block;
}

.intervention-text-content h3 {
  font-size: 22px;
  margin-bottom: 6px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.intervention-text-content p {
  font-size: 16px;
  margin-top: 8px;
  margin-bottom: 12px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* =====================
   SLOGAN
===================== */
.slogan {
  font-family: 'Playfair Display', serif;
  /* font elegante e diverso */
  font-size: 24px;
  /* più grande del testo normale */
  font-weight: 700;
  font-style: italic;
  color: var(--color-primary);
  text-align: center;
  margin: 40px 0 40px 0;
  /* più spazio sopra e sotto */
  line-height: 1.6;
  letter-spacing: 0.5px;
  border-left: 5px solid var(--color-primary);
  /* bordo sinistro per evidenziare */
  padding-left: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  /* leggero sfondo per risaltare */
  border-radius: var(--radius-small);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* FINE SEZIONE "LA NOSTRA STORIA" */

/* INIZIO SEZIONE PREVENTIVO */
.estimate-quote-section {
  padding: 40px 20px;
}

.estimate-quote-container {
  max-width: 1600px;
  margin: 0 auto;
  text-align: center;
}

.estimate-quote-subtitle {
  font-size: 28px;
  color: var(--text-heading);
  font-weight: bold;
  text-align: center;
  margin-bottom: 0;
}

.estimate-quote-underline {
  display: block;
  width: 60%;
  margin: 4px auto 0 auto;
  height: 3px;
  background-color: var(--color-primary-light);
  margin-top: 8px;
  border-radius: var(--radius-small);
  margin-bottom: 24px;
}

.estimate-quote-subcontainer {
  max-width: 400px;
  width: 100%;
  height: auto;

  border-radius: var(--radius-large);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  background-color: var(--color-background-light);

  margin: 0 auto;
  padding: 30px;
  gap: 20px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  transition: transform var(--transition-main);
  box-shadow: var(--transition-main);
}

.estimate-quote-subcontainer:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong, 0 8px 18px rgba(0, 0, 0, 0.2));
}

.estimate-quote-text p {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);

  line-height: 1.6;
  text-align: center;
  margin: 0;
}

.estimate-quote-button {
  width: 180px;
  height: 50px;
  border-radius: 25px;
  border: none;

  background: linear-gradient(
    90deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 100%
  );
  color: var(--text-light);

  font-size: 16px;
  font-weight: 600;

  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);

  cursor: pointer;
}

.estimate-quote-button:hover {
  background: linear-gradient(
    90deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  transform: scale(1.05);
  box-shadow: var(--shadow-strong, 0 6px 12px rgba(0, 0, 0, 0.35));
}

/* FINE SEZIONE PREVENTIVO */

/* RECENSIONI GOOGLE*/
.reviews-section {
  padding: 40px 20px;
  margin-top: 10px;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.reviews-title {
  font-size: 28px;
  color: var(--text-heading);
  font-weight: bold;
  margin: 0;
}

.reviews-underline {
  display: block;
  width: 40%;
  height: 3px;
  margin: 8px auto 24px auto;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-small);
}

.reviews-button {
  margin-top: 20px;
  width: 200px;
  height: 50px;
  background: linear-gradient(
    90deg,
    var(--color-primary-dark),
    var(--color-primary)
  );
  border: none;
  color: var(--text-light);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-main);
  box-shadow: var(--shadow-medium);
}

.reviews-button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

/* CSS NUOVO PER IL CAROSELLO - AGGIUNGI QUESTO */
.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 auto 30px;
  max-width: 1400px;
}

.reviews-display-container {
  flex: 1;
  overflow: hidden;
  padding: 20px 0;
}

.reviews-display {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.review-card {
  min-width: calc(25% - 15px);
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.review-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c5530;
}

.review-stars {
  color: #ffc107;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.review-text {
  text-align: left;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.review-date {
  text-align: right;
  color: #999;
  font-size: 0.85rem;
  font-style: italic;
}
