/* --- IMPOSTAZIONI GLOBALI E VARIABILI --- */
:root {
    --blu-notte: #0f172a;
    --grigio-ardesia: #334155;
    --bianco-crema: #f8fafc;
    --oro-pallido: #d4af37;
    --testo-chiaro: #e2e8f0;
    --testo-scuro: #1e293b;
    
    --font-titoli: 'Cormorant Garamond', serif;
    --font-testo: 'Montserrat', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

/* --- NUOVO STILE CON SFONDO COSMICO --- */
body {
    font-family: var(--font-testo);
    background-image: url('https://3-5.cloud/Amor_che_move/images/hero-background.webp');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: var(--testo-chiaro); /* Testo principale chiaro */
	padding-top: 80px;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4 {
    font-family: var(--font-titoli);
    font-weight: 700;
}

h1 { color: white; }
h2 { color: var(--oro-pallido); } /* Titoli di sezione dorati */
h3, h4 { color: var(--bianco-crema); }

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

p {
    margin-bottom: 1rem;
    font-weight: 300;
    color: #bdc8d4; /* Un grigio-azzurro chiaro per il testo, più riposante del bianco puro */
}

/* --- MENU DI NAVIGAZIONE --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.main-nav { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.main-nav .logo { font-family: var(--font-titoli); font-size: 1.5rem; color: var(--bianco-crema); font-weight: 700; }
.main-nav ul { list-style: none; display: flex; gap: 1.5rem; }
.main-nav a { text-decoration: none; color: var(--testo-chiaro); font-size: 0.9rem; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.main-nav a:hover { color: var(--oro-pallido); border-bottom-color: var(--oro-pallido); }


/* --- SEZIONE 1: HERO --- */
#hero { height: 100vh; background: transparent; color: white; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; }
.hero-text h1 { font-size: 4rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-text p { font-size: 1.2rem; font-weight: 300; text-shadow: 1px 1px 4px rgba(0,0,0,0.7); color: white; }
.scroll-down { position: absolute; bottom: 5rem; font-size: 2rem; color: white; text-decoration: none; animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-20px); } 60% { transform: translateY(-10px); } }

/* --- STILE PER SEZIONI "SOSPESE" --- */
.content-section, .content-section-light {
    padding: 4rem;
    background-color: rgba(12, 20, 69, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: 4rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.content-section-light {
    background-color: rgba(30, 41, 59, 0.8);
}

/* --- SEZIONE SAGGEZZA --- */
.wisdom-container { display: flex; align-items: center; gap: 2rem; max-width: 900px; margin: 0 auto; background-color: transparent; padding: 0; border: none; }
.wisdom-quote { flex: 1; text-align: center; }
.wisdom-quote .quote { font-size: 1.5rem; font-style: italic; color: var(--bianco-crema); }
.wisdom-quote hr { width: 50px; margin: auto; border: none; border-top: 1px solid var(--oro-pallido); }
.wisdom-image { flex: 1; max-width: 50%; }
.wisdom-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }

/* --- STILE DELLE CARD --- */
.card-container { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2rem; justify-content: center; }
.card { background-color: rgba(15, 23, 42, 0.85); padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; flex-basis: 100%; }
@media (min-width: 576px) { .card { flex-basis: 46%; } }
@media (min-width: 992px) { #riflessioni .card { flex-basis: 30%; } #approfondimenti .card { flex-basis: 22%; } }
.card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.card p { flex-grow: 1; }
.card-articolo { position: relative; }
.card-articolo a { text-decoration: none !important; color: inherit; display: flex; flex-direction: column; height: 100%; }
.piega-angolo { position: absolute; top: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 30px 30px 0; border-color: transparent var(--oro-pallido) transparent transparent; opacity: 0.7; transition: all 0.3s ease; }
.card-articolo:hover .piega-angolo { opacity: 1; }

/* --- Pulsante "Scopri Altre Riflessioni" --- */
.discover-more-container { text-align: center; margin-top: 3rem; }
.cta-button { display: inline-block; background: var(--oro-pallido); color: var(--blu-scuro); padding: 0.8rem 1.5rem; border-radius: 5px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; cursor: pointer; }
.cta-button:hover { background: white; transform: scale(1.05); }

/* --- Sezione Community WhatsApp --- */
.whatsapp-groups { display: flex; gap: 2rem; margin-top: 2rem; }
.whatsapp-card { flex: 1; background-color: rgba(255,255,255,0.05); padding: 1.5rem; border-radius: 8px; text-align: center; border: 1px solid rgba(255,255,255,0.1); }
.whatsapp-card h3 { margin-top: 0; }
.whatsapp-card button.cta-button { border: none; font-size: 14.4px; font-family: 'Montserrat', sans-serif; }

/* --- NUOVO STILE PER LA SEZIONE DIALOGO --- */
.dialogue-form {
    max-width: 600px;
    margin: 2rem auto 0;
}
.dialogue-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    font-family: var(--font-testo);
    font-size: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: rgba(15, 23, 42, 0.7); /* Sfondo scuro e traslucido */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Bordo chiaro e sottile */
    color: var(--testo-chiaro); /* Testo scritto dall'utente di colore chiaro */
}
.dialogue-form textarea::placeholder {
    color: rgba(189, 200, 212, 0.6); /* Colore del testo segnaposto */
}
.dialogue-form button {
    border: none;
    font-family: var(--font-titoli);
    font-size: 1.2rem;
    /* Stile già presente nel .cta-button, lo ereditiamo per coerenza */
}

/* --- FOOTER --- */
.main-footer { background-color: var(--blu-notte); color: var(--testo-chiaro); padding: 3rem 0; text-align: center; }
.main-footer .closing-text { font-style: italic; color: #94a3b8; margin-bottom: 1rem; }
.main-footer .copyright { font-size: 0.8rem; color: #64748b; margin-bottom: 0; }

/* --- Finestra Modale --- */
.modal { display: none; position: fixed; z-index: 1001; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); }
.modal-content { background-color: var(--blu-scuro); color: #EAE3D9; margin: 10% auto; padding: 2rem 3rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; width: 80%; max-width: 600px; position: relative; animation: fadeIn 0.5s; }
@keyframes fadeIn { from {opacity: 0; transform: scale(0.9);} to {opacity: 1; transform: scale(1);} }
.close-btn { color: #aaa; position: absolute; top: 15px; right: 25px; font-size: 28px; font-weight: bold; transition: color 0.3s ease; }
.close-btn:hover, .close-btn:focus { color: white; text-decoration: none; cursor: pointer; }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    .main-nav { flex-direction: column; gap: 1rem; }
    .hero-text h1 { font-size: 2.5rem; }
    .content-section, .content-section-light { margin: 2rem auto; padding: 2.5rem 1.5rem; }
    .wisdom-container { flex-direction: column; }
    .wisdom-image { max-width: 100%; margin-top: 2rem; }
    .whatsapp-groups { flex-direction: column; }
}