/* =========================================================
   EDILTOUCH HOME PAINT V1
   STEP 01 — SEARCH BAR
   Solo veste grafica. Nessuna modifica funzionale.
   ========================================================= */

/* Area generale della barra */
header .search-container,
header .search-wrapper,
header .header-search,
header .search-area,
#header .search-container,
#header .search-wrapper,
#header .header-search,
#header .search-area,
.search-header,
.top-search,
.searchbar-wrapper {
    position: relative;
    z-index: 20;
    width: min(920px, calc(100% - 48px));
    margin: 18px auto 22px;
    padding: 6px;
    border: 1px solid rgba(18, 55, 82, .08);
    border-radius: 18px;
    background: rgba(255,255,255,.96);
    box-shadow:
        0 12px 32px rgba(18,55,82,.10),
        0 2px 8px rgba(18,55,82,.06);
}

/* Form di ricerca */
header form[action*="search"],
#header form[action*="search"],
header #search,
#header #search,
header .search-form,
#header .search-form {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    width: min(920px, calc(100% - 48px)) !important;
    min-height: 58px !important;
    margin: 18px auto 22px !important;
    padding: 5px !important;
    overflow: visible !important;
    border: 1px solid rgba(18,55,82,.09) !important;
    border-radius: 17px !important;
    background: rgba(255,255,255,.98) !important;
    box-shadow:
        0 14px 34px rgba(18,55,82,.11),
        0 2px 8px rgba(18,55,82,.05) !important;
}

/* Campi testo e località */
header form[action*="search"] input[type="text"],
header form[action*="search"] input[type="search"],
header form[action*="search"] select,
#header form[action*="search"] input[type="text"],
#header form[action*="search"] input[type="search"],
#header form[action*="search"] select,
header #search input,
header #search select,
#header #search input,
#header #search select {
    height: 48px !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #173451 !important;
    font-size: 15px !important;
    line-height: 48px !important;
    outline: none !important;
}

/* Separazione morbida tra ricerca e località */
header form[action*="search"] input + input,
header form[action*="search"] input + select,
header form[action*="search"] .location,
#header form[action*="search"] input + input,
#header form[action*="search"] input + select,
#header form[action*="search"] .location,
header #search .location,
#header #search .location {
    border-left: 1px solid rgba(18,55,82,.10) !important;
}

/* Placeholder */
header form[action*="search"] input::placeholder,
#header form[action*="search"] input::placeholder,
header #search input::placeholder,
#header #search input::placeholder {
    color: #7b8793 !important;
    opacity: 1 !important;
}

/* Pulsanti comuni */
header form[action*="search"] button,
#header form[action*="search"] button,
header #search button,
#header #search button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    height: 48px !important;
    min-width: 48px !important;
    margin: 0 0 0 6px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease !important;
}

/* Microfono */
header form[action*="search"] button.microphone,
header form[action*="search"] .btn-microphone,
header form[action*="search"] [class*="voice"],
#header form[action*="search"] button.microphone,
#header form[action*="search"] .btn-microphone,
#header form[action*="search"] [class*="voice"],
header #search [class*="micro"],
header #search [class*="voice"],
#header #search [class*="micro"],
#header #search [class*="voice"] {
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border: 1px solid rgba(18,55,82,.12) !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #173451 !important;
    box-shadow: 0 5px 14px rgba(18,55,82,.10) !important;
}

/* Pulsante ricerca principale */
header form[action*="search"] button[type="submit"],
header form[action*="search"] .btn-search,
#header form[action*="search"] button[type="submit"],
#header form[action*="search"] .btn-search,
header #search button:last-child,
#header #search button:last-child {
    min-width: 52px !important;
    background: #d71920 !important;
    color: #fff !important;
    box-shadow: 0 7px 17px rgba(215,25,32,.22) !important;
}

