/* Variabili Globali */
:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Great Vibes', cursive;
    --text-color: #5d4037;
    --bg-color: #faf8f5;
    --primary-color: #8d6e63;
    --secondary-color: #d4af37;
    --champagne-color: #f7e7ce;
    --chocolate-color: #5d4037;
    --gold-color: #d4af37;
    --white-color: #ffffff;
    --light-gray-color: #f5f2ed;
    --dark-gray-color: #4a3728;
    --nav-height: 60px;
}

/* Stili Globali */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--primary-font);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-gray-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 6rem 2rem;
    overflow: hidden;
}

.section-title {
    font-family: var(--secondary-font);
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--gold-color);
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(93, 64, 55, 0.1);
}

.btn {
    display: inline-block;
    background-color: var(--gold-color);
    color: var(--white-color);
    padding: 0.8rem 2.5rem;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    background-color: var(--white-color);
    color: var(--gold-color);
    border-color: var(--gold-color);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: var(--primary-color);
    animation: spin 1s ease infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hidden {
    display: none;
}

/* Navigazione */
.main-nav {
    background-color: rgba(247, 231, 206, 0.98);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(93, 64, 55, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    height: var(--nav-height);
    transition: all 0.3s ease;
}

.nav-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.main-nav li {
    margin: 0 1.2rem;
}

.main-nav a {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-color);
}

/* Menu Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1.5rem;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-gray-color);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Sezione Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.countdown {
    margin-bottom: 2rem;
}

.countdown h2 {
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 300;
}

.wedding-title {
    font-family: var(--secondary-font);
    font-size: 6rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.wedding-date {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Sezione La Nostra Storia */
.our-story {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--white-color);
    opacity: 0.3;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 3rem;
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white-color);
    border: 4px solid var(--primary-color);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

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

.timeline-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    border: 5px solid var(--white-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

.timeline-content {
    padding: 20px 30px;
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-family: var(--secondary-font);
}

.timeline-content .date {
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

/* Sezioni Details, Travel, FAQs */
.details, .travel, .faqs {
    background-color: var(--light-gray-color);
}

/* Sezione RSVP */
.rsvp {
    background-color: var(--light-gray-color);
}

.details-content, .travel-content, .faq-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-item, .travel-item, .faq-item {
    background-color: var(--white-color);
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover, .travel-item:hover, .faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.detail-item { flex-basis: 300px; }
.travel-item { flex-basis: 300px; text-align: left; }
.faq-item { flex-basis: 400px; text-align: left; }

.detail-item h3, .travel-item h3, .faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.travel-item ul {
    padding-left: 1.5rem;
    list-style-type: disc;
}

/* Contenitore pulsante guida di viaggio */
.travel-button-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.travel-button-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.travel-btn {
    font-size: 1.1rem;
    padding: 1rem 3rem;
    margin-top: 1rem;
}

/* Contenitore pulsante conferma partecipazione */
.rsvp-button-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.rsvp-button-container p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.rsvp-btn {
    font-size: 1.1rem;
    padding: 1rem 3rem;
    margin-top: 1rem;
    background-color: var(--primary-color);
    min-width: 280px;
}

.rsvp-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Stili per la pagina Guida di Viaggio */
.hero-travel {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--champagne-color) 0%, var(--gold-color) 100%);
    color: var(--chocolate-color);
    position: relative;
    margin-top: var(--nav-height);
}

.travel-page-title {
    font-family: var(--secondary-font);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--chocolate-color);
}

.travel-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--chocolate-color);
    opacity: 0.8;
}

.travel-section {
    padding: 4rem 2rem;
}

.travel-section.alt-bg {
    background-color: var(--light-gray-color);
}

.travel-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.travel-item.full-width {
    flex-basis: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.intro-text {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--chocolate-color);
    background-color: transparent;
    box-shadow: none;
    padding: 1rem 2rem;
}

.intro-text p {
    margin: 0;
}

/* Box Trasporti */
.transport-boxes {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.transport-box {
    background-color: var(--white-color);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    flex: 1;
    max-width: 500px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--champagne-color);
}

