/* ==========================================================================
   BASE & TRUCCO DELLO SFONDO PERFETTO (CORRETTO)
   ========================================================================== */

html {
    width: 100%;
    margin: 0;
    padding: 0;
    /* Un grigio/nero antracite che riprende esattamente le ombre della tua foto */
    background-color: #111113; 
}

body {
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #ffffff; 
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: transparent !important; 
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    
    /* Il velo scuro lo teniamo leggero (0.50) per far godere i dettagli delle mani */
    background: linear-gradient(rgba(17, 17, 19, 0.50), rgba(17, 17, 19, 0.50)), url(../img/bg.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    
    /* LA MAGIA PER IL PC: 'contain' mostra la foto verticale intera al centro, senza zoomarla! */
    background-size: contain; 
}

/* ==========================================================================
   HEADER HERO (Testo grande e d'impatto)
   ========================================================================== */

.header {
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 12%;
    position: relative;
}

/* BLOCCO TESTO */
.text-vertical-right {
    text-align: right;
    will-change: opacity, transform;
    display: flex;
    flex-direction: column;
    gap: 12px; /* 👈 questo risolve TUTTA la gestione spazi */
}

/* RESET globale titoli */
.text-vertical-right h1,
.text-vertical-right h2 {
    margin: 0;
    padding: 0;
}

/* NOME SPOSI */
.text-vertical-right h1 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 5rem;
    color: #ffffff;
    line-height: 1.05;
    text-shadow: 2px 4px 15px rgba(0,0,0,0.6);
}

/* DATA EVENTO */
.text-vertical-right h2 {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 2.2rem;
    color: #dfba73;
    letter-spacing: 3px; /* ridotto da 4 → più naturale */
    line-height: 1.1;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.5);
}

/* ==========================================================================
   SEZIONI COMPATTE E TRASPARENTI
   ========================================================================== */

.wedding-section {
    position: relative;
    padding: 50px 0; /* Margini verticali dimezzati per togliere vuoti */
    background: transparent; /* Zero sfondi fastidiosi */
}

/* Titoli in Oro Champagne, grandi e nitidi */
.wedding-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem; /* Ridimensionato */
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #dfba73; 
    margin-bottom: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

/* Divisore compatto */
.wedding-divider {
    height: 1px;
    max-width: 100px;    
    border: 0;
    margin: 15px auto; /* Meno spazio vuoto */
    background-image: linear-gradient(to right, transparent, #dfba73, transparent);
}

/* Corpo del testo: Proporzionato, chiaro e classico */
.wedding-body {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem; /* Modificato: perfetto compromesso tra leggibilità ed eleganza */
    line-height: 1.6;
    max-width: 740px;
    margin: auto;
    color: #f1f5f9; /* Bianco seta */
}

.wedding-body strong {
    color: #ffffff;
    font-weight: 600;
}

.wedding-body span {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: #dfba73; /* Evidenziato in oro */
    font-weight: bold;
}

.wedding-block {
    margin-bottom: 20px; /* Margini ridotti tra i blocchi di testo */
}

.mt-6 {
    margin-top: 25px; /* Ridotto lo stacco dei bottoni */
}

/* ==========================================================================
   BOTTONI PRESTIGIO (Oro e Minimal)
   ========================================================================== */

.wedding-map-button {
    display: inline-block;
    padding: 10px 28px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    background: rgba(223, 186, 115, 0.08);
    border: 1px solid #dfba73;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.wedding-map-button:hover {
    transform: translateY(-2px);
    color: #000000;
    background: #dfba73; /* Diventa oro pieno al passaggio */
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(223, 186, 115, 0.3);
}

/* ==========================================================================
   REGALO & DRESS CODE CORTO
   ========================================================================== */

.wedding-gift-box {
    margin: 20px 0;
}

.wedding-gift-link {
    display: inline-block;
    text-decoration: none;
}

.wedding-gift-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dfba73;
    transition: transform 0.3s ease;
}

.wedding-gift-link:hover .wedding-gift-img {
    transform: scale(1.05);
}

.wedding-gift-label {
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #dfba73;
}

.wedding-dress-code {
    margin-top: 25px;
}

.wedding-dress-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    letter-spacing: 2px;
    color: #dfba73;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   RSVP CARD SNELLITA (Effetto vetro fumé sul fondo scuro)
   ========================================================================== */

.wedding-form-section,
.wedding-success-section {
    padding: 60px 0;
}

