/* Styling for the loader */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--chicca-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* Ensure it's on top of all other elements */
    
}

.loader svg {
    animation: pulse 1.5s infinite;
}

/* Pulsating animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.flag-toggle{
  position: absolute;
  right: 2.5%;
  cursor: pointer;
}
.tabs {
    display: flex;
    justify-content: space-between; /* Ensure equal spacing between buttons */
    max-width: 90%;
    margin-inline: auto;
    padding-top: 3em;
}

.tab-button {
    position: relative;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1; /* Make all buttons take equal space */
    margin: 0 10px; /* Adjust margin between buttons */
    background-color: transparent;
}

.tab-button svg {
    position: absolute;
    bottom: -10px; /* Adjust based on desired placement */
    width: 125px; /* Set the desired width */
    height: auto; /* Maintain aspect ratio */
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.tab-button.active svg {
    opacity: 1;
    transform: scale(1);
}

.tab-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh; /* Ensure it takes at least the full viewport height */
    padding: 1.5rem; /* Add some padding for better spacing */
    box-sizing: border-box;
    text-align: center; /* Center the content text */
    margin-top: 3rem;
}

.tab-pane {
    margin-inline: auto;
    display: none;
    /*width: 60%;*/
    width: 75%;
    max-width: 1440px;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.tab-pane.active {
    display: grid;
    transform: scale(1);
    opacity: 1;
}

.wrapper-illustrazione-new {
    position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    display: flex;
    top: auto;
    bottom: 18%;
    right: 16%;
}

._01 {
  top: 8% !important;
  right: 20% !important;
}
._02 {
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  display: flex;
  inset: 0% auto auto -32%;
}

._03 {
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  display: flex;
  top: auto;
  bottom: 15%;
  right: 16%;
}

._04 {
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  margin-right: auto;
  display: flex;
  inset: auto -33% 9% auto;
}

._05 {
  inset: 0% auto auto -30%;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  display: flex;
  inset: auto auto 10% -17%;
}

.crostaceo{
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    display: flex;
    inset: 0% auto auto -27%;
}

.riccio{
  position: absolute;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.5s ease, transform 0.5s ease;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    display: flex;
    top: auto;
    bottom: 15%;
    right: 16%;
}

.bistecca {
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  display: flex;
  inset: 0% 12% auto auto;
}

.dolce {
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  display: flex;
  inset: auto auto 0% -25%;
}
.wrapper-illustrazione-new.visible {
    opacity: 1;
    transform: scale(1);
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the text and SVG horizontally */
    justify-content: center; /* Center the content vertically */
    text-align: center;
    padding: 10px;
    position: relative;
}

.tab-button svg {
    position: absolute;
    /*bottom: -10px; /* Position the SVG relative to the text */
    bottom: -.5rem;
    width: 125px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rl-heading-style-h1 {
    /* Assicurati che il testo sia visibile immediatamente per il LCP */
    opacity: 1 !important;
    /* Ottimizza il rendering */
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    /* Ottimizza le performance dell'animazione */
    will-change: transform, opacity;
    transform: translateZ(0);
}

/* Nuova classe per l'animazione */
.animate-fade-in {
    animation: fadeInAnimation 0.8s ease-out forwards;
    /* Ritarda l'animazione fino a dopo il LCP */
    animation-delay: 0.1s;
}

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

/* Ottimizza anche il testo del paragrafo */
.rl-text-style-medium {
    opacity: 1 !important;
    will-change: transform, opacity;
}

.animate-fade-in-delayed {
    animation: fadeInAnimation 0.8s ease-out forwards;
    animation-delay: 0.3s; /* Ritardo leggermente maggiore per il paragrafo */
}

@media screen and (max-width: 991px){

.tab-pane{
  width: 87%;
}
._05{
  inset: auto auto -1% -10%;
}
  
}

@media (max-width: 768px) {

    .flag-toggle{
      position: relative;
      right: unset;
      margin-top: 5%;
    }

    .crostaceo{
      inset: -4% auto auto -19%;
    }

    .riccio{
      bottom: -3%;
      right: 9%;
    }

    .tab-pane {
        width: 100%; /* Adjust the width for mobile */
        max-width: 100%; /* Ensure it doesn't exceed the screen width */
        transform: scale(1); /* Remove scaling on mobile */
        
    }

    .tabs {
        display: flex;
        overflow-x: auto; /* Enable horizontal scrolling */
        overflow-y: hidden;
        white-space: nowrap; /* Prevents the tabs from breaking into new lines */
        -webkit-overflow-scrolling: touch; /* Adds smooth scrolling for mobile */
        scroll-behavior: smooth; /* Adds smooth scrolling behavior */
        padding-top: 1.5rem;
    }

    .tabs.esperienza{
      justify-content:center;
    }

    .tab-button {
        display: flex;
        flex: 0 0 auto; /* Make sure buttons stay in their natural width */
        min-height:7svh;
        /*padding: 10px; /* Adjust padding as needed for mobile */
        margin-right: 10px; /* Add spacing between tab buttons */
        padding: 8px 16px; /* Adjust padding for a more compact mobile view */
    }
   
    .tab-button:last-child {
        margin-right: 0; /* Remove extra margin on the last button */
    }

    

    .tab-button svg {
        width: 80px; /* Adjust the size of the SVG for mobile */
        bottom: 0.25rem;
    }
}

.blogSwiper {
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
}

.blog-slide {
  width: 400px;
  height: 20rem !important;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease;
  margin-right: 40px;
  display: flex;
}

.blog-card {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-image-wrapper {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  flex: 0 0 auto;
}

.blog-image {
  max-width: 180px;
  max-height: 60px;
  object-fit: contain;
}

.blog-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-category {
  color: #666;
  font-size: 14px;
  font-family: var(--p);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.blog-title {
  font-size: 18px;
  font-family: var(--p);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
}

.blog-text {
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--p);
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-text p {
  display: -webkit-box;
  display: -moz-box;
  display: box;
  -webkit-line-clamp: 2;
  -moz-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -moz-box-orient: vertical;
  box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.link-articolo {
  color: var(--chicca-giallo);
  text-decoration: none;
  transition: opacity 0.3s ease;
  margin-top: auto;
  padding-top: 15px;
  display: block;
}

.link-articolo:hover {
  opacity: 0.8;
}

/* Aggiungi al tuo file CSS */
.pause-animations * {
    animation-play-state: paused !important;
}

/* Ottimizza le performance per dispositivi che preferiscono animazioni ridotte */
@media (prefers-reduced-motion: reduce) {
    .animate-fade-in,
    .animate-fade-in-delayed {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Aggiungi questo al tuo file CSS */
.mobile-arrows-container {
  display: none !important; /* Nascondi sempre su desktop con !important */
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 10px 0; /* Ridotto da 15px a 10px */
  margin-top: 10px; /* Ridotto da 20px a 10px */
  z-index: 10;
}

.arrow.mobile {
  margin: 0 15px;
  color: var(--chicca-giallo);
  border: 1px solid var(--chicca-giallo);
  border-radius: 100vw;
  width: 7em;
  height: 3.1em;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer; /* Assicura che il cursore sia a puntatore */
}

@media screen and (max-width: 767px) {
  /* Modifica la struttura del contenitore per mobile */
  .slider_wrap {
    margin-bottom: 30px; /* Ridotto da 60px a 30px */
  }
  
  .mobile-arrows-container {
    display: none; /* Valore di base su mobile (senza !important) */
    position: static; /* Posizionamento normale nel flusso del documento */
    margin-top: 10px; /* Ridotto da 20px a 10px */
  }
  
  /* Mostra solo le frecce della lingua attiva su mobile */
  .mobile-arrows-container.active {
    display: flex !important; /* Forza la visualizzazione solo quando è attivo */
  }
  
  /* Nascondi le frecce desktop su mobile */
  .arrows.ita, .arrows.eng {
    display: none;
  }
}

/* Stili per la pagina Privacy Policy */
.privacy-policy {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    line-height: 1.6;
}

.privacy-policy h1 {
    color: var(--chicca-blue);
    text-align: center;
    margin-bottom: 1rem;
}

.privacy-policy .last-update {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.privacy-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.privacy-content section {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    color: var(--chicca-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.privacy-content h3 {
    color: var(--chicca-blue);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.privacy-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.privacy-content strong {
    color: var(--chicca-blue);
}

@media (max-width: 768px) {
    .privacy-policy {
        padding: 1rem;
        margin: 1rem;
    }

    .privacy-content {
        padding: 1rem;
    }
}