/*
 * Style for barone index page.
 * Layout sections for Giorgio Barone Private Chef Agency.
 */

/* =============================================
   HERO HEADER
   ============================================= */

div#previewHeader {
    background-image: url('/images/layout/home-header.jpg');
    background-position: right center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding: 8em 5% 4em 8%;
    box-sizing: border-box;
    position: relative;
}

div#previewHeader::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 35%, rgba(255,255,255,.15) 60%, rgba(255,255,255,0) 100%);
    z-index: 0;
}

div#previewHeader > * {
    position: relative;
    z-index: 1;
}

div#previewHeader .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 45%;
}

div#previewHeader .hero-logo {
    margin-bottom: 1.5em;
}

div#previewHeader .hero-logo img {
    max-height: 12em;
    width: auto;
}

div#previewHeader .hero-title {
    font-size: 3em;
    letter-spacing: .15em;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: .2em;
    color: #1c1c1e;
    line-height: 1.1;
}

div#previewHeader .hero-subtitle {
    font-size: .85em;
    letter-spacing: .25em;
    text-transform: uppercase;
    margin-bottom: 2.5em;
    color: #666666;
    font-weight: 400;
}

div#previewHeader .button.line {
    margin-top: .5em;
    border-color: #1c1c1e;
    color: #1c1c1e;
    font-size: 1em;
    padding: .7em 2.2em;
    letter-spacing: .1em;
}

div#previewHeader .button.line:hover {
    background-color: #1c1c1e;
    border-color: #1c1c1e;
    color: #FFFFFF;
}

/* =============================================
   CONCEPT / TEXT SECTIONS
   Struttura copiata da nurapi concept space
   ============================================= */

section.concept.space {
    padding: 4.5em 15%;
    text-align: center;
    background-color: #FFFFFF;
}

section.concept.space .title {
    margin-bottom: 1.5em;
    color: #222222;
}

section.concept.space p {
    margin-bottom: 1em;
    color: #333333;
    font-size: 1.3em;
    line-height: 1.8em;
}

section.concept.space h4 {
    letter-spacing: .5px;
    color: #1c1c1e;
    margin: 1.8em 0 .8em;
    padding-bottom: .3em;
    font-family: 'Nunito Sans', sans-serif;
}

/* Dark variant */
section.concept.space.dark {
    background-color: #1c1c1e;
}

section.concept.space.dark .title {
    color: #FFFFFF;
}

section.concept.space.dark p {
    color: rgba(255, 255, 255, .85);
}

/* Purple variant */
section.concept.space.purple {
    background-color: #1c1c1e;
}

section.concept.space.purple .title {
    color: #FFFFFF;
}

section.concept.space.purple p {
    color: #FFFFFF;
    opacity: .95;
}

/* =============================================
   BANNER CONTACT (CTA viola centrale)
   ============================================= */

.banner-contact {
    background-color: #1c1c1e;
    padding: 3em 10%;
    min-height: 12em;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3em;
    box-sizing: border-box;
}

.banner-contact .banner-contact-text {
    flex: 1 1 60%;
    max-width: 60%;
    color: #FFFFFF;
    font-size: 1.35em;
    line-height: 1.55em;
    font-weight: 400;
}

.banner-contact .banner-contact-text b,
.banner-contact .banner-contact-text strong {
    font-weight: 700;
    color: #FFFFFF;
}

.banner-contact .button.line {
    flex-shrink: 0;
    border-color: #FFFFFF;
    color: #FFFFFF;
    padding: .75em 2.5em;
    letter-spacing: .12em;
}

.banner-contact .button.line:hover {
    background-color: #FFFFFF;
    color: #1c1c1e;
}

/* =============================================
   GALLERY / SWIPER SECTION (bg bianco)
   ============================================= */

section.sliderContainer {
    width: 100%;
    padding: 0;
    background-color: #FFFFFF;
    overflow: hidden;
}

section.sliderContainer .firsSwiper {
    height: 70vh;
}

section.sliderContainer .thumbsSwiper {
    padding: 1em 25px;
    background-color: #FFFFFF;
}

section.sliderContainer .swiper-slide {
    background: #FFFFFF;
}

