/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variables */
:root {
    --color-terracotta: #cd7a58;
    --color-terracotta-dark: #b86a4a;
    --color-terracotta-light: #e08b6a;
    --color-cream: #efddce;
    --color-gold: #8b7355;
    --color-brown: #5c4a3a;
    --color-white: #faf6f3;
    --color-rose: #d4a5a5;

    /* Texture cartoncino - grana carta visibile */
    --paper-texture: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, serif;
    background: var(--color-white);
    color: var(--color-brown);
    line-height: 1.6;
}

/* ========== NAVBAR ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background: rgba(250, 246, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 50px;
}

.nav-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--color-terracotta);
    text-decoration: none;
}

.nav-brand:hover {
    color: var(--color-terracotta-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-brown);
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-terracotta);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--color-terracotta);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-brown);
    transition: all 0.3s ease;
}

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://res.cloudinary.com/duu2frve8/image/upload/v1771754189/1_genb7j.png') center/cover;
    opacity: 0.15;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-intro {
    font-size: 1.2rem;
    color: var(--color-cream);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.9;
}

.hero-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-divider {
    font-size: 1.5rem;
    color: var(--color-cream);
    margin: 20px 0;
    opacity: 0.7;
}

.hero-date {
    font-size: 1.8rem;
    color: var(--color-white);
    letter-spacing: 5px;
    margin-bottom: 40px;
}

.hero-btn {
    display: inline-block;
    padding: 18px 50px;
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 2px solid var(--color-white);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--color-white);
    color: var(--color-terracotta);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--color-cream);
    opacity: 0.8;
}

.scroll-indicator span {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--color-cream);
    border-bottom: 2px solid var(--color-cream);
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(10px); }
}

/* ========== PARTECIPAZIONE INTERATTIVA ========== */
.partecipazione-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    min-height: 520px;
}

.booklet-container {
    perspective: 2000px;
    width: 340px;
    height: 485px;
    position: relative;
    cursor: pointer;
    z-index: 1;
}

.booklet {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
}

/* Retro visibile (effetto pagina dietro) */
.booklet::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 100%;
    height: 100%;
    background: url('https://res.cloudinary.com/duu2frve8/image/upload/v1771754189/2_olggmu.png') center/cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: -1;
}

.page-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.page-inner img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.cover-booklet {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    cursor: pointer;
}

.cover-booklet.open {
    transform: rotateY(-160deg);
}

.cover-front-booklet, .cover-back-booklet {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.cover-front-booklet {
    z-index: 2;
}

.cover-front-booklet img, .cover-back-booklet img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.cover-back-booklet {
    transform: rotateY(180deg);
}

/* Ticket/Bigliettino */
.ticket-container {
    perspective: 1000px;
    width: 320px;
    height: 229px;
    position: absolute;
    right: -350px;
    top: 50%;
    transform: translateY(-50%) scale(0.5);
    opacity: 0;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    z-index: 2;
}

.ticket-container.visible {
    opacity: 1;
    transform: translateY(-50%) scale(1);
    pointer-events: auto;
    cursor: pointer;
}

.ticket {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.ticket.flipped {
    transform: rotateY(180deg);
}

.ticket-front, .ticket-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.ticket-front img, .ticket-back img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.ticket-back {
    transform: rotateY(180deg);
}

.click-hint {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.9rem;
    color: var(--color-cream);
    letter-spacing: 2px;
    opacity: 0.9;
    animation: pulse 2s infinite;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 20px;
    border-radius: 25px;
    white-space: nowrap;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive partecipazione */
@media (max-width: 1200px) {
    .ticket-container {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -250px;
        transform: translateX(-50%) scale(0.5);
    }

    .ticket-container.visible {
        transform: translateX(-50%) scale(1);
    }

    .partecipazione-wrapper {
        min-height: 780px;
    }
}

@media (max-width: 768px) {
    .booklet-container {
        width: 280px;
        height: 400px;
    }

    .ticket-container {
        width: 280px;
        height: 200px;
        bottom: -220px;
    }

    .partecipazione-wrapper {
        min-height: 680px;
    }
}

@media (max-width: 480px) {
    .booklet-container {
        width: 240px;
        height: 343px;
    }

    .ticket-container {
        width: 230px;
        height: 164px;
        bottom: -185px;
    }

    .click-hint {
        font-size: 0.8rem;
        padding: 6px 15px;
    }

    .partecipazione-wrapper {
        min-height: 580px;
    }
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    background-color: var(--color-cream);
    background-image: var(--paper-texture);
    padding: 70px 20px;
    position: relative;
    overflow: hidden;
}

.countdown-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 122, 88, 0.3), transparent);
}

