/* ===== RESET & STILI BASE ===== */
:root {
  /* Colori principali */
  --color-primary: #0071e3; /* Blu Apple */
  --color-secondary: #1d1d1f; /* Grigio Apple quasi nero */
  --color-light: #f5f5f7; /* Grigio Apple chiaro */
  --color-white: #ffffff;
  --color-text: #1d1d1f;
  --color-text-secondary: #86868b;
  --color-border: #d2d2d7;
  
  /* Ombre */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  
  /* Transizioni */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .section-title {
  font-family: 'SF Pro Display', 'Helvetica Neue', 'Helvetica', sans-serif !important;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5em;
  color: var(--color-text);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

p {
  margin-bottom: 1.5rem;
  color: var(--color-text-secondary);
}

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style-position: inside;
}

button, .btn {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-secondary);
  text-align: center;
  margin-top: -10px;
  margin-bottom: 40px;
  font-weight: 400;
}

/* ===== HERO SECTION ===== */
.hero {
  background: url('../images/hero-bg.jpeg') center center/cover no-repeat;
  height: 90vh;
  min-height: 700px;
  position: relative;
  margin-top: -1px; /* Fix gap con header */
}

.hero-overlay {
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.6) 100%);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-content {
  text-align: left;
  max-width: 650px;
  animation: fadeIn 1s ease-out;
}

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

.hero-content h1 {
  font-size: 4.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

@media screen and (max-width: 768px) {
  .hero-subtitle {
    margin-top: 20px; /* Spazio per evitare sovrapposizione su mobile */
  }
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--color-text-secondary);
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.cta-button {
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all var(--transition-medium);
  text-align: center;
}

.cta-button.primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.3);
}

.cta-button.primary:hover {
  background-color: #005bbd;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.4);
}

.cta-button.secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.cta-button.secondary:hover {
  background-color: rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Media Query per dispositivi mobili */
@media screen and (max-width: 768px) {
  .hero {
    height: auto;
    min-height: 600px;
  }
  
  .hero-overlay {
    padding: 100px 0 60px;
    background: rgba(255, 255, 255, 0.85);
  }
  
  .hero-content {
    text-align: center;
    margin: 0 auto;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
}

/* ===== SEZIONE LE NOSTRE CASE ===== */
.featured-houses {
  padding: 80px 0;
  background-color: var(--color-white);
}

.featured-houses h2 {
  text-align: center;
  margin-bottom: 15px;
}

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

.house-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

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

.house-image {
  height: 250px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.house-details {
  padding: 25px;
}

.house-location {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
}

.house-location i {
  color: var(--color-primary);
  margin-right: 5px;
}

.house-details h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

.house-details p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
}

.house-features {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.house-features span {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.house-features i {
  color: var(--color-primary);
  margin-right: 5px;
}

.house-btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition-medium);
}

.house-btn:hover {
  background-color: #005bbd;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.view-all-container {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  padding: 10px 0;
  position: relative;
  transition: var(--transition-medium);
}

.view-all-btn i {
  margin-left: 8px;
  transition: var(--transition-medium);
}

.view-all-btn:hover {
  color: #005bbd;
}

.view-all-btn:hover i {
  transform: translateX(5px);
}

.view-all-btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-medium);
}

.view-all-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media screen and (max-width: 768px) {
  .house-grid {
    grid-template-columns: 1fr;
  }
  
  .house-card {
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ===== SEZIONE GALLERIA FOTOGRAFICA ===== */
.photo-gallery {
  padding: 80px 0;
  background-color: var(--color-light);
}

.photo-gallery h2 {
  text-align: center;
  margin-bottom: 15px;
}

.gallery-container {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 20px;
  padding: 0 40px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-medium);
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-medium);
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.main-item {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-medium);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-overlay h3 {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 5px;
}

.gallery-nav {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

.gallery-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--color-text);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  pointer-events: auto;
  transition: var(--transition-fast);
  border: none;
}

.gallery-nav-btn:hover {
  background-color: var(--color-white);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

@media screen and (max-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }
  
  .main-item {
    grid-column: span 2;
    grid-row: span 1;
  }
}

@media screen and (max-width: 576px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 200px);
  }
  
  .main-item {
    grid-column: 1;
    grid-row: span 1;
  }
}

/* ===== SEZIONE VANTAGGI ===== */
.features-section {
  padding: 80px 0;
  background-color: var(--color-white);
}

.features-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

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

