/* =============================================
   CUSTOM OVERRIDES — Modern & Accattivante
   ============================================= */

/* ---------- Smooth Scroll & Base ---------- */
html { scroll-behavior: smooth; }
/* Niente scorrimento orizzontale su mobile: "clip" (a differenza di "hidden") non crea
   un contenitore di scroll e non rompe gli elementi position:fixed su iOS. */
html, body {
    overflow-x: hidden;
    overflow-x: clip;
}
body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: #444;
    touch-action: pan-y pinch-zoom;
}
body.chatbot-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}
}

/* ---------- Sezione Titolo Globale ---------- */
.section-title h2,
.start-title h2 {
    color: #0a5c96 !important;
    font-weight: 800;
    font-size: 32px;
    letter-spacing: -0.5px;
    position: relative;
    display: block;
}
.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #0a5c96);
    border-radius: 2px;
    margin: 12px auto 0;
}
.section-title p {
    font-size: 16px;
    line-height: 1.7;
    color: #666;
    max-width: 700px;
    margin: 15px auto 0;
}

/* ---------- Header Sticky & Glass ---------- */
.header .header-inner {
    transition: all 0.35s ease;
}
.header.sticky .header-inner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header .nav li a {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}
.header .nav li a:hover {
    color: #1a73e8 !important;
}

