/*  Reset base e full viewport  */
html, body {
    font-family: 'montserrat', sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #000;
    box-sizing: border-box;
    background-color: #fff !important;
}

.coming-soon{
    background-image: url("/wp-content/themes/mydolcevita/static/img/comingsoon_images/bg_shdw.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* 1) Contenitore dell'animazione Intro (30 frame) */
.intro-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* importante: FLEX-START per attaccare in alto */
    z-index: 9999;
}

    .intro-animation img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: none;
        max-height: none;
        width: 100%;
    }

/* 2) Header con ultimo frame dell’intro come sfondo */
.intro-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    display: none;
}

/* 3) Contenuto della landing page (dopo l’intro) */
.content {
    /* Flexbox per centrare verticalmente e orizzontalmente
       la tua animazione “work in progress” */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    position: relative;
    z-index: 2; /* sopra l'intro-header */
}

/* Contenitore "infinite" delle foto (polaroid/cartoline) */
.cs_photo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Sotto la .content che è a z-index 2 */
    pointer-events: none;
    overflow: hidden;
}

    /* Ogni singola foto generata dinamicamente */
    .cs_photo-container img {
        position: absolute;
        will-change: transform;
        max-width: 300px;
        opacity: 1;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        border-radius: 8px;
    }

/* Se lo schermo è <= 768px, riduciamo ulteriormente */
@media (max-width: 768px) {
    .cs_photo-container img {
        max-width: 150px;
    }
}
@media (max-width: 1350px) {
    .intro-animation img {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        max-width: none;
        max-height: none;
        height: 100%;
        width: fit-content;
    }
}

/* L’animazione “work in progress” deve occupare un 40% o 80% della larghezza, a scelta */
.cs_animation-container {
    width: 40%; /* Cambia pure a 80% se preferisci */
    max-width: 1200px;
    margin: 0 auto;
}

    .cs_animation-container img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Logo - regola se serve */
.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: -40px;
}

/* Testo Work in Progress (Stay tuned) in nero */
.wip-text {
    font-size: 24px;
    font-weight: 600;
    margin-top: 20px;
    color: #000;
}

/* Media Query: su schermi <= 768px */
@media (max-width: 768px) {
    .logo {
        max-width: 120px; /* Logo più piccolo su mobile */
    }

    .cs_animation-container {
        width: 90%; /* Larghezza maggiore per mobile */
    }

    .wip-text {
        font-size: 20px; /* Testo più piccolo su mobile */
    }
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* sotto tutto */
    background-color: #fff; /* sfondo bianco */
    pointer-events: none;
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.loader-image {
    width: 100%;
    height: 100%;
    animation: rotate 2s linear infinite;
    display: block;
}

.loader-text {
    position: absolute;
    text-align:center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    pointer-events: none;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


