/* =====================================================
   servizi.css — CSS specifico per:
   - page-servizi.php   (panoramica servizi)
   - page-servizio.php  (singola pagina servizio)
   Caricato condizionalmente via functions.php
   ===================================================== */

/* ── PAGINA PANORAMICA: service-section ── */
.service-section {
    padding: 80px 0;
}

.service-section.alt {
    background: var(--ice-blue);
}

.service-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-inner.reverse {
    direction: rtl;
}

.service-inner.reverse > * {
    direction: ltr;
}

.service-text h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.3;
}

.service-text p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 16px;
}

.service-visual {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    text-align: center;
    color: white;
}

.service-visual-icon {
    font-size: 4rem;
    margin-bottom: 16px;
}

.service-visual h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.service-visual p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    font-weight: 300;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .service-inner,
    .service-inner.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }
}

/* ── SINGOLA PAGINA SERVIZIO: contenuto editor ── */

/* Stile bullet list per il contenuto proveniente dall'editor WP.
   Equivale a .bullet-list ma si applica al markup nativo <ul><li>
   generato dal blocco Lista di Gutenberg. */
.servizio-editor-content ul {
    list-style: none;
    margin: 20px 0;
}

.servizio-editor-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92rem;
    color: #555;
    line-height: 1.6;
}

.servizio-editor-content ul li:last-child {
    border-bottom: none;
}

.servizio-editor-content ul li::before {
    content: '✓';
    color: var(--blu-gs);
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.servizio-editor-content h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    margin-top: 32px;
    line-height: 1.25;
}

.servizio-editor-content h2:first-child {
    margin-top: 0;
}

.servizio-editor-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    margin-top: 28px;
}

.servizio-editor-content p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 14px;
}

/* ── PROCESS STEPS ── */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 40px;
}

.process-step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.process-step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--blu-gs);
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.process-step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.process-step-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.7;
}

/* ── TIMES GRID (solo groupage, caricato comunque nel CSS condiviso) ── */
.times-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.time-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--blu-gs);
}

.time-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.time-card .time-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--blu-gs);
    display: block;
    margin: 12px 0;
}

.time-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

@media (max-width: 600px) {
    .times-grid { grid-template-columns: 1fr; }
    .process-step { flex-direction: column; gap: 12px; }
}
