/* PALETTE COLORI: Bianco, Avorio, Oro Tenue, Blu Notte */
:root {
    --color-bg-light: #FAF8F5;
    --color-white: #FFFFFF;
    --color-gold: #C5A880;
    --color-gold-hover: #A3875F;
    --color-dark-blue: #0E1B2F;
    --color-text-dark: #2C353F;
    --color-text-muted: #6A7582;
    --font-serif: 'Times New Roman', Georgia, Serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-selectable {
    user-select: all;
    -webkit-user-select: all;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    transition: var(--transition-smooth);
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-gold);
    color: var(--color-white);
    border: 1px solid var(--color-gold);
}

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

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('hero.jpg') center center / cover no-repeat;
    color: var(--color-white);
    text-align: center;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(14, 27, 47, 0.4), rgba(14, 27, 47, 0.75));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    animation: fadeInHero 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-wedding-date {
    font-family: var(--font-serif);
    font-size: 30px;
    font-style: italic;
    letter-spacing: 4px;
    color: var(--color-gold);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.hero-names {
    font-family: var(--font-serif);
    font-size: clamp(32px, 6vw, 64px);
    font-weight: 300;
    letter-spacing: 2px;
    margin: 0 0 16px 0;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

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

.section-intro {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 64px auto;
}

.section-intro h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 300;
    color: var(--color-dark-blue);
    margin-bottom: 16px;
}

.section-intro p {
    font-size: 16px;
    color: var(--color-text-muted);
    font-style: italic;
    font-family: var(--font-serif);
}

.travel-itinerary {
    padding: 100px 0;
    background-color: var(--color-white);
}

.destination-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg-light);
    margin-bottom: 80px;
    border: 1px solid rgba(197, 168, 128, 0.15);
    overflow: hidden;
}

.destination-card:last-child {
    margin-bottom: 0;
}

.destination-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.destination-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-card:hover .destination-image img {
    transform: scale(1.04);
}

.destination-info {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.destination-info h3 {
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 300;
    color: var(--color-dark-blue);
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.destination-tagline {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    font-weight: 600;
    margin-bottom: 20px;
}

.destination-desc {
    font-size: 15px;
    color: var(--color-text-dark);
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

.contribution-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.payment-card {
    background-color: var(--color-white);
    border: 1px solid rgba(197, 168, 128, 0.2);
    padding: 40px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-header {
    margin-bottom: 20px;
}

.payment-icon {
    color: var(--color-gold);
    margin-bottom: 12px;
}

.payment-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-dark-blue);
    margin: 0;
}

.payment-instruction {
    font-size: 15px;
    color: var(--color-text-muted);
    max-width: 480px;
    margin: 0 auto 24px auto;
}

.payment-instruction-small {
    font-size: 13px;
    color: var(--color-text-muted);
    font-style: italic;
    max-width: 440px;
    margin: 10px auto 16px auto;
}

.bank-details {
    width: 100%;
    max-width: 480px;
    background-color: var(--color-bg-light);
    border-left: 3px solid var(--color-gold);
    padding: 20px;
    text-align: left;
    margin-bottom: 10px;
}

.detail-row {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-text {
    flex: 1;
    min-width: 0;
}

.detail-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    font-weight: 600;
}

.detail-value {
    display: block;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-dark-blue);
    word-break: break-all;
    font-weight: 500;
}

/* PITTOGRAMMA DI COPIA MINIMALISTA ED ELEGANTE */
.btn-copy {
    background: transparent;
    border: 1px solid rgba(197, 168, 128, 0.3);
    color: var(--color-gold);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0; /* Coerente con lo stile geometrico del sito */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    padding: 0;
}

.btn-copy:hover {
    background-color: rgba(197, 168, 128, 0.08);
    color: var(--color-gold-hover);
    border-color: var(--color-gold-hover);
}

.btn-copy svg {
    transition: transform 0.2s ease;
}

.btn-copy:active svg {
    transform: scale(0.85);
}

/* Stato attivo temporaneo con spunta di avvenuta copia */
.btn-copy.copied {
    color: #2E7D32 !important;
    border-color: #2E7D32 !important;
    background-color: rgba(46, 125, 50, 0.05) !important;
}

.qr-container {
    margin-top: 24px;
    padding: 16px;
    background: var(--color-white);
    border: 1px solid #EAEAEA;
    display: inline-block;
}

.qr-code {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.qr-code svg, .qr-code img {
    width: 100%;
    height: 100%;
}

.qr-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

.thanks-footer {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 100px 0;
    text-align: center;
}

.thanks-content {
    max-width: 700px;
    margin: 0 auto;
}

.decorative-heart {
    color: var(--color-gold);
    font-size: 24px;
    margin-bottom: 24px;
}

.thanks-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: clamp(18px, 3vw, 24px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 32px;
}

.thanks-signature {
    font-family: var(--font-sans);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    margin: 0;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
    .destination-card {
        flex-direction: row;
        height: 380px;
    }
    
    .destination-card.reverse {
        flex-direction: row-reverse;
    }
    
    .destination-image {
        width: 50%;
        height: 100%;
    }
    
    .destination-info {
        width: 50%;
        padding: 50px;
    }
    
    .payment-methods {
        flex-direction: row;
    }
    
    .payment-card {
        width: 50%;
        padding: 50px 32px;
    }
}