/**
 * Vyachat Page Styles
 */

/* ===== HERO ===== */
.hero-vyachat {
    background: linear-gradient(135deg, #38b2ac 0%, #319795 100%);
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.hero-vyachat h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 16px;
}

/* Frase esplicativa subito sotto il titolo: "VyaChat e' la chat di ascolto
   tra pari dell'Associazione Solivya." Piu' marcata del sottotitolo perche'
   e' la definizione del servizio, non un claim. */
.hero-vyachat .hero-claim {
    font-size: 1.15rem;
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 10px;
    line-height: 1.5;
}

.hero-vyachat .hero-subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 24px;
    opacity: 0.95;
    line-height: 1.6;
}

/* Chat Status */
.chat-status {
    margin-top: 24px;
}

.status-loading {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    font-weight: 500;
}

.status-open {
    background: #06d6a0;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: pulseStatus 2s infinite;
    box-shadow: 0 4px 16px rgba(6, 214, 160, 0.4);
}

@keyframes pulseStatus {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.status-closed {
    background: #ef476f;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 12px;
    display: inline-block;
    font-weight: 500;
    box-shadow: 0 4px 16px rgba(239, 71, 111, 0.3);
    line-height: 1.4;
}

/* ===== ORARI ===== */
.section-orari {
    padding: 80px 0;
    background: #ffffff;
}

.section-orari h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 40px;
}

.orari-box {
    max-width: 900px;
    margin: 0 auto 32px;
    background: #ffffff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.orari-box .loading {
    text-align: center;
    color: #4a5568;
    padding: 24px;
}

.orari-box .error {
    text-align: center;
    color: #c53030;
    padding: 24px;
}

.orari-table {
    width: 100%;
    border-collapse: collapse;
}

.orari-table thead th {
    text-align: left;
    padding: 16px;
    background: #f7fafc;
    font-weight: 600;
    border-bottom: 2px solid #4c51bf;
    color: #1a202c;
}

.orari-table td {
    padding: 16px;
    border-bottom: 1px solid #edf2f7;
}

.orari-table .giorno {
    font-weight: 600;
    color: #1a202c;
}

.orari-table .orario {
    color: #4a5568;
}

.orari-table tr.attivo {
    background: #c6f6d5;
}

.orari-table tr.attivo .giorno,
.orari-table tr.attivo .orario {
    color: #1a202c;
}

.orari-note {
    max-width: 900px;
    margin: 0 auto;
    background: #f7fafc;
    padding: 24px;
    border-radius: 12px;
}

.orari-note p {
    margin-bottom: 12px;
    color: #4a5568;
    line-height: 1.6;
}

.orari-note p:last-child {
    margin-bottom: 0;
}

.orari-note a {
    color: #4c51bf;
    text-decoration: underline;
}

/* ===== REGOLE ===== */
.section-regole {
    padding: 80px 0;
    background: #f7fafc;
}

.section-regole h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 16px;
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.regole-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.regola-card {
    background: #ffffff;
    padding: 28px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
}

.regola-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.regola-icon {
    color: #38b2ac;
    margin-bottom: 16px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.regola-card h3 {
    font-size: 1.2rem;
    color: #ef476f;
    text-align: center;
    margin-bottom: 16px;
}

.regola-card ul {
    list-style: none;
    padding: 0;
    color: #4a5568;
}

.regola-card li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
    font-size: 0.95rem;
}

.regola-card li::before {
    content: '\2022';
    color: #38b2ac;
    font-weight: 700;
    position: absolute;
    left: 6px;
    top: 0;
}

.warning-box {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff5f5;
    border: 2px solid #f56565;
    padding: 28px;
    border-radius: 16px;
}

.warning-box h3 {
    color: #c53030;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.warning-box p {
    color: #1a202c;
    margin-bottom: 12px;
    line-height: 1.6;
}

.warning-box ul {
    color: #4a5568;
    padding-left: 20px;
}

