/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colori dalla palette fornita */
    --verde-scuro: #476a63;
    --verde-medio: #698c86;
    --verde-chiaro: #8aa49c;
    --oro: #dbc28f;
    --bianco: #ffffff;
    
    /* Font families */
    --font-script: 'Great Vibes', cursive;
    --font-sans: 'Montserrat', sans-serif;
    
    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--verde-scuro);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Spazio per la navigazione fissa */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Navigation */
.navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(71, 106, 99, 0.1);
    transition: all 0.3s ease;
}

.navigation.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px rgba(71, 106, 99, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

.nav-logo .nav-names {
    font-family: var(--font-script);
    font-size: 1.8rem;
    color: var(--verde-scuro);
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--verde-scuro);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background: var(--oro);
    color: var(--verde-scuro);
    transform: translateY(-2px);
}

.nav-link.active {
    background: var(--verde-scuro);
    color: var(--bianco);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--verde-scuro);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    
    .nav-container {
        height: 70px;
    }
    
    .nav-logo-image {
        height: 40px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 30px rgba(71, 106, 99, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 1rem 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        padding: 0 20px;
    }
    
    .nav-link {
        display: block;
        padding: 1rem;
        margin: 0.25rem 0;
        text-align: center;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('images/main-background-horizontal.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(71, 106, 99, 0.3);
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
    animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.names {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.names-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}

.footer-names {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.names-image-small {
    max-width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    margin-top: 15%;
}

.bride-name, .groom-name {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--bianco);
    margin: 8px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ampersand {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--oro);
    margin: 15px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.date-info {
    animation: fadeInUp 2s ease-out 0.5s both;
}

.wedding-date {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 300;
    color: var(--bianco);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.tagline {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
    color: var(--oro);
    font-weight: 300;
}

.scroll-indicator {
    margin-top: 20px;
    color: var(--bianco);
    font-size: 1.8rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

/* Hero Countdown Styles */
.hero-countdown {
    margin-top: 25px;
    animation: fadeInUp 2s ease-out 1s both;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-title {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    color: var(--bianco);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero .time-unit {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    border: 2px solid rgba(219, 194, 143, 0.5);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero .time-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(219, 194, 143, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero .time-unit:hover::before {
    left: 100%;
}

.hero .time-unit:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

.hero .number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--verde-scuro);
    line-height: 1;
    margin-bottom: 6px;
}

.hero .label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--verde-medio);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Android Mobile Hero Background - Chrome, Edge, Brave */
@media (max-width: 768px) and (not (-webkit-min-device-pixel-ratio: 2)) {
    .hero {
        background-image: url('images/main-background-vertical.jpg');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: fixed;
    }

    .no-mobile {
        display: none !important;
    }
}

/* iOS Mobile Hero Background - Safari on iPhone/iPad */
@media only screen and (-webkit-min-device-pixel-ratio: 2) and (max-width: 768px) {
    .hero {
        background-image: url('images/main-background-vertical.jpg');
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        background-attachment: scroll;
        -webkit-background-size: cover;
        -webkit-background-attachment: scroll;
    }

    .no-mobile {
        display: none !important;
    }
}

/* Details Section */
.details-section {
    padding: var(--section-padding);
    background: var(--bianco);
    position: relative;
    z-index: 2;
}

.details-section .section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--verde-scuro);
    margin-bottom: 50px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.detail-card {
    background: linear-gradient(135deg, var(--verde-medio), var(--verde-scuro));
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    color: var(--bianco);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.detail-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--pesca) 0%, transparent 70%);
    opacity: 0.1;
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.detail-card:hover::before {
    top: -20%;
    right: -20%;
    opacity: 0.2;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.detail-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--oro);
    position: relative;
    z-index: 2;
}

.detail-card h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--bianco);
    position: relative;
    z-index: 2;
}

.detail-card-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: block;
}

.detail-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.detail-card p {
    margin-bottom: 10px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.map-link {
    color: var(--bianco);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-left: 8px;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: inline-block;
    border: none;
    outline: none;
}

.map-link:hover {
    color: var(--oro);
    transform: translateX(2px);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--oro);
    text-decoration-style: dotted;
}

.map-link:active {
    color: var(--pesca);
}

.detail-card .fas.fa-map-marker-alt {
    color: var(--oro);
    font-size: 1rem;
    margin-right: 5px;
}

.gift-link {
    color: var(--bianco);
    text-decoration: underline;
    text-decoration-color: var(--oro);
    text-decoration-style: dotted;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    z-index: 10;
    display: inline;
    border: none;
    outline: none;
}

.gift-link:hover {
    color: var(--oro);
    text-decoration-style: solid;
}

/* Directions Section */
.directions-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--verde-medio) 0%, var(--verde-scuro) 100%);
    text-align: center;
    position: relative;
    z-index: 2;
}

