/* Wedding Website - Shared Styles */

:root {
    --sage-primary: #5d6f56;
    --sage-dark: #4a5a43;
    --gold-accent: #d4af37;
    --cream: #f7f5f3;
    --bg-color: #648f88;
}

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

body {
    font-family: 'Lora', serif;
    background: var(--bg-color);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

.main-container {
    position: relative;
    min-height: 100vh;
}

/* Typography */
.script-font {
    font-family: 'Great Vibes', cursive;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
}

/* Decorazioni floreali */
.floral-decoration {
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><g opacity="0.6"><path d="M50,100 Q80,80 110,100 Q140,120 170,100" stroke="%23a8b89a" stroke-width="2" fill="none"/><ellipse cx="70" cy="90" rx="15" ry="8" fill="%23a8b89a" opacity="0.7" transform="rotate(-20 70 90)"/><ellipse cx="90" cy="95" rx="12" ry="6" fill="%23a8b89a" opacity="0.8" transform="rotate(15 90 95)"/><ellipse cx="110" cy="85" rx="18" ry="9" fill="%23a8b89a" opacity="0.6" transform="rotate(-10 110 85)"/><ellipse cx="130" cy="105" rx="14" ry="7" fill="%23a8b89a" opacity="0.7" transform="rotate(25 130 105)"/><ellipse cx="150" cy="88" rx="16" ry="8" fill="%23a8b89a" opacity="0.6" transform="rotate(-15 150 88)"/><circle cx="75" cy="85" r="1.5" fill="%23d4af37"/><circle cx="95" cy="100" r="1" fill="%23d4af37"/><circle cx="125" cy="90" r="1.2" fill="%23d4af37"/><circle cx="145" cy="110" r="0.8" fill="%23d4af37"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.floral-decoration-lavanda {
    position: absolute;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 200"><g opacity="0.7"><path d="M50,100 Q80,80 110,100 Q140,120 170,100" stroke="%23B19CD9" stroke-width="2" fill="none"/><ellipse cx="70" cy="90" rx="15" ry="8" fill="%23C8B5E6" opacity="0.8" transform="rotate(-20 70 90)"/><ellipse cx="90" cy="95" rx="12" ry="6" fill="%23B19CD9" opacity="0.9" transform="rotate(15 90 95)"/><ellipse cx="110" cy="85" rx="18" ry="9" fill="%23C8B5E6" opacity="0.7" transform="rotate(-10 110 85)"/><ellipse cx="130" cy="105" rx="14" ry="7" fill="%23D5C9F0" opacity="0.8" transform="rotate(25 130 105)"/><ellipse cx="150" cy="88" rx="16" ry="8" fill="%23B19CD9" opacity="0.7" transform="rotate(-15 150 88)"/><circle cx="75" cy="85" r="1.5" fill="%23d4af37"/><circle cx="95" cy="100" r="1" fill="%23d4af37"/><circle cx="125" cy="90" r="1.2" fill="%23d4af37"/><circle cx="145" cy="110" r="0.8" fill="%23d4af37"/></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.floral-top-left {
    top: 20px;
    left: 20px;
    width: 200px;
    height: 100px;
}

.floral-bottom-right {
    bottom: 20px;
    right: 20px;
    width: 200px;
    height: 100px;
    transform: rotate(180deg);
}

/* Header Section - Homepage */
.hero-section {
    padding: 80px 0 15px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bride-groom-names {
    font-family: 'Great Vibes', cursive;
    font-size: 4.5rem;
    color: white;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    line-height: 0.9;
}

.ampersand {
    font-size: 2.5rem;
    margin: 0 20px;
    color: var(--gold-accent);
    position: relative;
}

.ampersand::before,
.ampersand::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: white;
}

.ampersand::before {
    left: -80px;
}

.ampersand::after {
    right: -80px;
}

.wedding-date {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    color: white;
    font-weight: 300;
    letter-spacing: 3px;
    margin-top: 30px;
}

/* Header Section - Inner Pages */
.page-header {
    padding: 60px 0 10px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.page-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold-accent);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: white;
    transform: translateX(-5px);
}

/* Content Section */
.content-section {
    padding: 40px 0 80px;
    position: relative;
    z-index: 2;
}

.content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.content-box p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-box strong {
    color: var(--gold-accent);
    font-weight: 600;
}

/* Cards Section - Homepage */
.cards-section {
    padding: 10px 0 80px;
    position: relative;
    z-index: 2;
}

.wedding-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.wedding-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.wedding-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    transform: translateY(0);
    transition: all 0.4s ease;
}

.wedding-card:hover .card-title {
    transform: translateY(-5px);
    text-shadow: 0 4px 12px rgba(0,0,0,0.7);
}

/* Gold particles effect */
.gold-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, var(--gold-accent) 0%, #f4e79d 100%);
    border-radius: 50%;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
    box-shadow: 0 0 6px var(--gold-accent);
}

.particle-large {
    width: 6px;
    height: 6px;
    animation: floatLarge 5s ease-in-out infinite;
}

.particle-small {
    width: 2px;
    height: 2px;
    animation: floatSmall 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.8; 
    }
    25% { 
        transform: translateY(-30px) translateX(10px) rotate(90deg); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-25px) translateX(-5px) rotate(180deg); 
        opacity: 0.9; 
    }
    75% { 
        transform: translateY(-35px) translateX(15px) rotate(270deg); 
        opacity: 1; 
    }
}

@keyframes floatLarge {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1); 
        opacity: 0.6; 
    }
    33% { 
        transform: translateY(-40px) translateX(-20px) rotate(120deg) scale(1.2); 
        opacity: 1; 
    }
    66% { 
        transform: translateY(-20px) translateX(25px) rotate(240deg) scale(0.8); 
        opacity: 0.8; 
    }
}

