/**
 * Hope WF — Barium Bay
 * Pixel-perfect override to match bariumbay.it original
 */

/* ═══════════════ Global / Reset ═══════════════ */

/* Rimuove il gap tra i blocchi ACF nella homepage */
.wp-site-blocks .wp-block-post-content > *,
:where(.is-layout-flow) > * {
    margin-block-start: 0;
}

/* Override parent font: Poppins instead of Roboto */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    font-family: "Poppins", sans-serif !important;
}

:root {
    --azzurrino: #3d6c77;
    --verde_acqua: #46babd;
    --viola: #9c60a3;
    --grigino: #788aac;
}

/* Nascondi scrollbar come originale */
body::-webkit-scrollbar {
    display: none;
}
body {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

/* ═══════════════ Navbar ═══════════════ */
#navbar {
    background-color: white;
    position: relative;
    height: 20vh;
}
#menu-container {
    position: fixed;
    top: 0;
    z-index: 3;
    width: 300px;
    height: 100%;
    background-image: linear-gradient(to bottom, #37597a, #55a1d1);
    transition: left 0.3s ease-in-out;
    padding-top: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
#menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#menu li {
    padding: 10px;
    text-align: center;
    color: #fff;
    border-bottom: 1px solid #fff;
}
#menu-toggle {
    position: absolute;
    top: 20%;
    right: 15vw;
    cursor: pointer;
    z-index: 2;
}
.nav-position {
    padding-left: 15vw;
    margin-right: 15vw;
}
@media (max-width: 768px) {
    .nav-position {
        padding-left: 0;
        margin-right: 0;
    }
}

/* ═══════════════ Slider ═══════════════ */
#sliderApertura .carousel-inner {
    height: 80vh;
    min-height: 41rem;
}
#sliderApertura .carousel-indicators [data-bs-target] {
    background-color: var(--verde_acqua);
    opacity: 1;
    width: 35px;
    height: 5px;
}
#sliderApertura .carousel-indicators .active {
    background-color: #f38eb2;
}
#sliderApertura .carousel-caption {
    position: absolute;
    right: 15%;
    top: 58%;
    left: 15%;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    color: #fff;
    text-align: center;
    transform: translateY(-50%);
}
#sliderApertura .carousel-caption h3 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

/* ═══════════════ Numeri ═══════════════ */
#numeri {
    background-color: #f38eb2;
}
#numeri .single:not(:last-of-type) {
    border-right: 1px solid #ffffff;
    border-image: linear-gradient(to bottom, #f38eb2, #ffffff, #f38eb2) 8 100%;
}
#numeri .single {
    text-align: center;
    width: 25%;
}
#numeri .single img {
    height: 10rem;
}
#numeri .single h5 {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 3rem;
    margin-top: 1rem;
}
#numeri .single span {
    color: #ffffff;
}

/* ═══════════════ Parco (Il Progetto) ═══════════════ */
#parco {
    background-color: #57a6d7;
}
#parco .parcoFaq {
    width: 50%;
    margin: auto;
}
#parco .parcoFaq .single:not(:last-of-type) {
    border-bottom: 1px solid white;
}
#parco .parcoFaq .single p {
    display: none;
}
.parcoFaq h3 {
    font-size: 2.5rem;
}
.apriFaq {
    font-size: 3rem;
}
.apriFaq:hover {
    cursor: pointer;
}

/* ═══════════════ Intervisibilita ═══════════════ */
#inter {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 10rem 0;
    transition: background-image 0.5s ease-in-out;
}
#sliderInter .cardsContainer {
    display: flex;
    gap: 3.5%;
}
#sliderInter .cardsContainer .singleCard {
    width: 24%;
}
#sliderInter .cardsContainer .singleCardText {
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    border-radius: 10px;
    color: white;
    padding: 2rem;
    min-height: 415px;
}
#sliderInter .cardsContainer .singleCardButton {
    display: block;
    width: 100%;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid white;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0;
    margin-top: 2rem;
    font-size: 1.4rem;
}
#sliderInter .cardsContainer .singleCardText h4 {
    font-weight: 600;
    font-size: 1.5rem;
}
#sliderInter .cardsContainer .singleCardText h4 span {
    font-weight: 200;
}
#sliderInter .cardsContainer .singleCardText h5 {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    padding: 0.5rem 0;
    margin-top: 2rem;
    font-weight: 200;
}
#sliderInter .cardsContainer .singleCardText .distanze {
    margin-top: 2rem;
}
#sliderInter .cardsContainer .singleCardText .distanze h6 {
    font-weight: 200;
    font-size: 1.2rem;
}
#sliderInter .cardsContainer .singleCardText .distanze h6 span {
    font-weight: 600;
    font-size: 1.6rem;
    padding-left: 1rem;
}
#sliderInter .cardsContainer .singleCardText .distanze hr {
    margin: 0.8rem 0;
    color: inherit;
    background-color: white;
    border: 0;
    opacity: 1;
}
#inter .carousel-indicators {
    bottom: -35%;
}
#inter .carousel-indicators [data-bs-target] {
    background-color: white;
    opacity: 1;
    width: 35px;
    height: 5px;
}
#inter .carousel-indicators .active {
    background-color: var(--verde_acqua);
}

/* ═══════════════ FAQ ═══════════════ */
#faq {
    background-image: linear-gradient(to bottom, #b03f68, #f38eb2);
    background-color: transparent;
    margin-top: -2px;
}
#faq p {
    color: white;
}
#faq .parcoFaq {
    width: 100%;
    margin: auto;
}
#faq .parcoFaq .single {
    margin: 2.5rem;
    width: 33%;
}
#faq .parcoFaq .single p {
    display: block !important;
}