.feature-item {
  padding: 30px;
  border-radius: var(--radius-md);
  background-color: var(--color-light);
  text-align: center;
  transition: var(--transition-medium);
}

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

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--color-primary);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 113, 227, 0.1);
  border-radius: 50%;
  z-index: -1;
  transform: scale(0.8);
  transition: var(--transition-medium);
}

.feature-item:hover .feature-icon::after {
  transform: scale(1);
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.feature-item p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 576px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .feature-item {
    max-width: 350px;
    margin: 0 auto;
  }
}

/* ===== SEZIONE FAQ ===== */
.faq-section {
  padding: 80px 0;
  background-color: var(--color-light);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 15px;
}

.faq-accordion {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  background-color: var(--color-white);
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.faq-question h3 {
  font-size: 1.1rem;
  margin-bottom: 0;
  font-weight: 500;
  flex: 1;
}

.faq-icon {
  color: var(--color-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.faq-item.active .faq-icon i {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: var(--transition-medium);
}

.faq-item.active .faq-answer {
  padding: 0 25px 25px;
  max-height: 1000px;
}

.faq-answer p {
  margin-bottom: 15px;
  color: var(--color-text-secondary);
}

.faq-answer ul {
  margin-bottom: 15px;
  padding-left: 20px;
  list-style-type: disc;
}

.faq-answer li {
  margin-bottom: 8px;
  color: var(--color-text-secondary);
}

.faq-footer {
  text-align: center;
  margin-top: 40px;
}

.faq-footer p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.faq-contact-btn {
  display: inline-flex;
  align-items: center;
  color: var(--color-primary);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition-medium);
  border: 1px solid var(--color-primary);
  cursor: pointer;
  position: relative;
  z-index: 10;
  text-decoration: none;
}

.faq-contact-btn i {
  margin-left: 8px;
  transition: var(--transition-fast);
}

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

.faq-contact-btn:hover i {
  transform: translateX(5px);
}

.faq-section h2 {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 40px;
}

.faq-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.faq-card {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.faq-card:hover {
  transform: translateY(-5px);
}

.faq-question {
  font-size: 1.2rem;
  font-weight: bold;
  color: #007AFF;
  margin-bottom: 10px;
}

.faq-answer {
  font-size: 1rem;
  color: #555;
  display: none;
  line-height: 1.5;
}

.faq-card.active .faq-answer {
  display: block;
}

/* ===== Sezione Slider delle Case ===== */
.house-slider {
  position: relative;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh; /* Schermo intero su desktop */
}

/* Ogni slide copre l'intero container */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

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

/* Caption: titolo e pulsante */
.slide-caption {
  position: absolute;
  bottom: 20%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  background-color: rgba(255, 255, 255, 0.8); /* Overlay chiaro per contrasto */
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 80%;
}

.slide-title {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.slide-button {
  display: inline-block;
  background-color: #007AFF;  /* Blu Apple */
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.slide-button:hover {
  background-color: #0051a8;
}

/* Navigazione laterale */
.slider-nav {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 40px;
  z-index: 10;
}

.slider-nav button {
  background-color: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  font-size: 2.5rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-nav button:hover {
  background-color: rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}

/* Responsive: su dispositivi con schermo inferiore a 600px */
@media screen and (max-width: 600px) {
  .slider-container {
    height: 60vh; /* Altezza ridotta per mobile */
  }
  .slide-caption {
    bottom: 10%;
    padding: 15px 20px;
  }
  .slide-title {
    font-size: 1.5rem;
  }
  .slide-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
  .slider-nav button {
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
  }
}








/* ===== Sezione Slider 6 strutture ===== */



.container25 {
  max-width: 90%; /* Assicurati che non superi la viewport */
  margin: 0 auto;
  padding: 0px;
  position: relative;
  box-sizing: border-box;
  overflow: hidden; /* Nasconde qualsiasi overflow */
  z-index: auto; /* Non interferisce con altri elementi */
}

.container25 .products {
  padding-bottom: 20px;
  margin-bottom: 40px;
  overflow-x: auto; /* Scroll orizzontale */
}

.products {
  display: flex;
  flex-wrap: nowrap; /* Evita che gli elementi vadano su più righe */
  gap: 20px;
  overflow-x: auto; /* Scroll orizzontale */
  overflow-y: hidden;
  max-width: 100%; /* Impedisce di superare la larghezza della viewport */
  padding: 0 10px; /* Margini interni per evitare overflow */
  scroll-behavior: smooth; /* Scroll fluido */
}

.products::-webkit-scrollbar {
  display: none; /* Nasconde la scrollbar su Chrome/Safari */
}
.product {
  display: block;
  background-color: white;
  border-radius: 20px;
  padding: 20px;
  flex: 0 0 auto;
max-width: calc(100vw - 40px);
width: 300px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 20px;
  object-fit: contain;
}

  .nav-button {
         width: 70px;
          height: 70px;
          background-color: #e5e5e5;
          border-radius: 50%;
          display: flex;
          justify-content: center;
          align-items: center;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
          position: absolute;
      top: 50%;
      cursor: pointer;
      border: none;
      z-index: 2;
  }

  .arrow {
      font-size: 25px; /* Dimensione della freccia */
      color: #4a4a4a;
  }

  .nav-button:hover .arrow {
      transform: scale(1.3); /* Ingrandisce la freccia */
  }

  .nav-button.left {
      left: 10px;
  }

  .nav-button.right {
      right: 10px;
  }

  @media (max-width: 768px) {
      .nav-button.left {
          display: none;
      }
  }

.header2 {
          font-size: 48px;
          font-weight: bold;
          text-align: center;
          background: linear-gradient(45deg, #ff6b6b, #f06595, #845ec2, #00c9a7, #f9f871);
          -webkit-background-clip: text;
  background-clip: text;
          -webkit-text-fill-color: transparent;
      }
      
      .spacer {
  height: 20px; /* Altezza dello spazio */
  width: 100%; /* Per far sì che occupi tutta la larghezza */
  display: block; /* Garantisce che venga trattato come un elemento a blocco */
}

.header4-container {
  text-align: center;
}

/* Link che include il testo */
.header4-link {
  text-decoration: none; /* Rimuove la sottolineatura del link */
  font-size: 68px;
  font-weight: bold;
  display: inline-block; /* Per gestire meglio l'hover */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Effetto hover sul link */
.header4-link:hover {
  transform: scale(1.05); /* Leggero ingrandimento */
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra */
}

/* Testo nero */
.header4-black {
  color: black;
}

/* Testo con sfumatura */
.header4-gradient {
  background: linear-gradient(45deg, #ff6b6b, #f06595, #845ec2, #00c9a7, #f9f871);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sottotitolo */
.header4-subtext {
  font-size: 16px;
  text-align: center;
  color: #6e6e73;
  margin-top: 10px;
}

/* Media queries per dimensioni dello schermo */
@media (max-width: 1024px) {
  .header4-link {
      font-size: 40px; /* Riduce il testo per tablet */
  }
}

@media (max-width: 768px) {
  .header4-link {
      font-size: 45px; /* Testo più piccolo per smartphone grandi */
  }
}
@media (min-width: 768px) {
  .header4-container {
      display: none; /* Nasconde il box per dispositivi mobili */
  }
}

.pricegallery {
  color: red; /* Cambia il colore del testo in rosso */
  font-size: 16px; /* Dimensione più grande */
  font-weight: bold; /* Rende il testo in grassetto */
  text-transform: uppercase; /* Tutto maiuscolo */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra al testo */
  font-family: 'Arial', sans-serif; /* Font più moderno */
  margin-top: 10px; /* Spazio sopra il titolo */
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--color-white);
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 500;
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background-color: var(--color-primary);
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.footer-desc {
  color: #ccc;
  margin-bottom: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--color-white);
  transition: var(--transition-medium);
}

.social-icons a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #ccc;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--color-white);
  transform: translateX(5px);
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  color: #ccc;
  font-size: 0.95rem;
}

.contact-info i {
  color: var(--color-primary);
  margin-right: 10px;
  margin-top: 5px;
}

.contact-info a {
  color: #ccc;
  transition: var(--transition-fast);
}

.contact-info a:hover {
  color: var(--color-white);
}

.footer-form {
  display: flex;
  margin-top: 15px;
}

.footer-form input {
  flex: 1;
  padding: 12px 15px;
  border: none;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  color: var(--color-white);
  font-size: 0.9rem;
}

.footer-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.footer-form button {
  padding: 0 15px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: var(--transition-fast);
}

.footer-form button:hover {
  background-color: #005bbd;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-bottom p {
  color: #999;
  margin-bottom: 0;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-bottom-links a {
  color: #999;
  transition: var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--color-white);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-column:first-child {
    grid-column: 1 / -1;
  }
  
  .footer-logo {
    text-align: center;
  }
  
  .footer-desc {
    text-align: center;
  }
  
  .social-icons {
    justify-content: center;
  }
}

@media screen and (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-bottom-links {
    justify-content: center;
  }
}
.product h2 {
  margin-bottom: 12px; /* Aggiunge uno spazio di 10px sotto il titolo */
      margin-top: 12px; /* Aggiunge uno spazio di 10px sotto il titolo */

}
@media (max-width: 768px) {
  /* Nasconde il pulsante di navigazione destro */
  .nav-button.right {
      display: none;
  }

  /* Stile per la scritta "Scorri" */
  .scroll-text {
      display: block;
      position: absolute;
      bottom: 20px;
      right: 20px;
      font-size: 16px;
      color: #4a4a4a;
      font-weight: bold;
      background: rgba(255, 255, 255, 0.8); /* Sfondo leggero */
      padding: 8px 12px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      opacity: 1;
      transition: opacity 0.3s ease; /* Transizione per nascondere la scritta */
  }

  /* Nasconde la scritta quando necessario */
  .scroll-text.hidden {
      opacity: 0;
      pointer-events: none; /* Impedisce interazioni */
  }
}


@media (max-width: 768px) {
  /* Nasconde il pulsante di navigazione destro */
  .nav-button.right {
      display: none;
  }

  /* Stile per la scritta "Scorri" */
  .scroll-text {
      display: block;
      position: absolute;
      bottom: 20px;
      right: 20px;
      font-size: 16px;
      color: #4a4a4a;
      font-weight: bold;
      background: rgba(255, 255, 255, 0.8); /* Sfondo leggero */
      padding: 8px 12px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      opacity: 1;
      transition: opacity 0.3s ease; /* Transizione per nascondere la scritta */
  }

  /* Nasconde la scritta quando necessario */
  .scroll-text.hidden {
      opacity: 0;
      pointer-events: none; /* Impedisce interazioni */
  }
}
.header5-container {
  text-align: center;
}

/* Link che include il testo */
.header5-link {
  text-decoration: none; /* Rimuove la sottolineatura del link */
  font-size: 68px;
  font-weight: bold;
  display: inline-block; /* Per gestire meglio l'hover */
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Effetto hover sul link */
.header5-link:hover {
  transform: scale(1.05); /* Leggero ingrandimento */
  text-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2); /* Aggiunge un'ombra */
}

/* Testo nero */
.header5-black {
  color: black;
}

/* Testo con sfumatura */
.header5-gradient {
  background: linear-gradient(45deg, #ff6b6b, #f06595, #845ec2, #00c9a7, #f9f871);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Sottotitolo */
.header5-subtext {
  font-size: 16px;
  text-align: center;
  color: #6e6e73;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .header5-container {
      display: none; /* Nasconde il box per dispositivi mobili */
  }
}

@media (max-width: 768px) {
  .product {
      width: 70%; /* Riduce la larghezza delle card */
      max-width: none; /* Elimina qualsiasi limite di larghezza */
      margin: 0 auto; /* Centra le card nella visualizzazione */
  }

  .products {
      gap: 10px; /* Riduce la distanza tra le card per uno scroll più fluido */
      padding: 0 5px; /* Margine interno più piccolo */
  }
    .product h2 {
      font-size: 16px; /* Riduci la dimensione del titolo */
  }

  .product p {
      font-size: 14px; /* Riduci la dimensione del testo descrittivo */
  }

  .pricegallery {
      font-size: 14px; /* Riduci la dimensione del prezzo */
  }

  .product img {
      max-height: 150px; /* Riduci leggermente la dimensione delle immagini */
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: linear-gradient(135deg, #25d366 60%, #128c7e 100%);
  color: white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(33,150,243,0.13), 0 2px 8px rgba(33,150,243,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  font-size: 2.7rem;
  cursor: pointer;
  border: none;
  outline: none;
}
.whatsapp-float:hover {
  box-shadow: 0 12px 32px rgba(33,150,243,0.18), 0 4px 16px rgba(33,150,243,0.10);
  transform: scale(1.09);
  background: linear-gradient(135deg, #128c7e 60%, #25d366 100%);
}
@media (max-width: 600px) {
  .whatsapp-float {
    right: 10px;
    bottom: 10px;
    width: 52px;
    height: 52px;
    font-size: 2rem;
  }
}
