@font-face {
    font-family: 'Chevraye';
    src: url('assets/Web Fonts/chevraye_regular_macroman/Chevraye-webfont.woff2') format('woff2'),
        url('assets/Web Fonts/chevraye_regular_macroman/Chevraye-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-color: #4a6741;
    /* Verde Oliva Scuro (dalla partecipazione) */
    --text-color: #333;
    --bg-color: #fcfcfc;
    --white: #ffffff;
    --font-heading: 'Chevraye', serif;
    --font-body: 'Lato', sans-serif;
}

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

body {
    font-family: var(--font-body);
    /* background-color: var(--bg-color); */
    color: var(--text-color);
    line-height: 1.6;
    text-align: center;
    background-image: url('assets/fiori_laterali2.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-attachment: fixed;
    background-size: contain;
    position: relative;
    z-index: 3;
}

/* Texture acquerello con contrasto aumentato */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/white-paper-cardboard-texture.jpg');
    background-repeat: repeat;
    background-size: 50%;
    opacity: 0.5;
    /* filter: contrast(1.5) brightness(0.95); */
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 768px) {
    body {
        background-image: url('assets/white-paper-cardboard-texture.jpg');
        background-repeat: repeat;
        background-position: center;
        background-size: auto;
        /* Rimuovi fiori su mobile per leggibilità, mantieni texture */
    }
}

.monogram-container {
    text-align: center;
    margin-bottom: 20px;
}

.monogram {
    width: 180px;
    height: auto;
    opacity: 0.9;
}

.bouquet-container {
    margin: 40px 0;
    text-align: center;
}

.bouquet {
    width: 200px;
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 80px 0 40px;
    /* background-color: var(--white); */
}

.names {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.date {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.time {
    font-size: 1.2rem;
    font-style: italic;
    color: #666;
}

.save-date-link {
    display: inline-block;
    margin-top: 15px;
    padding: 0;
    background-color: transparent;
    color: #666;
    text-decoration: none;
    font-size: 1rem;
    font-style: italic;
    transition: all 0.3s ease;
}

.save-date-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Sections */
section {
    padding: 60px 0;
}

.invitation {
    /* background-color: var(--white); */
    padding: 40px 0;
}

.lead-text {
    font-size: 1.3rem;
    font-family: var(--font-heading);
    max-width: 600px;
    margin: 0 auto;
}

.location h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.venue {
    font-size: 1.5rem;
    font-weight: bold;
}

.address {
    margin-bottom: 30px;
    color: #555;
}

.map-container {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* RSVP Form */

.rsvp h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

form {
    max-width: 500px;
    margin: 30px auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background-color: #b89628;
}

#formMessage {
    margin-top: 20px;
    text-align: center;
    font-weight: bold;
}

.success {
    color: green;
}

.error {
    color: red;
}

.piccoli {
    font-size: 1.2rem;
    font-style: italic;
    font-weight: bold;
    margin-bottom: 30px;
    font-family: var(--font-body);
    color: var(--primary-color);
}

/* Gift Section */
.gift {
    background-color: rgba(0, 0, 0, 0.12);
}

.gift-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 30px;
    font-family: var(--font-body);
}

.iban-box {
    background-color: rgba(0, 0, 0, 0.15);
    padding: 20px;
    border: 1px solid #ddd;
    display: inline-block;
    border-radius: 8px;
}

.iban-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.iban-code {
    font-family: monospace;
    font-size: 1.2rem;
    margin-top: 5px;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 0;
}

.copy-iban-btn {
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    padding: 0px 8px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: var(--white);
}

.copy-iban-btn:hover {
    background-color: #3d5436;
    transform: translateY(-1px);
}

.copy-icon {
    display: inline-block;
    font-size: 1.3rem;
}

.copy-message {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
    .names {
        font-size: 2.5rem;
    }

    .hero {
        padding: 50px 0 30px;
    }
}