/* ==========================================================================
   Farmacia Perroni — Home page design
   Direzione "Clinica & affidabile" — handoff Claude Design 2026-07-25
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ---- Bottoni globali ---- */
.wp-block-button__link {
    padding: 14px 26px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14.5px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.is-style-fill .wp-block-button__link {
    background: var(--fp-primary);
    color: #fff;
}

.is-style-fill .wp-block-button__link:hover {
    background: var(--fp-secondary);
}

.is-style-outline .wp-block-button__link {
    background: #fff;
    border: 1.5px solid var(--fp-cta-border);
    color: var(--fp-secondary);
}

.is-style-outline .wp-block-button__link:hover {
    background: var(--fp-light);
}

.is-style-whatsapp .wp-block-button__link {
    background: var(--fp-wa-bg);
    border: 1.5px solid var(--fp-wa-border);
    color: var(--fp-wa);
}

.is-style-whatsapp .wp-block-button__link:hover {
    background: #d5f0e0;
}

@media (max-width: 768px) {
    .wp-block-button__link {
        border-radius: 12px;
    }
}

/* ---- Sezioni generiche ---- */
.fp-section {
    padding: 4.5rem 1.5rem;
}

.fp-section h2.wp-block-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--fp-secondary);
    padding-bottom: 0.9rem;
    margin-bottom: 2rem;
}

.fp-section h2.wp-block-heading::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    background: var(--fp-primary);
    margin: 0.9rem auto 0;
    border-radius: 2px;
}

.fp-section-lead {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    color: var(--fp-muted);
    margin-bottom: 2.5rem !important;
}

.fp-narrow {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.fp-narrow p {
    color: var(--fp-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fp-section--chi-siamo {
    background: #ffffff;
}

/* ==========================================================================
   Trust strip — solo desktop (mobile mostra stat-mini dentro l'hero)
   ========================================================================== */
.fp-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--fp-secondary);
    color: #dff0f3;
}

.fp-trust-strip > div {
    padding: 16px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .14);
}

.fp-trust-strip > div:last-child {
    border-right: none;
}

.fp-trust-number {
    font-size: 20px;
    font-weight: 700;
}

.fp-trust-label {
    font-size: 11px;
    opacity: .82;
}

@media (max-width: 768px) {
    .fp-trust-strip {
        display: none;
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.fp-hero {
    background: var(--fp-hero-bg);
    padding: 52px 44px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.fp-hero-icon {
    width: 52px;
    height: 52px;
    display: block;
}

.fp-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    border-radius: 6px;
    background: var(--fp-chip-bg);
    color: var(--fp-secondary);
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .3px;
}

.fp-hero h1.wp-block-heading {
    font-size: 42px;
    line-height: 1.1;
    letter-spacing: -1px;
    max-width: 20ch;
    margin: 0;
    color: var(--fp-text);
}

.fp-hero-lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--fp-muted);
    max-width: 46ch;
    margin: 0 auto !important;
}

.fp-hero .wp-block-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 4px;
}

/* Blocchi mobile-only, nascosti su desktop */
.fp-stat-mini-row,
.fp-offer-early {
    display: none;
}

@media (max-width: 768px) {
    .fp-hero {
        text-align: left;
        align-items: flex-start;
        padding: 22px 18px 32px;
        gap: 16px;
    }

    .fp-hero-icon {
        display: none;
    }

    .fp-hero h1.wp-block-heading {
        font-size: 29px;
        letter-spacing: -.6px;
        max-width: none;
    }

    .fp-hero-lead {
        font-size: 14.5px;
        margin: 0 !important;
    }

    .fp-hero .wp-block-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .fp-hero .wp-block-button {
        width: 100%;
    }

    .fp-hero .wp-block-button__link {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }

    .fp-stat-mini-row {
        display: flex;
        gap: 8px;
        width: 100%;
        margin-top: 2px;
    }

    .fp-stat-mini-row > div {
        flex: 1;
        text-align: center;
        background: #fff;
        border: 1px solid var(--fp-border);
        border-radius: 10px;
        padding: 10px 4px;
    }

    .fp-stat-mini-number {
        font-size: 17px;
        font-weight: 700;
        color: var(--fp-secondary);
    }

    .fp-stat-mini-label {
        font-size: 10px;
        color: var(--fp-muted);
    }

    .fp-offer-early {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: var(--fp-secondary);
        border-radius: 14px;
        padding: 18px;
        color: #fff;
        width: 100%;
        text-decoration: none;
    }

    .fp-offer-early-label {
        font-size: 10px;
        font-weight: 700;
        opacity: .8;
        letter-spacing: .5px;
    }

    .fp-offer-early-title {
        font-weight: 700;
        font-size: 15px;
        line-height: 1.2;
        margin-top: 3px;
    }

    .fp-offer-early-cta {
        flex: none;
        padding: 9px 15px;
        border-radius: 8px;
        background: #fff;
        color: var(--fp-secondary);
        font-weight: 700;
        font-size: 12px;
    }
}

/* ==========================================================================
   Servizi diagnostici
   ========================================================================== */
.fp-section--servizi {
    background: #fff;
}

.fp-servizi-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 24px !important;
}

.fp-servizi-head h2.wp-block-heading {
    margin: 0;
    padding: 0;
}

.fp-servizi-head h2.wp-block-heading::after {
    display: none;
}

.fp-servizi-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--fp-secondary);
    text-decoration: none;
    white-space: nowrap;
}

