/**
 * 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 — margini verticali uniformi (24px) */
.home-page .search-buttons-section .advanced-search-btn-container {
    margin-top: 0 !important;
    margin-bottom: 24px !important;
}

.home-page .home-search-lead {
    font-size: 16px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

.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 .advance__search--inner > .unified-quote-buttons {
    margin-top: 0 !important;
    margin-bottom: 0 !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 .unified-quote-buttons {
    margin-bottom: 0 !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 */
@media (max-width: 767.98px) {
    .home-page .hero__content--title {
        font-size: 36px !important;
        color: #ffffff !important;
    }

    .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;
    }

    .home-page .search-buttons-section .advanced-search-btn-container,
    .home-page .home-search-lead,
    .home-page .advance__search--inner > .unified-search-container,
    .home-page .advance__search--inner > .desktop-search-layout {
        margin-bottom: 24px !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 {
        font-size: 32px !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;
    }
}
