/* ============================= */
/* HERO IMAGE – VERSION PRO */
/* ============================= */

.chi-siamo-hero {
  width: 100%;
  background-color: #5b3519;
  overflow: hidden;
}

/* Le picture et l’image prennent toute la largeur */
.chi-siamo-hero picture,
.chi-siamo-hero img {
  width: 100%;
  display: block;
}

/* ===== DESKTOP ===== */
.chi-siamo-hero img {
  height: calc(100vh - 90px); /* hauteur écran - header */
  object-fit: cover;         /* immersion visuelle */
  object-position: center top; /* tomate bien visible */
}

/* ============================= */
/* TEXTE */
/* ============================= */

.chi-siamo-text-section {
  width: 100%;
  background-color: #5b3519;
  color: white;
  padding: 140px 0;
}

.chi-siamo-text-container {
  max-width: 900px;
  margin: auto;
  padding: 0 40px;
  text-align: center;
}

.chi-siamo-text-container h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 30px;
}

.chi-siamo-text-container p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.8;
}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width: 768px) {

  /* 🔥 clé absolue */
  .chi-siamo-hero {
    background-color: transparent; /* ⬅️ supprime la bande marron */
  }

  .chi-siamo-hero img {
    height: auto;           /* ⬅️ laisse l’image définir la hauteur */
    min-height: unset;
    object-fit: contain;    /* image complète */
    display: block;
  }

  .chi-siamo-text-section {
    padding: 90px 0;
  }

  .chi-siamo-text-container {
    padding: 0 20px;
  }

  .chi-siamo-text-container h2 {
    font-size: 30px;
  }

  .chi-siamo-text-container p {
    font-size: 16px;
  }
}
/* ============================= */
/* TITRE HERO – UNA STORIA (3 LIGNES) */
/* ============================= */

.chi-siamo-hero {
  position: relative;
}

.chi-siamo-title {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: clamp(14%, 18vw, 26%);
  transform: translateY(-50%);
  color: #f5efe8;
  font-family: 'Playfair Display', serif;
  line-height: 1.05;
}

/* chaque ligne */
.chi-siamo-title .line {
  display: block;
}

/* ligne 1 : Una + Storia */
.chi-siamo-title .line1 {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

/* ===== DESKTOP ===== */
.chi-siamo-title .small {
  font-size: 72px;   /* Una / di */
  font-weight: 400;
}

.chi-siamo-title .big {
  font-size: 86px;   /* Storia / cooperazione */
  font-weight: 700;
}

/* ===== TABLETTE (iPad) ===== */
@media (max-width: 1024px) {

  .chi-siamo-title {
    left: 18%;
  }

  .chi-siamo-title .small {
    font-size: 60px;
  }

  .chi-siamo-title .big {
    font-size: 72px;
  }

  .chi-siamo-title .line1 {
    gap: 14px;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {

  .chi-siamo-title {
    top: 18%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 90%;
  }

  .chi-siamo-title .line1 {
    justify-content: center;
    gap: 10px;
  }

  .chi-siamo-title .small {
    font-size: 44px;
  }

  .chi-siamo-title .big {
    font-size: 52px;
  }
}
/* 🔥 CENTRAGE VISUEL DU "di" */
.chi-siamo-title .line.small {
  text-align: center;
  width: 100%;
}
/* ============================= */
/* INDICATEUR DE SCROLL (FLÈCHE) */
/* ============================= */

.scroll-indicator {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* chevrons */
.scroll-indicator .chevron {
  width: 22px;
  height: 22px;
  border-right: 3px solid rgba(255,255,255,0.8);
  border-bottom: 3px solid rgba(255,255,255,0.8);
  transform: rotate(45deg);
  animation: scrollDown 1.6s infinite;
}

/* deuxième chevron légèrement décalé */
.scroll-indicator .chevron:nth-child(2) {
  animation-delay: 0.3s;
  opacity: 0.6;
}

/* animation fluide */
@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(45deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px) rotate(45deg);
  }
}

/* ============================= */
/* FIN ONDULÉE SECTION TEXTE – FIX 100% (ZÉRO SCROLL) */
/* ============================= */

.chi-siamo-text-section {
  position: relative;
  background-color: #5b3519;
  overflow: hidden;          /* ✅ empêche tout scroll parasite */
  padding-bottom: 220px;     /* ✅ réserve l’espace pour la vague (flèche visible) */
}

/* le contenu au-dessus de la vague */
.chi-siamo-text-container {
  position: relative;
  z-index: 2;
}

/* la vague (derrière le contenu) */
.chi-siamo-text-section::after {
  content: "";
  position: absolute;
  left: 0;                  /* ✅ PAS de 100vw */
  right: 0;                 /* ✅ largeur réelle du conteneur */
  bottom: 0;
  height: 160px;
  background: #ffffff;      /* couleur de la section suivante */

  z-index: 1;               /* ✅ derrière la flèche + texte */

  clip-path: path(
    "M0,40 C200,120 400,0 720,50 1000,100 1200,140 1440,60 L1440,160 L0,160 Z"
  );
}

/* ============================= */
/* SECTION BENVENUTI */
/* ============================= */

.benvenuti-section {
  position: relative;   /* ✅ obligatoire */
  background: #ffffff;
  padding: 120px 0;
  margin-top: -1px;     /* 🔥 SUPPRIME LA LIGNE */
}


.benvenuti-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}

/* TEXTE */
.benvenuti-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1.1;
  color: #5b3519;
  margin-bottom: 22px;

  opacity: 0;
  transform: translateY(24px);
}

