/* TEMI COLORE PER MATRIMONIO
   10 eleganti schemi di colore per il sito web del matrimonio di Silvia & Michele */

/* 1. SALVIA RUSTICA */
.tema-salvia-rustica {
    --romantic-brown: #7D8E74; /* Verde salvia */
    --soft-beige: #F9F7F2; /* Beige più chiaro */
    --pale-pink: #D4CAA3; /* Oro chiaro */
    --text: #595542; /* Marrone scuro verdastro */
}

/* 2. FASCINO NAUTICO */
.tema-fascino-nautico {
    --romantic-brown: #243E6B; /* Blu navy */
    --soft-beige: #F8F6F4; /* Bianco avorio */
    --pale-pink: #FFCDB2; /* Pesca chiaro */
    --text: #3C4356; /* Blu grigiastro */
}

/* 3. ROMANTICO BORDEAUX */
.tema-romantico-bordeaux {
    --romantic-brown: #8A2232; /* Bordeaux */
    --soft-beige: #F6F1F0; /* Beige rosato */
    --pale-pink: #E5B8B7; /* Rosa antico */
    --text: #5C3B41; /* Bordeaux scuro */
}

/* 4. SOGNO DI LAVANDA */
.tema-sogno-lavanda {
    --romantic-brown: #7B6C8E; /* Lavanda */
    --soft-beige: #F4F5F7; /* Grigio chiarissimo */
    --pale-pink: #D0D6E3; /* Argento azzurrato */
    --text: #4A4557; /* Viola scuro */
}

/* 5. ELEGANZA COSTIERA */
.tema-eleganza-costiera {
    --romantic-brown: #1D7A8C; /* Teal */
    --soft-beige: #F8F6F7; /* Beige rosato chiaro */
    --pale-pink: #E8C2C2; /* Oro rosa */
    --text: #36565D; /* Teal scuro */
}

/* 6. TOSCANA DORATA */
.tema-toscana-dorata {
    --romantic-brown: #B37D4E; /* Terracotta dorato */
    --soft-beige: #F9F5EC; /* Avorio caldo */
    --pale-pink: #E8D2B8; /* Beige dorato */
    --text: #634832; /* Marrone toscano */
}

/* 7. GIARDINO SMERALDO */
.tema-giardino-smeraldo {
    --romantic-brown: #2D6E5D; /* Verde smeraldo */
    --soft-beige: #F4F7F3; /* Bianco menta */
    --pale-pink: #D1E8D0; /* Verde pastello */
    --text: #3A5048; /* Verde foresta */
}

/* 8. BLU NOTTE */
.tema-blu-notte {
    --romantic-brown: #21304F; /* Blu notte */
    --soft-beige: #F6F7FA; /* Bianco stellare */
    --pale-pink: #C6D1E6; /* Azzurro luna */
    --text: #363F52; /* Blu scuro */
}

/* 9. CIPRIA E RAME */
.tema-cipria-rame {
    --romantic-brown: #A57155; /* Rame */
    --soft-beige: #FCF6F5; /* Bianco cipria */
    --pale-pink: #F5D0CE; /* Rosa cipria */
    --text: #654B44; /* Marrone ramato */
}

/* 10. ULIVETO */
.tema-uliveto {
    --romantic-brown: #5C683D; /* Verde oliva */
    --soft-beige: #F8F7F1; /* Avorio verde */
    --pale-pink: #E5E1C9; /* Verde oliva chiaro */
    --text: #4A4D39; /* Verde oliva scuro */
}

body {
    font-family: "Cormorant Garamond", serif;
    background-color: var(--soft-beige);
    color: var(--text);
}

/* Header styles */
.header-flower {
    background: url('/api/placeholder/1200/300') no-repeat center;
    background-size: cover;
    min-height: 200px;
    position: relative;
    padding-left: calc((100% - 1320px) / 2);
    padding-right: calc((100% - 1320px) / 2);
}

.header-content {
    background: url(flowers.jpg) rgb(139 115 85 / 25%);
    background-blend-mode: multiply;
    background-size: cover;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
	min-height: 200px;
    border-radius: 8px;
    text-align: center;
}

h1, h2 {
    font-weight: 300;
    letter-spacing: 2px;
}

/* Navigation styles */
.nav-menu {
    background-color: white;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0 auto 2rem;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    max-width: 600px;
}

.nav-menu a {
    color: var(--romantic-brown);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.nav-menu a:hover, .nav-menu a.active {
    background-color: var(--romantic-brown);
    color: white;
}

/* Content sections */
.content-section, .upload-section {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 800px;
}

/* Timeline styles */
.timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--romantic-brown);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid var(--romantic-brown);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-content {
    padding: 1rem;
    background-color: var(--soft-beige);
    border-radius: 8px;
    position: relative;
}

.timeline-content h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: 1.25rem;
}

/* Map styles */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin: 2rem 0;
}

