/* ============================= */
/* HERO IMAGE – PAGE RECETTE */
/* ============================= */

.ricetta-hero-image {
  width: 100%;
  height: calc(100vh - 90px); /* enlève hauteur du header */
  
  background-image: url("../images/ricette44.png");
  background-size: cover;        /* remplit TOUJOURS */
  background-position: center;   /* cadrage intelligent */
  background-repeat: no-repeat;

  display: block;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .ricetta-hero-image {
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .ricetta-hero-image {
    height: 55vh;
  }
}
/* ============================= */
/* HERO IMAGE – PAGE RECETTE */
/* ============================= */

.ricetta-hero-image {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);

  background-image: url("../images/ricette44.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

/* Overlay pour lisibilité du texte */
.ricetta-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* TITRE */
.ricetta-hero-title {
  position: relative;
  z-index: 2;

  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;

  color: #ffffff;
  text-align: center;

  font-size: clamp(28px, 6vw, 80px);
  padding: 0 20px;

  text-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {
  .ricetta-hero-image {
    height: 70vh;
  }
}

@media (max-width: 768px) {
  .ricetta-hero-image {
    height: 55vh;
  }

  .ricetta-hero-title {
    letter-spacing: 1.5px;
  }
}
/* ============================= */
/* BANDEAU RECETTE – TEXTE */
/* ============================= */

.ricetta-text-section {
  position: relative;
  background-color: #5b3519;
  padding: 90px 0 170px;
  overflow: hidden; /* 🔥 nécessaire pour la vague */
}

/* Conteneur centré */
.ricetta-text-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}

/* TEXTE RECETTE */
.ricetta-paragraph {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #ffffff;
  margin-bottom: 60px;
}

/* ============================= */
/* FLÈCHES SCROLL */
/* ============================= */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.scroll-indicator .chevron {
  width: 22px;
  height: 22px;
  border-right: 3px solid rgba(255,255,255,0.85);
  border-bottom: 3px solid rgba(255,255,255,0.85);
  transform: rotate(45deg);
  animation: scrollDown 1.6s infinite;
}

.scroll-indicator .chevron:nth-child(2) {
  animation-delay: 0.3s;
  opacity: 0.6;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(45deg);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(14px) rotate(45deg);
  }
}

/* ============================= */
/* FIN ONDULÉE (VAGUE) */
/* ============================= */

.ricetta-text-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 160px;
  background: #ffffff;
  z-index: 1;

  clip-path: path(
    "M0,40 C200,120 400,0 720,50 1000,100 1200,140 1440,60 L1440,160 L0,160 Z"
  );
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {

  .ricetta-text-section {
    padding: 80px 0 200px;
  }

  .ricetta-paragraph {
    font-size: 17px;
  }
}

@media (max-width: 768px) {

  .ricetta-text-section {
    padding: 70px 0 180px;
  }

  .ricetta-text-container {
    padding: 0 20px;
  }

  .ricetta-paragraph {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
  }

  /* sécurité anti ligne blanche */
  .ricetta-text-section::after {
    bottom: -2px;
  }
}
/* ============================= */
/* SECTION INGREDIENTI */
/* ============================= */

.ingredienti-section {
  position: relative;
  background: #ffffff;
  padding: 140px 0 140px;
  overflow: hidden;
}

/* ============================= */
/* GRAND CERCLE ANIMÉ */
/* ============================= */

.ingredienti-circle {
  position: absolute;
  right: -420px;              /* 🔥 plus visible */
  top: 50%;

  width: 860px;               /* 🔥 agrandi */
  height: 860px;

  background: rgba(91, 53, 25, 0.10);
  border-radius: 50%;

  transform: translateY(-50%) scale(0.6);
  transition: transform 0.15s linear;

  z-index: 1;
}


/* ============================= */
/* CONTENEUR */
/* ============================= */

.ingredienti-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

/* ============================= */
/* TEXTE */
/* ============================= */

.ingredienti-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, 5vw, 60px);
  color: #1e1e1e;
  margin-bottom: 40px;
}

.ingredienti-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ingredienti-list li {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 14px;
}

.ingredienti-list strong {
  color: #5b3519;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1024px) {

  .ingredienti-container {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }

  .ingredienti-circle {
    right: -420px;
    width: 640px;
    height: 640px;
  }
}