.benvenuti-paragraph {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.75;
  color: #333;

  opacity: 0;
  transform: translateY(24px);
}

/* IMAGE */
.benvenuti-image {
  opacity: 0;
  transform: translateY(24px);
}

.benvenuti-image img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 28px 60px rgba(0,0,0,0.18);
}

/* ANIMATION ACTIVE */
.benvenuti-visible .benvenuti-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.benvenuti-visible .benvenuti-paragraph {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.benvenuti-visible .benvenuti-image {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease 0.3s, transform 0.7s ease 0.3s;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .benvenuti-container {
    padding: 0 30px;
    gap: 50px;
  }

  .benvenuti-title {
    font-size: 44px;
  }
}

@media (max-width: 768px) {
  .benvenuti-section {
    padding: 90px 0;
  }

  .benvenuti-container {
    grid-template-columns: 1fr;
    padding: 0 20px;
    gap: 34px;
  }

  .benvenuti-title {
    font-size: 34px;
  }

  .benvenuti-paragraph {
    font-size: 16px;
  }
}

/* ============================= */
/* SECTION Tradizione e innovazione */
/* ============================= */

.ricette-intro {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
}

/* IMAGE DE FOND */
.ricette-intro-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ricette-intro-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY ASSOMBRI */
.ricette-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

/* CONTENU */
.ricette-intro-content {
  position: relative;
  z-index: 3;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  color: #ffffff;
}

.ricette-intro-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 18px;
}

.ricette-intro-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  max-width: 680px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .ricette-intro {
    height: 440px;
  }

  .ricette-intro-content h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .ricette-intro {
    height: auto;
    padding: 90px 0;
  }

  .ricette-intro-content {
    padding: 0 20px;
  }

  .ricette-intro-content h2 {
    font-size: 32px;
  }

  .ricette-intro-content p {
    font-size: 16px;
  }
}
/* ============================= */
/* SECTION STORIA INTERATTIVA */
/* ============================= */

.storia-section {
  position: relative;              /* OBLIGATOIRE */
  background-color: #5b3519;
  overflow: hidden;                /* OBLIGATOIRE */
  padding: 100px 0 220px;          /* espace pour la vague */
}
/* VAGUE DE FIN — SECTION STORIA */
.storia-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 160px;
  background: #ffffff;   /* couleur de la section suivante */
  z-index: 1;
  transform: translateY(1px); /* ✅ inclus dans le même bloc */

  clip-path: path(
    "M0,40 C200,120 400,0 720,50 1000,100 1200,140 1440,60 L1440,160 L0,160 Z"
  );
}


.storia-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
}

/* SLIDES */
.storia-slide {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.storia-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* CONTENU */
.storia-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 60px;
  align-items: center;
}

