/*
 * Home: scheda «Online in tre passaggi» nel banner, ricerca domini, fasce bianche e scure.
 * Base del banner in site.css; colonne con la griglia di Bootstrap.
 */

/* ==========================================================================
   Banner
   ========================================================================== */

/* larga quanto la colonna, dentro il suo gutter */
.itroom-home-slide .ihb-steps-card {
    position: absolute;
    top: 50%;
    right: calc(var(--bs-gutter-x) * .5);
    left: calc(var(--bs-gutter-x) * .5);
    z-index: 2;
    display: block;
    padding: 18px 22px 16px;
    border: 1px solid #657b8a;
    border-radius: 7px;
    background: #354551;
    color: #f1f4f7;
    box-shadow: 0 11px 24px #131c2466;
    transform: translateY(-50%);
}

.itroom-home-slide .ihb-steps-title {
    display: block;
    margin: 0 0 12px;
    color: #b8c3d0;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.itroom-home-slide .ihb-steps {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.itroom-home-slide .ihb-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.itroom-home-slide .ihb-steps li > span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.itroom-home-slide .ihb-steps strong {
    color: #f1f4f7;
    font-size: var(--txt-16);
    font-weight: 600;
    line-height: 1.35;
}

.itroom-home-slide .ihb-steps small {
    color: #b9c5d0;
    font-size: var(--txt-14);
    line-height: 1.4;
}

.itroom-home-slide .ihb-step-n {
    display: grid;
    place-items: center;
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 1px;
    border-radius: 50%;
    background: #46535e;
    color: #f4ad68;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 880px) {
    .itroom-home-slide .ihb-steps-card {
        padding: 14px 16px;
    }

    .itroom-home-slide .ihb-steps {
        gap: 8px;
    }

    .itroom-home-slide .ihb-steps small {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .itroom-home-slide .ihb-steps-card {
        position: relative;
        inset: auto;
        margin: 0;
        transform: none;
    }

    .itroom-home-slide .ihb-steps small {
        display: block;
    }
}

/* ==========================================================================
   Ricerca domini, sullo stesso fondo del banner
   ========================================================================== */

#domain_section_home.domain-checker-bg {
    padding: 18px 0 34px;
    background: #28323e;
}

#domain_section_home .controlla-home {
    margin: 10px 0;
    padding: 0 0 10px;
    color: #eee;
    line-height: 1.43;
    text-align: center;
}

/* cornice, «www.» e campo in grigi sempre più chiari; larghezza 800px */
#domain_section_home #frmDomainChecker .input-group-box {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 16px 20px 14px;
    border: 1px solid #5b6977;
    border-radius: 10px;
    background: #4a5866;
}

#domain_section_home #frmDomainChecker .input-group-text {
    height: 48px;
    padding: 8px 16px;
    border: 1px solid #6b7987;
    border-radius: 8px 0 0 8px;
    background: #5f6d7b;
    color: #eef2f5;
}

#domain_section_home #frmDomainChecker #inputDomain {
    min-width: 0;
    height: 48px;
    padding: 8px 36px 8px 16px;
    border: 1px solid #6b7987;
    border-radius: 0;
    background: #f4f6f8;
    color: #293541;
}

#domain_section_home #frmDomainChecker #inputDomain::placeholder {
    color: #9aa6ae;
    opacity: 1;
}

#domain_section_home #frmDomainChecker #inputDomain:focus {
    border-color: #618a9c;
    outline: none;
    background: #fff;
    box-shadow: none;
}

/* la x la mette functions.js (jQuery.posizione_clear) con margin-top in linea: qui il centro verticale, per questo !important */
#domain_section_home #frmDomainChecker .clear_input {
    top: 50%;
    margin-top: 0 !important;
    transform: translateY(-50%);
}

#domain_section_home #frmDomainChecker .domain-check {
    flex: 0 0 120px;
    width: 120px;
    height: 48px;
    padding: 10px 16px;
    border-radius: 0;
    line-height: 1.5;
}

