/* =============================================== */
/* FOGLIO DI STILE UNIFICATO E DEFINITIVO          */
/* Blu Spose Atelier App                           */
/* Ultimo aggiornamento: 30 Luglio 2025            */
/* =============================================== */

/* =============================================== */
/* STILI GLOBALI E IMPOSTAZIONI DEL CORPO (BODY)   */
/* =============================================== */

body {
    /* Impostazioni di base */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    margin: 0;
    box-sizing: border-box;

    /* Spazio in alto per la barra di navigazione fissa */
    padding-top: 80px; 
    padding-bottom: 40px;
}

/* Stile specifico per la homepage a collage a tutto schermo */
body.home-collage {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden; /* Nasconde lo scroll SOLO sulla homepage */
    background-color: #fff; /* Sfondo bianco per le linee di separazione */
}


/* =============================================== */
/* MENU DI NAVIGAZIONE MOBILE A SCOMPARSA          */
/* =============================================== */

/* La barra fissa in alto */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    padding: 0 15px;
    z-index: 999;
    box-sizing: border-box;
}

/* Pulsante Hamburger */
.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
}

.hamburger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

/* Logo nella barra in alto */
.top-bar-logo {
    margin: 0 auto;
    transform: translateX(-15px);
}
.top-bar-logo img {
    height: 40px;
    width: auto;
}

/* Il pannello laterale, nascosto di default */
.sidenav {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-top: 80px;
    transition: transform 0.3s ease-in-out;
    transform: translateX(-100%);
    box-shadow: 3px 0 15px rgba(0,0,0,0.2);
}

.sidenav a {
    padding: 15px 20px;
    text-decoration: none;
    font-size: 1.2em;
    color: #333;
    display: block;
    transition: background-color 0.3s;
}

.sidenav a:hover {
    background-color: #f1f1f1;
}

.sidenav hr {
    margin: 20px;
    border: none;
    border-top: 1px solid #eee;
}

/* Overlay per lo sfondo quando il menu è aperto */
.overlay {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* STATI ATTIVI (gestiti da JavaScript) */
body.sidenav-open .sidenav {
    transform: translateX(0);
}
body.sidenav-open .overlay {
    display: block;
}
body.sidenav-open .hamburger-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
body.sidenav-open .hamburger-btn span:nth-child(2) {
    opacity: 0;
}
body.sidenav-open .hamburger-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* =============================================== */
/* CONTAINER PRINCIPALI                            */
/* =============================================== */

.login-container, .gallery-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 90%;
    margin: 20px auto;
    text-align: center;
    box-sizing: border-box;
}

.login-container { max-width: 450px; }
.gallery-container { max-width: 1200px; }


/* =============================================== */
/* HOMEPAGE A COLLAGE                              */
/* =============================================== */

.collage-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 4px;
    position: relative;
    background-color: #fff;
}

.collage-item {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.4s ease, filter 0.4s ease;
    padding: 20px;
    text-align: center;
    overflow: hidden;
}

.collage-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    transition: background-color 0.3s;
}

.collage-item:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.collage-item:hover::before {
    background-color: rgba(0, 0, 0, 0.6);
}

.collage-item span {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.6em;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#quadrante-1 { background-image: url('https://bluspose.it/wp-content/uploads/2024/09/18706-Photoroom.jpg.webp'); }
#quadrante-2 { background-image: url('https://bluspose.it/wp-content/uploads/2024/04/Denise3-e1712065252877.jpg'); }
#quadrante-3 { background-image: url('https://bluspose.it/wp-content/uploads/2024/01/kasiapi-53.jpg'); }
#quadrante-4 { background-image: url('https://bluspose.it/wp-content/uploads/2024/01/93-Trunk-show-2017_5-scaled-scaled.jpg'); }

.logo-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    background-color: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
    z-index: 10;
}

.logo-overlay a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.logo-overlay:hover {
    transform: translate(-50%, -50%) scale(1.05);
}

.logo-overlay img {
    width: 80%;
    height: auto;
}


/* =============================================== */
/* ELEMENTI GENERICI (TITOLI, FORM, PULSANTI)      */
/* =============================================== */

h1 {
    color: #d1a3a4;
    margin-top: 0;
    margin-bottom: 10px;
}

h2 {
    text-align: left;
    color: #555;
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

p {
    color: #666;
    line-height: 1.5;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; 
}

button, .booking-button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #d1a3a4;
    color: white !important;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

button:hover, .booking-button:hover {
    background-color: #b98b8c;
}

#message-area {
    margin-top: 20px;
    font-weight: 600;
    min-height: 20px;
}

.forgot-password-link {
    display: block;
    margin-top: 25px;
    font-size: 0.9em;
    color: #777;
    text-decoration: none;
}

.forgot-password-link:hover {
    color: #d1a3a4;
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 30px 0;
}


/* =============================================== */
/* STILI SPECIFICI PER LA DASHBOARD                */
/* =============================================== */

#dress-details,
#checklist-container,
#photo-gallery,
#document-list,
#video-container,
.countdown {
    text-align: left;
    background-color: #fafafa;
    border: 1px solid #e9e9e9;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

#dress-details { margin-top: 0; }

.checklist, .planner-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.checklist li, .planner-list li {
    padding: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
}
.planner-list li { padding: 12px 0; }

.checklist li:last-child, .planner-list li:last-child {
    border-bottom: none;
}

.checklist li.done {
    text-decoration: line-through;
    color: #999;
}

#photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

#photo-gallery:not(:empty) p {
    display: none;
}

#photo-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

#photo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.document-link {
    display: inline-block;
    padding: 10px 15px;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s;
}
.document-link:hover {
    background-color: #e0e0e0;
}

#video-container video {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.countdown {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}
.countdown-block {
    display: flex;
    flex-direction: column;
}
.countdown-number {
    font-size: 2.5em;
    font-weight: 600;
    color: #d1a3a4;
    line-height: 1;
}
.countdown-label {
    font-size: 0.9em;
    color: #777;
    margin-top: 5px;
}

#logout-button,
#enable-notifications-button {
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

#logout-button { background-color: #888; }
#logout-button:hover { background-color: #666; }
#enable-notifications-button { background-color: #5b9bd5; }
#enable-notifications-button:hover { background-color: #4a8bc2; }


/* =============================================== */
/* STILI PER LA LIGHTBOX DELLE IMMAGINI            */
/* =============================================== */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}
.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    animation: zoom 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940);
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
}
@keyframes zoom {
    from {transform: scale(0.8)}
    to {transform: scale(1)}
}

/* =============================================== */
/* STILI PER IL BLOG E CREAZIONI                   */
/* =============================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.product-image {
    width: 100%;
    height: 350px;
    overflow: hidden;
}

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

.product-title {
    font-size: 1.1em;
    padding: 20px;
    margin: 0;
    color: #333;
}

.post-card-content {
    padding: 20px;
    flex-grow: 1;
}
.post-excerpt {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
}
.post-excerpt p {
    margin: 0;
}

