@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;700;800&family=Urbanist:wght@400;500;600;700&display=swap');

:root {
    --demo17-ink: #121a2a;
    --demo17-main: #294d5f;
    --demo17-soft: #eef2f4;
    --demo17-gold: #f1c56b;
    --demo17-white: #ffffff;
}

.bg-success {
    background-color: var(--demo17-main) !important;
}

body {
    font-family: 'Urbanist', sans-serif;
    color: var(--demo17-ink);
    background:
        radial-gradient(circle at 0% 0%, rgba(41, 77, 95, 0.08), transparent 40%),
        radial-gradient(circle at 100% 20%, rgba(241, 197, 107, 0.18), transparent 36%),
        #f7f8fa;
}

h1,
h2,
h3,
h4,
h5,
.navbar-brand,
.btn-farmacia,
.btn-outline-farmacia {
    font-family: 'Nunito', sans-serif;
}

.navbar-farmacia {
    background: rgba(18, 26, 42, 0.9) !important;
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 34px rgba(10, 15, 24, 0.24);
}

.navbar-farmacia .navbar-brand {
    color: var(--demo17-white) !important;
    font-weight: 800;
}

.navbar-farmacia .nav-link {
    color: rgba(255, 255, 255, 0.86) !important;
    font-weight: 700;
}

.navbar-farmacia .nav-link.active,
.navbar-farmacia .nav-link:hover {
    color: var(--demo17-gold) !important;
}

.demo17-nav-cta {
    border: 1px solid rgba(241, 197, 107, 0.5);
    color: var(--demo17-white);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    text-decoration: none;
    font-weight: 700;
}

.demo17-nav-cta:hover {
    background: var(--demo17-gold);
    color: #172132;
}

.demo17-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #1a2538, #243d4f);
}

.demo17-hero .carousel-item {
    min-height: 560px;
}

.demo17-hero-slide {
    position: relative;
    min-height: 560px;
    background-size: cover;
    background-position: center;
}

.demo17-hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(12, 19, 32, 0.52), rgba(12, 19, 32, 0.14));
}

.demo17-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('images/slider-bg.png') center/cover no-repeat;
    opacity: 0.18;
    mix-blend-mode: screen;
}

.demo17-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.demo17-hero-badge {
    display: inline-block;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}

.demo17-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 4.25rem);
    line-height: 1.05;
    margin-bottom: 1rem;
}

.demo17-hero p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
}

.btn-farmacia,
.btn-success {
    background: var(--demo17-main) !important;
    border: 1px solid var(--demo17-main) !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-weight: 800;
    padding-inline: 1.2rem;
}

.btn-farmacia:hover,
.btn-success:hover {
    background: #1d3947 !important;
    border-color: #1d3947 !important;
}

.btn-outline-farmacia,
.btn-outline-success {
    border-radius: 999px !important;
    border: 1px solid var(--demo17-main) !important;
    color: var(--demo17-main) !important;
    font-weight: 800;
}

.btn-outline-farmacia:hover,
.btn-outline-success:hover {
    background: var(--demo17-main) !important;
    color: #fff !important;
}

.demo17-home-shell {
    margin-top: -90px;
    position: relative;
    z-index: 2;
}

.demo17-panel {
    background: #fff;
    border-radius: 32px;
    box-shadow: 0 22px 48px rgba(15, 24, 38, 0.14);
    padding: 2.1rem;
}

.demo17-section-title {
    font-size: clamp(1.7rem, 2.4vw, 2.9rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.demo17-sub {
    color: #556173;
}

.demo17-mini-card {
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 22px;
    padding: 1.25rem;
    height: 100%;
    text-align: center;
}

.demo17-mini-card img {
    width: 56px;
    height: 56px;
}

.demo17-mini-card i.bi {
    font-size: 2.2rem;
    color: var(--farmacia-green);
    display: block;
    margin-bottom: 0.5rem;
}

.demo17-mini-card h5 {
    font-size: 1.08rem;
    margin-top: 0.9rem;
    margin-bottom: 0.45rem;
}

.farma-info-section,
.farma-eventi-section {
    background: transparent !important;
}

.farma-info-card,
.farma-event-card {
    border-radius: 24px;
    border: 1px solid #e7ebf1;
    box-shadow: 0 12px 35px rgba(14, 23, 35, 0.09);
    overflow: hidden;
}

.farma-info-card .card-img-top,
.farma-event-card .card-img-top {
    height: 220px !important;
    object-fit: cover;
}

.farma-info-card .card-title,
.farma-event-card .card-title {
    color: #162238;
    font-weight: 800;
}

.farma-chip {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(41, 77, 95, 0.22);
    color: var(--demo17-main);
    background: rgba(41, 77, 95, 0.08);
}

.farma-chip-gold {
    border-color: rgba(241, 197, 107, 0.5);
    color: #7b5a1b;
    background: rgba(241, 197, 107, 0.24);
}

.footer {
    margin-top: 0 !important;
    background: linear-gradient(140deg, #101829, #263f52) !important;
}

.demo17-footer-call {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    padding: 1rem 1.2rem;
}

.demo17-footer-call img {
    width: 38px;
    height: 38px;
}

.form-control:focus,
.form-select:focus {
    border-color: #2c5164;
    box-shadow: 0 0 0 0.2rem rgba(44, 81, 100, 0.18);
}

.demo17-page-wrap {
    position: relative;
}

.demo17-page-wrap .demo17-page-card {
    border-radius: 24px;
    border: 1px solid #e7ebf1;
    box-shadow: 0 12px 32px rgba(14, 23, 35, 0.1);
    overflow: hidden;
}

.demo17-page-title {
    color: #162238;
    font-weight: 800;
    font-size: clamp(1.7rem, 2.2vw, 2.4rem);
}

.demo17-side-header {
    background: linear-gradient(140deg, #101829, #263f52) !important;
    color: #fff !important;
    border-bottom: 0 !important;
}

.demo17-side-icon {
    color: #2c5164 !important;
}

.demo17-page-wrap .contenuto-pagina,
.demo17-page-wrap .card-body p,
.demo17-page-wrap .card-body li {
    color: #3c4757;
    line-height: 1.65;
}

.demo17-page-wrap .card-body a {
    color: var(--demo17-main);
}

@media (max-width: 991px) {
    .demo17-nav-cta {
        display: inline-flex;
        margin-top: 0.7rem;
    }

    .demo17-hero,
    .demo17-hero .carousel-item,
    .demo17-hero-slide {
        min-height: 500px;
    }

    .demo17-home-shell {
        margin-top: -60px;
    }
}

@media (max-width: 767px) {
    .demo17-panel {
        padding: 1.4rem;
        border-radius: 20px;
    }

    .demo17-hero,
    .demo17-hero .carousel-item,
    .demo17-hero-slide {
        min-height: 460px;
    }

    .demo17-hero h1 {
        font-size: 2rem;
    }
}

/* ===== Farmacia dei Servizi ===== */
.farma-servizi-section {
    background: var(--demo17-soft, #eef2f4);
}
.farma-servizi-lista li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .95rem;
    line-height: 1.5;
}
.farma-servizi-lista li:last-child {
    border-bottom: none;
}
.farma-servizi-lista li i {
    color: var(--demo17-main, #294d5f);
    font-size: .85rem;
    flex-shrink: 0;
}