header form[action*="search"] button:hover,
#header form[action*="search"] button:hover,
header #search button:hover,
#header #search button:hover {
    transform: translateY(-1px) !important;
}

header form[action*="search"] button[type="submit"]:hover,
header form[action*="search"] .btn-search:hover,
#header form[action*="search"] button[type="submit"]:hover,
#header form[action*="search"] .btn-search:hover,
header #search button:last-child:hover,
#header #search button:last-child:hover {
    background: #bd1118 !important;
    box-shadow: 0 10px 22px rgba(215,25,32,.27) !important;
}

/* Più presenza rispetto allo spazio circostante */
header,
#header {
    background: rgba(255,255,255,.98);
}

@media (max-width: 768px) {
    header form[action*="search"],
    #header form[action*="search"],
    header #search,
    #header #search,
    header .search-container,
    #header .search-container,
    header .search-wrapper,
    #header .search-wrapper {
        width: calc(100% - 24px) !important;
        min-height: 54px !important;
        margin: 12px auto 16px !important;
        border-radius: 15px !important;
    }

    header form[action*="search"] input,
    header form[action*="search"] select,
    #header form[action*="search"] input,
    #header form[action*="search"] select,
    header #search input,
    header #search select,
    #header #search input,
    #header #search select {
        min-width: 0 !important;
        height: 44px !important;
        padding: 0 12px !important;
        font-size: 14px !important;
    }

    header form[action*="search"] button,
    #header form[action*="search"] button,
    header #search button,
    #header #search button {
        height: 44px !important;
        min-width: 44px !important;
    }
}

/* =========================================================
   HOME PAINT V1
   STEP 02 - CANVAS UNICO
   ========================================================= */

/* Canvas generale */

body,
.common-home {
    background:
        linear-gradient(
            180deg,
            #fbfcfd 0%,
            #f8fafc 20%,
            #f6f8fb 45%,
            #f5f7fa 70%,
            #f4f6f9 100%
        ) !important;
}

/* Tutte le sezioni della Home */

#content,
.homepage,
.home-section,
section,
.container,
.container-fluid {

    background: transparent !important;

    border:0 !important;

    box-shadow:none !important;
}

/* Spaziature verticali più armoniose */

section{

    padding-top:40px !important;
    padding-bottom:40px !important;

}

/* Elimina tutte le linee orizzontali */

hr{

    display:none !important;

}

[class*="separator"],
[class*="divider"]{

    display:none !important;

}

/* Uniforma tutti i box */

.card,
.panel,
.thumbnail,
.feature-box,
.info-box{

    border-radius:18px !important;

    border:0 !important;

    box-shadow:
        0 10px 28px rgba(20,45,70,.05);

}

/* Riduce l'effetto "rettangolo" */

.white-section,
.gray-section,
.bg-white,
.bg-light{

    background:transparent !important;

}

/* Maggiore continuità */

.homepage > div{

    margin-bottom:0 !important;

}



/* ET_CANVAS_CONTINUITY_START */

/*
 * Canvas unico Ediltouch
 * Superficie chiara continua, filigrana architettonica minima.
 */

body.common-home {
    background-color: #f7f9fb !important;
    background-image:
        radial-gradient(
            circle at 14% 12%,
            rgba(27, 112, 148, .045) 0,
            rgba(27, 112, 148, 0) 29%
        ),
        radial-gradient(
            circle at 88% 35%,
            rgba(218, 164, 20, .025) 0,
            rgba(218, 164, 20, 0) 26%
        ),
        repeating-linear-gradient(
            135deg,
            rgba(18, 55, 82, .012) 0,
            rgba(18, 55, 82, .012) 1px,
            transparent 1px,
            transparent 56px
        ) !important;
    background-attachment: fixed !important;
}

body.common-home #content,
body.common-home main,
body.common-home .homepage {
    position: relative;
    background: transparent !important;
}

/* Elimina gli stacchi bianchi netti */

