/* Reset totale per eliminare il bianco residuo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background-color: #000 !important;
    width: 100%;
    min-height: 100vh;
    color: #fff;
    -webkit-font-smoothing: antialiased; /* Rende i font più definiti su Mac/iOS */
}

.contact-grid-page {
    width: 100%;
    max-width: 100%; /* Forza l'occupazione totale del monitor */
    background-color: #000;
    padding: 120px 0; /* Spazio generoso sopra e sotto */
}

.section-title {
    position: absolute; /* O 'fixed' se vuoi che rimanga fermo mentre scorri */
    left: 20px;
    top: 55%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 12px;
    text-transform: uppercase;
    color: rgba(212, 175, 55, 0.4); /* Oro soffuso */
    white-space: nowrap;
    z-index: 10;
    pointer-events: none; /* Non intralcia i clic sulle card */
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 100px auto;
}

.contact-card {
    background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(5, 5, 5, 1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.08); /* Bordo oro quasi impercettibile */
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    backdrop-filter: blur(15px); /* Effetto profondità */
}

.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-12px);
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(10, 10, 10, 1) 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 
                inset 0 0 20px rgba(212, 175, 55, 0.05);
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #D4AF37;
    transition: width 0.6s ease;
}

.contact-card:hover::before {
    width: 40px;
}

.card-header {
    display: flex;
    flex-direction: column; /* Icona sopra il nome per più eleganza */
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-logo {
    width: 28px;
    height: auto;
    /* Mantieni i loghi originali come richiesto, ma riducine leggermente l'opacità a riposo */
    opacity: 0.7;
    transition: opacity 0.5s ease;
}

.contact-card:hover .contact-logo {
    opacity: 1;
}

.contact-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 4px; /* Aumento spaziatura per look editoriale */
    text-transform: uppercase;
    color: #D4AF37;
}

.contact-description {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 40px;
    font-weight: 300;
}

.card-link {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FFF;
    text-decoration: none;
    position: relative;
    padding-bottom: 8px;
    align-self: flex-start;
}

.card-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px; /* Linea corta iniziale */
    height: 1px;
    background: #D4AF37;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-link:hover::after {
    width: 100%; /* Si allunga su tutta la parola */
}

.card-link:hover { color: #D4AF37; }

/* Feedback Footer */
.feedback-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 80px;
    max-width: 800px;
    margin: 0 auto;
}

.feedback-wrapper {
    max-width: 650px; /* Ridotto per eleganza */
    margin: 0 auto;
    padding: 100px 20px;
}

.feedback-form input, .feedback-form textarea {
    border-left: none;
    border-right: none;
    border-top: none;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    background: transparent;
    padding: 20px 0;
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
}

.feedback-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: -0.5px;
    font-weight: 400;
    margin-bottom: 20px;
    color: #D4AF37; /* Oro solido, zero problemi di compatibilità */
    text-align: center;
    /* Un'ombra leggerissima per dare profondità senza usare gradienti complessi */
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feedback-form input, .feedback-form textarea {
    background: #111;
    border: 1px solid #222;
    padding: 15px;
    color: #FFF;
    font-family: 'EB Garamond', serif;
}

.feedback-submit {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    padding: 10px;
    font-family: 'Cinzel', serif;
    cursor: pointer;
    transition: 0.4s;
}

.feedback-submit:hover { background: #D4AF37; color: #000; }

.direct-email-footer {
    margin-top: 80px; /* Spazio generoso dopo il pulsante Dispatch */
    text-align: center;
    padding-bottom: 40px;
}

.alternative-label {
    font-family: 'EB Garamond', serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-style: italic;
}

.footer-email {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #D4AF37;
    text-decoration: none;
    letter-spacing: 3px;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 5px;
}

.footer-email:hover {
    color: #FFF;
    border-bottom: 1px solid #D4AF37;
    letter-spacing: 5px; /* Effetto espansione lussuoso al passaggio del mouse */
}

/* --- 8. RESPONSIVE DESIGN PER CONTATTI E FEEDBACK --- */

/* Tablet e Laptop (sotto i 1024px) */
@media (max-width: 1024px) {
    .contact-grid-page {
        padding: 80px 40px;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr); /* Forza 2 colonne invece di auto-fit */
        gap: 20px;
    }

    .section-title {
        left: 10px;
        font-size: 0.6rem;
        letter-spacing: 8px;
    }
}

/* Mobile (sotto i 768px) */
@media (max-width: 768px) {
    .section-title {
        display: none; /* Rimuoviamo il titolo ruotato che occuperebbe troppo spazio */
    }

    .contact-grid-page {
        padding: 60px 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr; /* Una sola colonna per le card */
        margin-bottom: 60px;
    }

    .contact-card {
        padding: 40px 30px;
        text-align: center;
        align-items: center; /* Centriamo il contenuto della card */
    }

    .card-header {
        align-items: center; /* Centra icona e nome social */
    }

    .card-link {
        align-self: center; /* Centra il link "Entra nel Logos" */
    }

    .contact-description {
        font-size: 1.05rem;
    }

    /* Feedback Form Mobile */
    .feedback-wrapper {
        padding: 60px 0;
    }

    .feedback-title {
        font-size: 1.8rem;
    }

    .feedback-form input, 
    .feedback-form textarea {
        font-size: 1.1rem;
        padding: 12px;
    }

    .footer-email {
        font-size: 0.9rem;
        letter-spacing: 2px;
    }
}

/* Smartphone molto piccoli (sotto i 480px) */
@media (max-width: 480px) {
    .contact-card {
        padding: 35px 20px;
    }

    .contact-name {
        font-size: 0.7rem;
        letter-spacing: 2px;
    }

    .feedback-submit {
        padding: 15px; /* Pulsante più grande per il tocco */
        letter-spacing: 1px;
    }
}