.countdown-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 122, 88, 0.3), transparent);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
}

.countdown-number {
    display: block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 4rem;
    font-weight: 300;
    color: var(--color-terracotta);
    line-height: 1;
    margin-bottom: 10px;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ========== SECTIONS ========== */
.section {
    padding: 100px 20px;
}

.section-cream {
    background-color: var(--color-cream);
    background-image: var(--paper-texture);
    position: relative;
    overflow: hidden;
}

.section-cream::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cd7a58' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-cream::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(205, 122, 88, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.section-terracotta {
    background-color: var(--color-terracotta);
    background-image: var(--paper-texture), linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    position: relative;
    overflow: hidden;
}

.section-terracotta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.section-terracotta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(0,0,0,0.1), transparent);
    pointer-events: none;
}

.section-white {
    background: var(--color-white);
}

/* Section Gift - Stile elegante */
.section-gift {
    background-color: var(--color-white);
    background-image: var(--paper-texture), linear-gradient(180deg, var(--color-white) 0%, #fdf8f5 100%);
    position: relative;
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23cd7a58' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.section-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--color-terracotta);
    text-align: center;
    margin-bottom: 10px;
}

.section-title.light {
    color: var(--color-white);
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--color-gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.section-subtitle.light {
    color: var(--color-cream);
}

/* ========== TIMELINE SECTION ========== */
.section-timeline {
    background-color: var(--color-white);
    background-image: var(--paper-texture);
    position: relative;
    overflow: hidden;
}

.timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 50px;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 25px 20px;
    background: var(--color-cream);
    border-radius: 15px;
    min-width: 160px;
    max-width: 180px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(205, 122, 88, 0.15);
}

.timeline-icon {
    width: 50px;
    height: 50px;
    background: var(--color-terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.timeline-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-white);
}

.timeline-content h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 1.6rem;
    color: var(--color-terracotta);
    margin-bottom: 5px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--color-gold);
    line-height: 1.4;
}

.timeline-time {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-white);
    background: var(--color-terracotta);
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.timeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.timeline-arrow svg {
    width: 30px;
    height: 30px;
    color: var(--color-terracotta);
    opacity: 0.6;
}

/* Timeline Responsive */
@media (max-width: 1100px) {
    .timeline {
        flex-direction: column;
        gap: 0;
    }

    .timeline-item {
        width: 100%;
        max-width: 280px;
        flex-direction: row;
        text-align: left;
        gap: 20px;
        padding: 20px 25px;
    }

    .timeline-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .timeline-content {
        flex: 1;
    }

    .timeline-arrow {
        transform: rotate(90deg);
        padding: 10px 0;
    }

    .timeline-arrow svg {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .timeline-item {
        padding: 15px 20px;
        gap: 15px;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
    }

    .timeline-icon svg {
        width: 20px;
        height: 20px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-time {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
}

/* After Party special style */
.timeline-party {
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
}

.timeline-party .timeline-icon {
    background: var(--color-white);
}

.timeline-party .timeline-icon svg {
    color: var(--color-terracotta);
}

.timeline-party .timeline-content h3 {
    color: var(--color-white);
}

.timeline-party .timeline-content p {
    color: var(--color-cream);
}

.timeline-party .timeline-time {
    background: var(--color-white);
    color: var(--color-terracotta);
}

/* ========== NAVETTA SECTION ========== */
.section-navetta {
    background-color: var(--color-white);
    background-image: var(--paper-texture);
    position: relative;
    overflow: hidden;
}

.section-navetta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 122, 88, 0.3), transparent);
}

.navetta-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.navetta-info {
    text-align: center;
}

.navetta-label {
    display: inline-block;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 15px;
}

.navetta-info .section-title {
    margin-bottom: 0;
}

.navetta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-brown);
    margin-bottom: 15px;
}

.navetta-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.navetta-detail-item {
    text-align: center;
    padding: 25px 30px;
    background: var(--color-cream);
    border-radius: 12px;
}

