/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fefefe;
    overflow-x: hidden;
}

/* Fonts */
.script {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
}

.serif {
    font-family: 'Playfair Display', serif;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('Hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 2rem 1rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('Hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
    transform: scale(1.1);
    filter: blur(1px);
}

.botanical-border {
    position: absolute;
    width: 100%;
    height: 60px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 60"><path d="M0,30 Q300,10 600,30 T1200,30 L1200,60 L0,60 Z" fill="%23f5f0ea"/></svg>') no-repeat center;
    background-size: cover;
}

.botanical-border.top {
    top: 0;
}

.botanical-border.bottom {
    bottom: 0;
    transform: rotate(180deg);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 600px;
    width: 100%;
    color: white;
}

.initials-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: white;
    letter-spacing: 3px;
    font-weight: 300;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.couple-names {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 12px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.name-line {
    display: block;
    margin: 0.2rem 0;
}

.ampersand {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 400;
    margin: 0.3rem 0;
    opacity: 0.9;
}

.invitation-text {
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    color: white;
    margin-bottom: 2rem;
    letter-spacing: 2px;
    font-weight: 300;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    background: rgba(0,0,0,0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: inline-block;
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
}

.countdown-number {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #8b7355;
    display: block;
    margin-bottom: 0.3rem;
}

.countdown-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sezioni */
section {
    padding: 4rem 1rem;
    position: relative;
}

/* Sezione Invito Speciale */
.special-invitation {
    background: #f5f0ea;
    position: relative;
    padding: 6rem 1rem;
    margin: 2rem 1rem;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}



.invitation-text-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.invitation-text-container .invitation-text {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #8b7355;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    margin: 0.3rem 0;
    padding: 0;
    background: none;
    border-radius: 0;
    display: block;
    line-height: 1.3;
}

.botanical-decoration {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.branch-icon {
    font-size: 2rem;
    color: #f5f0ea;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    transform: rotate(15deg);
    animation: gentleSway 3s ease-in-out infinite;
}

@keyframes gentleSway {
    0%, 100% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(20deg);
    }
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #8b7355;
    margin-bottom: 2rem;
    position: relative;
}

/* Cerimonia e Celebrazione */
.ceremony, .celebration {
    background: #f5f0ea;
    position: relative;
}


.venue-info {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.venue-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #8b7355;
    margin-bottom: 1rem;
}

.botanical-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b7355, transparent);
    margin: 1rem auto;
}

.address, .time {
    color: #666;
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.time {
    font-weight: 600;
    color: #8b7355;
    font-size: 1.3rem;
}

.map-link {
    margin-top: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 2px solid #8b7355;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.map-link:hover {
    background: #8b7355;
    color: white;
}

.map-icon {
    font-size: 1.2rem;
}

.click-text {
    font-size: 0.9rem;
    font-style: italic;
}

/* Itinerario */
.itinerary {
    background: #fefefe;
}

.timeline {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #8b7355, transparent);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #8b7355;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 1.5rem;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-content {
    flex: 1;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.timeline-time {
    display: block;
    font-weight: 600;
    color: #8b7355;
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.timeline-event {
    color: #666;
    font-size: 1rem;
}

/* RSVP */
.rsvp {
    background: #f5f0ea;
    position: relative;
}

.rsvp-instruction {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.rsvp-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 2rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.rsvp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.envelope-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Regali */
.gifts {
    background: #fefefe;
}

.gift-text {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.gift-text p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.iban-container {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
}

.iban-text {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    color: #8b7355;
    margin-bottom: 1rem;
    word-break: break-all;
}

.copy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #8b7355;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.copy-button:hover {
    background: #6b5b47;
    transform: translateY(-2px);
}

/* Foto */
.photos {
    background: #f5f0ea;
}

.photo-text {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.photo-text p {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.camera-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 2rem;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.camera-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.camera-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Modal RSVP */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.close:hover {
    color: #8b7355;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8b7355;
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #666;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #8b7355;
}

.radio-group {
    display: flex;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input[type="radio"] {
    width: auto;
    margin-right: 0.5rem;
}

.radio-text {
    color: #666;
}

.submit-btn {
    width: 100%;
    background: #8b7355;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #6b5b47;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 1rem;
        background-attachment: scroll;
    }
    
    .hero::before {
        background-attachment: scroll;
    }
    
    
    .couple-names {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }
    
    .invitation-text {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .countdown-container {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    section {
        padding: 2rem 1rem;
    }
    
    .venue-info {
        padding: 1.5rem;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 1rem;
    }
    
    .special-invitation {
        padding: 4rem 1rem;
    }
    
    .invitation-text-container .invitation-text {
        font-size: 1.8rem;
    }
    
    .branch-icon {
        font-size: 1.5rem;
    }
    
    .timeline-content {
        padding: 0.8rem 1rem;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.5rem;
    }
    
    .countdown-container {
        flex-direction: column;
        align-items: center;
    }
    
    .countdown-item {
        width: 100%;
        max-width: 200px;
    }
    
    .timeline::before {
        left: 25px;
    }
    
    .timeline-icon {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }
}

/* Animazioni */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.section-content {
    animation: fadeInUp 0.8s ease-out;
}

/* Scroll smooth */
html {
    scroll-behavior: smooth;
}

/* Botanico decorative elements */
.botanical-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.botanical-decoration.top-right {
    top: 20px;
    right: 20px;
    font-size: 3rem;
}

.botanical-decoration.bottom-left {
    bottom: 20px;
    left: 20px;
    font-size: 2rem;
}