section.sliderContainer .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

section.sliderContainer .swiper-button-next,
section.sliderContainer .swiper-button-prev {
    color: #FFFFFF;
    background-color: rgba(102, 102, 255, .85);
    width: 2.8em;
    height: 2.8em;
    border-radius: 50%;
    transition: background-color .2s ease;
}

section.sliderContainer .swiper-button-next:hover,
section.sliderContainer .swiper-button-prev:hover {
    background-color: #FFFFFF;
}

section.sliderContainer .swiper-button-next:after,
section.sliderContainer .swiper-button-prev:after {
    color: #FFFFFF;
    font-size: 1.1em;
    font-weight: 700;
}

section.sliderContainer .thumbsSwiper .swiper-slide-thumb-active {
    outline: 2px solid #FFFFFF;
}

/* =============================================
   NEWS / CONCEPT CARDS (TITOLO BLOGPOST 1/2/3)
   ============================================= */

/* La sezione CONCEPT che precede #news: stesso fondo bianco, padding ridotto sotto */
section.concept.space + section.concept.space,
section.concept.space.white + section#news {
    padding-top: 0;
}

section#news {
    padding: 1em 10% 4.5em;
    text-align: left;
    background-color: #FFFFFF;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 2%;
}

section#news .blogBox {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .07);
    width: 32%;
    box-sizing: border-box;
    text-align: left;
    transition: transform .25s ease, box-shadow .25s ease;
}

section#news .blogBox:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(102, 102, 255, .18);
}

section#news .blogBox > .bg {
    position: relative;
    height: 10em;
    background-size: cover;
    background-position: center;
}

section#news .blogBox h3 {
    color: #FFFFFF;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1em 1.2em .4em;
    font-weight: 700;
}

section#news .blogBox p {
    color: #555555;
    padding: 0 1.2em 1.5em;
    font-size: .95em;
    line-height: 1.55em;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media screen and (max-width: 980px) {
    section#news .blogBox {
        width: 45%;
    }
}

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

    div#previewHeader {
        padding: 8em 5% 4em 5%;
    }

    div#previewHeader::before {
        background: linear-gradient(90deg, rgba(255,255,255,.95) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.3) 100%);
    }

    div#previewHeader .hero-content {
        max-width: 60%;
    }

    div#previewHeader .hero-logo img {
        max-height: 9em;
    }

    div#previewHeader .hero-title {
        font-size: 2.5em;
    }

    section.concept.space {
        padding: 3.5em 8%;
    }

    .banner-contact {
        flex-direction: column;
        text-align: center;
        padding: 3em 6%;
    }

    .banner-contact .banner-contact-text {
        max-width: 100%;
        font-size: 1.4em;
        line-height: 1.6em;
    }

    section.sliderContainer .firsSwiper {
        height: 50vh;
    }

    section#news .blogBox {
        width: 49%;
        margin-bottom: 1.5em;
    }
}

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

    div#previewHeader {
        height: auto !important;
        padding: 10em 5% 4em;
        align-items: center;
        justify-content: center;
        text-align: center;
        background-image: url(/images/layout/home-header-mobile.jpg);
        background-position: center;
    }

    div#previewHeader::before {
        background: rgba(255, 255, 255, .85);
    }

    div#previewHeader .hero-content {
        max-width: 90%;
        align-items: center;
    }

    div#previewHeader .hero-logo img {
        max-height: 8em;
    }

    div#previewHeader .hero-title {
        font-size: 2em;
        letter-spacing: .08em;
        text-align: center;
    }

    div#previewHeader .hero-subtitle {
        text-align: center;
    }

    .banner-contact .banner-contact-text {
        max-width: 100%;
        font-size: 1.3em;
        line-height: 1.6em;
    }

    section.concept.space {
        padding: 2.5em 6%;
    }

    section.concept.space p {
        font-size: 1.25em;
        line-height: 1.8em;
    }

    section#news .blogBox p {
        font-size: 1.25em;
        line-height: 1.65em;
    }

    section#news .blogBox {
        width: 100%;
        margin-bottom: 1.5em;
    }

    section#news .blogBox h3 {
        font-size: 1.25em;
    }
}