/* ════════════════════════════════════════
   SERVIZI — Header caldo
   ════════════════════════════════════════ */
.srv-hero {
    padding: 120px 24px 40px;
    text-align: center;
    background: var(--bg);
}
.srv-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.4rem, 7vw, 3.8rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
    margin: 8px 0 12px;
}
.srv-hero-sub {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
}

/* ════════════════════════════════════════
   STORIES STRIP
   ════════════════════════════════════════ */
.srv-stories-strip {
    background: var(--bg);
    padding: 8px 0 48px;
    border-bottom: 1px solid var(--border);
}
.srv-stories-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 8px 24px;
    scrollbar-width: none;
    justify-content: center;
}
.srv-stories-track::-webkit-scrollbar { display: none; }

.srv-story-btn {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    scroll-snap-align: center;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.3s ease;
}
.srv-story-btn:hover { transform: scale(1.08); }
.srv-story-btn:active { transform: scale(0.95); }

.srv-story-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px; height: 76px;
    border-radius: 50%;
    background: conic-gradient(
        var(--ring-color) 0deg,
        #F5A623 120deg,
        var(--ring-color) 240deg,
        #F5A623 360deg
    );
    padding: 3px;
    transition: box-shadow 0.3s ease;
}
.srv-story-btn:hover .srv-story-ring {
    box-shadow: 0 4px 20px rgba(242,140,40,0.25);
}
.srv-story-btn.viewed .srv-story-ring {
    background: var(--border);
}

.srv-story-circle {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.srv-story-circle img { width: 100%; height: 100%; object-fit: cover; }
.srv-story-icon { width: 100%; height: 100%; padding: 16px; box-sizing: border-box; }
.srv-story-icon svg { width: 100%; height: 100%; }

.srv-story-label {
    font-family: 'Nunito', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text);
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ════════════════════════════════════════
   STORY VIEWER (overlay fullscreen)
   ════════════════════════════════════════ */
.srv-viewer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.srv-viewer.open {
    opacity: 1;
    pointer-events: all;
}

/* Safety net: quando il viewer NON è aperto, forziamo pointer-events:none su TUTTI
   i discendenti (slide, backdrop, close, ecc.) — altrimenti la .srv-slide.active
   rimasta al z-index 9999 continuerebbe a intercettare i tap su tutta la pagina. */
.srv-viewer:not(.open),
.srv-viewer:not(.open) * {
    pointer-events: none !important;
}

.srv-viewer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.srv-viewer-container {
    position: relative;
    width: 100%;
    max-width: 440px;
    height: 85vh;
    max-height: 720px;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

/* Progress bars */
.srv-progress {
    position: absolute;
    top: 12px; left: 12px; right: 12px;
    display: flex;
    gap: 4px;
    z-index: 10;
}
.srv-progress-bar {
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.25);
    border-radius: 3px;
    overflow: hidden;
}
.srv-progress-fill {
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 3px;
    transition: width 0.1s linear;
}
.srv-progress-bar.done .srv-progress-fill { width: 100%; }
.srv-progress-bar.active .srv-progress-fill { width: 0; }

/* Close button */
.srv-viewer-close {
    position: absolute;
    top: 24px; right: 16px;
    z-index: 12;
    background: rgba(0,0,0,0.4);
    border: none;
    border-radius: 50%;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}
.srv-viewer-close:hover { background: rgba(0,0,0,0.7); }

/* Nav tap areas */
.srv-nav-prev, .srv-nav-next {
    position: absolute;
    top: 60px; bottom: 80px;
    width: 30%;
    z-index: 8;
    cursor: pointer;
}
.srv-nav-prev { left: 0; }
.srv-nav-next { right: 0; }

/* Slides */
.srv-slides {
    width: 100%; height: 100%;
    position: relative;
}
.srv-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    background: linear-gradient(170deg, #1a1410 0%, #0d0b09 50%, #111 100%);
    overflow: hidden;
}
.srv-slide-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.3) saturate(1.1);
    z-index: 0;
}
.srv-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.srv-slide-inner {
    text-align: center;
    padding: 60px 32px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    max-height: 100%;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.srv-slide-icon-wrap {
    width: 100px; height: 100px;
    border-radius: 28px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.srv-slide-icon {
    width: 56px; height: 56px;
    color: var(--srv-color);
}
.srv-slide-icon svg { width: 100%; height: 100%; }
.srv-slide-icon-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    border-radius: 28px;
}

.srv-slide-num {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--srv-color);
    opacity: 0.8;
}
.srv-slide-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.srv-slide-desc {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    max-width: 340px;
}
.srv-slide-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 12px;
}
.srv-slide-wa:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ════════ Responsive ════════ */
@media (max-width: 600px) {
    .srv-stories-track {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        overflow-x: visible;
        scroll-snap-type: none;
    }
    .srv-story-btn { scroll-snap-align: none; }
    .srv-story-ring { width: 60px; height: 60px; }
    .srv-story-label { font-size: 0.63rem; max-width: 60px; }
    .srv-viewer-container {
        max-width: 100%;
        height: 100vh;
        max-height: none;
        border-radius: 0;
    }
    .srv-hero { padding: 100px 20px 32px; }
    .srv-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 601px) and (max-width: 1024px) {
    .srv-stories-track { gap: 16px; }
}

/* ════════════════════════════════════════
   APPROFONDIMENTO SERVIZI
   ════════════════════════════════════════ */
.srv-deep {
    background: var(--bg);
    padding: 72px 24px 64px;
}
.srv-deep-inner {
    max-width: 760px;
    margin: 0 auto;
}
.srv-deep-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    color: var(--text);
    margin: 6px 0 28px;
}
.srv-deep-text p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 18px;
}
.srv-deep-text p:last-child { margin-bottom: 0; }
.srv-deep-text strong { color: var(--text); }

/* ════════════════════════════════════════
   FAQ SERVIZI
   ════════════════════════════════════════ */
.srv-faq {
    background: linear-gradient(180deg, var(--bg) 0%, #FFF3E8 100%);
    padding: 64px 24px 80px;
}
.srv-faq-inner {
    max-width: 760px;
    margin: 0 auto;
}
.srv-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.srv-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--raggio-lg);
    overflow: hidden;
    box-shadow: var(--ombra);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.srv-faq-item.open {
    border-color: var(--border-hover);
    box-shadow: var(--ombra-lg);
}
.srv-faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
}
.srv-faq-q:hover { color: var(--arancione); }
.srv-faq-arrow {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), color 0.2s;
}
.srv-faq-item.open .srv-faq-arrow {
    transform: rotate(180deg);
    color: var(--arancione);
}
.srv-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.4s cubic-bezier(0.16,1,0.3,1);
    padding: 0 24px;
}
.srv-faq-item.open .srv-faq-a {
    max-height: 400px;
    padding: 0 24px 20px;
}
.srv-faq-a p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--text-muted);
}
.srv-faq-a a { color: var(--arancione); text-decoration: underline; }