#domain_section_home #frmDomainChecker .btnCheckAvailability {
    border-color: var(--action-bg, #a9652e);
    background: var(--action-bg, #a9652e);
    color: #fff;
}

#domain_section_home #frmDomainChecker .btnCheckAvailability:hover,
#domain_section_home #frmDomainChecker .btnCheckAvailability:focus-visible {
    border-color: var(--action-hover, #925526);
    background: var(--action-hover, #925526);
    color: #fff;
}

#domain_section_home #frmDomainChecker .btnCheckAvailability:active {
    border-color: var(--action-active, #80491f);
    background: var(--action-active, #80491f);
}

#domain_section_home #frmDomainChecker .transferiscidominio {
    border-color: #6b7987;
    border-radius: 0 5px 5px 0;
    background: #6b7987;
    color: #fff;
}

#domain_section_home #frmDomainChecker .transferiscidominio:hover,
#domain_section_home #frmDomainChecker .transferiscidominio:focus-visible,
#domain_section_home #frmDomainChecker .transferiscidominio:active {
    border-color: #7b8996;
    background: #7b8996;
    color: #fff;
}

#domain_section_home #frmDomainChecker .domain-check:focus-visible {
    outline: 3px solid #618a9c;
    outline-offset: 2px;
    box-shadow: none;
}

/* telefono: campo su tutta la riga, i due pulsanti sotto; al posto di «www.» il titolo */
@media (max-width: 767.98px) {
    #domain_section_home.domain-checker-bg {
        padding: 4px 0 20px;
    }

    #domain_section_home .controlla-home {
        margin: 8px 12px 14px;
        padding: 0;
        line-height: 1.3;
    }

    #domain_section_home #frmDomainChecker .input-group-box {
        flex-wrap: wrap;
        padding: 4px;
    }

    #domain_section_home #frmDomainChecker .input-group-text {
        display: none;
    }

    #domain_section_home #frmDomainChecker #inputDomain {
        flex: 1 1 100%;
        width: 100%;
        height: 44px;
        border-radius: 6px;
    }

    #domain_section_home #frmDomainChecker .clear_input {
        top: 26px;
    }

    #domain_section_home #frmDomainChecker .domain-check {
        flex: 1 1 50%;
        width: 50%;
        height: 44px;
        margin-top: 10px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    #domain_section_home #frmDomainChecker .btnCheckAvailability {
        border-radius: 6px 0 0 6px;
    }

    #domain_section_home #frmDomainChecker .transferiscidominio {
        border-radius: 0 6px 6px 0;
    }
}

/* estensioni e prezzi sotto il campo */
#domain_section_home .ihb-tld {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    max-width: 800px;
    margin: 16px auto 0;
    padding: 0 12px;
}

/* prezzo + IVA e sotto il prezzo con l'IVA */
#domain_section_home .ihb-tld-chip {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid #566472;
    border-radius: 8px;
    background: #3d4956;
    color: #c5cfda;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

#domain_section_home .ihb-tld-chip small {
    color: #9fadb9;
    font-size: var(--txt-13);
}

#domain_section_home .ihb-tld-chip b {
    color: #f1f4f7;
    font-weight: 600;
}

#domain_section_home .ihb-tld-chip:hover,
#domain_section_home .ihb-tld-chip:focus-visible {
    background: #46535e;
    color: #f1f4f7;
    text-decoration: none;
}

#domain_section_home .ihb-tld-note {
    margin-left: 4px;
    color: #9fadb9;
}

#domain_section_home .ihb-tld-all {
    margin-left: auto;
    color: #f4ad68;
    font-weight: 600;
    text-decoration: none;
}

#domain_section_home .ihb-tld-all:hover,
#domain_section_home .ihb-tld-all:focus-visible {
    color: #ffb76f;
    text-decoration: none;
}

#domain_section_home .ihb-tld-chip:focus-visible,
#domain_section_home .ihb-tld-all:focus-visible {
    outline: 3px solid #618a9c;
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    #domain_section_home .ihb-tld {
        margin-top: 4px;
    }

    #domain_section_home .ihb-tld-all {
        flex-basis: 100%;
        margin-top: 2px;
        margin-left: 0;
        text-align: center;
    }
}

/* ==========================================================================
   Fasce sotto la ricerca
   ========================================================================== */