body.common-home #content > div,
body.common-home #content > section,
body.common-home main > div,
body.common-home main > section {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

/* Le superfici interne restano chiare ma non sembrano pagine separate */

body.common-home .container,
body.common-home .container-fluid {
    background-color: transparent !important;
}

/* Ombre ridotte e coerenti */

body.common-home .panel,
body.common-home .card,
body.common-home .thumbnail,
body.common-home [class*="box-shadow"] {
    box-shadow:
        0 12px 34px rgba(18, 55, 82, .055) !important;
}

/* Elimina divisori e righe decorative non funzionali */

body.common-home hr,
body.common-home .divider,
body.common-home .separator,
body.common-home [class*="section-divider"],
body.common-home [class*="section-separator"] {
    display: none !important;
}

/* Continuità tra Network e sezione Business/Consumer */

body.common-home #network-live-9996,
body.common-home #network-exact-container,
body.common-home [id*="network-engine"] {
    background: transparent !important;
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
}

/* Footer minimale */

body.common-home footer,
body.common-home #footer {
    min-height: 54px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #10283a !important;
}

body.common-home .et-minimal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 14px 24px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    letter-spacing: .02em;
}

body.common-home .et-minimal-footer a {
    color: rgba(255,255,255,.82);
    text-decoration: none;
}

/* ET_CANVAS_CONTINUITY_END */


/* ET_HOME_NORMALIZATION_V1_START */

/* ---------------------------------------------------------
   SEARCH BAR: resta nel flusso naturale della pagina
   --------------------------------------------------------- */

body.common-home header,
body.common-home #header {
    position: relative !important;
    top: auto !important;
}

body.common-home header form[action*="search"],
body.common-home #header form[action*="search"],
body.common-home header #search,
body.common-home #header #search,
body.common-home .search-container,
body.common-home .search-wrapper,
body.common-home .header-search,
body.common-home .search-area,
body.common-home .search-header,
body.common-home .top-search,
body.common-home .searchbar-wrapper {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    will-change: auto !important;
}

body.common-home .et-search-static {
    position: relative !important;
    top: auto !important;
    transform: none !important;
}

/* ---------------------------------------------------------
   CONTINUITÀ HERO → FUNZIONALITÀ
   --------------------------------------------------------- */

body.common-home .et-hero-continuity,
body.common-home .et-functions-continuity {
    position: relative !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

body.common-home .et-functions-continuity {
    padding-top: 32px !important;
}

body.common-home .et-functions-continuity:before,
body.common-home .et-functions-continuity:after {
    display: none !important;
    content: none !important;
}

/* Il contenitore non deve più sembrare una pagina separata */

body.common-home .et-functions-continuity > .container,
body.common-home .et-functions-continuity > .container-fluid,
body.common-home .et-functions-continuity .panel,
body.common-home .et-functions-continuity .card-wrapper {
    border: 0 !important;
    background: rgba(255,255,255,.54) !important;
    box-shadow:
        0 16px 42px rgba(18,55,82,.045) !important;
}

/* ---------------------------------------------------------
   FUNZIONALITÀ: cinque card ordinate
   --------------------------------------------------------- */

body.common-home .et-functions-five-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
    align-items: stretch !important;
    width: 100% !important;
}

body.common-home .et-functions-five-grid > * {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body.common-home .et-edilhexpoo-home-card {
    display: none !important;
}

/* ---------------------------------------------------------
   CARD IMPRESA / PROFESSIONISTA / PRIVATO
   --------------------------------------------------------- */

body.common-home .et-hero-access-card {
    cursor: pointer !important;
    transition:
        transform .18s ease,
        box-shadow .18s ease !important;
}

body.common-home .et-hero-access-card:hover {
    transform: translateY(-2px) !important;
    box-shadow:
        0 15px 32px rgba(18,55,82,.14) !important;
}

/* ---------------------------------------------------------
   FOOTER MINIMALE
   --------------------------------------------------------- */

body.common-home footer,
body.common-home #footer {
    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: #10283a !important;
}