@keyframes floatSmall {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) rotate(0deg); 
        opacity: 0.9; 
    }
    50% { 
        transform: translateY(-15px) translateX(8px) rotate(180deg); 
        opacity: 1; 
    }
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

.fade-in-up-delay {
    animation: fadeInUp 1s ease-out 0.5s both;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .bride-groom-names {
        font-size: 3rem;
    }
    
    .page-title {
        font-size: 2.5rem;
    }
    
    .ampersand::before,
    .ampersand::after {
        width: 40px;
    }
    
    .ampersand::before {
        left: -50px;
    }
    
    .ampersand::after {
        right: -50px;
    }
    
    .wedding-date {
        font-size: 1.4rem;
        letter-spacing: 2px;
    }
    
    .card-title {
        font-size: 2.2rem;
    }
    
    .card-image {
        height: 250px;
    }
    
    .content-box {
        padding: 30px 20px;
    }
    
    .content-box p {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .bride-groom-names {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .card-title {
        font-size: 1.8rem;
    }
    
    .ampersand::before,
    .ampersand::after {
        display: none;
    }
    
    .content-box {
        padding: 25px 15px;
    }
    
    .content-box p {
        font-size: 1rem;
    }
}

/* Focus accessibility */
.wedding-card:focus {
    outline: 3px solid var(--gold-accent);
    outline-offset: 2px;
}

a:focus,
button:focus {
    outline: 2px solid var(--gold-accent);
    outline-offset: 2px;
}

/* Cerimonia Page */
.save-the-date {
    font-family: 'Great Vibes', cursive;
    font-size: 2.5rem;
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.ceremony-date {
    font-family: 'Lora', serif;
    font-size: 2rem;
    color: white;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.illustration {
    text-align: center;
    margin: 30px 0;
}

.illustration svg {
    max-width: 200px;
    height: auto;
}

.ceremony-time {
    font-family: 'Great Vibes', cursive;
    font-size: 3.5rem;
    color: var(--gold-accent);
    text-align: center;
    margin: 30px 0;
}

.ceremony-text {
    font-size: 1.2rem;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    margin: 25px 0;
}

.church-info {
    text-align: center;
    margin-top: 40px;
}

.church-name {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: white;
    margin-top: 20px;
    line-height: 1.4;
}

.church-label {
    font-size: 1.3rem;
    color: var(--gold-accent);
    margin-bottom: 10px;
}

.map-button {
    display: inline-block;
    padding: 15px 35px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #f4e79d 100%);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--gold-accent);
}

.map-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: var(--bg-color);
    background: var(--gold-accent);
}

.map-button i {
    margin-right: 10px;
}

/* Ricevimento Page */
.reception-subtitle {
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-style: italic;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.reception-name {
    font-family: 'Great Vibes', cursive;
    font-size: 4rem;
    color: white;
    text-align: center;
    margin: 30px 0 20px;
}

.reception-address {
    font-family: 'Lora', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: white;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 300;
}

.reception-text {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    margin: 40px 0;
    color: white;
}

.reception-confirmation {
    text-align: center;
    margin: 40px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.confirmation-text {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-style: italic;
    color: white;
}

.hearts-decoration {
    display: inline-block;
}

.hearts-decoration svg {
    width: 60px;
    height: auto;
}

/* WhatsApp Confirmation Button */
.whatsapp-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(135deg, var(--gold-accent) 0%, #f4e79d 100%);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--gold-accent);
}

.whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    color: var(--bg-color);
    background: var(--gold-accent);
}

.confirmation-text-button {
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--bg-color);
}

@media (max-width: 768px) {
    .reception-subtitle {
        font-size: 1.5rem;
    }

    .reception-name {
        font-size: 3rem;
    }

    .reception-address {
        font-size: 1.1rem;
    }

    .reception-text {
        font-size: 1.1rem;
    }

    .confirmation-text {
        font-size: 1.6rem;
    }

    .confirmation-text-button {
        font-size: 1.6rem;
    }

    .whatsapp-button {
        padding: 12px 30px;
    }
}

@media (max-width: 576px) {
    .reception-subtitle {
        font-size: 1.3rem;
    }

    .reception-name {
        font-size: 2.5rem;
    }

    .reception-address {
        font-size: 1rem;
    }

    .reception-text {
        font-size: 1rem;
    }

    .confirmation-text {
        font-size: 1.4rem;
    }

    .reception-confirmation {
        flex-direction: column;
        gap: 10px;
    }

    .confirmation-text-button {
        font-size: 1.4rem;
    }

    .whatsapp-button {
        padding: 10px 25px;
    }
}

/* Noi Page */
.story-date {
    font-family: 'Great Vibes', cursive;
    font-size: 3rem;
    color: white;
    text-align: center;
    margin-bottom: 40px;
}

.story-image {
    text-align: center;
    margin: 40px 0;
}

.story-image img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.story-text {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    margin: 40px 0;
    color: white;
}

.gift-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.gift-text {
    font-size: 1.3rem;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
    color: white;
    margin-bottom: 40px;
}

.iban-info {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    margin-top: 30px;
}

.iban-label {
    font-size: 1.3rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.iban-number {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    color: white;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.iban-note {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

@media (max-width: 768px) {
    .story-date {
        font-size: 2.5rem;
    }

    .story-text {
        font-size: 1.1rem;
    }

    .gift-text {
        font-size: 1.1rem;
    }

    .iban-number {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .iban-info {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .story-date {
        font-size: 2rem;
    }

    .story-text {
        font-size: 1rem;
    }

    .gift-text {
        font-size: 1rem;
    }

    .iban-number {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .iban-info {
        padding: 15px;
    }
}