html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: sans-serif;
    /* background-color: rgb(247, 244, 192); */
    background-color: rgb(240 239 215);


    /* stesso colore dell’hero-overlay */

}

h1,
h2,
h3 {
    font-family: "Italiana", sans-serif;
    font-weight: 400;
    font-style: normal;
}

p {
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.sticky-anchors {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 20px;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
}

.anchor-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.anchor-btn {
    background-color: #E50012;
    color: white;
    font-size: 24px;
    text-align: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.anchor-btn:hover {
    background-color: #721c24;
}

.anchor-label {
    font-size: 0.8rem;
    color: #000;
    margin-top: 5px;
    line-height: 1.2;
    max-width: 80px;
    transition: color 0.3s ease;
}

.anchor-btn {
    background-color: #b52727;
    color: white;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.anchor-btn.dark,
.anchor-label.dark {
    color: white !important;
}

.anchor-btn.dark {
    background-color: #721c24 !important;
}


/* .circle-wrapper {
    background-color: #bca88599;

}



.bg-container {
    background-color: #bca88599;
} */


/* .bg-container {
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/simbolo-05.png') cover; 
    height: 400px;
} */



.navbar-transparent {
    background-color: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(6px);
    box-shadow: none;
}



.navbar-brand img {
    height: 20px;
    width: auto;
}

.navbar-custom {
    position: fixed;
    top: 0;
    /* left: 0; */
    width: 100%;
    z-index: 1030;
    /* background-color: #ffffff; */
    transition: background-color 0.4s ease, color 0.4s ease;
}

.navbar-custom .nav-link,
.navbar-custom .navbar-brand img {
    transition: color 0.4s ease, filter 0.4s ease;
}

/* Stato dopo scroll */
.navbar-transparent {
    background-color: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(6px);
}

.navbar-transparent .nav-link {
    color: #ffffff !important;
}

.navbar-transparent .navbar-brand img {
    filter: brightness(0) invert(1);
    /* Rende bianco un logo scuro */
}

.navbar-brand img {
    height: 40px;
}

.nav-link {
    color: #000000 !important;
}


.hero-section {
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/banner-1986.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section .overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    /* Gradient overlay */
    width: 100%;
    height: 100%;
    padding: 2rem;
    display: flex;
    align-items: center;
}

.hero-section h2,
.hero-section p {
    color: white;
}

.btn-primary {
    background-color: #E50012;
    color: white;
}

.btn-primary::hover {
    background-color: #3a0409 !important;
    color: white;
}

.bg-container {
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/simbolo-05.png') center;
    padding: 3rem;
    position: relative;
    /* background:rgb(247 244 192); */
    z-index: 0;

}








.header-button {
    background-color: #E50012;
    border: none;
    color: white;
    width: 70px;
    height: 70px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}


.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    /* opzionale ma chiaro */
}


.circle-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.circle-container {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    overflow: hidden;
    clip-path: circle(300px at center);
    z-index: 1;
    will-change: transform, clip-path, filter, opacity;
    transition: transform 0.3s ease, filter 0.3s ease, clip-path 0.3s ease, opacity 0.5s ease;
}

.circle-container img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    /* prima era fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgb(236 232 143 / 44%); */
    /* background: rgb(247 244 192); */
    background-color: rgb(240 239 215);

    z-index: 0;
    /* ancora più basso degli altri */
    pointer-events: none;
    /* evita click */
}

.hero-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    text-shadow: 0 2px 10px rgb(0, 0, 0);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.2rem;
}



.content {
    min-height: 100vh;
    padding: 100px 10vw;
    z-index: 10;
    position: relative;
    /* color: snow; */
    color: #000;
    text-align: center;
}

.content h2 {
    font-size: 2.5rem;
}

.content p {
    font-size: 1.2rem;
}


.decorative-bg {
    position: absolute;
    top: 40%;
    right: 0;
    transform: translateY(-50%);
    height: 700px;
    /* modifica in base alla tua grafica */
    opacity: 0.2;
    /* per un effetto leggero sullo sfondo */
    pointer-events: none;
    /* evita che interferisca con il mouse */
    z-index: 0;
    /* assicurati che stia dietro il testo */
}

