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

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

/* Hero Title - Main tagline with shimmer effect */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
}

.hero-title-line {
    display: block;
    position: relative;
    background: linear-gradient(
        90deg,
        #2c5282 0%,
        #2c5282 45%,
        #4a7ab5 50%,
        #2c5282 55%,
        #2c5282 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s ease-in-out infinite;
}

.hero-title-line:last-child {
    background: linear-gradient(
        90deg,
        #1a365d 0%,
        #1a365d 45%,
        #2d4a6f 50%,
        #1a365d 55%,
        #1a365d 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 5s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 100% center;
    }
    50% {
        background-position: 0% center;
    }
}

/* Linea decorativa sotto il titolo */
.hero-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #1976d2, #42a5f5, #1976d2);
    background-size: 200% 100%;
    margin: 1rem auto 0;
    border-radius: 2px;
    animation: lineShimmer 3s ease-in-out infinite;
}

@keyframes lineShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.25rem;
    }
}

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

    .hero-title::after {
        width: 60px;
        height: 2px;
    }
}

/* Riduce movimento per chi lo preferisce */
@media (prefers-reduced-motion: reduce) {
    .hero-title-line,
    .hero-title::after {
        animation: none;
        background-position: 0% center;
    }
}

/* =====================================================
   GROUP LOGOS - Animated Sequence
   Loghi appaiono uno alla volta con zoom, poi si allineano in barra
   ===================================================== */

.group-logos-animated {
    position: relative;
    min-height: 180px;
}

/* Stage centrale per l'animazione zoom */
.logos-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.logo-animate {
    position: absolute;
    opacity: 0;
    transform: scale(0);
}

.logo-animate img {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

/* Animazione zoom sequenziale per ogni logo - più lenta e morbida */
.logo-animate[data-index="0"] {
    animation: logoZoomShow 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards,
               logoZoomHide 0.5s ease-in 1.8s forwards;
}

.logo-animate[data-index="1"] {
    animation: logoZoomShow 1.2s cubic-bezier(0.25, 1, 0.5, 1) 2.1s forwards,
               logoZoomHide 0.5s ease-in 3.6s forwards;
}

.logo-animate[data-index="2"] {
    animation: logoZoomShow 1.2s cubic-bezier(0.25, 1, 0.5, 1) 3.9s forwards,
               logoZoomHide 0.5s ease-in 5.4s forwards;
}

@keyframes logoZoomShow {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoZoomHide {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Barra finale con i loghi allineati - minimale e trasparente */
.logos-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    opacity: 0;
    transform: translateY(-10px);
    animation: barReveal 0.8s ease-out 5.8s forwards;
}

@keyframes barReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-bar-item {
    opacity: 0;
    transform: scale(0.5) translateY(20px);
}

.logo-bar-item img {
    height: 65px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
    transition: all 0.3s ease;
}

.logo-bar-item:hover img {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

/* Animazione ingresso nella barra - timing aggiornato */
.logo-bar-item[data-index="0"] {
    animation: logoBarEnter 0.6s cubic-bezier(0.25, 1, 0.5, 1) 6s forwards;
}

.logo-bar-item[data-index="1"] {
    animation: logoBarEnter 0.6s cubic-bezier(0.25, 1, 0.5, 1) 6.25s forwards;
}

.logo-bar-item[data-index="2"] {
    animation: logoBarEnter 0.6s cubic-bezier(0.25, 1, 0.5, 1) 6.5s forwards;
}

@keyframes logoBarEnter {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Separatore sottile tra loghi */
.logo-bar-item:not(:last-child) {
    position: relative;
    padding-right: 2.5rem;
}

.logo-bar-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg,
        transparent,
        rgba(25, 118, 210, 0.25),
        transparent
    );
}

/* Tagline animato */
.tagline-animated {
    text-align: center;
    margin-top: 1.25rem;
    opacity: 0;
    transform: translateY(10px);
    animation: taglineReveal 1s ease-out 7s forwards;
}

.tagline-animated span {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #42a5f5 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.tagline-animated span::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1976d2, transparent);
    animation: lineExpand 0.8s ease-out 7.5s forwards;
}

@keyframes taglineReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lineExpand {
    to {
        width: 200px;
    }
}

/* Responsive */
@media (max-width: 767.98px) {
    .group-logos-animated {
        min-height: 140px;
    }

    .logo-animate img {
        height: 80px;
        max-width: 160px;
    }

    .logos-bar {
        gap: 1.5rem;
    }

    .logo-bar-item img {
        height: 50px;
        max-width: 110px;
    }

    .logo-bar-item:not(:last-child) {
        padding-right: 1.5rem;
    }

    .logo-bar-item:not(:last-child)::after {
        height: 32px;
    }

    .tagline-animated span {
        font-size: 1.15rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 575.98px) {
    .group-logos-animated {
        min-height: 120px;
    }

    .logo-animate img {
        height: 60px;
        max-width: 120px;
    }

    .logos-bar {
        gap: 1rem;
    }

    .logo-bar-item img {
        height: 38px;
        max-width: 85px;
    }

    .logo-bar-item:not(:last-child) {
        padding-right: 1rem;
    }

    .logo-bar-item:not(:last-child)::after {
        height: 25px;
    }

    .tagline-animated span {
        font-size: 1rem;
    }

    .tagline-animated span::after {
        display: none;
    }
}

/* Preferisce movimento ridotto */
@media (prefers-reduced-motion: reduce) {
    .logo-animate,
    .logo-bar-item,
    .logos-bar,
    .tagline-animated {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .logos-stage {
        display: none;
    }
}

/* Hero section - warm gradient */
.hero-section {
    padding: 3.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);
}

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

.highlight-card {
    border-radius: 0.75rem;
    transition: transform 0.2s ease;
}

.highlight-card:hover {
    transform: translateY(-2px);
}

.highlight-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0dcaf0);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

/* 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, #0d6efd, #0dcaf0);
    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 #0d6efd !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 / carousel */
.hero-image {
    height: 400px;
    object-fit: cover;
}

#heroCarousel {
    border-radius: 0.75rem;
}

/* 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));
}

/* Trust banner */
.trust-banner {
    background: #f0f7ff;
    border-radius: 0.75rem;
}

/* 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;
}

/* Macro cards with background images (homepage) */
.macro-card-img {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.macro-card-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.25);
}

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

.macro-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.macro-card-medical .macro-card-overlay {
    background: linear-gradient(180deg, rgba(25, 118, 210, 0.85) 0%, rgba(13, 71, 161, 0.95) 100%);
}

.macro-card-physio .macro-card-overlay {
    background: linear-gradient(180deg, rgba(56, 142, 60, 0.85) 0%, rgba(27, 94, 32, 0.95) 100%);
}

.macro-card-content {
    position: relative;
    z-index: 3;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.macro-card-img h3 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: 'Playfair Display', Georgia, serif;
}

.macro-card-img p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.5;
}

.macro-card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    text-align: left;
    width: 100%;
}

.macro-card-list li {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 0;
    font-size: 0.95rem;
}

.macro-card-list i {
    color: #a5d6a7;
    margin-right: 0.5rem;
}

.macro-card-medical .macro-card-list i {
    color: #90caf9;
}

.macro-card-img .macro-icon {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 1.25rem;
}

/* 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;
    }

    .macro-card-img {
        min-height: 380px;
    }

    .macro-card-img h3 {
        font-size: 1.5rem;
    }

    .macro-card-content {
        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: #0d6efd;
    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);
}

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

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