/**
 * Tipografia homepage — /
 * @see docs/typography-spec-public-pages.md
 */

/* Hero — titolo 50px (bianco su immagine hero) */
.home-page .hero__content--title {
    font-size: 50px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
}

/* Sezioni — titolo 50px */
.home-page .home-section-title,
.home-page .section__heading--title,
.home-page h2.home-section-title {
    font-size: 50px !important;
    line-height: 1.2 !important;
    color: #2b4458 !important;
}

/* Sezioni — sottotitolo 25px */
.home-page .home-section-subtitle,
.home-page .section__heading--subtitle,
.home-page h3.home-section-subtitle {
    font-size: 25px !important;
    line-height: 1.4 !important;
}

.home-page .section__heading--subtitle span,
.home-page .home-section-subtitle span {
    font-size: 25px !important;
}

/* Testo corpo / lead 16px */
.home-page .home-section-lead,
.home-page .stats-text,
.home-page .stats-text strong {
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
}

/* Card servizi — titolo 25px */
.home-page .service-square .service-text {
    font-size: 25px !important;
}

/* Pulsanti area hero/ricerca — 25px */
.home-page .advanced-search-btn,
.home-page .quote-button .button-content span,
.home-page .advance__search--btn {
    font-size: 25px !important;
}

/* Novità e offerte — hover arancione (no bordo blu da tema globale) */
.home-page a.advanced-search-btn,
.home-page a.advanced-search-btn:hover,
.home-page a.advanced-search-btn:focus,
.home-page a.advanced-search-btn:focus-visible,
.home-page a.advanced-search-btn:active {
    border-color: #e68600 !important;
    outline: none !important;
}

.home-page a.advanced-search-btn:hover,
.home-page a.advanced-search-btn:focus-visible {
    background: #ffb020 !important;
    border-color: #ff9500 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 18px rgba(255, 160, 30, 0.55) !important;
    transform: none !important;
}

/* Ricerca hero — input, select, placeholder (mobile + desktop) — 16px */
.home-page .advance__search--input,
.home-page .advance__search--input::placeholder,
.home-page .search-input,
.home-page .search-input::placeholder,
.home-page select.search-input,
.home-page select.search-input option {
    font-size: 16px !important;
    line-height: 1.4 !important;
}

/* Blocco ricerca hero */
.home-page .search-buttons-section {
    background-color: #f5f5f5;
    padding: 40px 0;
}