.directions-section .section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--bianco);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.directions-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.directions-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--verde-scuro);
}

.directions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.directions-card .icon {
    font-size: 2.5rem;
    color: var(--verde-scuro);
    margin-bottom: 15px;
}

.directions-card h3 {
    font-size: 1.4rem;
    color: var(--verde-scuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.directions-card p {
    font-size: 1rem;
    color: var(--grigio-scuro);
    line-height: 1.6;
    margin-bottom: 15px;
}

.directions-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--verde-scuro);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-bottom: 2px solid var(--verde-scuro);
    padding-bottom: 2px;
}

.directions-link:hover {
    color: var(--verde-medio);
    border-bottom-color: var(--verde-medio);
}

.directions-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.directions-link:hover i {
    transform: translateX(3px);
}

/* RSVP Section */
.rsvp-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--verde-chiaro) 0%, var(--verde-medio) 100%);
    text-align: center;
    position: relative;
    z-index: 3;
}

.rsvp-section .section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--bianco);
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.rsvp-text {
    font-size: 1.2rem;
    color: var(--bianco);
    margin-bottom: 40px;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group.conditional-field {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-bottom: 0;
    transition: all 0.4s ease, margin-bottom 0.3s ease;
}

.form-group.conditional-field.visible {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--bianco);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group label i {
    color: var(--oro);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--bianco);
    color: var(--verde-scuro);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Custom arrow for select */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5d3a' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px;
    padding-right: 45px;
    cursor: pointer;
}

.form-group select:hover {
    background-color: #f8f8f8;
}

/* Style for placeholder option */
.form-group select option {
    padding: 12px;
    background: var(--bianco);
    color: var(--verde-scuro);
    font-family: var(--font-sans);
}

.form-group select option:first-child {
    color: #999;
}

.form-group select:invalid {
    color: #999;
}

.form-group select:valid {
    color: var(--verde-scuro);
}

/* Attendance Toggle Styles */
.attendance-toggle {
    display: flex;
    gap: 10px;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid transparent;
    border-radius: 15px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: var(--bianco);
    color: var(--verde-scuro);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.toggle-btn i {
    font-size: 1.1rem;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.toggle-btn.active {
    background: var(--verde-medio);
    color: var(--bianco);
    border-color: var(--verde-scuro);
    box-shadow: 0 5px 25px rgba(71, 106, 99, 0.3);
}

.toggle-btn.active i {
    opacity: 1;
}

.toggle-btn[data-value="yes"].active {
    background: linear-gradient(135deg, var(--verde-scuro), var(--verde-medio));
}

.toggle-btn[data-value="no"].active {
    background: linear-gradient(135deg, var(--oro), var(--verde-chiaro));
    border-color: var(--oro);
}

@media (max-width: 480px) {
    .attendance-toggle {
        flex-direction: column;
        gap: 15px;
    }
    
    .toggle-btn {
        padding: 18px 20px;
    }
}

/* Custom Select Styles */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: var(--bianco);
    color: #999;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: var(--font-sans);
    font-size: 1rem;
    min-height: 53px;
    box-sizing: border-box;
}

.custom-select-trigger:hover {
    background-color: #f8f8f8;
}

.custom-select.open .custom-select-trigger {
    border-color: var(--verde-chiaro);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.custom-select-trigger span {
    flex: 1;
    text-align: left;
}

.custom-select-trigger.selected {
    color: var(--verde-scuro);
}

.custom-select-trigger .arrow {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid var(--verde-scuro);
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bianco);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
    overflow: hidden;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--verde-scuro);
    font-family: var(--font-sans);
    font-size: 1rem;
}

.custom-option:hover {
    background: var(--oro);
    color: var(--verde-scuro);
}