.decorative-bg-left {
    position: absolute;
    bottom: 5%;
    left: 0;
    height: 350px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.sakura-list {
    list-style: none;
    padding-left: 0;
}

.sakura-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: white;
}

.sakura-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 24%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/simbolo-06.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.bullet-mobile {
    display: none;
    font-size: 14px;
    margin-right: 6px;
}

/* PNG: default visibile */
.bullet-desktop {
    width: 14px;
    height: 14px;
    object-fit: contain;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}

.editorial-section {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    height: 100vh;
    padding: 2rem;
    background: #405125;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.editorial-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_01.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    /* solo sfondo trasparente */
    z-index: 0;
}

.editorial-section-red {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    height: 100vh;
    padding: 2rem;
    background: rgb(101 3 0);
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}


.titolo-rosso {
    display: block;

}

.titolo-orizzontale {
    display: none;

}


.editorial-section-red::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_02.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.editorial-section-red>* {
    position: relative;
    z-index: 1;
}

/*.editorial-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_01.png');*/
/* es. background trasparente */
/*background-size: cover;
    background-position: center;
    opacity: 0.1;*/
/* controlla la trasparenza qui */
/*z-index: 0;
}*/

.left-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    max-width: 600px;
}

.left-content .photographer {
    font-size: 0.9rem;
    color: white;
}

.left-content .title {
    font-size: 2rem;
    margin: 1rem 0;
    line-height: 1.3;
    color: white;
}

.left-content .description {
    font-size: 1.2rem;
    color: white;
}

.center-title {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 3rem;
    color: white;
    text-align: center;
}

.right-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.editorial-section.reverse {
    grid-template-columns: 1fr auto 1fr;
}

.editorial-section.reverse .center-title {
    order: 1;
}

.editorial-section.reverse .right-image {
    order: 2;
}

.editorial-section.reverse .left-content {
    order: 3;
}

.bg-offerte {
    background-color: #fff;

}

.section-offerte {
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/simbolo-05.png');
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

.card {
    position: relative;
    background: url('https://images.unsplash.com/photo-1563720222785-3f70dd8d7fb9') center/cover no-repeat;
    border-radius: 16px;
    overflow: hidden;
    color: white;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.502);
    /* velatura overlay */
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.card p {
    margin: 0.25rem 0;
    font-size: 1rem;
    font-weight: 600;

}

.card span.price {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
    font-size: 1.2rem;
    color: white;
}

/* Animation classes */
.card.animate {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
}


.row-equal {
    min-height: 100vh;
}

.img-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-box {
    background-color: #f4f1ec;
    padding: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: fadeIn 1.2s ease-in-out;
}

.text-container {
    max-width: 700px;
    width: 100%;
    animation: slideUp 1.2s ease;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.background-form {
    position: relative;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    padding: 2rem;
    background: rgba(210, 28, 22, 0.863);
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;

}


.background-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_09.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    z-index: 0;
}


.custom-section {
    position: relative;
    z-index: 1;
    background-color: #0f0f0f;
    color: #fff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 960px;
    margin: 50px auto;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}




.form-area {
    padding: 3rem;
}

.form-control {
    background-color: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    border-radius: 6px;
}

.form-control::placeholder {
    color: #999;
}

.btn-custom {
    background-color: #b52727;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
}

.btn-custom:hover {
    background-color: #f19a18;
}

.image-side {
    background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_09.jpg');
    background-size: cover;
    background-position: center;
    min-height: 400px;
    /* di default, altezza visibile anche su mobile */
    width: 100%;
}

.info-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    max-width: 80%;
}

.info-text p {
    margin-bottom: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.form-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-family: "Italiana", sans-serif;

}



.banner-title h1 {
    font-size: 3.5rem;
    margin: 0;
    transform: translate(-50%, -50%);
    text-align: center;

}



/* Media query */

