/**
 * World Medicine - Public Frontend Styles
 */

/* Hero heading - distinctive font */
.hero-heading {
    font-family: 'Playfair Display', Georgia, serif;
}

/* =====================================================================
   Tema: variabili Bootstrap 5.3 sulla scala del brand
   Blu Visite  #1976d2 (profondo #1565c0, chiaro #42a5f5, tinte #e3f2fd / #bbdefb, bordo #90caf9)
   Verde Fisio #388e3c (profondo #2e7d32, scuro #1b5e20, chiaro #66bb6a, tinte #e8f5e9 / #c8e6c9, bordo #a5d6a7)
   Sostituisce i colori di default di Bootstrap (#0d6efd / #198754) su pulsanti,
   link, text-/bg-primary e -success, badge, anello di focus e controlli di form.
   I pulsanti verdi pieni usano il profondo #2e7d32 per il contrasto AA del testo bianco.
   ===================================================================== */
:root {
    --bs-primary: #1976d2;
    --bs-primary-rgb: 25, 118, 210;
    --bs-primary-text-emphasis: #1565c0;
    --bs-primary-bg-subtle: #e3f2fd;
    --bs-primary-border-subtle: #90caf9;
    --bs-success: #388e3c;
    --bs-success-rgb: 56, 142, 60;
    --bs-success-text-emphasis: #2e7d32;
    --bs-success-bg-subtle: #e8f5e9;
    --bs-success-border-subtle: #a5d6a7;
    --bs-link-color: #1976d2;
    --bs-link-color-rgb: 25, 118, 210;
    --bs-link-hover-color: #1565c0;
    --bs-link-hover-color-rgb: 21, 101, 192;
    --bs-focus-ring-color: rgba(25, 118, 210, 0.25);
    --bs-form-valid-color: #388e3c;
    --bs-form-valid-border-color: #388e3c;
}

.btn-primary {
    --bs-btn-bg: #1976d2;
    --bs-btn-border-color: #1976d2;
    --bs-btn-hover-bg: #1565c0;
    --bs-btn-hover-border-color: #1565c0;
    --bs-btn-focus-shadow-rgb: 60, 139, 217;
    --bs-btn-active-bg: #1565c0;
    --bs-btn-active-border-color: #1565c0;
    --bs-btn-disabled-bg: #1976d2;
    --bs-btn-disabled-border-color: #1976d2;
}

.btn-outline-primary {
    /* Testo e bordo in Blu Visite Profondo: 5,5:1 anche sui pannelli tinti (#1976d2 misurava 4,4:1 su #f8f9fa) */
    --bs-btn-color: #1565c0;
    --bs-btn-border-color: #1565c0;
    --bs-btn-hover-bg: #1976d2;
    --bs-btn-hover-border-color: #1976d2;
    --bs-btn-focus-shadow-rgb: 25, 118, 210;
    --bs-btn-active-bg: #1565c0;
    --bs-btn-active-border-color: #1565c0;
    --bs-btn-disabled-color: #1976d2;
    --bs-btn-disabled-border-color: #1976d2;
}

/* Pulsanti verdi pieni: riempimento Verde Fisio Profondo (#2e7d32, bianco 5.1:1 AA)
   perché il bianco su #388e3c misura 4.1:1; hover e stato attivo in #1b5e20. */
.btn-success {
    --bs-btn-bg: #2e7d32;
    --bs-btn-border-color: #2e7d32;
    --bs-btn-hover-bg: #1b5e20;
    --bs-btn-hover-border-color: #1b5e20;
    --bs-btn-focus-shadow-rgb: 77, 145, 81;
    --bs-btn-active-bg: #1b5e20;
    --bs-btn-active-border-color: #1b5e20;
    --bs-btn-disabled-bg: #2e7d32;
    --bs-btn-disabled-border-color: #2e7d32;
}

.btn-outline-success {
    --bs-btn-color: #2e7d32;
    --bs-btn-border-color: #2e7d32;
    --bs-btn-hover-bg: #2e7d32;
    --bs-btn-hover-border-color: #2e7d32;
    --bs-btn-focus-shadow-rgb: 46, 125, 50;
    --bs-btn-active-bg: #1b5e20;
    --bs-btn-active-border-color: #1b5e20;
    --bs-btn-disabled-color: #2e7d32;
    --bs-btn-disabled-border-color: #2e7d32;
}

