/* HERO */

.hero {
    position: relative;
    background: url("../imm/ricette/ricette.jpg") no-repeat center center/cover;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.66);
    z-index: 0;
}

/* FOOTER */
footer {
    background: #4f200d;
    color: #fff2ab;
    padding: 30px 20px;
    text-align: center;
}

/* ANIMAZIONI */
.animato { opacity: 0; transition: all 1s ease; }
.animato.attivo { opacity: 1; transform: translate(0, 0); }
.from-left  { transform: translateX(-80px); }
.from-right { transform: translateX(80px); }
.from-top   { transform: translateY(-80px); }
.from-bottom{ transform: translateY(80px); }

/* ICONE SOCIAL */

/* RICETTE */

.ricette-container {
    width: 92%;
    max-width: 1100px;
    margin: 100px auto;
    padding: 0 16px;
}

.ricetta {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 120px;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
}

.pari { flex-direction: row-reverse; }

.ricetta-info,
.esecuzione-ricetta,
.ricetta-img {
    flex: 1;
}

.ricetta h2 { font-size: 30px; margin-bottom: 15px; }
.ricetta h3 { margin-top: 20px; margin-bottom: 10px; font-size: 20px; }
.ricetta-info h4 { margin-top: 15px; margin-bottom: 5px; font-size: 1rem; font-weight: 600; }
.ricetta ul { padding-left: 20px; }
.ricetta li { margin-bottom: 6px; }
.esecuzione-ricetta p { line-height: 1.7; text-align: justify; }
.ricetta-img img { width: 100%; border-radius: 12px; }

.nota-ricetta {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f2ec;
    border-left: 4px solid #8b5e3c;
    font-size: 0.95rem;
}

/* CARD COPERTA */

.ricetta-coperta {
    width: 92%;
    max-width: 1100px;
    margin: 120px auto;
    padding: 0 16px;
}

.dorso-ricetta {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
}

.dorso-ricetta img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.nome-dorso {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.nome-dorso h2 {
    color: #fff2ab;
    font-size: 2rem;
    text-align: center;
    padding: 20px;
}

/* OVERLAY RICETTA APERTA */

.ricetta-scoperta {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
    padding: 60px 0;
}

.ricetta-scoperta .ricetta {
    width: 85%;
    margin: auto;
}

.chiudi-ricetta {
    position: fixed;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10000;
    /* area touch */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============================================
   RESPONSIVE – MOBILE & TABLET
   ============================================= */

@media (max-width: 900px) {

    .ricette-container {
        width: 92%;
        margin: 60px auto;
    }

    .ricetta,
    .ricetta.pari {
        flex-direction: column;
        gap: 24px;
        margin-bottom: 60px;
        padding: 20px;
    }

    .ricetta h2 { font-size: 22px; }

    .ricetta-coperta {
        width: 92%;
        margin: 60px auto;
    }

    .dorso-ricetta img { height: 260px; }
    .nome-dorso h2 { font-size: 1.5rem; }

    .footer-mappa iframe { height: 220px; }

    .ricetta-scoperta {
        padding: 30px 0;
        align-items: flex-start;
    }

    .ricetta-scoperta .ricetta { width: 92%; }

    
    
    
}

@media (max-width: 480px) {
    .chiudi-ricetta { right: 10px; top: 10px; font-size: 32px; }
    .ricetta-scoperta .ricetta { width: 96%; }
    .ricetta-scoperta { padding: 56px 0 20px; }
}