.itroom-home-body {
    --ihb-ink: #28323e;
    --ihb-muted: #5e6a77;
    --ihb-text: #4e5c6a;
    --ihb-line: #dde2e8;
    --ihb-page: #f5f6f8;
    --ihb-accent: #d9822b;
    --ihb-accent-soft: #fff1e3;
    --ihb-banner: #28323e;
    background: var(--ihb-page);
    color: var(--ihb-ink);
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    font-size: var(--txt-16);
    font-weight: 400;
    line-height: 1.55;
    text-align: left;
}

.itroom-home-body :is(h2, h3, p) {
    margin: 0;
    padding: 0;
}

.itroom-home-body h2 {
    color: var(--ihb-ink);
    font-size: var(--txt-28);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.55px;
}

.itroom-home-body h3 {
    color: var(--ihb-ink);
    font-size: var(--txt-20);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.itroom-home-body a {
    color: inherit;
    text-decoration: none;
    text-transform: none;
}

.itroom-home-body a:hover,
.itroom-home-body a:focus {
    text-decoration: none;
}

.itroom-home-body :focus-visible {
    border-radius: 3px;
    outline: 3px solid #618a9c;
    outline-offset: 3px;
}

/* occhiello con il trattino arancione, come nel banner */
.itroom-home-body .ihb-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: var(--ihb-text);
    font-weight: 500;
    line-height: 1.55;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.itroom-home-body .ihb-kicker::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 2px;
    background: #ef922f;
}

.itroom-home-body .ihb-icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--ihb-accent-soft);
    color: var(--ihb-accent);
}

.itroom-home-body .ihb-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* link arancioni, al passaggio più scuri */
.itroom-home-body .ihb-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a9652e;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.itroom-home-body .ihb-arrow {
    display: inline-block;
    margin-left: 2px;
    color: inherit;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05em;
    line-height: 1;
}

.itroom-home-body .ihb-link:hover,
.itroom-home-body .ihb-link:focus-visible {
    color: #80491f;
}

.itroom-home-body .ihb-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 45px;
    padding: 12px 19px;
    border-radius: 5px;
    background: var(--action-bg, #a9652e);
    color: #fff;
    font-weight: 700;
    line-height: 1.5;
    transition: background-color 0.25s ease;
}

.itroom-home-body .ihb-button:hover,
.itroom-home-body .ihb-button:focus-visible {
    background: var(--action-hover, #925526);
    color: #fff;
}

.itroom-home-body .ihb-button:active {
    background: var(--action-active, #80491f);
}

/* fasce a tutta larghezza, dentro un container */
.itroom-home-body .ihb5-band {
    padding: 46px 0;
}

.itroom-home-body .ihb5-white {
    background: #fff;
}

.itroom-home-body .ihb5-dark {
    background: var(--ihb-banner);
    color: #e4ebf1;
}

.itroom-home-body .ihb5-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px 24px;
    margin-bottom: 26px;
}

.itroom-home-body .ihb5-head .ihb-link {
    margin-bottom: 4px;
}

.itroom-home-body .ihb5-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 22px;
}

/* fasce scure: titoli chiari, link arancio chiaro */
.itroom-home-body .ihb5-dark .ihb-kicker {
    color: #b8c3d0;
}

.itroom-home-body .ihb5-dark h2 {
    color: #f4f6f8;
}

.itroom-home-body .ihb5-dark .ihb-link {
    color: #f1b77c;
}

.itroom-home-body .ihb5-dark .ihb-link:hover,
.itroom-home-body .ihb5-dark .ihb-link:focus-visible {
    color: #ffb76f;
}

.itroom-home-body .ihb5-dark :focus-visible {
    outline-color: #f1b77c;
}

/* Hosting: cinque colonne con linee sottili, la prima su fondo caldo
   (row g-0: col-xl-3 + quattro col-sm-6 col-xl) */
.itroom-home-body .ihb5-sols {
    border-top: 1px solid var(--ihb-line);
    border-bottom: 1px solid var(--ihb-line);
}

.itroom-home-body .ihb5-sol {
    display: flex;
    flex-direction: column;
    padding: 22px 20px 20px;
}

.itroom-home-body .ihb5-sol + .ihb5-sol {
    border-left: 1px solid var(--ihb-line);
}

.itroom-home-body .ihb5-sol-main {
    background: #fff5ea;
    box-shadow: inset 0 3px 0 var(--ihb-accent);
}

