:root {
    --gold: #C5A572;
    --sage: #90A88F;
    --dark-sage: #718770;
    --pink: #F8D7D9;
    --text-dark: #2B2B2B;
    --background-light: #FFFFFF;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-weight: normal;
    position: relative;
    display: inline-block;
}

h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Updated Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(144, 168, 143, 0.3), rgba(144, 168, 143, 0.3));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-content {
    background: transparent;
    padding: 0;
    box-shadow: none;
    margin-top: 0;
}

.hero-content::before {
    display: none;
}

.hero h1 {
    font-size: 6rem;
    margin-bottom: 0;
    color: var(--text-dark);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.hero .date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    color: var(--text-dark);
    letter-spacing: 3px;
    text-align: center;
}

.hero .tagline {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-dark);
}

/* Sections */
section {
    padding: 5rem 2rem;
    width: 100%;
    position: relative;
}

section > * {
    max-width: 1200px;
    margin: 0 auto;
}

/* Add alternating background colors */
section:nth-of-type(even) {
    background: linear-gradient(rgba(144, 168, 143, 0.3), rgba(144, 168, 143, 0.3));
}

section:nth-of-type(odd) {
    background: var(--background-light);
}

section h2 {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--gold);
    font-weight: normal;
    margin-bottom: 2rem;
}

section #cerimonia-e-ricevimento {
    background: linear-gradient(rgba(144, 168, 143, 0.3), rgba(144, 168, 143, 0.3));
}

/* Event Details */
.event-details {
    display: flex;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ceremony and Reception Cards */
.ceremony-card,
.reception-card {
    flex: 1;
    background: #fff;
    padding: 4rem 3rem;
    margin: 1rem 0;
    position: relative;
    border: 1px solid rgba(197, 165, 114, 0.3);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(197, 165, 114, 0.1);
    transition: all 0.3s ease;
}

/* Fairy tale frame */
.ceremony-card::before,
.reception-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--gold);
    opacity: 0.5;
    pointer-events: none;
}

/* Delicate corner flourishes */
.ceremony-card::after,
.reception-card::after {
    content: '❦';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--dark-sage);
    opacity: 0.6;
}

/* Heading styles */
.ceremony-card h3,
.reception-card h3 {
    color: var(--gold);
    font-size: 2.5rem;
    text-align: center;
    font-family: 'Great Vibes', cursive;
    margin-bottom: 2rem;
    position: relative;
    line-height: 1.2;
}

/* Decorative underline for headings */
.ceremony-card h3::after,
.reception-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Time display */
.ceremony-card .time,
.reception-card .time {
    color: var(--gold);
    font-size: 1.5rem;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    margin: 2.5rem 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

/* Decorative elements around time */
.ceremony-card .time::before,
.reception-card .time::before,
.ceremony-card .time::after,
.reception-card .time::after {
    content: '✧';
    color: var(--gold);
    font-size: 1rem;
    opacity: 0.7;
    position: static;
    transform: none;
}

/* Remove the left/right positioning since we're using flex */
.ceremony-card .time::before,
.reception-card .time::before,
.ceremony-card .time::after,
.reception-card .time::after {
    left: auto;
    right: auto;
}

/* Location styling */
.ceremony-card .location,
.reception-card .location {
    color: var(--dark-sage);
    font-size: 1.7rem;
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Address styling */
.ceremony-card .address,
.reception-card .address {
    color: var(--text-dark);
    font-size: 1rem;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.6;
    opacity: 0.8;
}

/* Hover effects */
.ceremony-card:hover,
.reception-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(197, 165, 114, 0.2);
}

.ceremony-card:hover::before,
.reception-card:hover::before {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 968px) {
    .event-details {
        flex-direction: column;
        align-items: center;
    }

    .ceremony-card,
    .reception-card {
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .ceremony-card,
    .reception-card {
        padding: 3rem 2rem;
    }

    .ceremony-card h3,
    .reception-card h3 {
        font-size: 2.2rem;
    }

    .ceremony-card .time,
    .reception-card .time {
        font-size: 1.5rem;
    }

    .ceremony-card .location,
    .reception-card .location {
        font-size: 1.4rem;
    }

    .ceremony-card .time::before,
    .reception-card .time::before {
        left: 10%;
    }

    .ceremony-card .time::after,
    .reception-card .time::after {
        right: 10%;
    }
}

/* RSVP Section */
.rsvp {
    background: none;
    color: var(--text-dark);
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: none;
}

.rsvp::before {
    display: none; /* Remove the background gradient */
}

.rsvp h2 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 2rem;
    text-align: center;
}

/* Add a container for RSVP content to maintain consistent width */
.rsvp-content {
    max-width: 800px;
    margin: 0 auto;
}

.rsvp p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    letter-spacing: 1px;
    text-align: center;
    margin: 0 auto;
}

/* Updated Gifts Section Styles */
.gifts {
    text-align: center;
    padding: 5rem 2rem;
}

.gifts-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.gifts-content p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.bank-details {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.95));
    border: 1px solid var(--gold);
    padding: 3rem;
    margin: 2rem auto;
    position: relative;
    max-width: 600px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        0 0 0 1px rgba(197, 165, 114, 0.1);
}

/* Decorative frame for bank details */
.bank-details::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid var(--gold);
    opacity: 0.5;
    pointer-events: none;
}

/* Corner decorations */
.bank-details::after {
    content: '❦';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.6;
}