.custom-option.selected {
    background: var(--verde-medio);
    color: var(--bianco);
    font-weight: 600;
}

.custom-option:first-child {
    border-radius: 15px 15px 0 0;
}

.custom-option:last-child {
    border-radius: 0 0 15px 15px;
}

.custom-option:only-child {
    border-radius: 15px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--verde-medio);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Stili per validazione form */
.form-group.error input,
.form-group.error textarea,
.form-group.error .attendance-toggle {
    border-color: #d32f2f;
    animation: shake 0.4s ease-in-out;
}

.form-group.error input:focus,
.form-group.error textarea:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Messaggio di errore/successo generale */
.form-message {
    margin: 0;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-message.show {
    opacity: 1;
    max-height: 100px;
    margin: 20px 0;
    padding: 15px 20px;
}

.form-message.error {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 2px solid #ffb74d;
}

.form-message.success {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
    border: 2px solid #81c784;
}

.form-message.info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 2px solid #42a5f5;
}

.form-message i {
    font-size: 1.2rem;
}

/* Messaggio di successo che sostituisce il form */
.success-message-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    text-align: center;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: scale(0.95);
    transition: opacity 1.2s ease, transform 1.2s ease, max-height 1.2s ease, padding 1.2s ease;
    pointer-events: none;
}

.success-message-container.show {
    opacity: 1;
    max-height: 800px;
    padding: 60px 40px;
    transform: scale(1);
    pointer-events: auto;
}

.success-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    /* Opzione 1: Rosa intenso/fucsia romantico */
    /* background: linear-gradient(135deg, #e27396 0%, #d65780 100%); */
    /* Opzione 2: Rosa vino/burgundy elegante - rimuovi commento per provare */
    /* background: linear-gradient(135deg, #c77a8a 0%, #b5697a 100%); */
    /* Opzione 3: Rosa corallo caldo - rimuovi commento per provare */
    
    /*background: linear-gradient(135deg, #e88585 0%, #d56b6b 100%);*/

    background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde-medio) 100%);

    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    animation: heartbeat 1.5s ease-in-out infinite;
    
    /*box-shadow: 0 10px 40px rgba(226, 115, 150, 0.4);*/
    
    box-shadow: var(--verde-chiaro) 0px 10px 40px;
}

.success-icon i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.3));
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.1); }
    20%, 40% { transform: scale(1); }
}

.success-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: var(--verde-scuro);
    margin-bottom: 15px;
}

.success-text {
    font-size: 1.2rem;
    color: var(--verde-scuro);
    font-weight: 500;
    margin-bottom: 10px;
}

.success-subtext {
    font-size: 1rem;
    color: var(--grigio-scuro);
    margin-bottom: 30px;
}

.success-decoration {
    display: flex;
    align-items: center;
    justify-content: center;

    /*color: #d88a6a;*/
    color: var(--bianco);

    font-size: 1.5rem;
    margin-top: 20px;
}

.success-decoration i {
    animation: float 3s ease-in-out infinite;
}

.success-decoration i:nth-child(2) {
    animation-delay: 0.5s;
}

.success-decoration i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.rsvp-section .container {
    position: relative;
    min-height: 600px;
}

.rsvp-form {
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: relative;
}

.rsvp-form.hidden {
    display: none;
}

.rsvp-btn {
    background: linear-gradient(45deg, var(--verde-scuro), var(--verde-medio));
    color: var(--bianco);
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rsvp-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, var(--verde-medio), var(--oro));
}

.rsvp-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Gift Ideas Section */
.gift-ideas-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--verde-scuro) 0%, var(--verde-medio) 100%);
    color: var(--bianco);
    text-align: center;
    position: relative;
    z-index: 4;
}

.gift-ideas-section .section-title {
    font-family: var(--font-script);
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--bianco);
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.gift-ideas-content {
    max-width: 800px;
    margin: 0 auto;
}

.gift-intro {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--oro);
}

/* Honeymoon Section */
.honeymoon-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 40px 30px;
    margin-bottom: 40px;
    border: 1px solid rgba(219, 194, 143, 0.3);
}

.honeymoon-section h3 {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--bianco);
    margin-bottom: 30px;
    text-align: center;
}

