/*=============== VARIABLES & BASE ===============*/
:root {
  --header-height: 6rem;
  --primary-color: #C39D63;
  --primary-color-alt: #E9C579;
  --background-color: #1F1813;
  --background-color-light: #2a221c;
  --text-color: #f0e9e1;
  --text-color-dark: #1F1813;
  --white-color: #fff;
  --body-font: 'Montserrat', sans-serif;
  --title-font: 'Dancing Script', cursive;
  --h1-fs: clamp(2.5rem, 6vw + 1rem, 5rem);
  --h2-fs: clamp(2rem, 5vw, 3.5rem);
  --h3-fs: clamp(1.5rem, 4vw, 2.2rem);
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background-color: var(--background-color);
  color: var(--text-color);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-title {
  font-family: var(--title-font);
  font-size: var(--h2-fs);
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-family: var(--body-font);
  font-size: 1.2rem;
  font-weight: 300;
  margin-bottom: 3rem;
  color: var(--primary-color-alt);
}

/*=============== HEADER & NAV ===============*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: var(--header-height);
  transition: background-color .4s, backdrop-filter .4s, height .4s, box-shadow .4s, padding .4s;
}

.site-header.scrolled {
  height: calc(var(--header-height) - 1.5rem);
  background-color: rgba(31, 24, 19, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.logo-link {
  transition: var(--transition-fast);
  margin-top: 1rem;
}

.logo {
  width: 80px;
}

.site-header.scrolled .logo {
  width: 65px;
}

/* --- Layout Mobile (Default) --- */
.nav-desktop-left,
.header-actions {
  display: none;
}

.nav-toggle {
  background: transparent;
  border: none;
  color: var(--white-color);
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
}

/* --- Layout Desktop --- */
@media screen and (min-width: 1024px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 3rem;
  }

  .site-header.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .nav-toggle {
    display: none;
  }

  .logo-link {
    grid-column: 2 / 3;
    justify-self: center;
    margin-top: 0;
  }

  .logo {
    width: 130px;
  }

  .site-header.scrolled .logo {
    width: 100px;
  }

  .nav-desktop-left,
  .header-actions {
    display: block;
    grid-column: 1 / 2;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .header-actions {
    grid-column: 3 / 4;
    justify-self: end;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }

  .nav-link {
    white-space: nowrap;
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-fast);
  }

  .nav-link:hover {
    color: var(--primary-color);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-fast);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .socials-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 500;
  }

  .socials-desktop p {
    white-space: nowrap;
  }

  .socials-desktop a {
    font-size: 1.5rem;
    transition: var(--transition-fast);
  }

  .socials-desktop a:hover {
    color: var(--primary-color);
  }
}

/*=============== MENU MOBILE ===============*/
.nav-mobile {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background-color: var(--background-color-light);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.3);
  padding: 6rem 2rem 2rem;
  z-index: 1001;
  transition: right var(--transition-slow);
}

.nav-mobile.active {
  right: 0;
}

.nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  font-size: 1.3rem;
  font-weight: 500;
}

.nav-mobile-list .nav-link {
  position: relative;
  transition: color var(--transition-fast);
}

.nav-mobile-list .nav-link:hover {
  color: var(--primary-color);
}

.nav-mobile-list .nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width var(--transition-fast);
}

.nav-mobile-list .nav-link:hover::after {
  width: 100%;
}

.nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--white-color);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.nav-close:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

/*=============== HERO ===============*/
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-slider .slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  animation: kenburns 20s infinite;
}

.slide.active {
  opacity: 1;
}

@keyframes kenburns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.1) translate(-2%, 2%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.hero-dark {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--white-color);
  text-align: center;
}

.hero-overlay h2 {
  font-size: 1.5rem;
  font-weight: 200;
}

.hero-overlay h1 {
  font-family: var(--title-font);
  font-size: var(--h1-fs);
  font-weight: 400;
  margin-bottom: 2rem;
}

.linea-animata {
  margin: 10px auto 20px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  animation: expand-line 2s 1s ease forwards;
}

@keyframes expand-line {
  to {
    width: 150px;
  }
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-color);
  padding: 10px 24px;
  color: var(--text-color-dark);
  font-weight: bold;
  border-radius: 30px;
  transition: var(--transition-fast);
}