.itroom-home-body .ihb5-sol-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.itroom-home-body .ihb5-who {
    color: var(--ihb-muted);
    line-height: 1.35;
}

.itroom-home-body .ihb5-sol-main .ihb5-who {
    color: #a9652e;
    font-weight: 600;
}

.itroom-home-body .ihb5-sol h3 {
    font-size: var(--txt-18);
}

.itroom-home-body .ihb5-sol-main h3 {
    font-size: var(--txt-22);
}

.itroom-home-body .ihb5-text {
    margin: 6px 0 16px;
    color: var(--ihb-text);
    line-height: 1.5;
}

.itroom-home-body .ihb5-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 5px;
    margin-top: auto;
    margin-bottom: 10px;
}

.itroom-home-body .ihb5-price b {
    color: var(--ihb-ink);
    font-size: var(--txt-24);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.6px;
    white-space: nowrap;
}

.itroom-home-body .ihb5-sol-main .ihb5-price b {
    font-size: var(--txt-28);
    letter-spacing: -0.9px;
}

.itroom-home-body .ihb5-price small {
    color: var(--ihb-muted);
    font-size: var(--txt-14);
}

/* Hosting CMS: quattro colonne con monogramma, testo e prezzo (row-cols-1 row-cols-sm-2 row-cols-xl-4 g-0) */
.itroom-home-body .ihb5-cmss {
    border-top: 1px solid #3d4956;
}

.itroom-home-body .ihb5-cms {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 22px 6px;
    transition: background 0.2s ease;
}

.itroom-home-body .ihb5-cms + .ihb5-cms {
    border-left: 1px solid #3d4956;
}

.itroom-home-body .ihb5-cms:hover,
.itroom-home-body .ihb5-cms:focus-visible {
    background: #2f3a47;
}

.itroom-home-body .ihb5-mono {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border: 2px solid #f4ad68;
    border-radius: 50%;
    color: #f4ad68;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.itroom-home-body .ihb5-cms strong {
    color: #f4f6f8;
    font-size: var(--txt-18);
    font-weight: 700;
    line-height: 1.3;
}

.itroom-home-body .ihb5-cms-text {
    color: #c5cfda;
    line-height: 1.55;
}

.itroom-home-body .ihb5-cms-price {
    margin-top: auto;
    padding-top: 6px;
    color: #c5cfda;
    white-space: nowrap;
}

.itroom-home-body .ihb5-cms-price b {
    color: #f4f6f8;
    font-size: var(--txt-22);
    font-weight: 700;
    letter-spacing: -0.4px;
}

/* Domini a sinistra (col-lg-5), quattro servizi a destra (col-lg-7) */
.itroom-home-body .ihb5-domain > p:not(.ihb-kicker):not(.ihb5-domain-price) {
    margin-top: 10px;
    color: var(--ihb-text);
    font-size: var(--txt-16);
    line-height: 1.6;
}

.itroom-home-body .ihb5-domain-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 10px;
    margin: 18px 0 20px;
    color: var(--ihb-ink);
    font-weight: 700;
    letter-spacing: -0.4px;
}

.itroom-home-body .ihb5-domain-price b {
    color: var(--ihb-accent);
    font-size: 40px;
    line-height: 1;
    letter-spacing: -1.3px;
}

.itroom-home-body .ihb5-domain-price small {
    color: var(--ihb-muted);
    font-size: var(--txt-15);
    font-weight: 400;
    letter-spacing: 0;
}

.itroom-home-body .ihb5-svcs .ihb-kicker {
    margin-bottom: 4px;
}

.itroom-home-body .ihb5-svc {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ihb-line);
}

.itroom-home-body .ihb5-svc-body {
    display: grid;
    flex: 1 1 auto;
    gap: 2px;
    min-width: 0;
}