/* Honeymoon Banner */
.honeymoon-banner {
    background: linear-gradient(
        rgba(0, 0, 0, 0.4),
        rgba(0, 0, 0, 0.3)
    ),
    url('https://www.imaway.it/wp-content/webp-express/webp-images/uploads/2023/03/Polinesia-3.jpg.webp');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin: 30px 0;
    position: relative;
    height: 300px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(71, 106, 99, 0.3) 0%,
        rgba(219, 194, 143, 0.4) 50%,
        rgba(137, 164, 156, 0.3) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.banner-content {
    text-align: center;
    color: white;
    max-width: 600px;
}

.banner-content h4 {
    font-family: var(--font-script);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: white;
    padding: 0 15px;
    line-height: 1.3;
}

.mobile-break {
    display: none;
}

.banner-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 20px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.dream-text {
    font-size: 1.2rem;
    font-style: italic;
    line-height: 1.6;
}

.highlight {
    font-weight: 600;
    color: var(--oro);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}



.malpensa { top: 25%; left: 48%; }
.denver { top: 35%; left: 25%; }
.tahiti { top: 65%; left: 70%; }
.san-francisco { top: 40%; left: 15%; }

/* Scia dell'aereo */
.plane-trail {
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 1px;
    z-index: 12;
    animation: trailAnimation 12s infinite;
}

@keyframes trailAnimation {
    0% {
        top: 25%;
        left: 48%;
        width: 0;
        transform: rotate(35deg);
    }
    20% {
        top: 32%;
        left: 32%;
        width: 60px;
        transform: rotate(35deg);
    }
    25% {
        top: 35%;
        left: 25%;
        width: 0;
        transform: rotate(45deg);
    }
    45% {
        top: 52%;
        left: 50%;
        width: 80px;
        transform: rotate(45deg);
    }
    50% {
        top: 65%;
        left: 70%;
        width: 0;
        transform: rotate(-35deg);
    }
    70% {
        top: 50%;
        left: 40%;
        width: 70px;
        transform: rotate(-125deg);
    }
    75% {
        top: 40%;
        left: 15%;
        width: 0;
        transform: rotate(-125deg);
    }
    95% {
        top: 30%;
        left: 32%;
        width: 50px;
        transform: rotate(35deg);
    }
    100% {
        top: 25%;
        left: 48%;
        width: 0;
        transform: rotate(35deg);
    }
}
.denver { top: 25%; left: 45%; }
.tahiti { top: 65%; left: 70%; }
.san-francisco { top: 35%; left: 35%; }



.plane {
    position: absolute;
    font-size: 2rem;
    animation: flyPath 12s infinite;
    z-index: 15;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.plane:hover {
    transform: scale(1.2);
    filter: drop-shadow(3px 3px 8px rgba(0, 0, 0, 0.5));
}

@keyframes flyPath {
    0% { 
        top: 25%; 
        left: 48%; 
        transform: rotate(-45deg) scale(1); 
    }
    25% { 
        top: 35%; 
        left: 25%; 
        transform: rotate(-80deg) scale(1); 
    }
    50% { 
        top: 65%; 
        left: 70%; 
        transform: rotate(45deg) scale(1); 
    }
    75% { 
        top: 40%; 
        left: 15%; 
        transform: rotate(135deg) scale(1); 
    }
    100% { 
        top: 25%; 
        left: 48%; 
        transform: rotate(-45deg) scale(1); 
    }
}

.honeymoon-text {
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--bianco);
    margin-top: 20px;
}

.honeymoon-text strong {
    color: var(--oro);
    font-size: 1rem;
    letter-spacing: 1px;
}

.honeymoon-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.honeymoon-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.honeymoon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.honeymoon-card.full-width {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.honeymoon-card.full-width strong {
    color: var(--bianco);
}

.honeymoon-card.full-width .iban-code {
    color: var(--bianco);
}

.honeymoon-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.honeymoon-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.honeymoon-card:hover .honeymoon-image img {
    transform: scale(1.05);
}

.honeymoon-card .honeymoon-text {
    padding: 20px;
    margin: 0;
    font-size: 1rem;
}

.emphasis-text {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--oro);
    display: block;
    margin: 10px 0;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--bianco);
    cursor: pointer;
    font-size: 1rem;
    /*margin-left: 10px;*/
    padding: 5px 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    opacity: 0.8;
}