.cta:hover {
  background: var(--primary-color-alt);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.cta i {
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.lang-switch {
  position: fixed; /* Cambiato da absolute a fixed */
  bottom: 14px;
  right: 60px;
  z-index: 10;
  background: rgba(31, 24, 19, 0.7);
  border: 1px solid var(--primary-color);
  color: var(--white-color);
  padding: 8px 12px;
  border-radius: 25px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.lang-switch:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
}

.lang-switch span {
  font-size: 0.9rem;
  font-weight: 700;
  font-family: var(--body-font);
}

/*=============== CHI SIAMO ===============*/
.about-us {
  padding: 6rem 0;
  background-color: var(--background-color-light);
  overflow: hidden;
}

.about-us-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.about-images-container { /* Nuovo contenitore per le immagini */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.about-image-wrapper {
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
  transition: transform .5s ease;
  /* Larghezza di default per mobile */
  width: 90%;
  max-width: 400px;
  height: auto;
}

.about-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.1);
}

.about-image-wrapper.vertical {
  aspect-ratio: 3 / 4; /* Per foto verticali */
}

.about-image-wrapper.horizontal {
  aspect-ratio: 4 / 3; /* Per foto orizzontali */
}

.about-content-wrapper {
  text-align: center;
}

.about-text {
  margin-bottom: 1rem;
}

/* --- Responsive per la sezione Chi siamo --- */
@media screen and (min-width: 768px) {
  .about-us-container {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
    text-align: left;
  }
  .about-images-container {
    flex: 1;
    align-items: center; /* Per centrare le immagini */
  }
  .about-content-wrapper {
    flex: 1;
  }
}

@media screen and (min-width: 992px) {
  .about-images-container {
    position: relative;
    height: 600px;
  }

  /* Posizionamento delle immagini per desktop */
  .about-image-wrapper.img1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    z-index: 2;
  }
  .about-image-wrapper.img2 {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    z-index: 1;
  }
  .about-image-wrapper.img3 {
    position: absolute;
    bottom: 50px;
    left: 50px;
    width: 320px;
    z-index: 3;
  }
  .about-image-wrapper.img4 {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 280px;
    z-index: 2;
  }
  .about-image-wrapper.img5 {
    position: absolute;
    top: 150px;
    left: 200px;
    width: 250px;
    z-index: 4;
  }
}
/*=============== PRODOTTI ===============*/
.products {
  padding: 6rem 0;
  text-align: center;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Griglia più stretta */
  gap: 2rem;
  justify-items: center;
}

.product-item {
  width: 100%;
  max-width: 250px; /* Larghezza massima ridotta per un look più professionale */
  height: auto;
  position: relative;
  overflow: visible; /* Necessario per far uscire il testo */
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.product-image {
  width: 100%;
  height: 250px; /* Altezza fissa per mantenere l'uniformità */
  overflow: hidden;
  border-radius: 12px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
  filter: brightness(0.9); /* Leggermente meno scuro per default */
}

.product-item:hover .product-image img {
  transform: scale(1.05); /* Effetto zoom più sottile */
  filter: brightness(1.1); /* Leggera luminosità in più */
}

.product-details {
  position: relative; /* Spostato da absolute a relative */
  bottom: auto;
  left: auto;
  width: 100%;
  padding: 10px 0;
  background: transparent; /* Sfondo rimosso */
  text-align: center;
}

.product-details h3 {
  font-family: var(--body-font); /* Font più leggibile */
  font-size: 1.2rem; /* Dimensione ridotta */
  font-weight: 500;
  color: var(--white-color); /* Colore del testo per il tema scuro */
  margin-top: 10px;
  transition: color var(--transition-fast);
}

.product-item:hover .product-details h3 {
  color: var(--primary-color-alt);
}

.product-hover-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.4s, transform 0.4s;
}

.product-item:hover .product-hover-btn {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Responsiveness for Products --- */
@media screen and (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr 1fr; /* Griglia 2 colonne su mobile */
    gap: 1rem;
  }
  .product-image {
    height: 180px; /* Altezza ridotta per mobile */
  }
  .product-details h3 {
    font-size: 1rem;
  }
}

