:root {
    /* Colors - Sage, Eucalyptus, Pastels */
    --clr-sage-light: #e8efe9;
    --clr-sage: #bdcbb8;
    --clr-sage-dark: #82947b;
    --clr-eucalyptus: #5b7065;
    --clr-blush: #fcf6f5;
    --clr-sand: #f4efea;
    --clr-text: #333333;
    --clr-text-light: #666666;
    --clr-white: #ffffff;

    /* Accent - Azzurro Polvere */
    --clr-powder-blue: #b8cdd6;
    --clr-powder-blue-light: #dde9ee;
    --clr-powder-blue-dark: #8baab8;

    /* Typography */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Transitions */
    --shadow-soft: 0 10px 40px rgba(91, 112, 101, 0.05);
    --shadow-elevated: 0 30px 60px rgba(91, 112, 101, 0.1);
    --shadow-input: inset 0 2px 4px rgba(0,0,0,0.02);
    --transition-smooth: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background-color: var(--clr-blush);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: radial-gradient(circle at 20% 50%, rgba(184,205,214,0.08) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(189,203,184,0.08) 0%, transparent 50%);
}

/* Typography Base */
h1, h2, h3, .title, .brand-ampersand, .ampersand {
    font-family: var(--font-heading);
    color: var(--clr-eucalyptus);
    font-weight: 400;
    font-style: italic;
}

h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.5px;
}

.subtitle, .section-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: var(--clr-sage-dark);
    font-weight: 400;
    text-align: center;
    margin-bottom: 2rem; /* Reduced from 3.5rem */
    letter-spacing: 0.2px;
}

/* Ornamental Section Divider */
.section-title {
    position: relative;
    padding-bottom: 0.8rem; /* Reduced from 1.5rem */
    margin-bottom: 1rem;    /* Reduced from 2rem */
}

.section-title::after {
    content: '✦';
    display: block;
    text-align: center;
    margin-top: 0.4rem;  /* Reduced from 1rem */
    font-size: 0.8rem;
    color: var(--clr-powder-blue-dark);
    letter-spacing: 8px;
    font-style: normal;
}

/* Decorative Horizontal Rule */
.ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 3rem auto;
    max-width: 300px;
    color: var(--clr-powder-blue);
}

.ornament::before,
.ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--clr-powder-blue), transparent);
}

.ornament svg {
    flex-shrink: 0;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    background-color: var(--clr-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 4rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--clr-sage-light);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-eucalyptus);
    letter-spacing: 2px;
    font-style: italic;
}

.brand-ampersand {
    font-style: italic;
    color: var(--clr-sage-dark);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--clr-text);
    font-family: var(--font-heading);
    font-size: 1.35rem; /* Increased size because serif fonts appear smaller */
    font-weight: 400; /* Match section title weight */
    font-style: italic; /* Match section title style */
    transition: var(--transition-smooth);
    position: relative;
    padding-bottom: 4px;
    opacity: 0.7;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--clr-eucalyptus);
    transition: var(--transition-smooth);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--clr-eucalyptus);
    opacity: 1;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--clr-text-light);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: var(--clr-eucalyptus);
    font-weight: 500;
}

.lang-separator {
    color: var(--clr-sage);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--clr-text);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: calc(80px + 6rem);
    padding-bottom: 4rem;
    background: linear-gradient(160deg, var(--clr-blush) 0%, var(--clr-sand) 40%, var(--clr-powder-blue-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Subtle decorative circles in the hero background */
.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(184, 205, 214, 0.2);
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(189, 203, 184, 0.15);
    bottom: -50px;
    left: -50px;
    pointer-events: none;
}

.hero-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    z-index: 2;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero .title {
    font-size: 5.5rem;
    margin: 1rem 0 0.5rem;
    line-height: 1.05;
    color: var(--clr-eucalyptus);
    letter-spacing: -1px;
}

.hero .subtitle {
    text-align: left;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.ampersand {
    font-style: italic;
    color: var(--clr-powder-blue-dark);
    font-size: 4rem;
}

.hero-ornament {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 2rem 0;
    max-width: 200px;
    color: var(--clr-sage-dark);
}

.hero-ornament::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--clr-sage), transparent);
}

.hero .date {
    font-family: var(--font-body);
    font-size: 0.95rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--clr-sage-dark);
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.countdown {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.cd-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    color: var(--clr-eucalyptus);
    line-height: 1;
}

.cd-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--clr-text-light);
    margin-top: 0.5rem;
    font-weight: 500;
}

.hero-bio-container {
    margin-top: 3.5rem;
    position: relative;
    max-width: 550px;
    text-align: left;
}