/* ---------- Buttons ---------- */
.btn {
    background: linear-gradient(135deg, #1a73e8 0%, #0a5c96 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.35s ease !important;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    position: relative;
    overflow: hidden;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,115,232,0.4) !important;
    background: linear-gradient(135deg, #1557b0 0%, #084e81 100%) !important;
}
.btn.primary {
    background: transparent !important;
    border: 2px solid #fff !important;
    box-shadow: none;
}
.btn.primary:hover {
    background: rgba(255,255,255,0.15) !important;
    box-shadow: 0 4px 15px rgba(255,255,255,0.2) !important;
}

/* ---------- Hero / Slider ---------- */
.slider .single-slider {
    background-size: cover;
    background-position: center top;
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
}
/* Dark overlay – covers only the left side so doctor photo on right stays visible */
.slider .single-slider::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right,
        rgba(2,18,40,0.95) 0%,
        rgba(4,30,60,0.92) 25%,
        rgba(6,45,85,0.80) 45%,
        rgba(6,45,85,0.40) 60%,
        rgba(0,0,0,0.0) 75%
    );
    z-index: 1;
}
.slider .single-slider .container {
    position: relative;
    z-index: 5;
}
/* Override original style.css white background on .text */
.slider .single-slider .text {
    background-color: transparent !important;
    background: none !important;
    margin-top: 0 !important;
    padding: 20px 0 !important;
    border-radius: 0;
}
.slider .single-slider .text h1 {
    font-size: 52px;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25);
    margin-bottom: 20px;
}
.slider .single-slider .text h1 span {
    color: #6cb8ff;
}
.slider .single-slider .text p {
    font-size: 18px;
    color: rgba(255,255,255,0.95);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 30px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.slider .single-slider .text .button {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* ---------- Schedule Cards (3 box) ---------- */
.schedule {
    margin-top: -60px;
    padding: 0 0 40px;
    position: relative;
    z-index: 10;
    background: transparent;
    height: auto;
}
.schedule .schedule-inner {
    transform: none;
}
.schedule .schedule-inner .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.schedule .schedule-inner .row > [class*="col-"] {
    display: flex;
}
.single-schedule {
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    margin-bottom: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
}
.single-schedule .inner {
    padding: 35px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.single-schedule .single-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.single-schedule .single-content a {
    margin-top: auto;
}
.single-schedule:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
}
.single-schedule.first {
    background: linear-gradient(135deg, #1a73e8 0%, #0d5bba 100%);
}
.single-schedule.middle {
    background: linear-gradient(135deg, #0a5c96 0%, #084e81 100%);
}
/* Prenota una Visita — colore diverso per attirare l'attenzione */
.single-schedule.last {
    background: linear-gradient(135deg, #ff8c21 0%, #e8610a 100%) !important;
    box-shadow: 0 10px 40px rgba(255, 140, 33, 0.35);
    animation: pulseGlow 2.5s ease-in-out infinite;
}
.single-schedule.last:hover {
    box-shadow: 0 25px 60px rgba(255, 140, 33, 0.5) !important;
}
.single-schedule.last::before {
    background: #e8610a !important;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 40px rgba(255, 140, 33, 0.35); }
    50% { box-shadow: 0 15px 55px rgba(255, 140, 33, 0.6); }
}
.single-schedule { overflow: hidden; }
.single-schedule .icon i {
    font-size: 42px;
    color: rgba(255,255,255,0.9);
    transition: transform 0.3s ease;
}
.single-schedule:hover .icon i {
    transform: scale(1.15);
}
.single-schedule h4 {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin: 15px 0 12px;
}
.single-schedule p,
.single-schedule .single-content p {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    line-height: 1.6;
}
.single-schedule a {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 8px 0;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}
.single-schedule a:hover {
    border-bottom-color: #fff;
    gap: 12px;
}

/* ---------- Features Section ---------- */
.Feautes { padding: 100px 0 80px; }
.single-features {
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #f0f4f8;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}
.single-features::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #0a5c96);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}
.single-features:hover::before {
    transform: scaleX(1);
}
.single-features:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(26,115,232,0.15);
}
.single-features .signle-icon i {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 20px;
    display: inline-block;
    transition: all 0.4s ease;
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8f2ff 0%, #f5f9ff 100%);
}
.single-features:hover .signle-icon i {
    background: linear-gradient(135deg, #1a73e8 0%, #0a5c96 100%);
    color: #fff;
    transform: rotateY(180deg);
}
.single-features h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}
.single-features p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
}

/* ---------- Blog Section (Homepage) ---------- */
section.blog.section { padding: 80px 0 60px; background: #f7f9fc; }

/* Blog Infinite Slider */
.blog.section { overflow-x: hidden; overflow-x: clip; }
.blog-slider-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0 40px;
}
.blog-slider-track {
    display: flex;
    gap: 40px;
    will-change: transform;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.blog-slider-track.dragging {
    cursor: grabbing;
}
.blog-slider-track.dragging .blog-slide-card {
    pointer-events: none;
}

/* Blog Slider Card */
.blog-slide-card {
    flex: 0 0 380px;
    min-width: 380px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}
.blog-slide-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1a73e8, #0a5c96, #1a73e8);
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.blog-slide-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 24px 64px rgba(7,70,116,0.18);
}
.blog-slide-card:hover::before {
    opacity: 1;
}
.blog-slide-card .card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.blog-slide-card:hover .card-img {
    transform: scale(1.06);
}
.blog-slide-card .card-img-wrap {
    overflow: hidden;
    position: relative;
}
.blog-slide-card .card-img-wrap::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
    pointer-events: none;
}
.blog-slide-card .card-body {
    padding: 24px 28px 28px;
}
.blog-slide-card .card-date {
    font-size: 11px;
    color: #1a73e8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    display: inline-block;
    background: rgba(26,115,232,0.08);
    padding: 4px 12px;
    border-radius: 20px;
}
.blog-slide-card .card-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #1a1a2e;
}
.blog-slide-card .card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-slide-card .card-title a:hover {
    color: #1a73e8;
}
.blog-slide-card .card-text {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-slide-card .card-link {
    font-size: 13px;
    font-weight: 700;
    color: #1a73e8;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}
.blog-slide-card .card-link:hover {
    gap: 12px;
}
.blog-slide-card .card-link i {
    transition: transform 0.3s ease;
}
.blog-slide-card:hover .card-link i {
    transform: translateX(4px);
}

/* ---------- Start Title (Blog Section heading) ---------- */
.start-title {
    margin-bottom: 40px;
    text-align: center;
}
.start-title h2 {
    color: #0a5c96 !important;
    font-weight: 800;
    font-size: 32px;
    margin-bottom: 10px;
}
.start-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #1a73e8, #0a5c96);
    border-radius: 2px;
    margin: 12px auto 0;
}
.start-title span {
    color: #666 !important;
    font-size: 16px;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, #0c1d2e 0%, #0a3558 50%, #084e81 100%) !important;
}
.footer .footer-top {
    padding: 80px 0 50px;
}
.footer .single-footer h2 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}
.footer .single-footer h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px;
    height: 3px;
    background: #1a73e8;
    border-radius: 2px;
}
.footer .single-footer p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}
.footer .single-footer.f-link ul li a {
    color: rgba(255,255,255,0.7);
    transition: all 0.3s ease;
    padding: 5px 0;
    display: inline-block;
}
.footer .single-footer.f-link ul li a:hover {
    color: #6cb8ff;
    padding-left: 5px;
}
.footer .single-footer .time-sidual .day {
    color: rgba(255,255,255,0.7);
    border-bottom-color: rgba(255,255,255,0.1);
}
.footer .single-footer .time-sidual .day span {
    color: #6cb8ff;
}
.footer .copyright {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
}