.fp-section--servizi .wp-block-columns {
    gap: 16px;
    margin-bottom: 0;
}

.fp-section--servizi .wp-block-column {
    border: 1px solid var(--fp-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

.fp-service-image {
    height: 88px;
    background: repeating-linear-gradient(45deg, #e0f0f2, #e0f0f2 9px, #d5e9ec 9px, #d5e9ec 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.fp-service-body {
    padding: 18px;
}

.fp-section--servizi .wp-block-column .wp-block-heading {
    font-size: 16px;
    margin: 0 0 8px;
    color: var(--fp-text);
}

.fp-section--servizi .wp-block-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--fp-muted);
}

@media (max-width: 768px) {
    .fp-section--servizi .wp-block-columns {
        flex-wrap: wrap;
    }

    .fp-section--servizi .wp-block-column {
        display: flex;
        align-items: center;
        gap: 13px;
        border-radius: 12px;
        padding: 16px;
        position: relative;
    }

    .fp-service-image {
        width: 44px;
        height: 44px;
        flex: none;
        border-radius: 10px;
        background: var(--fp-light);
        font-size: 20px;
    }

    .fp-service-body {
        padding: 0;
        flex: 1;
    }

    .fp-section--servizi .wp-block-column .wp-block-heading {
        margin: 0 0 2px;
        font-size: 15px;
    }

    .fp-section--servizi .wp-block-list {
        font-size: 12px;
    }

    .fp-section--servizi .wp-block-column::after {
        content: "›";
        flex: none;
        font-size: 20px;
        color: var(--fp-primary);
    }
}

/* ==========================================================================
   Offerte del mese — banner di chiusura (solo desktop; mobile usa fp-offer-early)
   ========================================================================== */
.fp-section--offerte {
    background: var(--fp-offer-bg);
    border-top: 1px solid var(--fp-border);
    padding: 28px 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.fp-offerte-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fp-offerte-badge {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--fp-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex: none;
}

.fp-offerte-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--fp-text);
}

.fp-offerte-sub {
    font-size: 12.5px;
    color: var(--fp-muted);
}

@media (max-width: 768px) {
    .fp-section--offerte {
        display: none;
    }
}

/* ==========================================================================
   Orari
   ========================================================================== */
.fp-section--orari {
    background: #ffffff;
}

.fp-orari-table {
    max-width: 420px;
    margin: 0 auto;
}

.fp-orari-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(13, 113, 134, 0.08);
    border: 1px solid var(--fp-border);
}

.fp-orari-table td {
    padding: 1rem 1.5rem;
    border: none;
    border-bottom: 1px solid var(--fp-border);
    font-size: 1.05rem;
}

.fp-orari-table tr:last-child td {
    border-bottom: none;
}

.fp-orari-table tr:nth-child(odd) {
    background: var(--fp-light);
}

.fp-orari-table td:first-child {
    font-weight: 600;
    color: var(--fp-secondary);
}

.fp-orari-table td:last-child {
    text-align: right;
    color: var(--fp-muted);
}

/* ==========================================================================
   Dove siamo — chiusura scura
   ========================================================================== */
.fp-section--dove-siamo {
    background: var(--fp-secondary);
    color: #ffffff;
}

.fp-section--dove-siamo h2.wp-block-heading {
    color: #ffffff;
}

.fp-section--dove-siamo h2.wp-block-heading::after {
    background: #ffffff;
}

.fp-section--dove-siamo p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    line-height: 1.7;
}

.fp-contact-col .is-style-fill .wp-block-button__link {
    background: #ffffff;
    color: var(--fp-secondary);
}

.fp-contact-col .is-style-fill .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.88);
}

.fp-contact-col .is-style-outline .wp-block-button__link {
    background: transparent;
    border-color: #ffffff;
    color: #ffffff;
}

.fp-contact-col .is-style-outline .wp-block-button__link:hover {
    background: #ffffff;
    color: var(--fp-secondary);
}

.fp-contact-col .wp-block-buttons {
    margin-top: 1.25rem;
}

.fp-map {
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   Sticky bottom CTA bar — solo mobile
   ========================================================================== */
.fp-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .fp-sticky-cta {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        gap: 9px;
        padding: 12px 16px 20px;
        background: rgba(242, 249, 250, .95);
        border-top: 1px solid #dbe7e8;
        backdrop-filter: blur(6px);
    }

    .fp-sticky-cta .fp-sticky-phone {
        flex: none;
        text-decoration: none;
        padding: 14px 18px;
        border-radius: 11px;
        background: #fff;
        border: 1.5px solid var(--fp-cta-border);
        color: var(--fp-secondary);
        font-weight: 700;
        font-size: 15px;
    }

    .fp-sticky-cta .fp-sticky-book {
        flex: 1;
        text-decoration: none;
        padding: 14px;
        border-radius: 11px;
        background: var(--fp-primary);
        color: #fff;
        font-weight: 700;
        font-size: 15px;
        text-align: center;
    }

    /* Spazio per non far coprire i contenuti dalla barra fissa */
    body {
        padding-bottom: 78px;
    }
}

/* ==========================================================================
   Responsive generico
   ========================================================================== */
@media (max-width: 782px) {
    .fp-section {
        padding: 3rem 1.25rem;
    }

    .fp-contact-col {
        text-align: center;
    }

    .fp-contact-col .wp-block-buttons {
        justify-content: center !important;
    }
}
