:root {
    --pink-light: #f4d5dd;
    --pink-mid:   #e8b4c2;
    --black:      #111111;
    --dark-grey:  #333333;
    --white:      #ffffff;
    --font:       'Poppins', sans-serif;
    --nav-h:      68px;
}

* { box-sizing: border-box; }

body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--dark-grey);
    background: #fff;
    padding-top: var(--nav-h);
}

h1, h2, h3, h4 { font-family: var(--font); color: var(--black); line-height: 1.25; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
p  { margin-bottom: 1rem; }

section { padding: 80px 0; }
@media (max-width: 767px) { section { padding: 48px 0; } }

.sec-title { margin-bottom: 56px; }
.sec-title h2 { margin-bottom: 16px; }
.sec-title p  { font-size: 15px; max-width: 680px; margin: 0 auto; }

/* ══════════════════════════════════
   NAVBAR
══════════════════════════════════ */
#main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    height: var(--nav-h);
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(228,180,194,0.25);
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
#main-nav.scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: 0 2px 24px rgba(0,0,0,0.08);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand */
.nav-brand {
    font-size: 15px;
    font-weight: 700;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
}
.nav-brand::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: var(--pink-mid);
    transition: width 0.3s ease;
    position: absolute;
    bottom: -3px; left: 0;
}
.nav-brand:hover::after { width: 100%; }

/* Links list */
.nav-links {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links .nav-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark-grey);
    text-decoration: none;
    padding: 7px 15px;
    border-radius: 100px;
    letter-spacing: 0.01em;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    background: var(--pink-light);
    color: var(--black);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(16px);
        padding: 12px 16px 20px;
        border-bottom: 1px solid rgba(228,180,194,0.4);
        transform: translateY(-110%);
        transition: transform 0.35s cubic-bezier(.22,.68,0,1.2);
        pointer-events: none;
    }
    .nav-links.open { transform: translateY(0); pointer-events: all; }
    .nav-links .nav-link { padding: 13px 16px; border-radius: 8px; font-size: 14px; }
}

/* ══════════════════════════════════
   1. HERO
══════════════════════════════════ */
#hero { background-color: var(--pink-light); padding: 0; overflow: hidden; }
#hero .hero-img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; display: block; }
#hero .hero-text {
    padding: 60px 56px;
    display: flex; flex-direction: column; justify-content: center; height: 100%;
}
#hero .hero-text h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 20px; }
#hero .hero-text p  { font-size: 15px; margin-bottom: 32px; }
#hero .btn-hero {
    display: inline-block;
    padding: 14px 36px;
    border: 1.5px solid var(--black);
    background: var(--white);
    color: var(--black);
    font-family: var(--font);
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: background 0.2s, color 0.2s;
    align-self: flex-start;
}
#hero .btn-hero:hover { background: var(--black); color: var(--white); }
@media (max-width: 767px) { #hero .hero-text { padding: 40px 24px; } }

/* ══════════════════════════════════
   2. HPV INFO
══════════════════════════════════ */
#hpv-info { background: #fff; padding-top: 80px; padding-bottom: 0; }
#hpv-info .intro-text { max-width: 780px; margin: 0 auto 64px; text-align: center; }

.alt-row { display: flex; align-items: stretch; }
.alt-row .img-col { flex: 0 0 50%; max-width: 50%; }
.alt-row .img-col img { width: 100%; height: 100%; object-fit: cover; display: block; }
.alt-row .txt-col { flex: 0 0 50%; max-width: 50%; display: flex; align-items: center; padding: 48px 52px; }
.alt-row .txt-col.bg-white { background: var(--white); }
.alt-row .txt-col.bg-pink  { background: var(--pink-light); }
.alt-row .txt-col ul { padding-left: 20px; margin-bottom: 0; }
.alt-row .txt-col ul li { margin-bottom: 10px; font-size: 14px; }
.alt-row .txt-col p { font-size: 14px; }

@media (max-width: 767px) {
    .alt-row { flex-direction: column; }
    .alt-row .img-col,
    .alt-row .txt-col { flex: 0 0 100%; max-width: 100%; }
    .alt-row .img-col { min-height: 260px; }
    .alt-row .txt-col { padding: 32px 24px; }
    .alt-row.row-reverse { flex-direction: column; }
}

/* ══════════════════════════════════
   3. TEST HPV URINE
══════════════════════════════════ */
#test-hpv { background: var(--pink-light); }
#test-hpv .feature-card {
    background: var(--white);
    padding: 36px 28px; height: 100%; text-align: center;
    border-top: 3px solid var(--pink-mid);
}
#test-hpv .feature-card h3 { margin-bottom: 10px; }
#test-hpv .feature-card p  { font-size: 14px; margin-bottom: 0; }
#test-hpv .disclaimer { font-size: 13px; font-style: italic; margin-top: 32px; text-align: center; }