/* =============================================
   CHAT WIDGET
   ============================================= */
/* FAB wrapper */
.chatbot-fab-wrapper {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 999999;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Speech bubble */
.chatbot-speech-bubble {
    background: #fff;
    color: #333;
    font-size: 13px;
    line-height: 1.4;
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    max-width: 220px;
    position: relative;
    margin-bottom: 8px;
    animation: speechBubbleIn 0.5s ease-out;
    cursor: pointer;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.chatbot-speech-bubble::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px;
    margin-top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px -3px 6px rgba(0,0,0,0.06);
}
.chatbot-speech-bubble.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}
@keyframes speechBubbleIn {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* FAB button */
.chatbot-fab {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26,115,232,0.35);
    transition: box-shadow 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    animation: chatFabPulse 2.5s ease-in-out infinite;
}
.chatbot-fab:hover {
    animation: none;
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(26,115,232,0.5);
}
.chatbot-fab-icon {
    width: 63px;
    height: 63px;
    object-fit: contain;
    pointer-events: none;
}
@keyframes chatFabPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.9); }
}

/* Chat Window */
.chatbot-window {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 380px;
    max-height: 520px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s cubic-bezier(0.16,1,0.3,1),
                transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.chatbot-window.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0a5c96 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chatbot-header-avatar {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.chatbot-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #fff;
}
.chatbot-header-info h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.chatbot-header-info p {
    margin: 0;
    font-size: 11px;
    opacity: 0.85;
    color: #fff;
}
.chatbot-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    line-height: 1;
}
.chatbot-close:hover { opacity: 1; }

/* Messages area */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f4f6f9;
    min-height: 280px;
    max-height: 340px;
}