/* IMAGE DANS CARTE BLANCHE */
.storia-image-card {
  background: #ffffff;
  padding: 18px;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.storia-image-card img {
  width: 100%;
  display: block;
  border-radius: 14px;
}

/* TEXTE SUR FOND MARRON */
.storia-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 18px;
}

.storia-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #ffffff;
  max-width: 620px;
}

/* FLECHES */
.storia-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  color: #5b3519;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
}

.storia-arrow.left {
  left: 10px;   /* 🔥 PLUS DE DÉBORDEMENT */
}

.storia-arrow.right {
  right: 10px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .storia-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .storia-text h2 {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .storia-section {
    padding: 70px 0;
  }

  .storia-text p {
    font-size: 16px;
  }
}

/* ============================= */
/* FLÈCHES — VISIBILITÉ & ANIMATION */
/* ============================= */

/* animation douce */
@keyframes arrowPulseRight {
  0% { transform: translate(0, -50%); }
  50% { transform: translate(6px, -50%); }
  100% { transform: translate(0, -50%); }
}

@keyframes arrowPulseLeft {
  0% { transform: translate(0, -50%); }
  50% { transform: translate(-6px, -50%); }
  100% { transform: translate(0, -50%); }
}

/* animation appliquée */
.storia-arrow.right {
  animation: arrowPulseRight 1.4s ease-in-out infinite;
}

.storia-arrow.left {
  animation: arrowPulseLeft 1.4s ease-in-out infinite;
}

/* flèche cachée */
.storia-arrow.is-hidden {
  opacity: 0;
  pointer-events: none;
}
/* ============================= */
/* FIN ONDULÉE — SECTION STORIA */
/* ============================= */





/* contenu AU-DESSUS DU FOND MARRON mais SOUS la vague */
.storia-wrapper {
  position: relative;
  z-index: 2;
}
/* ============================= */
/* FIX VAGUE STORIA — MOBILE */
/* ============================= */
@media (max-width: 768px) {
  .storia-section {
    padding: 70px 0 240px; /* 🔥 espace TEXTE + vague */
  }
}
/* ============================= */
/* SECTION QUALITÀ SENZA COMPROMESSI */
/* ============================= */

.qualita-section {
  background: #ffffff;
  padding: 110px 0;
  position: relative;
  overflow-x: hidden; /* 🔥 bloque tout débordement */
}

.qualita-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* TITRE */
.qualita-title {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  font-weight: 700;
  color: #5b3519;
  margin-bottom: 36px;

  opacity: 0;
  transform: translateY(30px);
}

/* TEXTE */
.qualita-text p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  max-width: 720px;
  margin: 0 auto 22px;

  opacity: 0;
  transform: translateY(30px);
}

/* ANIMATION */
.qualita-visible .qualita-title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.qualita-visible .qualita-text p {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.qualita-visible .qualita-text p:nth-child(2) {
  transition-delay: 0.15s;
}

.qualita-visible .qualita-text p:nth-child(3) {
  transition-delay: 0.3s;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .qualita-section {
    padding: 80px 0;
  }

  .qualita-title {
    font-size: 34px;
    margin-bottom: 26px;
  }

  .qualita-text p {
    font-size: 16px;
    line-height: 1.7;
  }
}
html, body {
  overflow-x: hidden;
}

/* ============================= */
/* FIX LIGNE FANTÔME ENTRE VAGUE & SECTION BLANCHE */
/* ============================= */

.qualita-section {
  position: relative;
}

/* ✅ FIX DEFINITIF : ligne fantôme iPad/mobile (Safari) */
@media (max-width: 1024px) {
  .qualita-section {
    margin-top: -2px; /* couvre la jonction avec la vague */
  }
}


/* ============================= */
/* QUALITÀ – VALEURS ANIMÉES */
/* ============================= */

.qualita-valori {
  max-width: 760px;            /* même largeur que le texte */
  margin: 70px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  overflow: hidden;            /* 🔥 empêche tout débordement */
}

.valore-item {
  flex: 1;
  text-align: center;
  animation: valoriLoop 9s infinite ease-in-out;
}

/* décalage d’animation */
.valore-item:nth-child(1) { animation-delay: 0s; }
.valore-item:nth-child(2) { animation-delay: 3s; }
.valore-item:nth-child(3) { animation-delay: 6s; }

/* cercle */
.valore-circle {
  width: 130px;
  height: 130px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #5b3519;
  display: flex;
  align-items: center;
  justify-content: center;
}

.valore-circle img {
  width: 64%;
  height: auto;
}

/* titre */
.valore-item h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #5b3519;
}