.bank-details p {
    font-family: 'Montserrat', sans-serif;
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.bank-details p strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    color: var(--gold);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.bank-details .iban {
    font-family: monospace;
    font-size: 1.6rem;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(197, 165, 114, 0.1);
    border-radius: 4px;
}

/* Hover effect */
.bank-details:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(197, 165, 114, 0.2);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gifts {
        padding: 3rem 1rem;
    }

    .gifts-content {
        padding: 1rem;
    }

    .bank-details {
        padding: 2rem 1.5rem;
    }

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

    .bank-details .iban {
        font-size: 100%;
        letter-spacing: 1px;
        padding: 0.8rem;
    }

    .rsvp {
        padding: 3rem 1rem;
    }
    
    .rsvp h2 {
        font-size: 2.8rem;
    }
    
    .rsvp-content {
        padding: 1rem;
    }
    
    .rsvp p {
        font-size: 1.2rem;
    }
}

/* Updated Footer Styles */
footer {
    background: linear-gradient(rgba(248, 215, 217, 0.3), rgba(248, 215, 217, 0.4));
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(197, 165, 114, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    text-align: center;
}

.footer-section h4 {
    color: var(--gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(197, 165, 114, 0.2);
}

.footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-signature {
    font-family: 'Great Vibes', cursive;
    color: var(--gold);
    font-size: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section {
        margin-bottom: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.0rem;
    }

    .hero .date {
        font-size: 1.4rem;
    }

    section h2 {
        font-size: 2.8rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    .timeline-item::before {
        left: calc(1rem - 4px);
    }
}

/* Countdown Timer */
.countdown-section {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem 0;
    text-align: center;
    background: rgba(248, 215, 217, 0.9);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(197, 165, 114, 0.2);
    border-bottom: 1px solid rgba(197, 165, 114, 0.2);
}

.countdown-timer {
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 1rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .countdown-grid {
        gap: 1rem;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .countdown-grid {
        gap: 0.75rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

/* Navbar Styles */
.navbar {
    position: relative;
    background: transparent;
    padding: 0.5rem 0;
    margin-top: 2rem;
    box-shadow: none;
    width: 100%;
    display: flex;
    justify-content: center;
}

.nav-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 2rem;
}

.nav-container::before,
.nav-container::after {
    content: '';
    position: absolute;
    left: calc(2rem - 3rem);
    right: calc(2rem - 3rem);
    height: 1px;
    background-color: var(--gold);
}

.nav-container::before {
    top: 0;
}

.nav-container::after {
    bottom: 0;
}

.navbar::before,
.navbar::after {
    display: none;
}

.nav-logo {
    display: none;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.floral-decoration {
    position: relative;
    width: 100px;
    height: auto;
    display: inline-block;
    vertical-align: middle;
    margin: 0 10px;
    transform: translateY(-40px);
    z-index: 1;
}

@media (max-width: 768px) {
    .floral-decoration {
        width: 70px;
        transform: translateY(-35px);
        margin: 0px;
    }
}

h1 {
    position: relative;
    z-index: 2;
}

/* Story Section */
.story-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
}

.story-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.story-block p {
    flex: 0.7;
    margin: 0;
}

.story-image {
    width: 25%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .story-block {
        flex-direction: column;
        text-align: center;
    }
    
    .story-image {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }

    .story-text {
        width: 100%;
    }
    
    .story-title {
        font-size: 1.5rem;
    }
}

.story-text {
    flex: 0.7;
}

.story-title {
    color: var(--sage);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Timeline Styles */
.timeline {
    position: relative;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: calc(100% - 2rem);
    background-image: repeating-linear-gradient(
        -45deg,
        var(--gold) 0,
        var(--gold) 10px,
        transparent 10px,
        transparent 20px
    );
    opacity: 0.2;
    top: 1rem;
}

.timeline-item {
    position: relative;
    cursor: pointer;
    width: 50%;
    padding: 0 2rem;
}

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

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

.timeline-item::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--gold);
    top: 0.7rem;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd)::before {
    right: -4px;
}

.timeline-item:nth-child(even)::before {
    left: -4px;
}

.timeline-item.active::before {
    background-color: var(--gold);
    transform: scale(1.2);
    box-shadow: 0 0 0 2px white, 0 0 0 3px var(--gold);
}

.timeline-date {
    font-size: 1.2em;
    color: var(--gold);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .navbar {
        display: none;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .date {
        font-size: 1.5rem;
    }

    .hero .tagline {
        font-size: 1rem;
    }

    .timeline::before {
        left: 1rem;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left !important;
        padding-left: 2.5rem;
        padding-right: 0;
        margin: 2rem 0;
    }
    
    .timeline-item::before {
        left: calc(1rem - 4px) !important;
        right: auto !important;
    }

    .timeline-item-content {
        width: 95%;
        margin: 20px;
        margin-left: 0 !important;
        transition: transform 0.2s;
        scroll-snap-align: start;
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }

    .timeline-item-content .card-description{
        text-align: start !important;
    }
}

.timeline-item-content {
    width: 95%;
    margin: 20px;
    transition: transform 0.2s;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.timeline-item:nth-child(even) .timeline-item-content {
    align-items: flex-start !important;
    margin-left: 0 !important;
}

.card-image {
    width: 100%;
    height: 250px;
    border-radius: 10px;
}

.card-title {
    text-align: left;
    margin: 8px 0px;
    font-size: 1.2em;
    color: var(--dark-sage);
}

.card-date {
    font-size: 1.2em;
    color: var(--gold);
}

.card-description {
    text-align: end;
    font-size: 1em;
    color: #666;
}

.timeline-item:nth-child(even) .timeline-item-content .card-description{
    text-align: start !important;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}