/* IBAN box styles */
.iban-box {
    background-color: var(--soft-beige);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.iban-code {
    font-family: monospace;
    font-size: 1.2rem;
    background-color: white;
    padding: 0.5rem;
    border-radius: 4px;
    margin: 1rem 0;
    letter-spacing: 1px;
    word-break: break-all; /* This will allow the IBAN to break at any point if needed */
    overflow-wrap: break-word; /* Alternative property for better compatibility */
    max-width: 100%; /* Ensures the code doesn't overflow its container */
}

/* Story section styles */
.story-card {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
}

.story-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

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

.story-text {
    font-size: 1.1rem;
    line-height: 1.6;
}

.story-text p {
    margin-bottom: 1rem;
}

/* Gallery styles */
.story-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-grid .gallery-item img {
    height: 250px;
}

/* Photo upload styles */
.upload-area {
    border: 2px dashed var(--romantic-brown);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #FFF;
    position: relative;
}

.upload-area.drag-over {
    background-color: var(--soft-beige);
    border-color: #6B5744;
}

.preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

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

.preview-item .remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}

.upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--soft-beige);
}

.upload-progress-bar {
    height: 100%;
    background-color: var(--romantic-brown);
    width: 0;
    transition: width 0.3s ease;
}

/* Button styles */
.btn-primary {
    background-color: var(--romantic-brown);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

.btn-primary:hover {
    background-color: #6B5744;
}

.btn-primary:disabled {
    background-color: #B5A79B;
    border: none;
}

.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    background-color: var(--romantic-brown);
    border: none;
    box-shadow: 0 0 0 0.25rem rgba(139, 115, 85, 0.25);
}

.btn-primary:hover:disabled {
    background-color: #B5A79B;
}

/* Messages styles */
.error-message {
    color: #dc3545;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.success-message {
    color: #198754;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Modal and carousel styles */
.modal-content {
    background-color: transparent;
    border: none;
}

.carousel-item img {
    max-height: 85vh;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

.modal-backdrop.show {
    opacity: 0.9;
}

.modal-close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 1);
}

/* Footer styles */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
    background-color: white;
}

/* Media queries */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        align-items: center;
        border-radius: 12px;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        margin: 0.25rem 0;
		background-color: #8b735521;

    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 23px;
    }

    .story-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .gallery-grid .gallery-item img {
        height: 150px;
    }

    .carousel-item img {
        max-width: 100%;
        max-height: none;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .modal-dialog {
        margin: 0;
        max-width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
    }

    .modal-content {
        height: auto;
    }
}

@media (max-width: 480px) {
    .story-gallery {
        grid-template-columns: 1fr;
    }
}

.copy-btn {
    background-color: var(--romantic-brown);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
}

.copy-btn:hover {
    background-color: #6B5744;
}

.copy-message {
    height: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.notification-box {
    background-color: var(--pale-pink);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--romantic-brown);
}

.notification-box h4 {
    color: var(--romantic-brown);
    margin-top: 0;
}

.notification-box ul {
    padding-left: 1.5rem;
}

.timeline-content .note {
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: #6B5744;
}
/* Countdown Timer Styles - Smaller Version */
.countdown-container {
    margin: 1.5rem auto;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.countdown-unit span:first-child {
    font-size: 1.5rem;
    font-weight: 300;
    background-color: var(--romantic-brown);
    color: white;
    border-radius: 6px;
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--romantic-brown);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 576px) {
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-unit {
        min-width: 45px;
    }
    
    .countdown-unit span:first-child {
        font-size: 1.2rem;
        width: 45px;
        height: 45px;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
}

/* Stile dedicato per il paragrafo introduttivo */
.intro-paragraph {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
    color: var(--text);
}

@media (max-width: 768px) {
    .intro-paragraph {
        font-size: 1.1rem;
        max-width: 95%;
    }
}
/* Stile per il link disabilitato */
.disabled-link {
    opacity: 0.6;
    cursor: not-allowed;
    position: relative;
}

/* Stile per il messaggio di disabilitazione */
.upload-disabled-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.upload-disabled-message .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.upload-disabled-message .message-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 90%;
    width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--romantic-brown);
}

.upload-disabled-message .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--romantic-brown);
}

.upload-disabled-message h4 {
    color: var(--romantic-brown);
    margin-bottom: 1rem;
}

.upload-disabled-message p {
    margin-bottom: 0.5rem;
}

.upload-disabled-message p.small {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Stili per la sezione RSVP */
.rsvp-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rsvp-form label {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #555;
}

.rsvp-form .form-control,
.rsvp-form .form-select {
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    padding: 10px 12px;
}

.rsvp-form .form-control:focus,
.rsvp-form .form-select:focus {
    border-color: #a08c76;
    box-shadow: 0 0 0 0.25rem rgba(160, 140, 118, 0.25);
}

.rsvp-form .btn-primary {
    background-color: #a08c76;
    border-color: #a08c76;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.rsvp-form .btn-primary:hover,
.rsvp-form .btn-primary:focus {
    background-color: #8c7961;
    border-color: #8c7961;
    transform: translateY(-2px);
}

.rsvp-form .form-check-input:checked {
    background-color: #a08c76;
    border-color: #a08c76;
}

.form-check-label {
    font-weight: normal;
}

#rsvp-message {
    margin-top: 20px;
}

/* Tema chiaro */
.light .rsvp-form {
    background-color: rgba(255, 255, 255, 0.9);
}

/* Tema scuro */
.dark .rsvp-form {
    background-color: rgba(40, 40, 40, 0.9);
}

.dark .rsvp-form label {
    color: #e0e0e0;
}

.dark .rsvp-form .form-control,
.dark .rsvp-form .form-select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .rsvp-form {
        padding: 15px;
    }
}