/* Specific to the home */

.pagecontent {
    display: grid;
}

.introlead {
    grid-area: introlead;
    font-size: 1.1rem;
    line-height: 1.7rem;
}

.introlead2 {
    grid-area: introlead2;
    font-size: 1.1rem;
    line-height: 1.7rem;
    margin-top: 0.7vw;
}

.videobox {
    grid-area: videobox;
    margin: 3vw -2vw;
}

.title4 {
    grid-area: title4;
    text-align: center;
}

.nutritional_benefits {
    grid-area: nutritional_benefits;
}

.trade_channels {
    grid-area: trade_channels;
}

.protect_environment {
    grid-area: protect_environment;
}

.food_waste {
    grid-area: food_waste;
}

.pagecontent {
    padding: 3.5vw;
    grid-template-columns: auto;
    grid-template-areas: 
    'introlead'
    'videobox'
    'introlead2'
    'title4'
    'nutritional_benefits'
    'trade_channels'
    'protect_environment'
    'food_waste'
}

h2 {
    font-size: 1.8rem;
    line-height: 2rem;
}

h3 {
    font-size: 1.6rem;
    line-height: 1.6rem;
}

.trade_channels ol {
    padding: 0 20px;
}

.nutritional_benefits h3, .trade_channels h3, .protect_environment h3, .food_waste h3 {
    text-align: center;
    margin: 1.3rem 0;
}

/* Visual header */

.visual-header {
    background-repeat: no-repeat;
    background-image: url(../img/backgrounds/recetas_1.svg), url(../img/backgrounds/recetas_2.svg), url(../img/backgrounds/recetas_3.svg), url(../img/backgrounds/recetas_4.svg);
    background-position: top left, bottom left, bottom right, top right;
    background-size: calc(200px * 0.7) auto, calc(240px * 0.7) auto, calc(240px *0.7) auto, calc(200px *0.7) auto;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video */

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16/9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.nutritional_benefits, .trade_channels, .protect_environment, .food_waste {
    border-top: 1px solid #ccc;
    margin: 4vw 0 0 0;
    padding-top: 2vw;
}

.food_waste {
    border-bottom: 1px solid #ccc;
    padding-bottom: 5vw;
}


@media screen and (min-width: 580px) {
    .visual-header {
        height: 350px;
    }
    h2 {
        font-size: 1.8rem;
        line-height: 2rem;
    }
    
    h3 {
        font-size: 1.9rem;
        line-height: 1.9rem;
    }
}

@media screen and (min-width: 880px) {
    .visual-header {
        height: 420px;
        background-size: calc(200px * 1) auto, calc(190px * 1) auto, calc(140px * 1) auto, calc(200px * 1) auto;
    }
    h1 {
        max-width: 700px;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.3rem;
    }
    
    h3 {
        font-size: 1.8rem;
        line-height: 1.5rem;
    }

    .pagecontent {
        grid-template-columns: 47vw 47vw;
        column-gap: 1.2vw;
        padding: 0.7vw;
        grid-template-areas: 
        'introlead videobox'
        'introlead2 videobox'
        'title4 title4'
        'nutritional_benefits trade_channels'
        'protect_environment food_waste'
    }

    .introlead {
        font-size: 1.6vw;
        line-height: 2.3vw;
        padding: 3vw;
    }
    .introlead2 {
        font-size: 1.6vw;
        line-height: 2.3vw;
        padding: 0 3vw;
        margin-top: -2vw;
    }

    .videobox {
        margin: 5vw 1vw;
    }

    .nutritional_benefits, .trade_channels, .protect_environment, .food_waste {
        border-top: none;

    }

    .food_waste {
        border-bottom: none;
        padding-bottom: 5vw;
    }

}

@media screen and (min-width: 1200px) {
    .visual-header {
        height: 420px;
        background-size: calc(290px * 1) auto, calc(200px * 1) auto, calc(180px * 1) auto, calc(250px * 1) auto;
    }
}

@media screen and (min-width: 1365px) {

    h1 {
        max-width: 840px;
    }

    h2 {
        font-size: 2.5rem;
        line-height: 2.8rem;
    }

    .visual-header {
        background-size: calc(200px * 1.5) auto, calc(168px * 1.5) auto, calc(150px * 1.5) auto, calc(200px * 1.5) auto;
    }

    .pagecontent {
        grid-template-columns: 23.5vw 23.5vw 23.5vw 23.5vw;
        column-gap: 1.2vw;
        padding: 0.7vw;
        grid-template-areas: 
        'introlead introlead videobox videobox'
        'introlead2 introlead2 videobox videobox'
        'title4 title4 title4 title4'
        'nutritional_benefits trade_channels protect_environment food_waste'
    }

    .introlead {
        font-size: 1.6vw;
        line-height: 2.5vw;
        padding: 3vw;
    }
    .introlead2 {
        font-size: 1.6vw;
        line-height: 2.5vw;
        padding: 0 3vw;
    }

}

/* PRINT */

@media print {
    .visual-header {
        height: 200px;
    }
}