.btn-link {
    --bs-btn-focus-shadow-rgb: 60, 139, 217;
}

.btn-close {
    --bs-btn-close-focus-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

/* Bootstrap compila questi colori senza variabili: bordo e anello di focus
   dei campi, spunta delle checkbox, focus da tastiera delle voci di menu. */
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #90caf9;
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.form-check-input:checked {
    background-color: #1976d2;
    border-color: #1976d2;
}

.nav-link:focus-visible {
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

/* Titolo h1 delle pagine istituzionali (Contatti, Chi Siamo, Sede, Medici):
   stesse dimensioni del titolo della scheda servizio. */
.hero-heading-page {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
}

@media (max-width: 767.98px) {
    .hero-heading-page {
        font-size: 1.75rem;
    }
}


/* Hero Title - tagline in tinta piatta, senza luccichio né linea decorativa
   (tolti il 2026-10-19: nel primo schermo nulla deve muoversi più del bivio) */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #2c5282;
}

.hero-title-line {
    display: block;
}

.hero-title-line:last-child {
    color: #1a365d;
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.85rem;
    }
}

/* =====================================================
   LOGHI DEL GRUPPO - striscia statica sotto le tessere di corsia
   (la coreografia animata è stata tolta il 2026-10-19: il bivio viene prima dei marchi)
   ===================================================== */

.logos-strip {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(26, 54, 93, 0.12);
}

.logos-strip .logos-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem 1.5rem;
}