/* ============================= */
/* CTA SCOPRI TUTTE LE RICETTE */
/* ============================= */

.cta-ricette {
  background: #ffffff;
  padding: 40px 0 120px; /* 🔥 bouton plus haut */
  display: flex;
  justify-content: center;
}

/* BOUTON */
.cta-ricette-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 22px 64px;
  border-radius: 999px;

  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;

  color: #5b3519;
  background: #ffffff;

  border: 2px solid #5b3519;
  text-decoration: none;

  transition: 
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

/* HOVER — EXACTEMENT COMME TA 2ᵉ IMAGE */
.cta-ricette-button:hover {
  background: #5b3519;
  color: #ffffff;
  transform: translateY(-2px);
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 768px) {

  .cta-ricette {
    padding: 30px 0 90px;
  }

  .cta-ricette-button {
    padding: 18px 40px;
    font-size: 14px;
    letter-spacing: 1.2px;
  }
}
/* ============================= */
/* FIX LIGNE BLANCHE MOBILE / IPAD */
/* ============================= */

@media (max-width: 1024px) {
  .ingredienti-section {
    margin-top: -2px;
  }
}

@media (max-width: 768px) {
  .ingredienti-section {
    margin-top: -3px;
  }
}
/* ============================= */
/* FIX DEMI-CERCLE MOBILE */
/* ============================= */

@media (max-width: 768px) {

  /* Autorise le cercle à dépasser */
  .ingredienti-section {
    overflow: visible;
  }

  .ingredienti-circle {
    display: block;

    width: 360px;
    height: 360px;

    right: -120px;      /* 🔥 clé : reste visible */
    top: 55%;

    opacity: 0.22;      /* plus visible sur fond blanc */
    z-index: 0;         /* derrière le texte mais visible */
  }

  /* Texte toujours au-dessus */
  .ingredienti-container {
    position: relative;
    z-index: 2;
  }
}
/* ============================= */
/* IMAGE RECETTE BAS DE PAGE */
/* ============================= */

.ricetta-bottom-image {
  width: 100%;
  height: calc(100vh - 90px);

  background-image: url("../images/ricette44.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* iPad */
@media (max-width: 1024px) {
  .ricetta-bottom-image {
    height: 70vh;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .ricetta-bottom-image {
    height: 55vh;
  }
}
/* ============================= */
/* FIX BANDE BLANCHE MOBILE */
/* (cause = cercle qui déborde) */
/* ============================= */

@media (max-width: 768px) {

  .ingredienti-section {
    overflow: hidden; /* empêche tout débordement horizontal */
  }

  .ingredienti-circle {
    display: none !important; /* cercle supprimé uniquement sur mobile */
  }

}

/* ============================= */
/* DECORATION RICETTE */
/* ============================= */

.decor-ricette-left{
  position:absolute;
  left:60px;
  top:30px;

  width:420px;

  opacity:0.18;

  pointer-events:none;
  z-index:1;

  animation:ricetteFloatLeft 7s ease-in-out infinite;
}

.decor-ricette-right{
  position:absolute;
  right:60px;
  bottom:30px;

  width:440px;

  opacity:0.18;

  pointer-events:none;
  z-index:1;

  animation:ricetteFloatRight 7s ease-in-out infinite;
}

/* ============================= */
/* ANIMATION GAUCHE */
/* ============================= */

@keyframes ricetteFloatLeft{

  0%{
    transform:translateY(0px) rotate(0deg);
  }

  50%{
    transform:translateY(-12px) rotate(-3deg);
  }

  100%{
    transform:translateY(0px) rotate(0deg);
  }

}

/* ============================= */
/* ANIMATION DROITE */
/* ============================= */

@keyframes ricetteFloatRight{

  0%{
    transform:translateY(0px) rotate(0deg);
  }

  50%{
    transform:translateY(-10px) rotate(3deg);
  }

  100%{
    transform:translateY(0px) rotate(0deg);
  }

}

/* ============================= */
/* MOBILE */
/* ============================= */

@media (max-width:768px){

.decor-ricette-left{
  width:160px;
  left:10px;
  top:20px;
  opacity:0.16;
}

.decor-ricette-right{
  width:160px;
  right:10px;
  bottom:120px;
  opacity:0.16;
}

}





