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

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: #4a4a4a;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    scroll-snap-align: start;
    position: relative;
}

.content {
    text-align: center;
    max-width: 800px;
    width: 100%;
}

/* Sezione Hero */
.hero {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    color: #6b5b5b;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #8b7b7b;
    margin-bottom: 2rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.photo-placeholder {
    margin: 2rem auto;
    max-width: 400px;
}

.photo-placeholder img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

/* Sezione Quando */
.when {
    background: linear-gradient(135deg, #faf9f6 0%, #f0ebe3 100%);
}

.when h2 {
    font-size: 3rem;
    color: #6b5b5b;
    margin-bottom: 2rem;
}

.date {
    font-size: 2.5rem;
    font-weight: 700;
    color: #8b7b7b;
    margin-bottom: 1rem;
}

.time {
    font-size: 1.8rem;
    color: #a09090;
    margin-bottom: 1.5rem;
}

.detail {
    font-size: 1.1rem;
    color: #8b7b7b;
    font-style: italic;
}

/* Sezione Dove */
.where {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
}

.where h2 {
    font-size: 3rem;
    color: #6b5b5b;
    margin-bottom: 2rem;
}

.where h3 {
    font-size: 1.8rem;
    color: #8b7b7b;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.where h3:first-of-type {
    margin-top: 0;
}

.venue {
    font-size: 1.5rem;
    font-weight: 400;
    color: #6b5b5b;
    margin-bottom: 0.5rem;
}

.address {
    font-size: 1.1rem;
    color: #a09090;
    line-height: 1.6;
    position: relative;
}

.map-link {
    display: inline-flex;
    align-items: center;
    margin-left: 0;
    margin-top: 0.5rem;
    color: #8b7b7b;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    vertical-align: middle;
}

.map-link:hover {
    color: #6b5b5b;
    transform: scale(1.1);
}

.map-link .material-icons {
    font-size: 2rem;
}

.mt-4 {
    margin-top: 3rem;
}

/* Sezione Timeline */
.timeline {
    background: linear-gradient(135deg, #e8e8e0 0%, #f5f5f0 100%);
}

.timeline h2 {
    font-size: 3rem;
    color: #6b5b5b;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.timeline-container {
    display: flex;
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #c0b0a0;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    margin: 0;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-content {
    flex-direction: row;
    text-align: right;
    padding-right: 2.5rem;
}

.timeline-item:nth-child(even) .timeline-content {
    flex-direction: row-reverse;
    text-align: left;
    padding-left: 2.5rem;
}

.timeline-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 50%;
}

.timeline-item:hover .timeline-icon {
    color: #6b5b5b;
    transform: scale(1.1);
}

.timeline-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.timeline-time {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6b5b5b;
    white-space: nowrap;
}

.timeline-line {
    position: absolute;
    left: 50%;
    width: calc(50% - 6rem);
    height: 2px;
    background: #c0b0a0;
    z-index: 0;
}

.timeline-item:nth-child(odd) .timeline-line {
    right: 50%;
    left: auto;
    transform-origin: right center;
}

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

.timeline-dot {
    width: 20px;
    height: 20px;
    background: #8b7b7b;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    background: #6b5b5b;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

.timeline-label {
    font-size: 0.95rem;
    color: #8b7b7b;
    line-height: 1.4;
}

.material-icons.timeline-icon {
    font-size: 6rem;
    color: #8b7b7b;
    flex-shrink: 0;
    background-color: transparent;
    transition: all 0.3s ease;
}

/* Sezione Regalo */
.gift {
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8e0 100%);
}

.gift h2 {
    font-size: 3rem;
    color: #6b5b5b;
    margin-bottom: 2rem;
}

.message {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #6b5b5b;
    margin-bottom: 3rem;
}

.info-box {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

.gift-box {
    max-width: 500px;
    margin: 2rem auto;
}

.gift-box h3 {
    font-size: 1.8rem;
    color: #8b7b7b;
    margin-bottom: 1rem;
}

.gift-box p {
    font-size: 1.1rem;
    color: #6b5b5b;
    margin-bottom: 1rem;
}

.gift-box .small {
    font-size: 0.9rem;
    color: #a09090;
    font-style: italic;
}

.closing {
    font-size: 1.3rem;
    color: #8b7b7b;
    margin-top: 3rem;
    font-style: italic;
    line-height: 1.8;
}

/* Indicatore di Scroll */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.9rem;
    color: #8b7b7b;
    letter-spacing: 0.1em;
}

.scroll-indicator span.scroll-arrow {
    font-size: 2rem;
    color: #8b7b7b;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .date {
        font-size: 1.8rem;
    }
    
    .time {
        font-size: 1.3rem;
    }
    
    .message {
        font-size: 1.1rem;
    }
    
    section {
        padding: 1rem;
    }
    
    .timeline-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
        margin-bottom: 5rem;
    }
    
    .timeline-container::before {
        left: 2rem;
        top: 0;
        bottom: 0;
        width: 2px;
        height: 100%;
        background: #c0b0a0;
        transform: none;
    }
    
    .timeline-item {
        flex-direction: row;
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        flex-direction: row;
        text-align: left;
        padding: 0;
        width: auto;
        margin-left: 4.5rem;
    }
    
    .material-icons.timeline-icon {
        font-size: 3.5rem;
    }
    
    .timeline-line {
        top: 1.5rem;
        width: 2rem !important;
        left: 2rem !important;
        right: auto !important;
        transform: none !important;
    }
    
    .timeline-time {
        text-align: left;
        margin-bottom: 0;
        font-size: 1.1rem;
        top: 1rem;
    }
    
    .timeline-dot {
        margin-bottom: 0;
        flex-shrink: 0;
        left: 2rem;
        top: 1rem;
        transform: translateX(-50%);
    }
    
    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.3);
    }
    
    .timeline-label {
        text-align: left;
        max-width: none;
        font-size: 0.9rem;
    }
}