.logos-strip .logo-bar-item img {
    height: 44px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.logos-strip .logos-tagline {
    margin-top: 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2c5282;
}

@media (max-width: 575.98px) {
    .logos-strip .logos-bar {
        gap: 0.5rem 1rem;
    }

    .logos-strip .logo-bar-item img {
        height: 36px;
        max-width: 96px;
    }

    .logos-strip .logos-tagline {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }
}
/* Hero section - warm gradient */
.hero-section {
    padding: 2.5rem 1rem;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 30%, #f0e6d3 70%, #fdf2e9 100%);
    border-radius: 1rem;
    margin-bottom: 2.5rem;
}

/* Category cards */
.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border-radius: 0.75rem;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

/* Search components */
.search-wrapper {
    position: relative;
}

.search-results-dropdown {
    position: absolute;
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
    width: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

/* Booking steps section */
.booking-steps-section {
    background: linear-gradient(135deg, #e8f4f8 0%, #f0f7ff 100%);
    border-radius: 1rem;
}

.booking-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.booking-step:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.booking-step-number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.booking-step-content h5 {
    margin-bottom: 0.5rem;
    color: #1a202c;
}

.booking-cta-box {
    display: inline-block;
    background: #fff;
    padding: 1.5rem 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Location cards */
.location-card {
    border-left: 4px solid #1976d2 !important;
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
}

/* CTA section */
.cta-section {
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
    border-radius: 1rem;
}

/* Service detail description */
.service-description p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

/* Hero image: la prima slide, ferma, nella colonna stretta a destra del bivio */
.hero-image {
    height: 400px;
    object-fit: cover;
}

/* 20 anni badge floating */
.badge-20anni {
    width: 90px;
    height: auto;
    bottom: -10px;
    right: -10px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Partners section */
.partners-section {
    background: #f8f9fa;
    border-radius: 1rem;
}

.partner-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Partner pills (convenzioni page) */
.partner-pill {
    background-color: #e3f2fd;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Convenzioni hero (redesign) */
.convenzioni-hero-redesign {
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e8f0 50%, #f0e6d3 100%);
    border-radius: 1rem;
}

.convenzioni-hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
}

/* Convenzioni section titles */
.convenzioni-section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 700;
    padding-left: 1rem;
    border-left: 4px solid;
}

.convenzioni-section-title-medical {
    border-color: #1976d2;
    color: #1565c0;
}

.convenzioni-section-title-physio {
    border-color: #388e3c;
    color: #2e7d32;
}

/* Insurance pills */
.insurance-pill {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.insurance-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.insurance-pill-medical {
    background: #e3f2fd;
    color: #1565c0;
}

.insurance-pill-medical:hover {
    background: #bbdefb;
}

.insurance-pill-physio {
    background: #e8f5e9;
    color: #2e7d32;
}

.insurance-pill-physio:hover {
    background: #c8e6c9;
}

.convenzioni-cta {
    background: linear-gradient(135deg, #e3f2fd, #e8f5e9);
    border-radius: 1rem;
}

/* Insurance pills responsive */
@media (max-width: 575.98px) {
    .insurance-pill {
        padding: 0.4rem 0.85rem;
        font-size: 0.8rem;
    }

    .insurance-pill-logo {
        height: 18px;
    }

    .convenzioni-section-title {
        font-size: 1.35rem;
    }
}

/* Navbar brand */
.navbar-brand img {
    border-radius: 4px;
}

/* Macro-category cards (homepage) */
.macro-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-height: 280px;
}

.macro-category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.macro-category-card h3 {
    color: #1a202c;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.macro-category-card p {
    color: #4a5568;
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Medical variant (blue) */
.macro-medical {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #90caf9;
}

.macro-medical:hover {
    border-color: #42a5f5;
}

/* Physiotherapy variant (green) */
.macro-physio {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #a5d6a7;
}

.macro-physio:hover {
    border-color: #66bb6a;
}

/* Macro icons */
.macro-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.macro-icon-medical {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.macro-icon-physio {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
}

/* Macro hero sections (landing pages) */
.macro-hero {
    padding: 2.5rem;
    border-radius: 1rem;
}

.macro-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
}

.macro-hero-medical {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e8f4f8 100%);
}

.macro-hero-physio {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #f1f8e9 100%);
}

/* Macro badges (location page) */
.macro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1rem;
    color: #fff;
}

.macro-badge-medical {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.macro-badge-physio {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
}

/* CTA section physio variant */
.cta-section-physio {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border-radius: 1rem;
}

/* Location cards with images */
.location-card-img {
    position: relative;
    border-radius: 1rem;
    min-height: 220px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card-img:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
}

.location-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.location-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
    z-index: 2;
}

.location-card-img .card-body {
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
}

/* Service cards with images */
.service-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.service-card-img-wrapper {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.08);
}

.service-card-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
}

.service-card-placeholder {
    height: 120px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #1976d2;
}

.service-card .card-title {
    font-weight: 600;
    color: #1a202c;
}

/* Service detail hero */
.service-hero {
    padding: 2.5rem;
    border-radius: 1rem;
}

.service-hero-medical {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #e8f4f8 100%);
}

.service-hero-physio {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #f1f8e9 100%);
}

.service-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: #1a202c;
}

.service-hero-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.service-hero-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.service-hero-image-badge {
    position: absolute;
    bottom: -15px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1976d2, #42a5f5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.service-hero-physio .service-hero-image-badge {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
}

.service-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.service-meta i {
    color: #1976d2;
}

.service-hero-physio .service-meta i {
    color: #388e3c;
}

/* Service description */
.service-description p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #4a5568;
}

.service-description strong {
    color: #1a202c;
}

/* Service CTA */
.service-cta {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
}

/* Doctor cards */
.doctor-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.doctor-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.doctor-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doctor-avatar img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.doctor-avatar i {
    font-size: 4rem;
    color: #1976d2;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .macro-category-card {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .macro-icon {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
    }

    .macro-hero {
        padding: 1.5rem;
    }


    .location-card-img {
        min-height: 260px;
    }

    .location-card-img .card-body {
        min-height: 260px;
    }

    .booking-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .booking-step-number {
        margin-bottom: 0.5rem;
    }

    .booking-cta-box {
        padding: 1.25rem 1.5rem;
    }

    /* Service responsive */
    .service-hero {
        padding: 1.5rem;
    }

    .service-hero-title {
        font-size: 1.75rem;
    }

    .service-hero-image {
        height: 220px;
    }

    .service-card-img-wrapper {
        height: 150px;
    }

    .service-meta {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* =====================================================
   POLO PEDIATRICO BANNER - Homepage
   ===================================================== */

.pediatric-banner {
    background: linear-gradient(135deg, #e8f4fd 0%, #fce4ec 50%, #fff8e1 100%);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.pediatric-banner:hover {
    border-color: #64b5f6;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(33, 150, 243, 0.15);
}

.pediatric-banner::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
}

.pediatric-banner::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 15%;
    width: 80px;
    height: 80px;
    background: rgba(233, 30, 99, 0.08);
    border-radius: 50%;
}