.copy-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.copy-btn.copied {
    color: var(--verde-chiaro);
}

/* IBAN styling to prevent phone number detection */
.iban-code {
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    word-break: break-all;
    pointer-events: none;
    font-size: 1.05rem;
}

/* Alternative Gifts */
.alternative-gifts {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(219, 194, 143, 0.2);
}

.alternative-gifts h3 {
    font-family: var(--font-script);
    font-size: 2rem;
    color: var(--bianco);
    margin-bottom: 15px;
    text-align: center;
}

.alternative-gifts p {
    margin-bottom: 20px;
    text-align: center;
}

.amazon-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--verde-scuro), var(--verde-medio));
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 auto;
    display: flex;
    width: fit-content;
    border: 2px solid rgba(219, 194, 143, 0.3);
}

.amazon-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(71, 106, 99, 0.3);
    background: linear-gradient(45deg, var(--verde-medio), var(--oro));
    border-color: var(--oro);
}

.gift-note {
    font-size: 1.1rem;
    color: var(--oro);
    font-style: italic;
    font-weight: 300;
    margin-top: 20px;
}

/* Responsive per il banner */
@media (max-width: 768px) {
    .honeymoon-banner {
        height: 250px;
        margin: 20px 0;
    }
    
    .banner-overlay {
        padding: 30px 20px;
    }
    
    .banner-content h4 {
        font-size: clamp(1.8rem, 6vw, 3rem);
        padding: 0 10px;
    }
    
    .mobile-break {
        display: inline;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .dream-text {
        font-size: 1.1rem;
    }

    .directions-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .directions-card {
        padding: 25px;
    }

    .directions-card .icon {
        font-size: 2rem;
    }

    .honeymoon-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .honeymoon-image {
        height: 200px;
    }

    .honeymoon-card .honeymoon-text {
        padding: 15px;
        font-size: 0.95rem;
    }

    .honeymoon-card.full-width {
        padding: 15px;
    }

    p.mobile-fix {
        padding: 0 !important;
    }

    button.copy-btn.mobile-fix {
        display: block;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 200px;
        padding: 15px;
    }
    
    .honeymoon-section {
        padding: 30px 20px;
    }
    
    .banner-content h4 {
        font-size: clamp(1.7rem, 8vw, 2.8rem);
        padding: 0 5px;
    }
    
    .amazon-link {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* Footer */
.footer {
    background: var(--verde-scuro);
    color: var(--bianco);
    padding: 50px 0;
    text-align: center;
    position: relative;
    z-index: 5;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.love-quote p {
    font-style: italic;
    font-size: 1.1rem;
    /* max-width: 600px; */
    line-height: 1.8;
    color: var(--oro);
}

.footer-names p {
    font-family: var(--font-script);
    font-size: 2.5rem;
    color: var(--bianco);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--oro);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--oro);
}

.social-links a:hover {
    background: var(--oro);
    color: var(--verde-scuro);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 20px;
    }
    
    .hero .countdown {
        gap: 15px;
    }
    
    .hero .time-unit {
        min-width: 75px;
        padding: 15px 12px;
    }
    
    .hero .number {
        font-size: 2rem;
    }
    
    .hero .label {
        font-size: 0.8rem;
    }
    
    .countdown-title {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        margin-bottom: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .love-quote p {
        font-size: 1rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero .time-unit {
        min-width: 65px;
        padding: 12px 8px;
    }
    
    .hero .number {
        font-size: 1.8rem;
    }
    
    .hero .label {
        font-size: 0.7rem;
    }
    
    .countdown-title {
        font-size: clamp(1.3rem, 4vw, 2rem);
    }
}

/* Animazioni di scroll */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Classe per animazioni al scroll */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.slide-in-left.animated {
    animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right.animated {
    animation: slideInRight 0.8s ease forwards;
}

.fade-in.animated {
    animation: fadeIn 0.8s ease forwards;
}

.footer {
    /* stato base degli elementi */
    .fade {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    /* stato nascosto */
    .hidden {
        opacity: 0;
        transform: translateY(6px);
        pointer-events: none;
    }
}

input::placeholder,
textarea::placeholder {
    color: #ccc;
}