.transport-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.transport-box h3 {
    color: var(--chocolate-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.flight-details-combined {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 2rem;
}

.flight-route {
    flex: 1;
    padding: 1rem;
    background-color: var(--light-gray-color);
    border-radius: 8px;
}

.flight-route p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.flight-route p:first-child {
    font-weight: 600;
    color: var(--chocolate-color);
    font-size: 1rem;
}

.car-details-combined {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
    margin-bottom: 2rem;
}

.car-route {
    flex: 1;
    padding: 1rem;
    background-color: var(--light-gray-color);
    border-radius: 8px;
}

.car-route p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.car-route p:first-child {
    font-weight: 600;
    color: var(--chocolate-color);
    font-size: 1rem;
}

.map-container {
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.transport-btn {
    background: linear-gradient(135deg, var(--gold-color) 0%, var(--chocolate-color) 100%);
    font-size: 0.9rem;
    padding: 0.8rem 1.8rem;
    margin-top: 1rem;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.transport-btn:hover {
    background: linear-gradient(135deg, var(--chocolate-color) 0%, var(--gold-color) 100%);
    color: var(--white-color);
    border-color: transparent;
}

.back-section {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--champagne-color);
}

.back-container {
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive per la pagina guida di viaggio */
@media (max-width: 768px) {
    .travel-page-title {
        font-size: 3rem;
    }
    
    .travel-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-travel {
        height: 40vh;
    }
    
    .travel-section {
        padding: 3rem 1rem;
    }
    
    .transport-boxes {
        flex-direction: column;
        gap: 2rem;
    }
    
    .transport-box {
        padding: 2rem;
        max-width: none;
    }
    
    .flight-details-combined,
    .car-details-combined {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .travel-page-title {
        font-size: 2.5rem;
    }
    
    .travel-subtitle {
        font-size: 1rem;
    }
    
    .transport-box {
        padding: 1.5rem;
    }
    
    .transport-box h3 {
        font-size: 1.3rem;
        margin-bottom: 1.2rem;
    }
    
    .flight-details-combined,
    .car-details-combined {
        flex-direction: column;
        gap: 1rem;
    }
    
    .transport-btn {
        font-size: 0.8rem;
        padding: 0.7rem 1.5rem;
    }
    
    .map-container iframe {
        height: 120px;
    }
}

/* Sezione Galleria */
.gallery {
    background-color: var(--white-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    overflow: hidden;
    height: 300px;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* Sezione Wedding Party */
.wedding-party {
    background-color: var(--light-gray-color);
}

.party-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.party-member {
    text-align: center;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.party-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--light-gray-color);
}

.party-member h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.party-member p {
    font-style: italic;
}


.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--primary-font);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea { height: 150px; resize: vertical; }

.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.radio-group input[type="radio"] {
    margin-right: 0.8rem;
}

/* Gift Notice Box */
.gift-notice {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;
    animation: giftPulse 3s infinite;
}

.gift-notice h4 {
    color: #155724;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gift-notice p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    color: #155724;
    font-weight: 600;
}

@keyframes giftPulse {
    0% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
        transform: scale(1);
    }
}

/* Important Notice Box */
.important-notice {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border: 2px solid #d4a574;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    position: relative;
    animation: pulse 2s infinite;
}

.important-notice h4 {
    color: #8b4513;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.important-notice p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    line-height: 1.6;
}

.important-notice p:first-of-type {
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    color: #8b4513;
}

.important-notice p:last-child {
    margin-bottom: 0;
    text-align: center;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
    50% {
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.5);
    }
    100% {
        box-shadow: 0 4px 15px rgba(212, 165, 116, 0.3);
    }
}

/* Responsive per gift notice e important notice */
@media (max-width: 768px) {
    .gift-notice {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .gift-notice h4 {
        font-size: 1.1rem;
    }
    
    .gift-notice p {
        font-size: 1rem;
    }
    
    .important-notice {
        padding: 1.2rem;
        margin: 1.5rem 0;
    }
    
    .important-notice h4 {
        font-size: 1.1rem;
    }
    
    .important-notice p:first-of-type {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gift-notice {
        padding: 1rem;
    }
    
    .gift-notice h4 {
        font-size: 1rem;
    }
    
    .gift-notice p {
        font-size: 0.95rem;
    }
    
    .important-notice {
        padding: 1rem;
    }
    
    .important-notice h4 {
        font-size: 1rem;
    }
    
    .important-notice p {
        font-size: 0.95rem;
    }
}

/* Footer */
footer {
    background-color: var(--dark-gray-color);
    color: var(--white-color);
    text-align: center;
    padding: 3rem 2rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.toast.success { background-color: #27ae60; }
.toast.error { background-color: #c0392b; }

/* Popup Conferma Partecipazione */
.rsvp-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1002;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid var(--champagne-color);
}

.rsvp-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rsvp-popup.blink {
    animation: blinkEffect 0.8s ease-in-out infinite;
}

@keyframes blinkEffect {
    0%, 50% {
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    }
    51%, 100% {
        opacity: 0.3;
        box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    }
}

.rsvp-popup-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.rsvp-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-popup-close:hover {
    opacity: 1;
}

.rsvp-popup h3 {
    font-family: var(--secondary-font);
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.rsvp-popup p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.rsvp-popup-buttons {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rsvp-popup-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    background-color: var(--primary-color);
    flex: 1;
    min-width: 120px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-popup-btn:hover {
    background-color: var(--white-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    display: inline-block;
    background-color: transparent;
    color: var(--text-color);
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--primary-font);
    flex: 1;
    min-width: 120px;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--white-color);
}

/* Responsive per popup */
@media (max-width: 480px) {
    .rsvp-popup {
        bottom: 15px;
        right: 15px;
        left: 15px;
        max-width: none;
    }
    
    .rsvp-popup-buttons {
        flex-direction: column;
    }
    
    .rsvp-popup-btn,
    .btn-secondary {
        flex: none;
        min-width: auto;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .section-title { font-size: 3rem; }
    .wedding-title { font-size: 5rem; }
    .timeline::after { left: 40px; }
    .timeline-item { width: 100%; padding-left: 90px; padding-right: 20px; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 30px; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem 0;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    }
    .nav-menu.active { right: 0; }
    .main-nav li { margin: 1.5rem 0; }
    .main-nav a { font-size: 1rem; }
    body.menu-open { overflow: hidden; }

    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

    .wedding-title { font-size: 4rem; }
    .wedding-date { font-size: 1.2rem; }
    .countdown h2 { font-size: 1.2rem; }
    section { padding: 4rem 1rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2.5rem; }
    .wedding-title { font-size: 3rem; }
    .wedding-date { font-size: 1rem; }
    .countdown h2 { font-size: 1rem; }
    .btn { padding: 0.7rem 1.8rem; font-size: 0.9rem; }
    .timeline::after { left: 20px; }
    .timeline-item { padding-left: 50px; }
    .timeline-item::after { left: 10px; }
    .timeline-img { width: 120px; height: 120px; }
}