@media (max-width: 575px) {
    /* 
    body {
        overflow-x: visible;
    } */

    .navbar {
        padding: 0 !important;
        overflow: visible;
    }

    .navbar-brand img {
        height: 40px !important;
    }

    #navbarNav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }

    .navbar-collapse {
        flex-basis: 0 !important;

    }

    .navbar-collapse img {
        height: 70px !important;
    }


    .circle-container {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 500px;
        height: 500px;
        transform: translate(-50%, -50%) scale(1);
        border-radius: 50%;
        overflow: hidden;
        clip-path: circle(300px at center);
        z-index: 1;
        will-change: transform, clip-path, filter, opacity;
        transition: transform 0.3s ease, filter 0.3s ease, clip-path 0.3s ease, opacity 0.5s ease;
    }


    .editorial-section {
        grid-template-columns: auto;
        height: auto;
        display: block;

    }

    .editorial-section-red {
        grid-template-columns: auto;
        height: auto;
        display: block;

    }

    .titolo-rosso {
        display: none;

    }


    .titolo-rosso-orizzontale {
        display: block;
        text-align: center;
        font-size: 3rem;
        color: white;
        margin: 1rem 0;

    }

    .titolo-orizzontale {
        display: block;

    }


    .center-title {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: center;
        grid-column: span 2;
        font-size: 2.5rem;
        margin: 1rem 0;
    }

    .sakura-list li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 24%;
        width: 18px;
        height: 18px;
        transform: translateY(-50%);
        background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/simbolo-06.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    .right-image img {
        max-width: 100%;
    }


    .image-side {

        min-height: 250px;

    }

    .form-section .row {
        flex-direction: column-reverse;
        display: flex;
    }

}



@media (min-width: 576px) {



    .navbar-brand img {
        height: 40px !important;
    }

    #navbarNav {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
    }


    .navbar-collapse {
        flex-basis: 0 !important;

    }

    .navbar-collapse img {
        height: 70px !important;
    }


    .circle-container {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 500px;
        height: 500px;
        transform: translate(-50%, -50%) scale(1);
        border-radius: 50%;
        overflow: hidden;
        clip-path: circle(300px at center);
        z-index: 1;
        will-change: transform, clip-path, filter, opacity;
        transition: transform 0.3s ease, filter 0.3s ease, clip-path 0.3s ease, opacity 0.5s ease;
    }



    .editorial-section {
        grid-template-columns: auto;
        height: auto;
        display: block;

    }

    .editorial-section-red {
        grid-template-columns: auto;
        height: auto;
        display: block;

    }

    .titolo-rosso {
        display: none;

    }


    .titolo-rosso-orizzontale {
        display: block;
        text-align: center;
        font-size: 3rem;
        color: white;
        margin: 1rem 0;

    }

    .titolo-orizzontale {
        display: block;

    }


    .center-title {
        writing-mode: horizontal-tb;
        transform: none;
        text-align: center;
        grid-column: span 2;
        font-size: 2.5rem;
        margin: 1rem 0;
    }

    .right-image img {
        max-width: 100%;
    }



    .cards-container {
        display: inline;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: auto;
    }


    .image-side {

        min-height: 250px;

    }

    .form-section .row {
        flex-direction: column-reverse;
        display: flex;
    }

}

@media (min-width: 768px) {


    .text-wrapper {
        padding: 40px;
    }

    .content {
        min-height: 75vh;
        padding: 0;
        margin: 10px;
        margin-left: 10px
    }

    .cerchio-tablet {
        height: 430px;
    }



    .titolo-rosso {
        display: none;

    }








}


@media (min-width: 992px) {
    .editorial-section {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        height: 100vh;
    }



    .left-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        max-width: 600px;
    }

    .center-title {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 3rem;
        color: white;
        text-align: center;
    }

    .right-image img {
        width: 100%;
        max-width: 500px;
        border-radius: 1rem;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .editorial-section-red {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 2rem;
        height: 100vh;
        padding: 2rem;
        background: rgb(101 3 0);
        box-sizing: border-box;
        position: relative;
        overflow: hidden;
    }


    .titolo-rosso {
        display: block;

    }

    .titolo-orizzontale {
        display: none;

    }


    .editorial-section-red::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('https://cdn.ideeperviaggiare.it/media/site/giappone/giappone_02.png');
        background-size: cover;
        background-position: center;
        opacity: 0.1;
        z-index: 0;
    }

    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: auto;
    }


}

@media (min-width: 1200px) {
    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
        max-width: 1200px;
        margin: auto;
    }

}

@media (min-width: 1400px) {}


@media (min-width: 2500px) {}