.itroom-home-body .ihb5-svc-body strong {
    color: var(--ihb-ink);
    font-size: var(--txt-17);
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.itroom-home-body .ihb5-svc:hover .ihb5-svc-body strong {
    color: var(--ihb-accent);
}

.itroom-home-body .ihb5-svc-body small {
    color: var(--ihb-muted);
    font-size: var(--txt-15);
    line-height: 1.45;
}

.itroom-home-body .ihb5-svc-price {
    margin-top: 6px;
    color: var(--ihb-muted);
    line-height: 1.3;
    white-space: nowrap;
}

.itroom-home-body .ihb5-svc-price b {
    color: var(--ihb-ink);
    font-size: var(--txt-18);
    font-weight: 700;
    letter-spacing: -0.3px;
}

.itroom-home-body .ihb5-svc-price small {
    font-size: var(--txt-14);
}

/* Tecnologia e protezioni: dieci punti numerati (row-cols-1 row-cols-sm-2 row-cols-xl-5),
   numero a sinistra del titolo, sopra da 1200px */
.itroom-home-body .ihb5-nums li {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-content: start;
    column-gap: 10px;
    row-gap: 2px;
}

.itroom-home-body .ihb5-n {
    grid-row: 1 / 3;
    color: #f4ad68;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.itroom-home-body .ihb5-nums strong {
    color: #f4f6f8;
    font-size: var(--txt-17);
    font-weight: 700;
    line-height: 1.35;
}

.itroom-home-body .ihb5-nums small {
    color: #c5cfda;
    font-size: var(--txt-15);
    line-height: 1.5;
}

/* Gratis e guide: tre colonne (row-cols-lg-3), link in fondo */
.itroom-home-body .ihb5-free {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.itroom-home-body .ihb5-free .ihb-icon {
    align-self: flex-start;
}

.itroom-home-body .ihb5-free > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.itroom-home-body .ihb5-free h3 {
    font-size: var(--txt-18);
}

.itroom-home-body .ihb5-free p {
    margin: 5px 0 10px;
    color: var(--ihb-text);
    font-size: var(--txt-15);
    line-height: 1.55;
}

.itroom-home-body .ihb5-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin-top: auto;
}

/* invito finale */
.itroom-home-body .ihb5-final {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px 32px;
}

.itroom-home-body .ihb5-final h2 {
    font-size: var(--txt-24);
}

.itroom-home-body .ihb5-final p {
    margin-top: 6px;
    color: #c5cfda;
    font-size: var(--txt-16);
    line-height: 1.55;
}

/* ==========================================================================
   Adattamenti
   ========================================================================== */

@media (min-width: 1200px) {
    .itroom-home-body .ihb5-nums li {
        grid-template-columns: minmax(0, 1fr);
    }

    .itroom-home-body .ihb5-n {
        grid-row: auto;
        margin-bottom: 6px;
    }
}

/* sotto 1200px: due colonne, linee sotto ogni riquadro */
@media (max-width: 1199.98px) {
    .itroom-home-body .ihb5-sols {
        border-bottom: 0;
    }

    .itroom-home-body .ihb5-sol {
        border-bottom: 1px solid var(--ihb-line);
    }

    .itroom-home-body .ihb5-sol + .ihb5-sol {
        border-left: 0;
    }

    .itroom-home-body .ihb5-sol:nth-child(odd):not(:first-child) {
        border-left: 1px solid var(--ihb-line);
    }

    .itroom-home-body .ihb5-cms {
        padding-bottom: 20px;
        border-bottom: 1px solid #3d4956;
    }

    .itroom-home-body .ihb5-cms + .ihb5-cms {
        border-left: 0;
    }

    .itroom-home-body .ihb5-cms:nth-child(even) {
        border-left: 1px solid #3d4956;
    }
}

/* una colonna */
@media (max-width: 575.98px) {
    .itroom-home-body .ihb5-sol,
    .itroom-home-body .ihb5-sol + .ihb5-sol,
    .itroom-home-body .ihb5-sol:nth-child(odd):not(:first-child) {
        padding: 18px 4px;
        border-left: 0;
    }

    .itroom-home-body .ihb5-sol-main {
        margin: 0 -4px;
        padding: 20px 16px;
    }

    .itroom-home-body .ihb5-cms,
    .itroom-home-body .ihb5-cms:nth-child(even) {
        padding: 18px 4px;
        border-left: 0;
    }
}

@media (max-width: 620px) {
    .itroom-home-body .ihb5-band {
        padding: 36px 0;
    }

    .itroom-home-body .ihb5-head {
        margin-bottom: 18px;
    }

    .itroom-home-body .ihb5-domain-price b {
        font-size: 34px;
    }

    .itroom-home-body .ihb5-actions .ihb-button {
        flex: 1 1 100%;
    }
}