.navetta-detail-item strong {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.navetta-detail-item p {
    font-size: 1.1rem;
    color: var(--color-terracotta);
    font-weight: 500;
    margin: 0;
}

.navetta-map {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.navetta-map iframe {
    width: 100%;
    height: 100%;
}

@media (max-width: 992px) {
    .navetta-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .navetta-map {
        height: 300px;
    }

    .navetta-details {
        flex-direction: column;
        gap: 20px;
    }
}

/* ========== EVENTO SECTION ========== */
#evento {
    position: relative;
    overflow: hidden;
}

#evento::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='199' viewBox='0 0 100 199'%3E%3Cg fill='%23cd7a58' fill-opacity='0.02'%3E%3Cpath d='M0 199V0h1v1.99L100 199h-1.12L1 4.22V199H0zM100 2h-.12l-1-2H100v2z'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#evento::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(205, 122, 88, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* ========== VENUE BLOCKS ========== */
.venue-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
}

.venue-block.reverse {
    direction: rtl;
}

.venue-block.reverse > * {
    direction: ltr;
}

.venue-images {
    padding: 30px;
}

.venue-image-main {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.venue-image-main img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.venue-image-main:hover img {
    transform: scale(1.05);
}

.venue-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.venue-image-grid img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.5s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.venue-image-grid img:hover {
    transform: scale(1.05);
}

.venue-info {
    padding: 50px;
    text-align: center;
}

.venue-label {
    display: inline-block;
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.venue-label::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: var(--color-terracotta);
}

.venue-info h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--color-terracotta);
    margin-bottom: 20px;
    line-height: 1.2;
}

.venue-time {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--color-terracotta);
    margin-bottom: 25px;
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.venue-address {
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 30px;
    line-height: 1.7;
}

.venue-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 35px;
    background: var(--color-terracotta);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid var(--color-terracotta);
}

.venue-link:hover {
    background: transparent;
    color: var(--color-terracotta);
}

/* Party Banner */
.party-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-terracotta) 0%, var(--color-terracotta-dark) 100%);
    padding: 50px;
    border-radius: 20px;
    color: var(--color-white);
    box-shadow: 0 15px 50px rgba(205, 122, 88, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.party-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.party-label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 10px;
}

.party-info {
    position: relative;
    z-index: 1;
}

.party-info h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.party-info p {
    font-size: 1.1rem;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* Responsive Venue */
@media (max-width: 992px) {
    .venue-block {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .venue-block.reverse {
        direction: ltr;
    }

    .venue-info {
        padding: 40px 30px;
    }

    .venue-images {
        padding: 20px;
    }

    .venue-image-main img {
        height: 220px;
    }

    .party-banner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .venue-info h3 {
        font-size: 2.2rem;
    }

    .venue-image-grid img {
        height: 90px;
    }
}

/* ========== LOCATION SECTION ========== */
#location {
    position: relative;
}

#location .container {
    position: relative;
    z-index: 1;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.location-info {
    color: var(--color-white);
}

.location-info h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.location-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.location-details {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.detail-item {
    margin-bottom: 12px;
    padding-left: 15px;
    position: relative;
}

.detail-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.6);
    border-radius: 50%;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.transport-info h4 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.transport-grid {
    display: grid;
    gap: 20px;
}

.transport-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.transport-item strong {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.transport-item p {
    font-size: 0.95rem;
    opacity: 0.85;
    line-height: 1.5;
}

.location-map {
    height: 100%;
    min-height: 400px;
}

.map-placeholder {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.map-placeholder p {
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

/* ========== RSVP SECTION ========== */
#rsvp {
    position: relative;
    overflow: hidden;
}

#rsvp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23cd7a58' fill-opacity='0.02'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#rsvp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse at center bottom, rgba(205, 122, 88, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.rsvp-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.rsvp-container {
    position: relative;
    z-index: 1;
}

.rsvp-container {
    max-width: 500px;
    margin: 0 auto;
}

.rsvp-form {
    background: var(--color-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    color: var(--color-gold);
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 18px;
    border: 2px solid rgba(205, 122, 88, 0.3);
    border-radius: 10px;
    background: var(--color-white);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--color-brown);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 4px rgba(205, 122, 88, 0.15);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-gold);
    opacity: 0.6;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.attendance-options {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.attendance-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.attendance-option input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--color-terracotta);
}

.attendance-option span {
    font-size: 1.05rem;
    color: var(--color-brown);
}

.guest-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.guest-count button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--color-terracotta);
    background: transparent;
    color: var(--color-terracotta);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.guest-count button:hover {
    background: var(--color-terracotta);
    color: var(--color-white);
}