body.common-home .et-footer-minimal-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    width: 100%;
    min-height: 58px;
    padding: 14px 24px;
    color: rgba(255,255,255,.66);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

body.common-home .et-footer-minimal-v2 a {
    color: rgba(255,255,255,.88);
    font-weight: 500;
    text-decoration: none;
}

body.common-home .et-footer-minimal-v2 a:hover {
    color: #ffffff;
    text-decoration: underline;
}

body.common-home .et-footer-minimal-v2 .et-footer-separator {
    color: rgba(255,255,255,.30);
}

/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1100px) {
    body.common-home .et-functions-five-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 720px) {
    body.common-home .et-functions-five-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    body.common-home .et-functions-five-grid {
        grid-template-columns: 1fr !important;
    }

    body.common-home .et-footer-minimal-v2 {
        flex-direction: column;
        gap: 7px;
    }

    body.common-home .et-footer-separator {
        display: none;
    }
}

/* ET_HOME_NORMALIZATION_V1_END */

/* =========================================================
   SEARCH BAR — BLOCCO STATICO DEFINITIVO
   ========================================================= */

body.common-home header,
body.common-home #header,
body.common-home .header-search,
body.common-home .search-header,
body.common-home .search-area,
body.common-home .search-container,
body.common-home .search-wrapper,
body.common-home .searchbar-wrapper,
body.common-home .top-search,
body.common-home form[action*="search"],
body.common-home #search {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;
    inset: auto !important;
    will-change: auto !important;
}

body.common-home header form[action*="search"],
body.common-home #header form[action*="search"],
body.common-home header #search,
body.common-home #header #search {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

body.common-home .sticky,
body.common-home .fixed,
body.common-home .is-sticky,
body.common-home .affix,
body.common-home [class*="sticky"],
body.common-home [class*="fixed"] {
    position: static !important;
    top: auto !important;
    transform: none !important;
}


/* =========================================================
   SEARCH BAR — BLOCCO STATICO DEFINITIVO
   ========================================================= */

body.common-home header,
body.common-home #header,
body.common-home .header-search,
body.common-home .search-header,
body.common-home .search-area,
body.common-home .search-container,
body.common-home .search-wrapper,
body.common-home .searchbar-wrapper,
body.common-home .top-search,
body.common-home form[action*="search"],
body.common-home #search {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;
    inset: auto !important;
    will-change: auto !important;
}

body.common-home header form[action*="search"],
body.common-home #header form[action*="search"],
body.common-home header #search,
body.common-home #header #search {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

body.common-home .sticky,
body.common-home .fixed,
body.common-home .is-sticky,
body.common-home .affix,
body.common-home [class*="sticky"],
body.common-home [class*="fixed"] {
    position: static !important;
    top: auto !important;
    transform: none !important;
}


/* =========================================================
   SEARCH BAR — BLOCCO STATICO DEFINITIVO
   ========================================================= */

body.common-home header,
body.common-home #header,
body.common-home .header-search,
body.common-home .search-header,
body.common-home .search-area,
body.common-home .search-container,
body.common-home .search-wrapper,
body.common-home .searchbar-wrapper,
body.common-home .top-search,
body.common-home form[action*="search"],
body.common-home #search {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    translate: none !important;
    inset: auto !important;
    will-change: auto !important;
}

body.common-home header form[action*="search"],
body.common-home #header form[action*="search"],
body.common-home header #search,
body.common-home #header #search {
    position: relative !important;
    z-index: 2 !important;
    margin-top: 16px !important;
    margin-bottom: 20px !important;
}

body.common-home .sticky,
body.common-home .fixed,
body.common-home .is-sticky,
body.common-home .affix,
body.common-home [class*="sticky"],
body.common-home [class*="fixed"] {
    position: static !important;
    top: auto !important;
    transform: none !important;
}