.home-page .search-buttons-section .advanced-search-btn-container {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.home-page .home-intro-lead {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: #6c757d !important;
    text-align: center !important;
    max-width: 720px;
    margin: 0 auto 24px auto !important;
    padding: 0 !important;
}

.home-page .unified-quote-buttons-wrap {
    margin: 0 auto 32px auto !important;
}

.home-page .home-search-lead {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    color: #6c757d !important;
    text-align: center !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

@media (min-width: 768px) {
    .home-page .home-search-lead {
        margin-top: 32px !important;
        margin-bottom: 24px !important;
    }

    .home-page .unified-quote-buttons-wrap {
        margin-bottom: 0 !important;
    }

    .home-page .advance__search--filter {
        margin-top: 0 !important;
        width: 100%;
    }
}

.home-page .advance__search--inner > .unified-search-container,
.home-page .advance__search--inner > .desktop-search-layout {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.home-page .search-input-group {
    margin-bottom: 0 !important;
}

/* Testo piccolo — 12px (esclusa intestazione ricerca) */
.home-page .search-buttons-section .text-muted:not(.home-search-lead) {
    font-size: 12px !important;
}

.home-page .property__type--section.section--padding {
    padding-top: 0 !important;
}

/* Intestazioni sezione (Come fare?, Perché?, …) — stesso margin-top */
.home-page .section__heading--center > .container > .home-section-title {
    margin-top: 60px !important;
    margin-bottom: 30px !important;
}

/* Statistiche — numeri come titolo, bianchi su card blu */
.home-page .stats-unified-card .stats-number {
    font-size: 50px !important;
    line-height: 1.1 !important;
    color: #ffffff !important;
}

/* Tablet */
@media (max-width: 991.98px) {
    .home-page .hero__content--title {
        font-size: 42px !important;
        color: #ffffff !important;
    }

    .home-page .home-section-title,
    .home-page .section__heading--title,
    .home-page h2.home-section-title {
        font-size: 42px !important;
        color: #2b4458 !important;
    }

    .home-page .stats-unified-card .stats-number {
        font-size: 42px !important;
        color: #ffffff !important;
    }
}

/* Mobile — banner hero homepage (~50% altezza originale) */
@media (max-width: 767.98px) {
    .main__content_wrapper.home-page > .hero__section.hero__section--bg {
        min-height: 265px !important;
        height: 265px !important;
        max-height: 265px !important;
        padding-bottom: 0 !important;
        background-position: center 35% !important;
        background-size: cover !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .main__content_wrapper.home-page .hero__section--inner.home-hero__inner {
        padding: 0.65rem 1rem 0.45rem !important;
        min-height: 0 !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    .home-page .hero__content {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .home-page .hero__content--title,
    .home-page .hero-title-mobile {
        font-size: 28px !important;
        line-height: 1.15 !important;
        color: #ffffff !important;
    }

    .home-page .search-buttons-section {
        padding: 16px 0 20px !important;
    }

    .home-page .search-buttons-section .advanced-search-btn-container {
        margin-bottom: 16px !important;
    }

    .home-page .home-intro-lead {
        margin-bottom: 16px !important;
        padding: 0 8px !important;
    }

    .home-page .unified-quote-buttons-wrap {
        margin-bottom: 20px !important;
    }

    .home-page .home-search-lead,
    .home-page .advance__search--inner > .unified-search-container,
    .home-page .advance__search--inner > .desktop-search-layout {
        margin-bottom: 16px !important;
    }

    .home-page .unified-quote-buttons {
        min-height: 112px !important;
    }

    .home-page .quote-button {
        min-height: 112px !important;
        padding: 12px 8px !important;
    }

    .home-page .advanced-search-btn {
        padding: 14px 20px !important;
        min-width: 0 !important;
        width: 100%;
        max-width: 100%;
    }

    .home-page .home-section-title,
    .home-page .section__heading--title,
    .home-page h2.home-section-title {
        font-size: 36px !important;
        color: #2b4458 !important;
    }

    .home-page .stats-unified-card .stats-number {
        font-size: 36px !important;
        color: #ffffff !important;
    }

    .home-page .home-section-subtitle,
    .home-page .section__heading--subtitle,
    .home-page h3.home-section-subtitle {
        font-size: 22px !important;
    }

    /* Card servizi: −35% rispetto al desktop (25px → 16px) */
    .home-page .service-square .service-text {
        font-size: 16px !important;
        line-height: 1.25 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 4px;
    }

    /* Pulsanti Preventivo Ristrutturazione / Forniture — no sillabazione a metà parola */
    .home-page .quote-button .button-content span,
    .home-page .quote-button .quote-btn-label,
    .home-page .quote-button .quote-btn-line {
        font-size: 16px !important;
        line-height: 1.2 !important;
        letter-spacing: 0 !important;
        hyphens: none !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    .home-page .quote-button .quote-btn-line {
        display: block;
        white-space: nowrap;
    }

    .home-page .service-square {
        padding: 16px 12px !important;
    }

    .home-page .service-square img {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 10px !important;
    }

    .home-page .advanced-search-btn,
    .home-page .advance__search--btn {
        font-size: 16px !important;
    }

    /* Sezione "Come fare?" — padding verticale compatto su mobile */
    .home-page .property__type--section.section--padding {
        padding-bottom: 2.5rem !important;
    }

    .home-page .section__heading--center > .container > .home-section-title {
        margin-top: 60px !important;
        margin-bottom: 30px !important;
    }

    .home-page .property__type--section .home-section-subtitle,
    .home-page .property__type--section .section__heading--subtitle {
        margin-bottom: 1.5rem !important;
    }

    .home-page .property__type--section .section__heading--center > div[style*="height: 1px"] {
        margin-bottom: 1.25rem !important;
    }
}

@media (max-width: 480px) {
    .home-page .hero__content--title.hero-title-mobile {
        font-size: 26px !important;
        color: #ffffff !important;
    }

    .home-page .home-section-title,
    .home-page .section__heading--title,
    .home-page h2.home-section-title {
        font-size: 30px !important;
        color: #2b4458 !important;
    }

    .home-page .service-square .service-text {
        font-size: 16px !important;
    }

    .home-page .quote-button .button-content span,
    .home-page .quote-button .quote-btn-label,
    .home-page .quote-button .quote-btn-line {
        font-size: 14px !important;
    }
}