/* ============================= GALLERIA ===================================== */
.gallery-section {
  padding: 4rem 0;
  background-color: var(--background-color-light);
  overflow: hidden;
  /* Aggiungi questa linea per garantire che il contenuto non superi il contenitore */
  max-width: 100vw;
}

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider {
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.slider .list {
  display: flex;
  width: fit-content;
  animation: scroll 40s linear infinite;
  /* Aumenta la velocità di scorrimento su desktop per un look più dinamico */
  animation-duration: 60s;
}

/* Modifiche per il mobile */
@media (max-width: 768px) {
  .slider .list {
    animation-duration: 40s; /* Velocità di scorrimento ridotta per schermi più piccoli */
  }
}

.slider[data-direction="reverse"] .list {
  animation-name: scroll-reverse;
  transform: translateX(-50%);
}


/* .slider:hover .list {
  animation-play-state: paused;
} */

.slider .item {
  flex-shrink: 0;
  width: clamp(250px, 30vw, 400px);
  aspect-ratio: 4 / 3;
  padding: 0 0.5rem;
}

.slider .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); 
  }
}

@keyframes scroll-reverse {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ============================= ANIMAZIONE SCROLL ===================================== */

/* Stato iniziale: nascosto e pronto per l'animazione */
.slider {
  /* ... tuo CSS esistente ... */
  opacity: 0; /* Inizialmente trasparente */
  transform: translateY(50px); /* Inizialmente leggermente spostato in basso */
  transition: opacity 1s ease-out, transform 1s ease-out; /* Transizione fluida */
}

/* Stato finale: visibile e nella posizione finale */
.slider.is-visible {
  opacity: 1; /* Completamente visibile */
  transform: translateY(0); /* Torna alla posizione normale */
}

/* Opzionale: ritardo per l'effetto a cascata sul secondo slider */
.slider:nth-child(2) {
  /* Ritardo di 0.3s per il secondo slider per farlo apparire dopo il primo */
  transition-delay: 0.3s;
}

/* Applica il ritardo anche allo stato visibile per la transizione completa */
.slider.is-visible:nth-child(2) {
  transition-delay: 0s; /* Il ritardo è già applicato al selettore .slider */
}

/*=============== CONTATTI ===============*/
.contacts-footer {
  background-color: var(--background-color-dark); /* ← stesso colore dei prodotti */
  padding: 6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contacts-container-footer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  text-align: center;
}

.footer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.footer-logo img {
  width: 60px;
}

.footer-brand {
  font-family: var(--title-font);
  font-size: var(--h3-fs);
  color: var(--primary-color);
  margin: 0;
}

.footer-slogan {
  font-family: var(--body-font);
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-color);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
  transform: scale(1.05);
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 500;
}

.footer-socials a {
  font-size: 1.5rem;
  transition: var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--primary-color);
  transform: scale(1.1);
}

.footer-contacts {
  text-align: center;
}

.footer-contacts p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contacts i {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.footer-title {
  font-family: var(--body-font);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--primary-color-alt);
  margin-bottom: 1.5rem;
}

.footer-map iframe {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.footer-copy {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
   border-top: 1px solid rgba(255, 255, 255, 0.1);           /*CAMBIA COLORE QUIIIIII */
  margin-top: 3rem;
}

/* --- Responsive per il footer --- */
@media screen and (min-width: 768px) {
  .contacts-container-footer {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    gap: 3rem;
  }

  .footer-info,
  .footer-contacts {
    text-align: left;
    align-items: flex-start;
  }

  .footer-logo {
    justify-content: flex-start;
  }

  .footer-contacts p {
    justify-content: flex-start;
  }

  .footer-links li {
    margin-bottom: 1rem;
  }
}

@media screen and (min-width: 992px) {
  .contacts-container-footer {
    gap: 5rem;
  }
}


/*=============== ANIMATIONS ON SCROLL ===============*/
.fade-up,
.fade-in {
  opacity: 0;
  transition: opacity .8s var(--transition-slow), transform .8s var(--transition-slow);
  transition-delay: var(--delay, 0s);
}

.fade-up {
  transform: translateY(40px);
}

.fade-in {
  transform: scale(0.95);
}

.animate {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.reveal-anim-left,
.reveal-anim-right {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 1.2s var(--transition-slow), transform 1.2s var(--transition-slow);
}

.reveal-anim-right {
  transform: translateX(50px);
}

.reveal-anim-left.animate,
.reveal-anim-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/*=============== FOOTER ===============*/
.footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  background-color: var(--background-color-dark); /* ← uniformato */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/*=============== RESPONSIVE DESIGN MEDIA QUERIES ===============*/
@media screen and (min-width: 768px) {
  .contacts-container {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    text-align: left;
  }

  .contacts-details {
    flex: 1;
  }

  .contacts-map {
    flex: 1;
  }

  .contacts-details p {
    justify-content: flex-start;
  }
}

@media screen and (min-width: 992px) {
  .about-us-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }

  .about-content-wrapper {
    text-align: left;
  }
}

/*=============== SCROLL UP BUTTON (NUOVO) ===============*/
.scroll-up {
  position: fixed;
  left: 60px;
  
  bottom: 14px;
  background: rgba(31, 24, 19, 0.7);
  border: 1px solid var(--primary-color);
  color: var(--white-color);
  padding: 8px 12px; /* Leggermente più grande per un look migliore */
  border-radius: 40%; /* Cerchio perfetto */
  font-size: 1.2rem;
  z-index: 10;
  cursor: pointer;
  display: inline-flex;
  transition: bottom 0.4s, transform 0.4s, background-color 0.3s;
}

.scroll-up:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
  transform: translateY(-4px); /* Effetto hover */
}