/* Scrollbar */
.chatbot-messages::-webkit-scrollbar { width: 5px; }
.chatbot-messages::-webkit-scrollbar-track { background: transparent; }
.chatbot-messages::-webkit-scrollbar-thumb { background: #c8d0da; border-radius: 10px; }

/* Bubbles */
.chat-bubble {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13.5px;
    line-height: 1.55;
    word-wrap: break-word;
    animation: bubbleIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.chat-bubble.bot {
    background: #fff;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-bubble.user {
    background: linear-gradient(135deg, #1a73e8, #0a5c96);
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-bubble .time {
    display: block;
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    align-self: flex-start;
    padding: 12px 18px;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.typing-indicator span {
    width: 7px; height: 7px;
    background: #b0b8c4;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-6px); }
}

/* Input area */
.chatbot-input-area {
    display: flex;
    padding: 12px 14px;
    gap: 8px;
    border-top: 1px solid #eef1f5;
    background: #fff;
    flex-shrink: 0;
}
.chatbot-input-area input {
    flex: 1;
    border: 1.5px solid #e0e4ea;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.3s;
    font-family: inherit;
}
.chatbot-input-area input:focus {
    border-color: #1a73e8;
}
.chatbot-input-area button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a73e8, #0a5c96);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}
.chatbot-input-area button:hover {
    transform: scale(1.08);
    box-shadow: 0 2px 10px rgba(26,115,232,0.4);
}
.chatbot-input-area button svg {
    width: 18px; height: 18px; fill: #fff;
}

/* Mobile */
@media (max-width: 480px) {
    .chatbot-window {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        z-index: 9999999;
        transition: height 0.15s ease;
    }
    .chatbot-window .chatbot-header {
        position: sticky;
        top: 0;
        z-index: 10;
        padding: 14px 16px;
        padding-top: max(14px, env(safe-area-inset-top));
    }
    .chatbot-window .chatbot-close {
        font-size: 28px;
        padding: 4px 8px;
    }
    .chatbot-messages {
        flex: 1;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .chatbot-input-area {
        position: sticky;
        bottom: 0;
        z-index: 10;
        padding: 10px 12px;
        padding-bottom: max(10px, env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #eef1f5;
    }
    .chatbot-header-icon {
        width: 38px;
        height: 38px;
    }
    .chatbot-fab { width: 64px; height: 64px; }
    .chatbot-fab-icon { width: 50px; height: 50px; }
    .chatbot-fab-wrapper { bottom: 18px; right: 15px; }
    .chatbot-speech-bubble { max-width: 180px; font-size: 12px; }
}

/* ---------- Read More Link ---------- */
.read-more {
    color: #1a73e8;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.read-more:hover {
    gap: 10px;
    color: #0a5c96;
}

/* ---------- Contact Section ---------- */
.contact-us .contact-us-form h2 {
    font-weight: 800;
    color: #1a1a2e;
    font-size: 28px;
}
.contact-us .contact-us-form .form .form-group input,
.contact-us .contact-us-form .form .form-group textarea {
    border-radius: 10px;
    border: 1px solid #e0e6ed;
    padding: 14px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}
.contact-us .contact-us-form .form .form-group input:focus,
.contact-us .contact-us-form .form .form-group textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}
.contact-us .single-info {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #f0f4f8;
}
.contact-us .single-info:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* ---------- Inner Pages (pf-details) ---------- */
.pf-details .inner-content {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    padding: 0 0 40px;
}
.pf-details .image-slider img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 16px 16px 0 0;
}
.pf-details .body-text {
    padding: 30px 40px;
}
.pf-details .body-text h3 {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 20px;
}
.pf-details .body-text h4 {
    color: #0a5c96;
    font-weight: 700;
    font-size: 18px;
}
.pf-details .body-text p {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}
.pf-details .date ul li span {
    color: #1a73e8;
    font-weight: 700;
}

/* ---------- Preloader ---------- */
.preloader {
    background: #fff;
}

/* ---------- Lists ---------- */
ul.box-hp {
    list-style-type: none;
    color: white;
}
ul.box-hp li {
    padding: 4px 0 4px 22px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 10" width="10" height="10"><circle cx="5" cy="5" r="4" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-position: 0 50%;
}
ul.news {
    margin-top: 20px;
    list-style-type: none;
    padding-left: 20px;
}
ul.news li {
    margin-bottom: 12px;
    line-height: 1.6;
}
ul.news li::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1a73e8;
    margin-right: 10px;
    vertical-align: middle;
}
.news-ul-title {
    margin-top: 30px;
    font-size: 18px;
}

/* ---------- Misc ---------- */
.success-message {
    color: green;
    font-weight: 700;
}
.divisore {
    border-top: solid 1px #e0e6ed;
    margin: 25px 0;
}
.visita_form {
    margin-top: 50px;
    margin-bottom: 50px;
}
.prenota_visita {
    background: linear-gradient(135deg, #1a73e8 0%, #0a5c96 100%) !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    padding: 13px 24px !important;
    box-shadow: 0 4px 15px rgba(26,115,232,0.3);
    transition: all 0.35s ease !important;
}
.prenota_visita:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26,115,232,0.4) !important;
}

/* ---------- Blog Detail ---------- */
.news-single .single-main .news-title {
    font-size: 30px;
    font-weight: 800;
    color: #1a1a2e;
    line-height: 1.3;
}
.news-single .single-main .news-title a {
    color: #1a1a2e;
}
.news-single .blog-bottom .social-share li a {
    border-radius: 8px;
    transition: all 0.3s ease;
}
.news-single .blog-bottom .social-share li a:hover {
    transform: translateY(-3px);
}
.comments-form .form .form-group input,
.comments-form .form .form-group textarea {
    border-radius: 10px !important;
    border: 1px solid #e0e6ed !important;
    transition: all 0.3s ease;
}
.comments-form .form .form-group input:focus,
.comments-form .form .form-group textarea:focus {
    border-color: #1a73e8 !important;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
}

/* ---------- Login Page ---------- */
.login-page-section {
    padding: 80px 0;
}
.login-page-section .form-group input {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e0e6ed;
    width: 100%;
    transition: all 0.3s ease;
}
.login-page-section .form-group input:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,0.1);
    outline: none;
}

/* ---------- Animations — Smooth & Futuristic ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(80px) rotateX(8deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* Base animation class */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotateX(0);
}