/* ══════════════════════════════════
   4. PROFESSIONALS
══════════════════════════════════ */
#professionals { background: #fff; }
#professionals .pro-img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
#professionals .pro-text { padding: 48px 52px; }
#professionals .pro-text ul { padding-left: 20px; margin-bottom: 1.2rem; }
#professionals .pro-text ul li { margin-bottom: 8px; font-size: 14px; }
#professionals .pro-text p { font-size: 14px; }
#professionals .pro-text a { color: var(--black); font-weight: 500; text-decoration: none; }
#professionals .pro-text a:hover { text-decoration: underline; }
#professionals .dept-block { margin-bottom: 20px; }
#professionals .dept-label {
    font-weight: 600; font-size: 13px; letter-spacing: 0.06em;
    text-transform: uppercase; margin-bottom: 4px; display: block;
}
@media (max-width: 767px) { #professionals .pro-text { padding: 32px 24px; } }

/* ══════════════════════════════════
   Animations
══════════════════════════════════ */
@keyframes fadeUp      { from { opacity:0; transform:translateY(40px);  } 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 fadeScale   { from { opacity:0; transform:scale(0.93);       } to { opacity:1; transform:scale(1);      } }
@keyframes fadeIn      { from { opacity:0; }                              to { opacity:1; }                          }

.anim-fade-up, .anim-fade-left, .anim-fade-right, .anim-fade-scale, .anim-fade-in { opacity: 0; }

.anim-fade-up.visible    { animation: fadeUp      0.75s cubic-bezier(.22,.68,0,1.2) forwards; }
.anim-fade-left.visible  { animation: fadeInLeft  0.75s cubic-bezier(.22,.68,0,1.2) forwards; }
.anim-fade-right.visible { animation: fadeInRight 0.75s cubic-bezier(.22,.68,0,1.2) forwards; }
.anim-fade-scale.visible { animation: fadeScale   0.7s  cubic-bezier(.22,.68,0,1.2) forwards; }
.anim-fade-in.visible    { animation: fadeIn      0.8s  ease                        forwards; }

.stagger > *:nth-child(1) { animation-delay: 0ms;   }
.stagger > *:nth-child(2) { animation-delay: 120ms; }
.stagger > *:nth-child(3) { animation-delay: 240ms; }

@media (max-width: 767px) {
    .anim-fade-right.visible {
        animation-name: fadeUp;
    }
}

#main-footer {
    background: var(--pink-light);
    color: var(--dark-grey);
    font-family: var(--font);
    font-size: 13px;
    line-height: 1.6;
    padding: 36px 0;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

/* ── Dati aziendali ── */
.footer-company { display: flex; flex-direction: column; gap: 2px; }
.footer-company p { margin: 0; }
.footer-brand {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-grey);
    margin-bottom: 4px !important;
}

/* ── Link legali ── */
.footer-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.footer-link {
    color: var(--dark-grey);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-link:hover { color: var(--pink-mid); }
.footer-sep { color: rgba(255,255,255,0.2); }

/* ── Mobile ── */
@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 0 24px;
    }
}
/* ── Sezione video ── */
#come-funziona {
    padding: 80px 0;
    background: #fff;
}