/* Classe per mostrare il pulsante */
.scroll-up.show {
  bottom: 15px; /* Posizione sopra il tasto lingua */
}

.heart{
  height: 8px;
  align-self: center;
}


/*=============== PAGINA PRODOTTO ===============*/
.product-hero {
  position: relative;
  width: 100%;
  height: 70vh; /* Un po' più basso dell'hero principale */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.product-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white-color);
  padding: 0 1.5rem;
}

.product-hero-content h1 {
  font-family: var(--title-font);
  font-size: var(--h1-fs);
  margin-bottom: 1rem;
}

.product-hero-content p {
  font-size: 1.2rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.back-to-products-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  border: 1px solid var(--primary-color);
  border-radius: 30px;
  transition: var(--transition-fast);
}

.back-to-products-btn:hover {
  background-color: var(--primary-color);
  color: var(--text-color-dark);
}

/* Modifiche qui per i sottotitoli H2 e la linea animata */
.product-details-layout h2 {
  font-family: var(--body-font);
  font-size: var(--h3-fs);
  font-weight: 300; /* Reso il font più sottile */
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.product-details-layout h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  height: 2px; /* Ridotta l'altezza della linea */
  width: 0;
  background-color: var(--primary-color-alt);
  animation: underline-expand 1.5s ease forwards;
}

@keyframes underline-expand {
  from { width: 20px; } /* La linea parte da una lunghezza ridotta */
  to   { width: 100%; }
}

.product-details-layout {
  padding: 6rem 0;
  background-color: var(--background-color-light);
}

.product-content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

/* Invert order of the second row for alternating effect on desktop */
.product-content-row:nth-child(2) .product-text-col {
  order: 1;
}
.product-content-row:nth-child(2) .product-image-col {
  order: 2;
}

.product-image-col img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
  object-fit: cover;
}

.product-text-col .section-title {
  text-align: left;
  margin-bottom: 1.5rem;
}

.product-text-col p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.product-info-centered {
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

.linea-animata2 {
  margin: 5px auto 10px;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  animation: expand-line 5s 5s ease forwards;
}

@keyframes expand-line {
  to {
    width: 150px ;
  }
}

/* --- Responsive for product page --- */
@media screen and (max-width: 850px) {
  .product-content-row {
    grid-template-columns: 1fr; /* Columns stack */
    gap: 3rem;
    margin-bottom: 4rem;
  }
  
  /* Reset order for mobile, so image is always above text */
  .product-content-row:nth-child(2) .product-text-col,
  .product-content-row:nth-child(2) .product-image-col {
    order: initial;
  }

  .product-text-col h2 {
    text-align: center; /* Center titles on mobile */
  }

  .product-text-col {
      text-align: center;
  }
}

.link-francesca {
  text-decoration: none; /* Rimuove la sottolineatura di default */
  color: inherit; /* Mantiene il colore del testo originale del paragrafo */
  transition: all 0.3s ease-in-out; /* Rende l'animazione fluida */
}

.link-francesca:hover {
  transform: scale(1.1); /* Ingrandisce l'elemento del 10% */
  color: #F8F4A6; /* Cambia il colore del testo in giallo chiaro */
  text-decoration: underline; /* Aggiunge la sottolineatura */
}