/* Variant: slide from left */
.animate-on-scroll[data-anim="left"] {
    transform: translateX(-60px);
}
/* Variant: slide from right */
.animate-on-scroll[data-anim="right"] {
    transform: translateX(60px);
}
/* Variant: scale in */
.animate-on-scroll[data-anim="scale"] {
    transform: scale(0.8);
}
/* Variant: 3D tilt up */
.animate-on-scroll[data-anim="tilt"] {
    transform: translateY(60px) perspective(600px) rotateX(10deg);
}

/* Stagger delays via data-delay or nth-child */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.25s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.55s; }

/* Hero text entrance */
.slider .single-slider .text > * {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.slider .single-slider .text > *:nth-child(1) { animation-delay: 0.2s; }
.slider .single-slider .text > *:nth-child(2) { animation-delay: 0.45s; }
.slider .single-slider .text > *:nth-child(3) { animation-delay: 0.65s; }
.slider .single-slider .text > .button { animation-delay: 0.85s; }

/* Schedule cards stagger */
.schedule .col-lg-4:nth-child(1) .animate-on-scroll { transition-delay: 0s; }
.schedule .col-lg-4:nth-child(2) .animate-on-scroll { transition-delay: 0.15s; }
.schedule .col-lg-4:nth-child(3) .animate-on-scroll { transition-delay: 0.3s; }

/* Features stagger */

/* Smooth global transitions */
*, *::before, *::after {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---------- Features Mobile 3D Cube ---------- */
.features-cube-wrapper {
    display: none; /* hidden on desktop */
}
.features-desktop {
    display: flex;
}

/* ---------- Responsive — Mobile Futuristic ---------- */
@media (max-width: 991px) {
    .slider .single-slider .text h1 { font-size: 36px; }
    .schedule { margin-top: -40px; padding: 0 0 20px; }
    .single-schedule { margin-bottom: 20px; }
    .Feautes { padding: 60px 0 40px; }
}

@media (max-width: 767px) {
    /* Show cube, hide desktop grid */
    .features-desktop { display: none !important; }
    /* Il cubo 3D sporge lateralmente durante la rotazione: la sezione lo ritaglia
       al bordo dello schermo così la pagina non si allarga e non "traballa". */
    .Feautes { overflow-x: hidden; overflow-x: clip; }
    .features-cube-wrapper {
        display: block;
        width: 75%;
        max-width: 75%;
        margin: 0 auto;
        perspective: 1000px;
        perspective-origin: 50% 50%;
    }
    .features-cube {
        width: 100%;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
        will-change: transform;
    }
    .cube-face {
        width: 100%;
        backface-visibility: hidden;
        position: absolute;
        top: 0;
        left: 0;
    }
    .cube-face-front {
        position: relative; /* takes up space for height */
    }
    .cube-face .single-features {
        margin-bottom: 0;
        border-radius: 20px;
        padding: 32px 24px;
        background: #fff;
        box-shadow: 0 12px 48px rgba(10, 92, 150, 0.12);
        border: 1px solid rgba(26, 115, 232, 0.08);
        position: relative;
        overflow: hidden;
    }
    .cube-face .single-features::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 4px;
        background: linear-gradient(90deg, #1a73e8, #0a5c96);
        border-radius: 20px 20px 0 0;
    }
    .cube-face .single-features::after {
        content: '';
        position: absolute;
        top: -50%; left: -50%;
        width: 200%; height: 200%;
        background: radial-gradient(circle, rgba(26,115,232,0.03) 0%, transparent 70%);
        pointer-events: none;
    }
    /* Dots indicator */
    .cube-dots {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 24px;
        padding-bottom: 5px;
    }
    .cube-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #d0d8e4;
        transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
        cursor: pointer;
    }
    .cube-dots .dot.active {
        background: linear-gradient(135deg, #1a73e8, #0a5c96);
        width: 28px;
        border-radius: 5px;
        box-shadow: 0 2px 10px rgba(26,115,232,0.45);
    }
    /* Hero mobile */
    .slider .single-slider {
        min-height: auto !important;
        height: auto !important;
        background-position: center right 30%;
        overflow: hidden;
        padding: 80px 0 40px;
    }
    .slider .single-slider::before {
        background: linear-gradient(
            to bottom,
            rgba(2,14,30,0.96) 0%,
            rgba(4,26,52,0.94) 30%,
            rgba(6,40,75,0.90) 60%,
            rgba(8,60,110,0.85) 100%
        ) !important;
    }
    .slider .single-slider .container {
        position: relative;
        z-index: 10;
    }
    .slider .single-slider .text {
        background: none !important;
        background-color: transparent !important;
        margin-top: 0 !important;
        padding: 10px 0 !important;
        overflow: visible;
    }
    .slider .single-slider .text h1 {
        font-size: 28px;
        line-height: 1.2;
    }
    .slider .single-slider .text p {
        font-size: 14px;
        max-width: 100%;
    }
    .slider .single-slider .text .button {
        flex-direction: column;
        gap: 10px;
    }
    .slider .single-slider .text .button .btn {
        text-align: center;
        justify-content: center;
    }

    /* Schedule mobile */
    .schedule { margin-top: -20px; padding: 0 15px 10px; height: auto; }
    .schedule .schedule-inner .row {
        flex-direction: column;
    }
    .single-schedule {
        margin-bottom: 16px;
        border-radius: 14px;
    }
    .single-schedule .inner { padding: 24px 20px; }

    /* Features mobile */
    .Feautes { padding: 50px 0 30px; }
    .single-features {
        padding: 28px 20px;
        border-radius: 14px;
        margin-bottom: 20px;
    }
    .single-features .signle-icon i {
        font-size: 36px;
        width: 70px;
        height: 70px;
        line-height: 70px;
    }

    /* Section titles mobile */
    .section-title h2, .start-title h2 {
        font-size: 24px;
    }
    .section-title p {
        font-size: 14px;
    }

    /* Blog mobile */
    section.blog.section { padding: 50px 0 30px; }
    .blog-slide-card {
        flex: 0 0 300px;
        min-width: 300px;
    }
    .blog-slide-card .card-img { height: 170px; }
    .blog-slide-card .card-body { padding: 18px 20px 22px; }
    .blog-slider-track { gap: 24px; }

    /* Inner pages mobile */
    .pf-details .body-text { padding: 20px; }
    .pf-details .body-text h3 { font-size: 22px; }

    /* Buttons mobile */
    .btn {
        padding: 12px 24px !important;
        font-size: 13px !important;
    }

    /* Mobile-specific animation adjustments: faster, punchier */
    .animate-on-scroll {
        transition-duration: 0.6s;
    }

    /* Horizontal scroll prevention */
    body { overflow-x: hidden; }

    /* Footer mobile */
    .footer .single-footer { margin-bottom: 30px; }
    .footer .footer-top { padding: 50px 0 20px; }
}

@media (max-width: 480px) {
    .slider .single-slider {
        min-height: auto !important;
        height: auto !important;
        padding: 70px 0 30px;
    }
    .slider .single-slider .text h1 { font-size: 24px; }
    .slider .single-slider .text > p:first-of-type {
        font-size: 11px;
        letter-spacing: 2px;
    }
    .section-title h2, .start-title h2 { font-size: 21px; }
    .single-schedule h4 { font-size: 18px; }
    .single-features h3 { font-size: 18px; }
}

/* ---------- Breadcrumbs / Page Headers ---------- */
.breadcrumbs {
    background: linear-gradient(135deg, #084e81 0%, #0a5c96 100%);
    padding: 40px 0;
}
.breadcrumbs h2 {
    color: #fff;
    font-weight: 800;
}

/* ---------- Section Title: img sotto il titolo, non affianco ---------- */
.section-title img {
    display: block;
    margin: 10px auto 0;
}

/* ---------- Blog: bottoni non sforano + centratura perfetta ---------- */
.news-text a.btn,
.news-text .btn,
.news-text a[class*="btn"],
.news-text button {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
    gap: 8px;
}
/* Icona dentro bottone blog: non spinge il testo fuori centro */
.news-text a.btn i,
.news-text .btn i,
.news-text a[class*="btn"] i,
.news-text button i {
    flex-shrink: 0;
}
/* Se il contenuto con icona non entra su una riga, icona sopra centrala */
@media (max-width: 480px) {
    .news-text a.btn,
    .news-text .btn,
    .news-text a[class*="btn"],
    .news-text button {
        flex-direction: column;
        gap: 4px;
        padding: 12px 20px !important;
    }
}
.news-single .social-share {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    float: none;
    padding: 0;
    list-style: none;
}
.news-single .social-share li {
    float: none;
    flex-shrink: 1;
    min-width: 0;
}
.news-single .social-share li a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 40px;
    box-sizing: border-box;
}
.news-single .blog-bottom {
    overflow: visible;
}

/* ---------- Fix: orange box ::before not blue on hover ---------- */
.single-schedule.last::before {
    background: #e8610a !important;
}
/* ---------- SEO: H1 con sottotitolo nella hero e titoli di pagina ---------- */
.slider .single-slider .text h1 .hero-kicker {
    display: block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    text-shadow: none;
    line-height: 1.4;
}
.slider .single-slider .text p strong { color: #fff; font-weight: 600; }
/* Il titolo principale delle pagine informative è un H1 con l'aspetto del vecchio H3 */
.pf-details .body-text h1.page-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 18px;
    line-height: 1.3;
}
.pf-details .body-text .intro-seo { font-size: 16px; color: #444; line-height: 1.7; margin-bottom: 18px; }
@media (max-width: 767px) {
    .pf-details .body-text h1.page-title { font-size: 22px; }
    .slider .single-slider .text h1 .hero-kicker { font-size: 12px; letter-spacing: 2px; }
}
/* Pagina chirurgia robotica */
.cr-section { margin: 34px 0 0; }
.cr-section h2 { font-size: 24px; color: #074674; margin: 0 0 12px; font-weight: 700; }
.cr-section h3 { font-size: 18px; color: #1a1a2e; margin: 18px 0 8px; font-weight: 700; }
.cr-section p, .cr-section li { font-size: 16px; line-height: 1.75; color: #444; }
.cr-section ul { padding-left: 20px; margin: 0 0 12px; }
.cr-section li { margin-bottom: 6px; }
.cr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 10px; }
.cr-card { background: #f5f9fd; border-left: 4px solid #1a73e8; border-radius: 10px; padding: 16px 18px; }
.cr-card h3 { margin-top: 0; font-size: 17px; }
.cr-card p { margin: 0; font-size: 15px; }
.cr-faq details { border: 1px solid #e3e9f0; border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.cr-faq summary { cursor: pointer; font-weight: 700; font-size: 16px; color: #074674; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cr-faq summary::-webkit-details-marker { display: none; }
.cr-faq summary::after { content: '+'; font-size: 22px; color: #1a73e8; flex-shrink: 0; }
.cr-faq details[open] summary::after { content: '−'; }
.cr-faq details p { margin: 10px 0 0; }
.cr-cta { margin: 34px 0 0; padding: 26px 24px; border-radius: 14px; background: linear-gradient(135deg, #074674, #1a73e8); color: #fff; text-align: center; }
.cr-cta h2 { color: #fff; font-size: 22px; margin-bottom: 8px; }
.cr-cta p { color: rgba(255,255,255,.9); margin-bottom: 16px; }
.cr-cta .btn { margin: 4px; color: #fff; }
.cr-cta .btn.secondary { background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.6); }
.cr-credenziali { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.cr-credenziali span { background: #eaf3ff; color: #074674; border-radius: 20px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