/* ═══════════════ Chi Siamo ═══════════════ */
#chisiamo {
    background-color: #e1eef8;
    color: var(--grigino);
}
#chisiamo p {
    color: var(--grigino);
    text-align: center;
    font-size: 1.4rem;
    padding: 0 11rem;
    font-weight: 300;
}
.loghi_chisiamo {
    display: block;
    width: 18%;
    margin: 0 3rem;
}
.loghi_chisiamo img {
    width: 100%;
}
#chisiamo hr {
    margin: 0.8rem 0;
    color: inherit;
    background-color: var(--grigino);
    border: 0;
    opacity: 1;
}

/* ═══════════════ Footer ═══════════════ */
#footer {
    background-image: linear-gradient(to bottom, #37597a, #55a1d1);
    background-color: transparent;
    background-position: top center;
    padding-top: 5rem;
}
.lupiaeButtonFooter {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    border: 1px solid white;
    padding: 0.5rem 0;
    border-radius: 25px;
    width: 20%;
    text-align: center;
}
.lupiaeButtonFooter:hover {
    color: white;
    font-weight: 600;
}
.loghi_footer > img {
    width: 20%;
    margin-right: 3rem;
}
.loghi_footer > div {
    width: 20%;
    margin-left: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}
.loghi_footer > div h6 {
    text-align: center;
    border-bottom: 1px solid white;
    color: white;
    font-weight: 100;
    padding-bottom: 0.5rem;
}
.loghi_footer_right {
    display: flex;
    gap: 20%;
}
.loghi_footer_right img {
    width: 40%;
}
#footer hr {
    margin: 0.8rem 0;
    color: inherit;
    background-color: white;
    border: 0;
    opacity: 1;
}

/* ═══════════════ Map (Intervisibilità) ═══════════════ */
#map {
    width: 100%;
    height: 50rem;
    background-color: dimgrey;
    border-radius: 25px;
    margin-top: 14rem;
}
#map .singleCardButton {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--verde_acqua);
    border: 1px solid white;
    border-radius: 10px;
    color: white;
    text-decoration: none;
    padding: 0.3rem 0;
    margin-top: 2rem;
    font-size: 1.4rem;
}

/* ═══════════════ Buttons (shared) ═══════════════ */
.lupiaeButtonViola {
    text-decoration: none;
    color: white;
    background-color: var(--viola);
    font-size: 1.2rem;
    border: 1px solid white;
    padding: 0.5rem 6rem;
    border-radius: 25px;
}
.lupiaeButtonVerdeAcqua {
    text-decoration: none;
    color: white;
    background-color: var(--verde_acqua);
    font-size: 1.2rem;
    border: 1px solid white;
    padding: 0.5rem 6rem;
    border-radius: 25px;
}
.lupiaeButtonWhite {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    border: 1px solid white;
    padding: 0.5rem 6rem;
    border-radius: 25px;
}

/* ═══════════════ Carousel item height ═══════════════ */
.carousel-item {
    height: 100%;
}

/* ═══════════════ Responsive ═══════════════ */
@media only screen and (min-width: 768px) {
    .video {
        height: 550px;
    }
}
@media only screen and (min-width: 1024px) {
    #sliderInter .cardsContainer .singleCard {
        width: 23%;
    }
}
@media only screen and (max-width: 1024px) {
    #sliderInter .cardsContainer .singleCard {
        width: 100%;
    }
}
@media only screen and (max-width: 1200px) {
    .navbar-toggler:focus,
    .navbar-toggler:active,
    .navbar-toggler-icon:focus {
        outline: none;
        box-shadow: none;
    }
    .py_10 {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .pb_10 {
        padding-bottom: 2rem;
    }
    .pt_5 {
        padding-top: 1rem;
    }
    .containerLupiae {
        max-width: 90vw;
        margin: auto;
    }
    .navbar-brand img {
        width: 22vw;
    }
    .fa-bars {
        font-size: 8vw;
        color: var(--grigino);
    }
    .carousel-item {
        height: 100% !important;
    }
    .carousel-item img {
        object-fit: cover !important;
        height: 100% !important;
    }
    #sliderApertura .carousel-caption {
        position: absolute;
        right: inherit;
        top: 50%;
        left: 50%;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        color: #fff;
        text-align: center;
        transform: translate(-50%, -50%);
        width: 100%;
    }
    #sliderApertura .carousel-caption h3 {
        font-size: 8vw;
        font-weight: 700;
        margin-bottom: 18vw;
    }
    #numeri .single {
        text-align: center;
        width: 100%;
        margin-bottom: 4rem;
        border-right: none !important;
    }
    #parco .parcoFaq {
        width: 100%;
        margin: auto;
    }
    .parcoFaq h3 {
        font-size: 2rem;
    }
    .apriFaq {
        font-size: 2rem;
    }
    #chisiamo p {
        padding: 0;
    }
    .loghi_chisiamo {
        display: block;
        width: 70%;
        margin: 3rem 0;
    }
    .lupiaeButtonFooter {
        width: 100%;
        margin-bottom: 1rem;
    }
    .loghi_footer > img {
        width: 70%;
        margin-right: 0;
    }
    .loghi_footer > div {
        width: 70%;
        margin-left: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-top: 4rem;
    }
    #footer {
        background-size: cover;
    }
    .contatti_footer p {
        width: 100%;
        margin-bottom: 2rem;
        text-align: center;
    }
    #map {
        width: 100%;
        height: 80vh;
    }
}
@media only screen and (max-width: 768px) {
    #faq .parcoFaq .single {
        width: auto;
    }
}

/* ── Override font admin bar (mantiene font sistema WP, evita Poppins) ── */
#wpadminbar,
#wpadminbar * {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
}