.guest-count span {
    font-size: 1.5rem;
    min-width: 40px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 18px 35px;
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 2px solid var(--color-terracotta);
    border-radius: 50px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: transparent;
    color: var(--color-terracotta);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: 40px;
}

.form-success h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: var(--color-terracotta);
    margin-bottom: 15px;
}

/* ========== GIFT SECTION ========== */
.section-gift .container {
    position: relative;
    z-index: 1;
}

.gift-intro {
    font-size: 1.4rem;
    color: var(--color-brown);
    margin-bottom: 15px;
    font-style: italic;
}

.gift-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: var(--color-gold);
}

.iban-card {
    background: var(--color-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(205, 122, 88, 0.12);
    max-width: 500px;
    margin: 0 auto 40px;
    position: relative;
    border: 1px solid rgba(205, 122, 88, 0.1);
}

.iban-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-terracotta);
    border-radius: 0 0 3px 3px;
}

.iban-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.iban-number {
    font-size: 0.95rem;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--color-brown);
    letter-spacing: 1px;
    background: rgba(205, 122, 88, 0.1);
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.iban-intestato {
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.copy-iban-btn {
    background: var(--color-terracotta);
    color: var(--color-white);
    border: 2px solid var(--color-terracotta);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-iban-btn:hover {
    background: transparent;
    color: var(--color-terracotta);
}

.copy-iban-btn.copied {
    background: #4CAF50;
    border-color: #4CAF50;
}

.gift-quote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-terracotta);
    opacity: 0.9;
}


/* ========== CONTACT SECTION ========== */
#contatti {
    position: relative;
    overflow: hidden;
}

#contatti::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1.5'/%3E%3Ccircle cx='13' cy='13' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

#contatti::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    pointer-events: none;
}

.contact-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-item {
    text-align: center;
    color: var(--color-white);
    padding: 30px 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-item h3 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0.8;
    position: relative;
    padding-bottom: 15px;
}

.contact-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background: var(--color-cream);
    opacity: 0.5;
}

.contact-item p {
    font-size: 1.15rem;
    line-height: 1.8;
}

/* ========== FOOTER ========== */
.footer {
    background-color: var(--color-cream);
    background-image: var(--paper-texture);
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(205, 122, 88, 0.4), transparent);
}

.footer-names {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--color-terracotta);
    margin-bottom: 10px;
}

.footer-date {
    font-size: 1.2rem;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin-bottom: 25px;
}

/* Elegant Divider */
.elegant-divider {
    width: 150px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-terracotta), transparent);
    margin: 25px auto;
    position: relative;
}

.elegant-divider::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: var(--color-terracotta);
    border-radius: 50%;
}

.flower-divider {
    font-size: 1.5rem;
    color: var(--color-rose);
    margin: 20px 0;
    opacity: 0.6;
}

.footer-quote {
    font-size: 1.1rem;
    font-style: italic;
    max-width: 500px;
    margin: 0 auto;
    opacity: 0.8;
}

.footer-thanks {
    margin-top: 30px;
    font-size: 0.95rem;
    opacity: 0.6;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 992px) {
    .event-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .location-content {
        grid-template-columns: 1fr;
    }

    .location-map {
        min-height: 300px;
    }

    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 25px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        gap: 25px;
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-date {
        font-size: 1.3rem;
        letter-spacing: 3px;
    }

    .section {
        padding: 70px 20px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .countdown {
        gap: 25px;
    }

    .countdown-number {
        font-size: 2.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .rsvp-form {
        padding: 30px 25px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .contact-grid {
        flex-direction: column;
        gap: 40px;
    }

    .attendance-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-intro {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-label {
        font-size: 0.75rem;
    }

    .footer-names {
        font-size: 2.2rem;
    }
}

/* ========== MUSIC PLAYER ========== */
.music-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--color-terracotta);
    border: none;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(205, 122, 88, 0.4);
    transition: all 0.3s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(205, 122, 88, 0.5);
}

.music-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
}

.music-toggle .music-icon-off {
    display: none;
}

.music-toggle.paused .music-icon-on {
    display: none;
}

.music-toggle.paused .music-icon-off {
    display: block;
}

.music-toggle.playing {
    animation: pulse-music 2s ease-in-out infinite;
}

@keyframes pulse-music {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(205, 122, 88, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(205, 122, 88, 0.7);
    }
}

@media (max-width: 768px) {
    .music-toggle {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}