.pediatric-banner h3 {
    font-family: 'Playfair Display', serif;
    color: #1565c0;
    margin: 0;
}

.pediatric-banner p {
    color: #5d4037;
}

.pediatric-badge {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ffb74d, #ffa726);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.pediatric-tag {
    background: rgba(255, 255, 255, 0.8);
    color: #1976d2;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 767.98px) {
    .pediatric-banner {
        padding: 1.5rem;
        text-align: center;
    }

    .pediatric-banner h3 {
        font-size: 1.3rem;
    }

    .pediatric-badge {
        margin: 0 auto 0.5rem;
    }

    .d-flex.align-items-center.mb-2 {
        flex-direction: column;
    }

    .pediatric-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }
}

/* =====================================================
   LOCATION PAGE - Category Choice Buttons
   ===================================================== */

.btn-category-choice {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-category-choice:hover {
    border-color: #1976d2;
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.1);
}

.category-choice-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}

.category-choice-medical {
    background: linear-gradient(135deg, #1976d2, #42a5f5);
}

.category-choice-physio {
    background: linear-gradient(135deg, #388e3c, #66bb6a);
}

@media (max-width: 575.98px) {
    .btn-category-choice {
        padding: 1.5rem 1rem !important;
    }

    .btn-category-choice h5 {
        font-size: 1rem;
    }

    .category-choice-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* =====================================================
   LOCATION CARDS - Contact labels
   ===================================================== */

.location-card-header {
    flex-shrink: 0;
}

.location-card-contacts {
    flex-shrink: 0;
}

.location-card-contacts .contact-label {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Pulsanti di contatto nelle card sede: bersagli touch da almeno 44 px */
.location-card-contacts .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

@media (max-width: 575.98px) {
    .location-card-contacts .btn {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .location-card-contacts .contact-label {
        font-size: 0.8rem !important;
    }
}

/* ============================================================
   Orari straordinari (cartello mensile in homepage)
   ============================================================ */
/* Pannello del cartello: tinta ghiaccio senza bordo né ombra, come gli altri pannelli della home;
   le card sono i blocchi per centro (niente doppia cornice). */
.special-hours-card {
    background: #f0f7ff;
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

.special-hours-head {
    margin-bottom: 1.75rem;
}

.special-hours-title {
    color: #1F3864;
    font-weight: 700;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.special-hours-note {
    display: inline-block;
    color: #B22222;
    font-weight: 600;
    background: #f7e4e4;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.95rem;
}

.special-hours-center {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.special-hours-center-head {
    background: #1F3864;
    color: #fff;
    padding: 0.9rem 1rem;
    text-align: center;
}

.special-hours-center-name {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
}

.special-hours-center-addr {
    font-size: 0.8rem;
    color: #cfd9ea;
    margin-top: 0.15rem;
}

.special-hours-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0.75rem 0.75rem;
}

.special-hours-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    margin-top: 0.4rem;
    background: #EAF1F8;
    border-radius: 8px;
}

.special-hours-row .shr-period {
    color: #1F3864;
    font-weight: 600;
    font-size: 0.98rem;
}

.special-hours-row .shr-hours {
    color: #1F5F9E; /* 5,8:1 su #EAF1F8; il precedente #2E75B6 misurava 4,25:1 */
    font-weight: 700;
    font-size: 0.98rem;
    white-space: nowrap;
}

.special-hours-row.is-closed {
    background: #F7E4E4;
}

.special-hours-row.is-closed .shr-hours {
    color: #B22222;
}

@media (max-width: 575.98px) {
    .special-hours-title { font-size: 1.3rem; }
    .special-hours-card { padding: 1.5rem 1rem; }
}

/* ============================================================
   Servizi in evidenza (homepage)
   Card quadrate stile post social: immagine 1:1 + fascia testo
   ============================================================ */

.featured-services-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a365d;
    letter-spacing: -0.01em;
}

.featured-services-sub {
    color: #6c8299;
    font-size: 0.95rem;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.featured-card {
    display: block;
    background: #fff;
    border: 1px solid #e3ecf5;
    border-radius: 0.9rem;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 1.5rem rgba(26, 54, 93, 0.14);
    border-color: #bcd6ee;
}

.featured-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #eef4fa;
    overflow: hidden;
}

.featured-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.featured-card:hover .featured-card-img img {
    transform: scale(1.05);
}

.featured-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9bb8d4;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #eef4fa 0%, #dde9f5 100%);
}

.featured-card-body {
    padding: 0.75rem 0.85rem 0.9rem;
    text-align: center;
}

.featured-card-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
    color: #1a365d;
}

.featured-card-doctor {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.3;
    color: #5a7390; /* 4,7:1 su bianco; #6c8299 misurava 3,97:1 */
}

@media (max-width: 991.98px) {
    .featured-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 575.98px) {
    .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .featured-services-title { font-size: 1.35rem; }
    .featured-card-name { font-size: 0.88rem; }
    .featured-card-doctor { font-size: 0.75rem; }
}

/* ============================================================
   Homepage: hero con tessere di corsia, sezioni e percorso integrato
   (layout 2026-10-19: il bivio nel primo schermo)
   ============================================================ */

/* Hero: sottotitolo e riga di aiuto, leggibili sull'intero gradiente */
.hero-lead {
    color: #2c5282;
}

.hero-helper {
    color: #4a5568;
    font-size: 0.9rem;
}

/* Tessere di corsia: la scelta Visite / Fisioterapia nel primo schermo,
   con il canale telefono a un tocco (apre la modale al passo delle sedi) */
.lane-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.lane-tile {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lane-tile:hover,
.lane-tile:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.1);
    background: #fff;
}

.lane-tile-medical { border-color: #90caf9; }
.lane-tile-physio  { border-color: #a5d6a7; }

.lane-tile-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.7rem 0.85rem;
    color: #1a202c;
    text-decoration: none;
}

.lane-tile-main:hover,
.lane-tile-main:focus-visible {
    color: #1a202c;
}

.lane-tile-main:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 0.25rem var(--bs-focus-ring-color);
}

.lane-tile-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
}

.lane-tile-medical .lane-tile-icon { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.lane-tile-physio  .lane-tile-icon { background: linear-gradient(135deg, #388e3c, #66bb6a); }

.lane-tile-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.lane-tile-text strong {
    font-size: 1.05rem;
    font-weight: 600;
    text-wrap: balance;
}

.lane-tile-text small {
    color: #4a5568;
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.lane-tile-call {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-width: 68px;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-left: 1px solid;
    background: transparent;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.lane-tile-call i {
    font-size: 1.25rem;
}

.lane-tile-medical .lane-tile-call { color: #1565c0; border-left-color: #bbdefb; }
.lane-tile-physio  .lane-tile-call { color: #2e7d32; border-left-color: #c8e6c9; }

.lane-tile-medical .lane-tile-call:hover,
.lane-tile-medical .lane-tile-call:focus-visible { background: #e3f2fd; }
.lane-tile-physio  .lane-tile-call:hover,
.lane-tile-physio  .lane-tile-call:focus-visible { background: #e8f5e9; }

.lane-tile-call:focus-visible {
    outline: 0;
    box-shadow: inset 0 0 0 0.25rem var(--bs-focus-ring-color);
}

/* Il sottotitolo delle tessere resta visibile a ogni larghezza: la colonna dell'hero è a 7/12 da 992 px */

/* Su smartphone le tessere stanno una sotto l'altra, a tutta larghezza */
@media (max-width: 575.98px) {
    .lane-tiles {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .lane-tile-call {
        min-width: 64px;
    }
}
/* Sezioni della home: ritmo 64 px tra blocchi, titoli in Playfair */
.home-section {
    margin-bottom: 4rem;
}

.home-section-head {
    margin-bottom: 1.75rem;
}

.home-section-title {
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1a202c;
    text-wrap: balance;
}

.home-section-sub {
    color: #4a5568;
    font-size: 1.05rem;
}

/* Percorso integrato: quattro tappe collegate, dal blu delle visite al verde della fisioterapia */
.percorso-section {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 50%, #f1f8e9 100%);
    border-radius: 1rem;
    padding: 3rem 1.5rem;
}

.percorso-lead {
    max-width: 44rem;
}

.percorso-steps {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    max-width: 60rem;
}

.percorso-steps::before {
    content: '';
    position: absolute;
    top: 27px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1976d2 0%, #42a5f5 45%, #66bb6a 55%, #388e3c 100%);
}

.percorso-step {
    position: relative;
    text-align: center;
    padding: 0 0.5rem;
}

.percorso-step-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.9rem;
    box-shadow: 0 0 0 6px #fff;
}

.percorso-step-medical .percorso-step-icon { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.percorso-step-physio  .percorso-step-icon { background: linear-gradient(135deg, #388e3c, #66bb6a); }

.percorso-step-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 0.35rem;
}

.percorso-step-text {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.percorso-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-top: 2.25rem;
    color: #4a5568;
    font-size: 0.95rem;
}

.percorso-facts span {
    white-space: nowrap;
}

.percorso-facts b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a365d;
    margin-right: 0.15rem;
}

@media (max-width: 575.98px) {
    .percorso-facts {
        gap: 0.35rem 1.1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 991.98px) {
    .percorso-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.5rem;
    }

    .percorso-steps::before {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 2rem 0.75rem;
    }

    .hero-image {
        height: 220px;
    }

    .home-section {
        margin-bottom: 3rem;
    }

    .home-section-head {
        margin-bottom: 1.25rem;
    }
}

@media (max-width: 575.98px) {

    .percorso-section {
        padding: 2rem 1rem;
    }

    .percorso-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .percorso-step {
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 0.9rem;
        text-align: left;
        padding: 0;
    }

    .percorso-step-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        grid-row: 1 / span 2;
        margin-bottom: 0;
        box-shadow: none;
    }

    .percorso-step-title {
        align-self: end;
        margin-bottom: 0.15rem;
    }
}

/* ============================================================
   Accessibilità e mobile (audit 2026-10-19)
   ============================================================ */

/* Skip link: invisibile finché non riceve il focus da tastiera */
.skip-link:focus,
.skip-link:focus-visible {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: #fff;
    color: #1565c0;
    border-radius: 8px;
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.15), 0 0 0 0.25rem var(--bs-focus-ring-color);
    text-decoration: none;
    font-weight: 600;
    outline: 0;
}

main:focus {
    outline: 0;
}

/* Footer: testo secondario leggibile sul fondo scuro (7,9:1 invece di 3,3:1) */
footer.bg-dark .text-secondary {
    color: #adb5bd !important;
}

footer.bg-dark a.text-secondary:hover,
footer.bg-dark a.text-secondary:focus-visible {
    color: #fff !important;
}

/* Barra CTA mobile: bersagli da 44 px e spazio per l'icona cookie */
.cta-bar .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Icona di tarteaucitron: in basso a destra a desktop; su mobile non compare
   (il link "Gestisci Cookie" nel footer resta sempre disponibile) */
@media (max-width: 767.98px) {
    #tarteaucitronIcon {
        display: none !important;
    }
}

/* Indicatore di passo nelle modali di contatto */
.cta-step-label {
    margin: 0 0 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1565c0;
}

/* Ricerca: opzione evidenziata da tastiera */
.search-results-dropdown .list-group-item.active {
    background: #e3f2fd;
    border-color: #e3f2fd;
    color: #1a202c;
}

.search-results-dropdown .list-group-item.active .text-muted {
    color: #4a5568 !important;
}

/* Ancore sotto la navbar fissa */
#sedi {
    scroll-margin-top: 6rem;
}

/* Testo secondario sulle card sede con fotografia e nei passi della modale */
.location-card-meta {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
}

.cta-loc-meta {
    color: inherit;
    font-weight: 400;
}

/* ============================================================
   Corsia nella modale di contatto e hero mobile (P2, 2026-10-19)
   ============================================================ */

/* Eco della corsia scelta nel passo 2 */
.cta-lane-echo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    color: #4a5568;
}

.cta-lane-echo:empty {
    display: none;
}

.cta-lane-echo .badge {
    --bs-success-rgb: 46, 125, 50; /* Verde Fisio Profondo: il bianco sul verde base misurava 4,1:1 */
    font-size: 0.78rem;
    padding: 0.35em 0.6em;
}

/* Medaglione della corsia nel passo 3, al posto di una spunta che non conferma nulla */
.cta-step-medallion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
}

.cta-step-medallion.is-medical { background: linear-gradient(135deg, #1976d2, #42a5f5); }
.cta-step-medallion.is-physio  { background: linear-gradient(135deg, #388e3c, #66bb6a); }


/* ============================================================
   Aree per corsia, chip di sede e passaggio di consegne (P2, 2026-10-19)
   ============================================================ */

/* "Cosa curiamo": le aree di cura come pillole, blu per le visite e verdi per la fisioterapia */
.aree-section {
    margin-top: -0.5rem;
}

.aree-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 0.75rem;
    max-width: 62rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.area-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.5rem 1.1rem 0.5rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.area-chip i {
    font-size: 1.05rem;
}

.area-chip b {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-left: 0.1rem;
}

.area-chip-medical {
    background: #e3f2fd;
    border-color: #bbdefb;
    color: #1565c0;
}

.area-chip-physio {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #2e7d32;
}

.area-chip:hover,
.area-chip:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.area-chip-medical:hover,
.area-chip-medical:focus-visible {
    background: #bbdefb;
    color: #0d47a1;
}

.area-chip-physio:hover,
.area-chip-physio:focus-visible {
    background: #c8e6c9;
    color: #1b5e20;
}

.area-chip:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.25rem var(--bs-focus-ring-color);
}

@media (max-width: 575.98px) {
    .aree-chips {
        gap: 0.5rem;
    }

    .area-chip {
        font-size: 0.9rem;
        padding: 0.45rem 0.95rem 0.45rem 0.85rem;
    }
}

/* I fatti del percorso sono link: numero in Playfair, sottolineatura blu che si accende al passaggio */
.percorso-facts a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(25, 118, 210, 0.35);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    white-space: nowrap;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.percorso-facts a:hover,
.percorso-facts a:focus-visible {
    color: #1a365d;
    text-decoration-color: #1976d2;
}

/* Chip delle corsie erogate da una sede: card, modale (passo 2) e pagina contatti */
.loc-lanes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.4rem;
    margin-top: 0.5rem;
}

.loc-lane-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
}

.loc-lane-chip b {
    font-weight: 700;
}

.loc-lane-chip-medical,
.loc-lane-chip-pediatric {
    background: #e3f2fd;
    color: #1565c0;
}

.loc-lane-chip-physio {
    background: #e8f5e9;
    color: #2e7d32;
}

/* La corsia scelta viene per prima e porta un filetto; le altre restano neutre */
.loc-lane-chip.is-active {
    order: -1;
    box-shadow: inset 0 0 0 1px currentColor;
}

.loc-lane-chip.is-muted {
    background: #edf2f7;
    color: #4a5568;
}

.loc-lanes-on-dark .loc-lane-chip {
    background: rgba(255, 255, 255, 0.92);
}

.btn .loc-lanes {
    margin-top: 0.4rem;
}

/* Pannello di consegna sotto il titolo di Contatti: ramo, sede qualificata e numero del ramo */
.handover {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.9rem;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #f0f7ff;
}

.handover-physio {
    background: #f1f8e9;
}

.handover-label {
    font-size: 0.9rem;
    color: #4a5568;
}

.handover .badge {
    font-size: 0.8rem;
    padding: 0.4em 0.65em;
}

.handover-loc {
    font-size: 0.95rem;
    color: #1a202c;
}

.handover .loc-lanes {
    margin-top: 0;
}

.handover-call {
    min-height: 36px;
}

.handover-change {
    margin-left: auto;
    font-size: 0.9rem;
    color: #1565c0;
}

@media (max-width: 575.98px) {
    .handover-change {
        margin-left: 0;
    }
}

/* Su smartphone il pulsante "Chiama" del pannello di consegna raggiunge il bersaglio da 44 px */
@media (max-width: 575.98px) {
    .handover-call {
        min-height: 44px;
    }
}