/* La card ora è un velo di vetro scuro che si integra perfettamente con lo sfondo */
.wedding-card {
    background: rgba(20, 22, 28, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px !important; /* Meno spazio interno vuoto */
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.wedding-form-title {
    font-size: 2.6rem;
    font-family: "Playfair Display", serif;
    color: #ffffff;
}

.wedding-form-meta {
    font-size: 1.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #dfba73;
    margin-top: 5px;
}

.wedding-form-location {
    font-size: 1.8rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.wedding-user-welcome {
    font-size: 1.5rem;
    color: #ffffff;
}

.wedding-form-subtitle {
    font-size: 1.7rem;
    color: #cbd5e1;
    margin-bottom: 25px;
}

.wedding-question {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.wedding-group {
    margin-bottom: 25px; /* Meno spazio tra le domande */
}

/* Scelte Sì / No */
.wedding-toggle {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.wedding-toggle input {
    display: none;
}

.wedding-option {
    padding: 9px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.wedding-toggle input:checked + .wedding-option {
    border-color: #dfba73;
    background: #dfba73;
    color: #000000;
    font-weight: 600;
}

/* Numeri Ospiti */
.wedding-numbers {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.wedding-numbers input {
    display: none;
}

.wedding-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-size: 1.8rem;
    transition: all 0.2s ease;
}

.wedding-numbers input:checked + .wedding-number {
    background: #dfba73;
    border-color: #dfba73;
    color: #000000;
    font-weight: 600;
}

/* Bottoni di Invio */
.wedding-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-primary {
    background: #dfba73;
    border: 1px solid #dfba73;
    border-radius: 30px;
    padding: 9px 28px;
    color: #000000;
    font-weight: 600;
    font-size: 1.8rem;
}

.btn-primary:hover {
    background: #f3d498;
    border-color: #f3d498;
}

.btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #cbd5e1;
    border-radius: 30px;
    padding: 9px 28px;
    font-size: 1.8rem;
}

/* SUCCESS BADGE */
.wedding-success-badge .badge-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(223, 186, 115, 0.1);
    border: 1px solid #dfba73;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dfba73;
    margin: 0 auto;
}

.btn-wedding-primary {
    background: #dfba73;
    color: #000000;
    font-weight: 600;
    border-radius: 30px;
    padding: 12px 35px;
    border: none;
}

/* ==========================================================================
   FOOTER COMPATTO
   ========================================================================== */

.wedding-footer {
    padding: 45px 0;
    background: rgba(10, 11, 14, 0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 5px;
}

.footer-date {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 3px;
    color: #dfba73;
    text-transform: uppercase;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer-rsvp {
    border: 1px solid rgba(223, 186, 115, 0.3);
    padding: 3px 12px;
    display: inline-block;
    color: #cbd5e1;
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* ==========================================================================
   OTTIMIZZAZIONE INTEGRALE PER TELEFONI (FOTO INTEGRATA)
   ========================================================================== */
@media (max-width: 768px) {
    
    body::before {
        /* Sul telefono usiamo 'cover': essendo entrambi verticali riempie lo schermo 
           splendidamente senza l'effetto sgranato o super-zoomato di prima */
        background-size: cover !important; 
        background-position: center center !important;
    }
    
    .header { 
        width: 100%;
        height: auto;
        min-height: 100vh;
        padding-right: 0; 
        justify-content: center; 
    }
    
    .text-vertical-right { 
        text-align: center; 
        padding: 30px 15px; 
    }
    
    .text-vertical-right h1 { font-size: 4rem; }
    .text-vertical-right h2 { font-size: 2.2rem; }
    .wedding-section { padding: 35px 0; }
    .wedding-title { font-size: 2.4rem; }
    .wedding-body { font-size: 1.6rem; } /* Testo perfettamente leggibile su mobile */
}


/* ==========================================================================
   DEDICA FINALE - MASSIMA ENFASI (PROPORZIONATA)
   ========================================================================== */

.final-dedication {
    font-family: 'Playfair Display', serif;
    font-size: 3.6rem; /* Ridimensionato per non risultare eccessivo */
    font-style: italic;
    font-weight: 500;
    color: #dfba73; /* Oro champagne */
    text-align: center;
    margin-top: 50px; 
    margin-bottom: 30px;
    line-height: 1.3;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.8); 
    width: 100%;
    display: block;
}

/* Regolazione per telefoni */
@media (max-width: 768px) {
    .final-dedication {
        font-size: 2.4rem; /* Proporzionata su mobile */
        margin-top: 40px;
        padding: 0 15px;
    }
}

/* ==========================================================================
   LINK RICEVIMENTO ORO E SOTTOLINEATO
   ========================================================================== */
.wedding-body span a {
    color: #dfba73 !important; /* Forza l'oro champagne */
    text-decoration: underline !important; /* Forza la sottolineatura sempre visibile */
    transition: opacity 0.2s ease;
}

/* Effetto al passaggio del mouse (diventa leggermente più luminoso) */
.wedding-body span a:hover, 
.wedding-body span a:focus, 
.wedding-body span a:visited {
    color: #f3d498 !important; /* Oro leggermente più chiaro per il feedback del click */
    text-decoration: underline !important;
}

/* ==========================================================================
   IL BOTTONE GROSSO "PARTECIPA ALLE NOZZE" (BLINDATO)
   ========================================================================== */
.wedding-btn-container {
    margin-top: 30px;
    margin-bottom: 20px;
    text-align: center;
    width: 100%;
}

.wedding-btn-block {
    display: inline-block !important;
    padding: 18px 50px !important; /* Molto spesso e largo */
    font-family: 'Playfair Display', serif !important;
    font-size: 2.2rem !important; /* Scritta bella grande */
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important; /* Tutto maiuscolo per dargli importanza */
    text-decoration: none !important;
    
    /* Colori e Sfondo Oro Pieno */
    color: #000000 !important; /* Testo nero per staccare sull'oro */
    background-color: #dfba73 !important; 
    
    /* Bordi e Ombra */
    border: 2px solid #dfba73 !important;
    border-radius: 50px !important; /* Effetto pillola moderno */
    box-shadow: 0 5px 25px rgba(223, 186, 115, 0.4) !important; /* Bagliore oro sotto il tasto */
    
    transition: all 0.3s ease-in-out !important;
    cursor: pointer !important;
}

/* Effetto dinamico quando ci passi sopra col mouse */
.wedding-btn-block:hover,
.wedding-btn-block:focus {
    transform: translateY(-4px) !important; /* Si solleva */
    background-color: transparent !important; /* Svuota lo sfondo */
    color: #dfba73 !important; /* Il testo diventa oro */
    box-shadow: 0 12px 30px rgba(223, 186, 115, 0.6) !important; /* L'ombra aumenta */
}

/* Ottimizzazione per far diventare il bottone ciccione e comodo anche sul telefono */
@media (max-width: 768px) {
    .wedding-btn-block {
        font-size: 1.8rem !important;
        padding: 16px 30px !important;
        width: 85% !important; /* Occupa quasi tutta la larghezza dello schermo del telefono */
        display: block !important;
        margin: 0 auto !important;
    }
}

/* Stili extra specifici per i campi di testo del Form */
.wedding-input-group {
    margin-bottom: 20px;
    text-align: left;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.wedding-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    color: #dfba73;
    margin-bottom: 5px;
    display: block;
}
.wedding-label span {
    font-size: 1.1rem;
    color: #94a3b8;
    font-style: italic;
    font-weight: normal;
}
.wedding-input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.4rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s ease;
}
.wedding-input:focus {
    outline: none;
    border-color: #dfba73;
    background: rgba(223, 186, 115, 0.05);
    box-shadow: 0 0 10px rgba(223, 186, 115, 0.2);
}
textarea.wedding-input {
    resize: vertical;
    min-height: 100px;
}
.wedding-form-card {
    margin-top: 80px;
    margin-bottom: 80px;
}

/*COUNDOWN*/
.luxury-countdown-container {
    text-align: center;
}
.luxury-countdown-card {
    background: rgba(18, 19, 23, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    /* Bordo sottile che simula la lastra di vetro con riflessi oro */
    border: 1px solid rgba(223, 186, 115, 0.25);
    border-radius: 16px;
    padding: 40px 30px !important;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(223, 186, 115, 0.05);
    position: relative;
}
.luxury-countdown-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.2rem;
    color: #dfba73; /* Oro principale */
    margin-bottom: 30px;
    letter-spacing: 1.5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
.luxury-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}
/* Le singole tessere metalliche per i numeri */
.luxury-time-box {
    background: linear-gradient(135deg, #2c2519 0%, #17140f 50%, #0d0a07 100%);
    border: 1px solid rgba(223, 186, 115, 0.4);
    border-radius: 8px;
    min-width: 95px;
    padding: 15px 5px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.6), inset 0 2px 4px rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
/* Effetto chiodino/rivetto metallico in alto alla tessera come in foto */
.luxury-time-box::before {
    content: '';
    position: absolute;
    top: 6px;
    width: 5px;
    height: 5px;
    background: #dfba73;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.luxury-count {
    font-family: 'Playfair Display', serif;
    font-size: 3.8rem;
    font-weight: 500;
    line-height: 1;
    background: linear-gradient(to bottom, #ffffff 0%, #dfba73 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #dfba73; /* Fallback */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.7));
    margin-bottom: 5px;
}
.luxury-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* Mobile responsive */
@media (max-width: 768px) {
    .luxury-timer {
        gap: 10px;
    }
    .luxury-time-box {
        min-width: 70px;
        padding: 12px 2px;
    }
    .luxury-count {
        font-size: 2.6rem;
    }
    .luxury-label {
        font-size: 1.0rem;
        letter-spacing: 1px;
    }
    .luxury-countdown-title {
        font-size: 1.8rem;
    }
}