.warning-box li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* ===== PUOI CONDIVIDERE ===== */
.section-puoi-condividere {
    padding: 80px 0;
    background: #ffffff;
}

.section-puoi-condividere h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 48px;
}

.condividi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.condividi-ok {
    background: #c6f6d5;
    border-left: 4px solid #06d6a0;
    padding: 28px;
    border-radius: 12px;
}

.condividi-no {
    background: #fed7d7;
    border-left: 4px solid #ef476f;
    padding: 28px;
    border-radius: 12px;
}

.condividi-ok h3,
.condividi-no h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: #1a202c;
}

.condividi-ok ul,
.condividi-no ul {
    list-style: none;
    padding: 0;
    color: #1a202c;
}

.condividi-ok li,
.condividi-no li {
    margin-bottom: 10px;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.condividi-ok li::before {
    content: '\2713';
    color: #047857;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

.condividi-no li::before {
    content: '\2717';
    color: #c53030;
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* ===== LIMITI ===== */
.section-limiti {
    padding: 80px 0;
    background: #f7fafc;
}

.limiti-box {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.limiti-box h2 {
    text-align: center;
    font-size: 2rem;
    color: #1a202c;
    margin-bottom: 32px;
}

.limite-item {
    padding: 20px 0;
    border-bottom: 1px solid #edf2f7;
}

.limite-item:last-child {
    border-bottom: none;
}

.limite-item h3 {
    color: #4c51bf;
    margin-bottom: 8px;
    font-size: 1.15rem;
}

.limite-item p {
    color: #4a5568;
    line-height: 1.7;
}

/* ===== EMERGENZA ===== */
.section-emergenza {
    padding: 80px 0;
    background: #ffffff;
}

.emergenza-box {
    max-width: 1000px;
    margin: 0 auto;
    background: #fff5f5;
    border: 3px solid #f56565;
    padding: 48px 32px;
    border-radius: 16px;
    text-align: center;
}

.emergenza-box h2 {
    color: #c53030;
    margin-bottom: 16px;
    font-size: 2rem;
}

.emergenza-box > p {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 32px;
    line-height: 1.6;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.emergency-card {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.emergency-number {
    font-size: 3rem;
    font-weight: 700;
    color: #c53030;
    margin-bottom: 8px;
    line-height: 1;
}

.emergency-card h3 {
    color: #1a202c;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.emergency-card p {
    color: #4a5568;
    font-size: 0.9rem;
    margin-bottom: 4px;
    line-height: 1.4;
}

.emergency-info {
    font-style: italic;
    font-size: 0.85rem !important;
    color: #718096 !important;
}

.emergency-note {
    background: #ffffff;
    padding: 16px;
    border-radius: 8px;
    color: #1a202c;
    line-height: 1.6;
}

/* ===== CTA ACCESSO ===== */
.section-cta-accesso {
    padding: 80px 0;
    background: linear-gradient(135deg, #38b2ac, #2c7a7b);
}

.section-cta-accesso .cta-box {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto;
}

.section-cta-accesso h2 {
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.section-cta-accesso p {
    font-size: 1.15rem;
    margin-bottom: 32px;
    line-height: 1.6;
}

.section-cta-accesso .btn-primary {
    background: #ffffff;
    color: #2c7a7b;
}

.section-cta-accesso .btn-primary:hover {
    transform: scale(1.05);
}

.cta-small {
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.btn-disabled {
    pointer-events: auto;
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-vyachat {
        padding: 60px 0;
    }

    .hero-vyachat h1 {
        font-size: 2rem;
    }

    .hero-vyachat .hero-subtitle {
        font-size: 1rem;
    }

    .regole-grid {
        grid-template-columns: 1fr;
    }

    .condividi-grid {
        grid-template-columns: 1fr;
    }

    .emergency-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .limiti-box {
        padding: 24px;
    }

    .emergenza-box {
        padding: 32px 20px;
    }

    .emergency-number {
        font-size: 2.4rem;
    }

    .section-cta-accesso h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .emergency-grid {
        grid-template-columns: 1fr;
    }
}