/* animation rotation logique */
@keyframes valoriLoop {
  0%   { transform: translateX(0); opacity: 1; }
  33%  { transform: translateX(-100%); opacity: 0; }
  66%  { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {
  .qualita-valori {
    flex-direction: row;          /* 🔥 reste sur une ligne */
    justify-content: center;
    gap: 16px;
  }

  .valore-circle {
    width: 90px;
    height: 90px;
  }

  .valore-item h3 {
    font-size: 14px;
    line-height: 1.3;
  }
}
/* ============================= */
/* SECTION IMAGE FULL RESPONSIVE */
/* ============================= */

.full-image-section {
  width: 100%;
  background-color: #5b3519; /* sécurité visuelle */
  overflow: hidden;
}

/* image responsive parfaite */
.full-image-section img {
  width: 100%;
  height: auto;          /* 🔥 garde le ratio */
  display: block;        /* supprime espaces fantômes */
  max-width: 100%;
}
/* ============================= */
/* SECTION CERTIFICAZIONI */
/* ============================= */

.certificazioni-section {
  background-color: #ffffff;
  padding: 120px 0;
}

.certificazioni-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* TITRE */
.certificazioni-title {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: #5b3519;
  line-height: 1.2;
  margin: 0;
}
@media (max-width: 1024px) {
  .certificazioni-title {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .certificazioni-section {
    padding: 90px 0;
  }

  .certificazioni-title {
    font-size: 30px;
    line-height: 1.3;
  }
}

/* ============================= */
/* CERTIFICAZIONI – LOGOS */
/* ============================= */

.certificazioni-logos {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  align-items: center;
}

.certificazione-item {
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.certificazione-item img {
  max-width: 160px;
  width: 100%;
  height: auto;
}

/* hover desktop */
.certificazione-item:hover {
  transform: translateY(-6px);
  opacity: 0.85;
  cursor: pointer;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .certificazioni-logos {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .certificazioni-logos {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .certificazione-item img {
    max-width: 140px;
  }
}

/* ============================= */
/* DECORATION CHI SIAMO */
/* ============================= */

.decor-chi-left{
  position:absolute;
  left:-60px;
  top:40px;

  width:240px;

  opacity:0.22;

  pointer-events:none;
  z-index:1;

  animation:chiLeafFloatLeft 7s ease-in-out infinite;
}

.decor-chi-right{
  position:absolute;
  right:-60px;
  top:40px;

  width:240px;

  opacity:0.22;

  pointer-events:none;
  z-index:1;

  animation:chiLeafFloatRight 7s ease-in-out infinite;
}


/* ============================= */
/* ANIMATION GAUCHE */
/* ============================= */

@keyframes chiLeafFloatLeft{

  0%{
    transform:translateY(0px) rotate(0deg);
  }

  50%{
    transform:translateY(-12px) rotate(-3deg);
  }

  100%{
    transform:translateY(0px) rotate(0deg);
  }

}

/* ============================= */
/* ANIMATION DROITE */
/* ============================= */

@keyframes chiLeafFloatRight{

  0%{
    transform:translateY(0px) rotate(0deg);
  }

  50%{
    transform:translateY(-10px) rotate(3deg);
  }

  100%{
    transform:translateY(0px) rotate(0deg);
  }

}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width:768px){

.decor-chi-left{
  width:120px;
  left:-20px;
  top:20px;
  opacity:0.18;
}

.decor-chi-right{
  width:120px;
  right:-20px;
  top:20px;
  opacity:0.18;
}

}

/* ============================= */
/* FIX LIGNE VAGUE – iPad PRO / AIR */
/* ============================= */

.chi-siamo-text-section::after{
  bottom:-4px;      /* chevauchement pour Safari iPad */
}

/* section suivante remonte légèrement */
.benvenuti-section{
  margin-top:-4px;
  position:relative;
}




  