.hero-placeholder {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--clr-sage-dark);
    position: relative;
    z-index: 2;
}

.hero-img-container {
    flex: 1;
    width: 100%;
    position: relative;
    border-radius: 24px;
    border: 2px solid var(--clr-sage);
    box-shadow: var(--shadow-elevated);
    overflow: visible;
    transform: translateY(0);
    animation: floatImage 8s ease-in-out infinite;
}

@keyframes floatImage {
    0% { transform: translateY(0); box-shadow: var(--shadow-elevated); }
    50% { transform: translateY(-12px); box-shadow: 0 40px 70px rgba(91, 112, 101, 0.15); }
    100% { transform: translateY(0); box-shadow: var(--shadow-elevated); }
}



.hero-img-container > img {
    border-radius: 22px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 80vh;
    object-fit: cover;
    transition: transform 8s ease;
}

.hero-image:hover {
    transform: scale(1.04);
}

/* Layout Utilities */
.section {
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 90px;
}

.container {
    max-width: 1300px;
    width: 92%;
    margin: 0 auto;
    position: relative;
}

.bg-light { background-color: var(--clr-blush); }
.bg-sage { background-color: var(--clr-sage-light); }
.bg-powder { background-color: var(--clr-powder-blue-light); }

.card {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition-smooth);
}

.place-card {
    position: relative;
    overflow: visible; /* Consentiamo alle bolle di uscire leggermente */
}

.bubbles-decor {
    position: absolute;
    top: -20px;
    right: -20px;
    display: flex;
    gap: -10px;
    z-index: 5;
}

.bubble {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-base);
    animation: floatBubble 6s ease-in-out infinite;
}

.bubble img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-elevated);
    z-index: 10;
}

@keyframes floatBubble {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-10px) rotate(3deg); }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(43, 60, 51, 0.95); /* Eucalyptus dark translucent */
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: var(--transition-base);
}

.close-lightbox:hover {
    transform: scale(1.2);
}

/* Places Grid */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.info-card {
    text-align: center; /* Forza la centratura di tutto il testo nella card */
}

.place-card h4, .info-label {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--clr-eucalyptus);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra l'icona con il testo */
    gap: 0.8rem;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--clr-eucalyptus);
    flex-shrink: 0;
}

.highlight-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--clr-eucalyptus);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.info-card p {
    margin-bottom: 0.5rem;
}

.info-card .info-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin: 1.5rem auto 0.8rem;
}

.place-card h3 {
    font-size: 1.5rem;
    color: var(--clr-eucalyptus);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--clr-powder-blue);
    padding-bottom: 0.5rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 600;
}

.transit-info {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--clr-text);
    line-height: 1.8;
}

.transit-info strong {
    color: var(--clr-sage-dark);
}



/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.info-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.small-text {
    font-size: 0.95rem;
    color: var(--clr-text-light);
}


/* Form Styles */
.form-container {
    max-width: 580px;
    margin: 0 auto;
}

.rsvp-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    align-items: flex-end; /* Allinea correttamente i box se le label hanno altezze diverse */
}

.form-row .form-group {
    flex: 1;
    min-width: 150px;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--clr-eucalyptus);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 1px solid rgba(189, 203, 184, 0.3);
    border-radius: 12px;
    font-family: var(--font-body); /* Assicura che sia usato Inter */
    font-size: 1rem;
    color: var(--clr-text);
    background-color: rgba(255,255,255,0.6);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-input);
    -webkit-appearance: none; /* Rimuove lo stile di sistema */
    appearance: none;
}

textarea.form-control {
    resize: none; /* Impedisce l'allargamento manuale del box */
    min-height: 120px;
}

.form-control:focus {
    outline: none;
    border-color: var(--clr-powder-blue);
    background-color: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(184, 205, 214, 0.2);
    transform: translateY(-2px);
}

/* Custom Radio & Checkbox */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label, .checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 400 !important;
    color: var(--clr-text) !important;
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 2px solid rgba(189, 203, 184, 0.3);
    transition: var(--transition-smooth);
    background-color: rgba(255,255,255,0.4);
}

.radio-label:hover, .checkbox-label:hover {
    border-color: var(--clr-sage);
    background-color: rgba(255,255,255,0.7);
}

.radio-label input, .checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom, .checkbox-custom {
    position: relative;
    height: 22px;
    width: 22px;
    min-width: 22px;
    background-color: #fff;
    border: 2px solid var(--clr-sage);
    margin-right: 12px;
    transition: var(--transition-smooth);
}

