/* ==========================================================================
   1. RESET E BASE (Invariati)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Merriweather Sans", sans-serif;
    overflow-x: hidden;
}

/* ==========================================================================
   2. HEADER TRASPARENTE (Invariato)
   ========================================================================== */
.main-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
}

.header-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 80px;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 30px;
    background: #1c1456;
    color: white;
    font-family: 'Ranchers', sans-serif;
    font-size: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: 0.3s;
}

.btn:hover {
    transform: scale(1.1);
}

/* ==========================================================================
   3. HERO LAYOUT 50/50 E TEXT (Invariato + Nuova Animazione Eislab)
   ========================================================================== */
.hero-wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
}

.hero-left {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 40px;
    background: #ffffff;
}

.hero-right {
    width: 50%;
    height: 100%;
    background-image: url('Gemini_Generated_Image_5hldni5hldni5hld.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    position: relative;
}

.emozione-text {
    font-family: 'Ranchers', sans-serif;
    font-size: clamp(50px, 6vw, 75px);
    color: #1c1456;
    text-align: center;
    line-height: 1.15;
    z-index: 10;
}

.main-desc {
    margin-top: 25px;
    max-width: 420px;
    text-align: center;
    color: #444;
    font-size: 18px;
    z-index: 10;
}

/* --- ANIMAZIONE PAROLE STILE EISLAB --- */
.content-box {
    overflow: hidden; 
}

.eislab-word {
    display: inline-block;
    opacity: 0;
    filter: blur(8px);
    transform: scale(0.5) translateX(50px);
    transition: 
        opacity 0.6s ease-out, 
        filter 0.6s ease-out, 
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-right: 0.2em; 
}

.eislab-word.visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateX(0);
}

.eislab-word.highlight {
    color: rgb(231, 61, 61);
}

/* ==========================================================================
   4. WEATHER CARD (Invariato)
   ========================================================================== */
.weather-card {
    width: 380px;
    height: 220px;
    position: relative;
    cursor: pointer;
    overflow: visible;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: transform 0.4s ease;
    margin-bottom: 30px;
}

.weather-card:hover {
    transform: scale(1.05);
}

.card-shape {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #87CEEB 0%, #B0E0E6 45%, #00CED1 45%, #40E0D0 60%, #AFEEEE 65%, #D2B48C 65%, #F5DEB3 75%, #FFF8DC 100%);
    border-radius: 35px;
    z-index: 1;
}

.icon-flyout {
    position: absolute;
    top: -45px;
    right: -15px;
    z-index: 10;
}

.icon-flyout img {
    width: 150px;
    filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}