.video-wrap {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16 / 9;
}

.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}
/* ── Sezione ── */
#store-locator {
    padding: 80px 0 100px;
    background: #fafafa;
}
#store-locator .sec-title h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #1a1a2e;
    margin-bottom: .5rem;
}
#store-locator .sec-title p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2.5rem;
}

/* ── Filtri ── */
.sl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 1rem;
}
.sl-search-wrap {
    position: relative;
    flex: 1 1 260px;
    max-width: 420px;
}
.sl-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #999;
    pointer-events: none;
}
.sl-search {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
    font-size: .92rem;
    background: #fff;
    transition: border-color .25s, box-shadow .25s;
    outline: none;
    color: #333;
}
.sl-search:focus {
    border-color: #e8b4c2;
    box-shadow: 0 0 0 4px rgba(192,87,106,.12);
}
.sl-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.sl-pill {
    padding: 9px 20px;
    border-radius: 50px;
    border: 1.5px solid #ddd;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    transition: all .2s;
}
.sl-pill:hover { border-color: #e8b4c2; color: #e8b4c2; }
.sl-pill.active {
    background: #e8b4c2;
    border-color: #e8b4c2;
    color: #fff;
}

/* ── Contatore ── */
.sl-count {
    font-family: 'Poppins', sans-serif;
    font-size: .85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

/* ── Layout griglia ── */
.sl-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    grid-template-rows: auto;
    gap: 28px;
    align-items: start;
}
@media (max-width: 900px) {
    .sl-layout { grid-template-columns: 1fr; }
}

/* ── Mappa ── */
.sl-map-wrap {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 32px rgba(0,0,0,.1);
    position: sticky;
    top: 80px;
}
#sl-map {
    width: 100%;
    height: 540px;
}

/* ── Lista farmacie ── */
.sl-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 580px;
    overflow-y: auto;
    padding-right: 4px;
    padding-top: 5px;
    scrollbar-width: thin;
    scrollbar-color: #e0b0b8 transparent;
}
.sl-list::-webkit-scrollbar { width: 5px; }
.sl-list::-webkit-scrollbar-thumb { background: #e0b0b8; border-radius: 10px; }

/* ── Scheda farmacia ── */
.sl-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    border: 1.5px solid #f0e0e3;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    cursor: pointer;
}
.sl-card:hover,
.sl-card.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(192,87,106,.18);
    border-color: #e8b4c2;
}
.sl-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.sl-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #e8b4c2, #e07b8a);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sl-card-icon svg {
    width: 18px;
    height: 18px;
    color: #fff;
}
.sl-card-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .88rem;
    color: #1a1a2e;
    line-height: 1.35;
    text-transform: capitalize;
}
.sl-card-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: .82rem;
    color: #666;
}
.sl-card-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sl-card-info svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: #e8b4c2;
}
.sl-card-info a {
    color: #e8b4c2;
    text-decoration: none;
    font-weight: 500;
}
.sl-card-info a:hover { text-decoration: underline; }
.sl-region-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    color: #e8b4c2;
    background: #fce8ec;
    margin-top: 8px;
    font-family: 'Poppins', sans-serif;
}

/* ── Nessun risultato ── */
.sl-empty {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Poppins', sans-serif;
    color: #999;
    font-size: .95rem;
}

/* ── Popup Leaflet ── */
.sl-popup { font-family: 'Poppins', sans-serif; }
.sl-popup strong { display: block; font-size: .88rem; color: #1a1a2e; margin-bottom: 4px; }
.sl-popup span { font-size: .8rem; color: #666; }

/* ── Marker personalizzato ── */
.sl-marker {
    width: 32px;
    height: 32px;
    border-radius: 50% 50% 50% 0;
    background: #e8b4c2;
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,.25);
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
}
.sl-marker.highlighted {
    background: #8e1a2e;
    width: 38px;
    height: 38px;
    z-index: 1000 !important;
}