.radio-custom { border-radius: 50%; }
.checkbox-custom { border-radius: 6px; }

.radio-label:hover input ~ .radio-custom, 
.checkbox-label:hover input ~ .checkbox-custom {
    border-color: var(--clr-eucalyptus);
}

/* Selected state - much more visible */
.radio-label input:checked ~ .radio-custom,
.checkbox-label input:checked ~ .checkbox-custom {
    background-color: var(--clr-eucalyptus);
    border-color: var(--clr-eucalyptus);
    box-shadow: 0 0 0 3px rgba(91,112,101, 0.15);
}

.radio-label:has(input:checked),
.checkbox-label:has(input:checked) {
    border-color: var(--clr-eucalyptus);
    background-color: rgba(189, 203, 184, 0.15);
    box-shadow: 0 0 0 3px rgba(91,112,101, 0.08);
}

.radio-custom:after, .checkbox-custom:after {
    content: "";
    position: absolute;
    display: none;
}

.radio-label input:checked ~ .radio-custom:after,
.checkbox-label input:checked ~ .checkbox-custom:after {
    display: block;
}

.radio-label .radio-custom:after {
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.checkbox-label .checkbox-custom:after {
    left: 6px;
    top: 2px;
    width: 4px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto;
    min-width: 220px;
    padding: 0.8rem 2.8rem;
    background: transparent;
    color: var(--clr-eucalyptus);
    border: 1px solid var(--clr-eucalyptus);
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem auto 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
}


.btn:hover {
    background-color: var(--clr-eucalyptus);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(91, 112, 101, 0.15);
}

.hidden { display: none; }

.form-message {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--clr-sage-light);
    color: var(--clr-eucalyptus);
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--clr-sage);
}

/* Accommodation */
.acc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.acc-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.acc-card h3 {
    font-size: 2.2rem;
    color: #3a4740; /* Darker, stronger green tone */
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
    font-style: italic; /* Keep the elegant italic style */
}

.featured-card {
    border: 2px solid var(--clr-eucalyptus) !important;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(91, 112, 101, 0.05) 100%) !important;
    padding-top: 4.5rem !important; /* Increase top padding to avoid badge overlap */
}

.recommendation-badge {
    position: absolute;
    top: 0;
    right: 2rem;
    background: linear-gradient(135deg, var(--clr-eucalyptus), #4a5a51);
    color: white;
    padding: 0.4rem 1.2rem;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-radius: 0 0 12px 12px; /* Elegant hanging tag shape */
    z-index: 10;
    box-shadow: 0 4px 15px rgba(91, 112, 101, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
}

.link-btn {
    display: inline-block;
    margin-top: 2rem;
    color: var(--clr-sage-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--clr-sage-dark);
    padding-bottom: 2px;
    align-self: center;
    transition: var(--transition-smooth);
}

.link-btn:hover {
    color: var(--clr-eucalyptus);
    border-bottom-color: var(--clr-eucalyptus);
}

/* Footer */
footer {
    text-align: center;
    padding: 5rem 2rem 3rem;
    background: linear-gradient(180deg, var(--clr-blush) 0%, var(--clr-white) 100%);
}

.footer-monogram {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--clr-powder-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--clr-eucalyptus);
    font-style: italic;
    background: var(--clr-white);
}

.footer-msg {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--clr-eucalyptus);
    margin-bottom: 1rem;
    font-style: italic;
}

.footer-date {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--clr-sage-dark);
    text-transform: uppercase;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .info-grid, .acc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 2rem;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        height: 100dvh; /* Migliore per browser mobili moderni */
        width: 100%;
        background-color: rgba(252, 246, 245, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 6rem;
        padding-bottom: 3rem;
        overflow-y: auto; /* Permette lo scorrimento se le voci sono troppe */
        transition: right 0.4s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .nav-links a {
        font-size: 2rem;
    }

    .hero .title {
        font-size: 3.5rem;
    }

    .ampersand {
        font-size: 2.5rem;
    }

    .card {
        padding: 2.5rem 1.5rem;
    }

    .featured-card {
        padding-top: 4rem !important;
    }

    .recommendation-badge {
        padding: 0.35rem 1rem;
        font-size: 0.6rem;
        right: 1.5rem;
    }


    .hero-layout {
        flex-direction: column-reverse;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-text {
        text-align: center;
    }
    .hero .subtitle {
        text-align: center;
    }
    
    .countdown {
        justify-content: center;
        gap: 1rem;
    }
    
    .cd-number {
        font-size: 2rem;
    }
    
    .hero-bio-container {
        text-align: center;
        margin: 3rem auto 0;
    }
    

}