.card-data {
    position: relative;
    z-index: 5;
    height: 100%;
    padding: 30px;
    color: hwb(49 17% 55%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.temp-main {
    font-size: 75px;
    font-weight: 300;
    font-family: 'Ranchers';
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.high-low { font-size: 15px; opacity: 0.8; margin-bottom: 2px; }
.city { font-size: 20px; font-weight: 800; }
.status-msg { font-size: 14px; max-width: 160px; text-align: right; line-height: 1.2; }

/* ==========================================================================
   5. SEZIONE CHI SIAMO (Nuova Logica Animata)
   ========================================================================== */
.sezione-chi-siamo {
    width: 100%;
    background-color: white;
    padding-bottom: 80px;
}

.header-rientrante {
    width: 100%;
    height: 50vh;
    margin-top: 10px;
    opacity: 0; /* Nascondi prima dell'attivazione */
    transform: translateY(30px);
    transition: all 1s ease-out;
}

/* Attivazione via JS */
.header-rientrante.active {
    opacity: 1;
    transform: translateY(0);
}

.header-rientrante svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Animazione Testo Curvo */
.testo-curvo-interno {
    font-family: 'Ranchers', sans-serif;
    font-size: 56px;
    fill: #1c1456;
    text-transform: uppercase;
    letter-spacing: 15px; /* Parte molto largo */
    font-weight: bold;
    opacity: 0;
    transition: all 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    
}

.active .testo-curvo-interno {
    opacity: 1;
    letter-spacing: 3px; 
    
}

.testo-curvo-interno textPath {
    baseline-shift: 15px;
    letter-spacing: 6px;
}
.ww {
    max-width: 1200px;
    margin: -50px auto 0; /* Sovrappone leggermente l'SVG */
    padding: 0 20px;
}

.grid-immagini {
    display: grid;
    grid-template-columns: 1fr ;
    gap: 30px;
}

.img-wrapper {
    opacity: 0;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Animazioni direzionali immagini */
.fade-left { transform: translateX(-100px); }
.fade-right { transform: translateX(100px); }

.img-wrapper.active {
    opacity: 1;
    transform: translateX(0);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.img-wrapper:hover img {
    transform: scale(1.05);
}

/* ==========================================================================
   6. ANIMAZIONE EMOJI (Invariata)
   ========================================================================== */
#emoji-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-emoji {
    position: absolute;
    bottom: -60px;
    opacity: 0;
    animation: floatUp linear forwards;
}

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}
.grid-chi-siamo {
    display: flex;
    align-items: center;
    margin-top: 60px;
    flex-direction: row;
}

.testo-descritivo {
    text-align: center;
    padding: 20px;
}

.mini-title {
    font-family: 'Ranchers', sans-serif;
    color: rgb(231, 61, 61);
    font-size: 28px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.testo-descritivo p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 17px;
}

/* Animazione per il testo che sale */
.fade-up {
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease-out;
}

.reveal.active.fade-up {
    transform: translateY(0);
    opacity: 1;
}
/* RESPONSIVE AGGIUNTIVO */
@media (max-width: 950px) {
    .grid-chi-siamo {
        grid-template-columns: 1fr; /* Tutto incolonnato su tablet/mobile */
        gap: 30px;
    }
    
    .testo-descritivo {
        order: -1; /* Porta il testo sopra le immagini su mobile */
    }
}
/* ==========================================================================
   7. RESPONSIVE (Invariato + Integrazioni)
   ========================================================================== */
@media (max-width: 950px) {
    .hero-wrapper { flex-direction: column; }
    .hero-left, .hero-right { width: 100%; height: 50vh; }
    .weather-card { width: 320px; height: 180px; }
    .temp-main { font-size: 50px; }
    .icon-flyout img { width: 110px; }
    .eislab-word { transform: scale(0.7) translateX(30px); transition-duration: 0.6s; }
    .grid-immagini { grid-template-columns: 1fr; } /* Immagini una sopra l'altra */
}

@media (max-width: 530px) {
    header.main-header { padding: 5px 0px; }
    section.hero-left { height: 68vh; padding-bottom: 20px; }
    .logo img { height: 44px; }
    button.btn { padding: 6px 11px; font-size: 16px; border-radius: 0px; }
    main.hero-wrapper { height: fit-content; }
    p.main-desc { font-size: 13px; margin-top: 40px; }
    div#weather-card, .icon-flyout { display: none; }
    .header-rientrante { height: 30vh; }
    .testo-curvo-interno { font-size: 50px; }
    .grid-chi-siamo {flex-direction: column;}
    .testo-descritivo.reveal.fade-up.active {padding: 0;margin: 0;}
}
/* ==========================================================================
   SEZIONE RECENSIONI - STILE ARTIGIANALE
   ========================================================================== */

.sezione-recensione {
    width: 100%;
    background-color: #f0fff4; /* Verde menta schiarito / Latte e menta */
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.container-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
}

/* --- LA FORMA A FIORE (FLOWER SHAPE) --- */
.flower-shape {
    background: white;
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    
    /* Forma organica iniziale */
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
    
    /* Animazione di morphing continuo per sembrare panna/gelato */
    animation: morphing-flower 12s infinite alternate ease-in-out;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.8s ease;
}

@keyframes morphing-flower {
    0% { border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%; }
    50% { border-radius: 50% 60% 40% 60% / 60% 40% 60% 40%; }
    100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
}

/* --- CONTENUTO INTERNO --- */
.flower-content {
    width: 100%;
    max-width: 320px;
    z-index: 5;
    opacity: 1;
    transform: translateX(0);
}

.nome-recensione {
    font-family: 'Ranchers', sans-serif;
    font-size: 34px;
    color: #1c1456;
    margin-bottom: 15px;
    text-transform: capitalize;
}

.testo-recensione {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

/* --- LOGHI PIATTAFORME --- */
.google-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#platform-logo {
    height: 22px;
    width: auto;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

/* --- PULSANTI DI NAVIGAZIONE (FRECCE) --- */
.nav-btn {
    background: white;
    color: #1c1456;
    border: 2px solid #1c1456;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.nav-btn:active {
    transform: scale(0.95);
}

/* --- ANIMAZIONI DI SCORRIMENTO (SLIDING) --- */
/* Stato quando il contenuto esce a sinistra */
.slide-out-left {
    transform: translateX(-50px);
    opacity: 0;
    transition: 0.3s ease-in;
}

/* Stato quando il contenuto esce a destra */
.slide-out-right {
    transform: translateX(50px);
    opacity: 0;
    transition: 0.3s ease-in;
}

/* Stato quando il contenuto entra */
.slide-in {
    animation: slideInText 0.5s forwards ease-out;
}

@keyframes slideInText {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* --- LOGICA REVEAL (ATTIVAZIONE ALLO SCROLL) --- */
.sezione-recensione.reveal .flower-shape {
    opacity: 0;
    transform: scale(0.5) translateY(100px);
}

.sezione-recensione.reveal.active .flower-shape {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 950px) {
    .container-slider {
        gap: 15px;
    }
    .flower-shape {
        width: 380px;
        height: 380px;
        padding: 30px;
    }
    .nome-recensione { font-size: 28px; }
}

@media (max-width: 530px) {
    .sezione-recensione {
        padding: 60px 10px;
    }
    .container-slider {
        flex-direction: column;
    }
    .flower-shape {
        width: 320px;
        height: 320px;
        padding: 25px;
    }
    .nav-btn {
        width: 50px;
        height: 50px;
        order: 2; /* Sposta le frecce sotto il fiore su mobile */
    }
    .nav-btn.prev { margin-right: 20px; }
    
    /* Layout orizzontale per frecce su mobile */
    .container-slider {
        display: grid;
        grid-template-areas: 
            "flower flower"
            "prev next";
    }
    .flower-shape { grid-area: flower; }
    .nav-btn.prev { grid-area: prev; justify-self: end; }
    .nav-btn.next { grid-area: next; justify-self: start; }
}
    div#flower-container {
    width: fit-content;
    padding: 50Spx;
    height: fit-content;
}
/* Il divisore che crea la gobba bianca che entra nel verde */
.divider-curvo {
    width: 100%;
    height: 100px;
    background-color: white; /* Colore della sezione sopra */
    margin-bottom: -1px; /* Evita linee sottili di stacco */
}

.divider-curvo svg {
    width: 100%;
    height: 100%;
    display: block;
}
/* ==========================================================================
   SEZIONE RECENSIONI - OTTIMIZZATA
   ========================================================================== */

/* 1. Sfondo e Layout Generale */
.divider-curvo {
    width: 100%;
    height: 100px;
    background-color: white; /* Colore sezione precedente */
    margin-bottom: -1px;
}

.divider-curvo svg {
    width: 100%;
    height: 100%;
    display: block;
}

.sezione-recensione {
    background-color: #9becf2; /* Verde Menta / Latte e Menta */
    padding: 0 20px 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* 2. Titolo Imponente (Giallo con ombra rossa) */
.titolo-sez-recensioni {
    font-family: 'Ranchers', sans-serif;
    font-size: clamp(60px, 10vw, 110px);
    color: rgb(255, 174, 131);
    text-shadow: 2.5px 2.5px 0px #ba3d1a;
    margin: -40px 0 50px 0;
    text-align: center;
    letter-spacing: 4px;
    z-index: 5;
    cursor: pointer;
}

/* 3. Container Slider e Fiore */
.container-slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    width: 100%;
}

.flower-shape {
    background: white;
    width: 480px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 50px;
    border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    animation: morphing-flower 10s infinite alternate ease-in-out;
}

@keyframes morphing-flower {
    0% { border-radius: 60% 40% 70% 30% / 40% 50% 60% 70%; }
    100% { border-radius: 40% 60% 30% 70% / 60% 40% 70% 30%; }
}

/* 4. Contenuto Testuale */
.flower-content {
    width: 100%;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nome-recensione {
    font-family: 'Ranchers', sans-serif;
    font-size: 32px;
    color: #1c1456;
    margin-bottom: 10px;
}

.testo-recensione {
    font-family: 'Merriweather Sans', sans-serif;
    font-size: 18px;
    color: #444;
    line-height: 1.5;
    margin: 15px 0;
    overflow: hidden; /* Niente scrollbar come richiesto */
}

/* 5. Controlli Frecce (Sempre affiancate) */
.controls-wrapper {
    display: flex;
    gap: 20px;
}

.nav-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid #1c1456;
    background: white;
    color: #1c1456;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-btn:hover {
    transform: scale(1.3)
}

/* 6. Mobile Responsive */
@media (max-width: 530px) {
    .titolo-sez-recensioni {
        font-size: 55px;
        margin-top: -20px;
        margin-bottom: 30px;
    }

    .flower-shape {
        width: 320px !important;
        height: 320px !important;
        padding: 30px;
    }

    .nome-recensione {
        font-size: 26px;
    }

    .testo-recensione {
        font-size: 15px;
    }
    
    .nav-btn {
        width: 55px;
        height: 55px;
    }
}/* --- CONTAINER ORARI --- */
/* ============================================================
   SEZIONE ORARI - DEFINITIVA (SHAPE + JS REVEAL)
   ============================================================ */

/* CONTAINER */
.cloud-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px 0;
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 20px;
    overflow: visible;
}

/* TITOLO */
h2.titolo-sez-orari {
    text-align: center;
    margin: 60px 0px;
    font-size: clamp(45px, 10vw, 80px);
    font-family: 'Ranchers', cursive;
    letter-spacing: 3px;
    color: #ff0059;
    text-shadow: 2.5px 2.5px 0px #000000;
}

/* BLOB BASE */
.nuvola-orario {
    width: 210px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    margin: 0 -15px;
    
    /* La tua forma originale */
    clip-path: shape(from 85.22% 76.40%,curve to 79.66% 85.12% with 82.73% 80.73%,curve to 72.06% 92.48% with 76.60% 89.52%,curve to 61.84% 94.02% with 67.52% 95.45%,curve to 51.25% 93.87% with 56.16% 92.59%,curve to 41.04% 95.23% with 46.34% 95.16%,curve to 30.34% 94.05% with 35.73% 95.30%,curve to 22.78% 87.05% with 24.94% 92.80%,curve to 14.68% 79.53% with 20.61% 81.30%,curve to 7.70% 72.24% with 8.74% 77.77%,curve to 7.50% 61.37% with 6.66% 66.71%,curve to 7.43% 51.25% with 8.34% 56.02%,curve to 6.98% 41.54% with 6.52% 46.48%,curve to 8.55% 31.49% with 7.45% 36.59%,curve to 12.75% 22.16% with 9.64% 26.38%,curve to 20.68% 15.76% with 15.86% 17.94%,curve to 29.52% 10.45% with 25.49% 13.58%,curve to 38.27% 4.49% with 33.54% 7.31%,curve to 48.42% 2.20% with 43.01% 1.66%,curve to 58.62% 5.09% with 53.83% 2.74%,curve to 67.57% 10.16% with 63.41% 7.44%,curve to 75.14% 16.24% with 71.73% 12.88%,curve to 83.74% 21.70% with 78.54% 19.61%,curve to 92.68% 27.95% with 88.93% 23.80%,curve to 95.05% 37.89% with 96.42% 32.10%,curve to 95.89% 48.79% with 93.68% 43.68%,curve to 95.72% 58.77% with 98.11% 53.90%,curve to 90.52% 67.86% with 93.33% 63.65%,curve to 85.22% 76.40% with 87.71% 72.07%);

    /* Stato iniziale nascosto per animazione JS */
    opacity: 0;
    transform: translateY(60px) scale(0.6);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.6s ease-out;
}

/* CLASSE ATTIVATA DA JS */
.nuvola-orario.reveal {
    opacity: 1;
}

/* LOGICA DISORDINE (Attiva solo quando hanno .reveal) */
.nuvola-orario:nth-child(1) { transition-delay: 0.1s; }
.nuvola-orario.reveal:nth-child(1) { transform: translateY(-15px) rotate(-3deg); z-index: 2; }

.nuvola-orario:nth-child(2) { transition-delay: 0.2s; }
.nuvola-orario.reveal:nth-child(2) { transform: translateY(20px) rotate(4deg); z-index: 1; }

.nuvola-orario:nth-child(3) { transition-delay: 0.3s; }
.nuvola-orario.reveal:nth-child(3) { transform: translateY(-25px) rotate(-5deg) scale(1.1); z-index: 3; }

.nuvola-orario:nth-child(4) { transition-delay: 0.4s; }
.nuvola-orario.reveal:nth-child(4) { transform: translateY(15px) rotate(2deg); z-index: 1; }

.nuvola-orario:nth-child(5) { transition-delay: 0.5s; }
.nuvola-orario.reveal:nth-child(5) { transform: translateY(-10px) rotate(-2deg); z-index: 4; }

.nuvola-orario:nth-child(6) { transition-delay: 0.6s; }
.nuvola-orario.reveal:nth-child(6) { transform: translateY(30px) rotate(6deg) scale(0.95); z-index: 2; }

.nuvola-orario:nth-child(7) { transition-delay: 0.7s; }
.nuvola-orario.reveal:nth-child(7) { transform: translateY(-20px) rotate(-4deg); z-index: 5; }

/* HOVER EFFECT */
.nuvola-orario:hover {
    transform: scale(1.15) rotate(0deg) !important;
    z-index: 100 !important;
    filter: brightness(1.05);
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 600px) {
    .cloud-container { gap: 20px 0; padding: 40px 10px; }
    .nuvola-orario { width: 175px; margin: 0 -10px; }
    
    .nuvola-orario.reveal:nth-child(even) { margin-left: -20px; margin-top: 15px; }
    .nuvola-orario.reveal:nth-child(odd) { margin-right: -20px; margin-top: -15px; }
}
section#formati-section {
    background: #009688;
}
/* --- CONTAINER PRINCIPALE --- */
.eislab-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track-container {
    width: 100%;
    overflow: hidden;
    height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-track {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 300px; 
}

/* --- CARD ITEM --- */
.formato-item {
    position: absolute;
    width: 300px;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

/* POSIZIONI DESKTOP */
.formato-item.active {
    opacity: 1;
    z-index: 10;
    transform: translateX(0) scale(1.2);
    pointer-events: all;
}

.formato-item.prev-peek {
    opacity: 0.5;
    z-index: 5;
    transform: translateX(-350px) scale(0.6);
    pointer-events: all;
}

.formato-item.next-peek {
    opacity: 0.5;
    z-index: 5;
    transform: translateX(350px) scale(0.6);
    pointer-events: all;
}

/* --- TITOLO SOPRA --- */
.info-prodotto {
    order: -1; /* Forza il titolo sopra l'immagine */
    margin-bottom: 20px;
    text-align: center;
    transition: opacity 0.3s;
}

.info-prodotto h3 {
    font-family: 'Ranchers', cursive;
    font-size: 2.5rem;
    color: #ff0059;
    margin: 0;
}

/* Mostra il testo solo sulla card attiva */
.formato-item:not(.active) .info-prodotto {
    opacity: 0;
}

/* --- BLOB E COLORI (RIPRISTINATI) --- */
.blob-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Se vuoi i blob tutti bianchi usa questo, altrimenti i colori sotto */
.blob-svg path { 
    fill: #ffffff; 
    transition: fill 0.3s ease;
}

/* Se vuoi ripristinare i colori specifici per ogni card: */
.card-pink .blob-svg path { fill: #ffb7b2; }
.card-yellow .blob-svg path { fill: #fff4bd; }
.card-green .blob-svg path { fill: #b2e2b2; }
.card-cyan .blob-svg path { fill: #b2f2ff; }

.prodotto-img {
    position: absolute;
    width: 80%;
    z-index: 2;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
}

/* --- LOGICA MOBILE --- */
@media (max-width: 768px) {
    .formato-item {
        width: 240px; /* Card più piccola su mobile */
    }

    /* Nascondi anteprime su mobile */
    .formato-item.prev-peek, 
    .formato-item.next-peek {
        opacity: 0 !important;
        visibility: hidden;
        transform: translateX(0) scale(0.5);
    }

    .formato-item.active {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    .carousel-track-container {
        height: 420px;
    }
}

.eislab-nav {
    position: absolute;
    background: #ffffff;

    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}
h2.titolo-sez-formati {
    font-size: 50px;
    text-align: center;
    padding: 40px;
    color: yellow;
    font-family: 'Ranchers';
    letter-spacing: 3px;
    text-shadow: 2.5px 2.5px 0px #d11b1b;
}
.eislab-nav.prev { left: 5%; }
.eislab-nav.next { right: 5%; }
/* --- ANIMAZIONE DI FLOATING SOLO CENTRALE --- */

@keyframes floatingCenter {
    0% { 
        transform: translateX(0) scale(1.2) translateY(0px); 
    }
    50% { 
        transform: translateX(0) scale(1.2) translateY(15px); 
    }
    100% { 
        transform: translateX(0) scale(1.2) translateY(0px); 
    }
}

/* --- STATO DELLE CARD --- */

.formato-item.active {
    opacity: 1;
    z-index: 10;
    pointer-events: all;
    /* L'animazione agisce solo qui */
    animation: floatingCenter 4s ease-in-out infinite;
}

.formato-item.prev-peek {
    opacity: 0.5;
    z-index: 5;
    transform: translateX(-350px) scale(0.6); /* Fermo */
    pointer-events: all;
    animation: none; 
}

.formato-item.next-peek {
    opacity: 0.5;
    z-index: 5;
    transform: translateX(350px) scale(0.6); /* Fermo */
    pointer-events: all;
    animation: none;
}

/* --- ADATTAMENTO MOBILE --- */
@media (max-width: 768px) {
    .formato-item.active {
        /* Su mobile rimuoviamo lo scale 1.2 per farlo stare nel 79vw */
        animation: floatingMobile 4s ease-in-out infinite;
    }

    @keyframes floatingMobile {
        0% { transform: scale(1) translateY(0px); }
        50% { transform: scale(1) translateY(10px); }
        100% { transform: scale(1) translateY(0px); }
    }
    .eislab-carousel {
       padding-top: 0px;
    }
}
span.brand-text {
    display: flex;
    justify-content: center;
}
#justeat-dual-section {
    display: flex;
    flex-wrap: nowrap; /* Forza le colonne a stare affiancate sempre */
    width: 100%;
    font-family: 'Poppins', sans-serif;
}

.col-left, .col-right {
    flex: 1;
    /* Rimosso min-width per evitare che vadano a capo su mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

/* --- COLONNA SINISTRA --- */
.col-left {
    background: #fdfaf5;
    text-align: left;
}

p.subtitle-left {
    color: #4b4848;
    font-size: 17px;
    font-weight: 500;
    font-family: 'Merriweather Sans';
}

.title-left {
    font-family: 'Merriweather Sans';
    font-size: 40px;
    color: #414144;
    line-height: 1.1;
    margin-bottom: 20px;
}

.btn-justeat {
    display: inline-block;
    background: #ff8000;
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    margin-top: 20px;
    box-shadow: 0 10px 20px rgba(255,128,0,0.3);
}

/* --- COLONNA DESTRA (ARANCIONE) --- */
.col-right {
    background: #ff8000;
    position: relative;
    color: white;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    margin-left: -50px; /* Sovrapposizione per il taglio */
    padding-left: 80px; /* Recupero spazio per il clip-path */
}

.animation-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.word {
    font-family: 'Ranchers', cursive;
    font-size: 2.5rem;
    display: inline-block;
    margin: 0 5px;
    opacity: 0;
}

.brand-text {
    font-family: 'Ranchers', cursive;
    font-size: 4.5rem;
    opacity: 0;
}

/* --- LOGICA DI ANIMAZIONE --- */
.start-anim .img-hero { animation: bounceIn 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards; }
.start-anim .word { animation: fadeInDown 0.4s forwards; }
.start-anim .w1 { animation-delay: 0.5s; }
.start-anim .w2 { animation-delay: 0.7s; }
.start-anim .w3 { animation-delay: 0.9s; }
.start-anim .brand-text { animation: popLogo 0.6s cubic-bezier(0.17, 0.89, 0.32, 1.49) forwards; animation-delay: 1.4s; }

@keyframes bounceIn { to { transform: scale(1); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popLogo { to { opacity: 1; transform: scale(1.1); } }

/* --- RESPONSIVE MOBILE (Dimezzato ma rimpicciolito) --- */
@media (max-width: 768px) {
    .col-left, .col-right {
        padding: 30px 15px; /* Riduciamo il padding per guadagnare spazio */
    }

    .col-right {
        margin-left: -30px; /* Riduciamo il rientro del clip-path */
        padding-left: 40px;
    }

    .title-left {
        font-size: 20px; /* Dimezzato */
    }

    p.subtitle-left {
        font-size: 12px; /* Rimpicciolito */
    }

    .btn-justeat {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .word {
        font-size: 1.2rem; /* Rimpicciolito per stare in riga */
    }

    .brand-text {
        font-size: 2rem; /* Rimpicciolito */
    }
    
    .img-hero {
        max-width: 120px; /* Immagine più piccola */
    }
}
.gelato-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    background: transparent;
    /* IMPORTANTE: non deve bloccare il sito finché non clicchi */
    pointer-events: none; 
    overflow: hidden;
}

.transition-circle {
    width: 350vmax; 
    height: 350vmax;
    background: #e7d762;
    border-radius: 50%;
    transform: scale(0); /* Parte vuoto */
    flex-shrink: 0;
    will-change: transform;
    transition: transform 0.7s cubic-bezier(0.8, 0, 0.2, 1);
}

/* Quando si chiude (uscita dal sito) */
.is-closing {
    pointer-events: all !important; /* Blocca tutto mentre cambia pagina */
}
.is-closing .transition-circle {
    transform: scale(1) !important;
}

/* Quando si apre (entrata nel sito) */
.is-opening .transition-circle {
    transform: scale(0) !important;
}