/* =====================================================================
   Tema del sito (stile della proposta B della home: scuro e sportivo)
   Da usare nelle pagine interne: contenuto dentro <div class="hb"> ... </div>
   e il link a questo file nel ContentPlaceHolder "head".

   La master page carica "head" PRIMA di Bootstrap e di CSC_Style.css:
   per questo ogni regola parte da .hb (specificità più alta).
   ===================================================================== */

.hb {
    --hb-orange: var(--Color_CSC_Orange, #F78822);
    --hb-orange-dark: #d96f0f;
    --hb-bg: #111214;
    --hb-bg-2: #1b1d21;
    --hb-bg-3: #25282d;
    --hb-text: #f2f2f2;
    --hb-muted: #a9adb3;
    --hb-line: rgba(255,255,255,.08);
    --hb-radius: 14px;
    background: var(--hb-bg);
    color: var(--hb-text);
}

    .hb p {
        padding: 0;
    }

    .hb h1, .hb h2, .hb h3, .hb .hb-eyebrow {
        font-family: EurostileBold, sans-serif;
    }

    .hb a {
        color: var(--hb-orange);
    }

    /* === Sezioni e titoli === */
    .hb .hb-section {
        padding: 5rem 0;
    }

    .hb .hb-section--alt {
        background: var(--hb-bg-2);
    }

    .hb .hb-eyebrow {
        display: inline-block;
        color: var(--hb-orange);
        text-transform: uppercase;
        letter-spacing: .2em;
        font-size: .8rem;
        margin-bottom: .75rem;
    }

    .hb .hb-title {
        font-size: clamp(1.9rem, 4.5vw, 3rem);
        text-transform: uppercase;
        line-height: 1.05;
        margin-bottom: 1rem;
        color: #fff;
    }

    .hb .hb-lead {
        color: var(--hb-muted);
        font-size: 1.05rem;
        max-width: 620px;
    }

    /* === Pulsanti === */
    .hb .hb-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: .55rem;
        min-height: 48px;
        padding: .9rem 1.8rem;
        border: 2px solid transparent;
        font-family: EurostileBold, sans-serif;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-size: .9rem;
        text-decoration: none;
        clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
        transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    }

    .hb .hb-btn--primary {
        background: var(--hb-orange);
        color: #111;
    }

    .hb .hb-btn--ghost {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.6);
        color: #fff;
    }

    .hb .hb-btn--dark {
        background: #111;
        color: #fff;
    }

    .hb .hb-btn--whatsapp {
        background: #25D366;
        color: #111;
    }

        .hb .hb-btn--primary:hover,
        .hb .hb-btn--ghost:hover,
        .hb .hb-btn--dark:hover,
        .hb .hb-btn--whatsapp:hover {
            background: #fff;
            color: #111;
        }

    /* === Testata delle pagine interne: foto sfumata, titolo grande === */
    .hb .hb-pagehero {
        position: relative;
        overflow: hidden;
        padding: 6rem 0 4.5rem;
    }

    .hb .hb-pagehero__img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .hb .hb-pagehero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(17,18,20,.95) 0%, rgba(17,18,20,.75) 55%, rgba(17,18,20,.45) 100%), linear-gradient(180deg, rgba(17,18,20,0) 60%, var(--hb-bg) 100%);
    }

    .hb .hb-pagehero__content {
        position: relative;
        z-index: 1;
    }

    .hb .hb-pagehero h1 {
        font-size: clamp(2.2rem, 6vw, 4.2rem);
        line-height: 1;
        text-transform: uppercase;
        margin: 0 0 1.25rem;
        color: #fff;
        max-width: 16ch;
    }

        .hb .hb-pagehero h1 span {
            color: var(--hb-orange);
        }

    .hb .hb-pagehero__lead {
        font-size: clamp(1rem, 2vw, 1.25rem);
        color: rgba(255,255,255,.85);
        max-width: 52ch;
        margin: 0 0 2rem;
    }

    /* Testata senza foto e piu' bassa, per documenti e pagine legali */
    .hb .hb-pagehero--semplice {
        padding: 4rem 0 2rem;
        border-bottom: 1px solid var(--hb-line);
    }

        .hb .hb-pagehero--semplice .hb-pagehero__lead {
            margin-bottom: 0;
        }

    /* Testo lungo (privacy, cookie): righe di lunghezza leggibile e titoli dei paragrafi */
    .hb .hb-testo {
        max-width: 78ch;
        color: var(--hb-muted);
        line-height: 1.75;
    }

        .hb .hb-testo h2 {
            margin: 2.5rem 0 .75rem;
            font-size: 1.25rem;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: #fff;
        }

        .hb .hb-testo h3 {
            margin: 1.75rem 0 .5rem;
            font-size: 1.05rem;
            color: var(--hb-text);
        }

        .hb .hb-testo strong,
        .hb .hb-testo b {
            color: var(--hb-text);
        }

        .hb .hb-testo ul,
        .hb .hb-testo ol {
            padding-left: 1.25rem;
        }

        .hb .hb-testo li {
            margin-bottom: .35rem;
        }

        .hb .hb-testo a {
            color: var(--hb-orange);
        }

        .hb .hb-testo table {
            width: 100%;
            margin: 1rem 0;
            border-collapse: collapse;
            font-size: .95rem;
        }

        .hb .hb-testo th,
        .hb .hb-testo td {
            padding: .6rem .75rem;
            border: 1px solid var(--hb-line);
            vertical-align: top;
            text-align: left;
        }

        .hb .hb-testo th {
            color: var(--hb-text);
            background: rgba(255,255,255,.04);
        }

    .hb .hb-actions {
        display: flex;
        flex-wrap: wrap;
        gap: .9rem;
    }

    /* === Avviso in evidenza (bordo arancione) === */
    .hb .hb-callout {
        display: flex;
        gap: 1.1rem;
        align-items: center;
        padding: 1.5rem 1.75rem;
        border-radius: var(--hb-radius);
        background: var(--hb-bg-3);
        border-left: 5px solid var(--hb-orange);
    }

        .hb .hb-callout > i {
            flex: 0 0 auto;
            font-size: 2rem;
            color: var(--hb-orange);
        }

        .hb .hb-callout strong {
            display: block;
            color: #fff;
            font-family: EurostileBold, sans-serif;
            text-transform: uppercase;
            letter-spacing: .05em;
            margin-bottom: .2rem;
        }

        .hb .hb-callout p {
            color: var(--hb-muted);
            margin: 0;
        }

    /* === Passi numerati === */
    .hb .hb-step {
        height: 100%;
        padding: 2rem 1.75rem;
        border-radius: var(--hb-radius);
        background: var(--hb-bg-3);
        border: 1px solid var(--hb-line);
    }

    .hb .hb-step__num {
        display: block;
        font-family: EurostileBold, sans-serif;
        font-size: 3rem;
        line-height: 1;
        color: var(--hb-orange);
        margin-bottom: 1rem;
    }

    .hb .hb-step h3 {
        font-size: 1.25rem;
        text-transform: uppercase;
        color: #fff;
        margin-bottom: .6rem;
    }

    .hb .hb-step p {
        color: var(--hb-muted);
        margin: 0;
    }

    /* === Elenco di vantaggi con icona === */
    .hb .hb-perk {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        height: 100%;
        padding: 1.4rem;
        border-radius: var(--hb-radius);
        background: rgba(255,255,255,.03);
        border: 1px solid var(--hb-line);
        transition: border-color .2s ease;
    }

        .hb .hb-perk:hover {
            border-color: var(--hb-orange);
        }

        .hb .hb-perk h3 {
            font-size: 1rem;
            text-transform: uppercase;
            letter-spacing: .04em;
            color: #fff;
            margin: .15rem 0 .35rem;
        }

        .hb .hb-perk p {
            color: var(--hb-muted);
            font-size: .95rem;
            margin: 0;
        }

    /* Icona tonda arancione (vantaggi e righe di informazioni) */
    .hb .hb-perk > i,
    .hb .hb-info > i {
        flex: 0 0 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: rgba(247,136,34,.15);
        color: var(--hb-orange);
        font-size: 1.15rem;
    }

    /* === Contatti === */
    .hb .hb-contact {
        padding: 2.5rem;
        border-radius: var(--hb-radius);
        background: var(--hb-bg-3);
        border-left: 5px solid var(--hb-orange);
    }

        .hb .hb-contact h2 {
            font-size: 1.6rem;
            text-transform: uppercase;
            color: #fff;
            margin-bottom: .5rem;
        }

        .hb .hb-contact p {
            color: var(--hb-muted);
            margin: 0;
        }

    .hb .hb-info {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        color: var(--hb-text);
        text-decoration: none;
    }

        .hb .hb-info strong {
            display: block;
            font-family: EurostileBold, sans-serif;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .hb .hb-info span {
            color: var(--hb-muted);
            font-size: .95rem;
        }

    .hb a.hb-info:hover strong {
        color: var(--hb-orange);
    }

    /* === Fascia arancione === */
    .hb .hb-booking {
        background: var(--hb-orange);
        color: #111;
        padding: 3.5rem 0;
    }

        .hb .hb-booking h2 {
            font-size: clamp(1.6rem, 4vw, 2.5rem);
            text-transform: uppercase;
            margin: 0 0 .4rem;
        }

        .hb .hb-booking p {
            margin: 0;
            font-size: 1.05rem;
        }

    /* === Riquadro generico === */
    .hb .hb-card {
        height: 100%;
        padding: 2rem;
        border-radius: var(--hb-radius);
        background: var(--hb-bg-3);
        border: 1px solid var(--hb-line);
    }

        .hb .hb-card > h2,
        .hb .hb-card > h3 {
            font-size: 1.3rem;
            text-transform: uppercase;
            color: #fff;
            margin-bottom: 1rem;
        }

        .hb .hb-card p {
            color: var(--hb-muted);
        }

    .hb .hb-card--accent {
        border-left: 5px solid var(--hb-orange);
    }

    .hb .hb-card--danger {
        border-left: 5px solid #e5484d;
    }

    .hb .hb-card--light {
        background: #fff;
        color: #111;
    }

    /* === Tabelle === */
    .hb .hb-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        color: var(--hb-text);
        font-size: 1rem;
    }

        .hb .hb-table th,
        .hb .hb-table td {
            padding: .8rem .75rem;
            border-bottom: 1px solid var(--hb-line);
            text-align: center;
        }

        .hb .hb-table th {
            font-family: EurostileBold, sans-serif;
            font-weight: normal;
            text-transform: uppercase;
            letter-spacing: .08em;
            font-size: .8rem;
            color: var(--hb-muted);
        }

        .hb .hb-table td:first-child,
        .hb .hb-table th:first-child {
            text-align: left;
        }

        .hb .hb-table tr:last-child td {
            border-bottom: 0;
        }

    /* Etichette (es. giorni di chiusura) */
    .hb .hb-tags {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
    }

        .hb .hb-tags span {
            padding: .45rem 1rem;
            border: 1px solid rgba(229,72,77,.6);
            background: rgba(229,72,77,.12);
            color: #fff;
            font-family: EurostileBold, sans-serif;
            font-size: .85rem;
            letter-spacing: .08em;
            text-transform: uppercase;
        }

    /* === Persone da contattare === */
    .hb .hb-person {
        display: flex;
        gap: 1.25rem;
        align-items: center;
        margin-bottom: 1.5rem;
    }

        .hb .hb-person img {
            flex: 0 0 auto;
            width: 88px;
            height: 88px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--hb-orange);
        }

        .hb .hb-person h3 {
            font-size: 1.5rem;
            text-transform: uppercase;
            color: #fff;
            margin: 0;
        }

        .hb .hb-person em {
            display: block;
            color: var(--hb-orange);
            font-style: normal;
            text-transform: uppercase;
            letter-spacing: .12em;
            font-size: .75rem;
            margin-bottom: .35rem;
        }

        .hb .hb-person span {
            color: var(--hb-muted);
            font-size: .95rem;
        }

    .hb .hb-phone {
        display: block;
        font-family: EurostileBold, sans-serif;
        font-size: 1.6rem;
        letter-spacing: .04em;
        color: #fff;
        text-decoration: none;
        margin-bottom: 1.25rem;
    }

    /* === Moduli su fondo scuro === */
    .hb .hb-form label {
        display: block;
        margin: 1rem 0 .4rem;
        font-family: EurostileBold, sans-serif;
        text-transform: uppercase;
        letter-spacing: .08em;
        font-size: .8rem;
        color: var(--hb-muted);
    }

    .hb .hb-form .form-control {
        background: var(--hb-bg);
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 8px;
        color: #fff;
        min-height: 48px;
        font-size: 1rem;   /* 16px: iOS non ingrandisce la pagina al tocco */
    }

        .hb .hb-form .form-control:focus {
            border-color: var(--hb-orange);
            box-shadow: 0 0 0 .2rem rgba(247,136,34,.25);
        }

    .hb .hb-form .hb-error {
        display: block;
        color: #ff7b7f;
        font-size: .9rem;
        margin-top: .3rem;
    }

    /* Iframe e immagini esterne (meteo, webcam) dentro un riquadro chiaro */
    .hb .hb-embed {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: .75rem;
        height: 100%;
        padding: 1rem;
        border-radius: var(--hb-radius);
        background: #fff;
        color: #111;
        overflow: hidden;
    }

        .hb .hb-embed iframe,
        .hb .hb-embed img {
            max-width: 100%;
            border: 0;
        }

        .hb .hb-embed a {
            color: #111;
            font-weight: 600;
        }

@media (max-width: 575.98px) {
    .hb .hb-card {
        padding: 1.5rem;
    }

    .hb .hb-section {
        padding: 3.5rem 0;
    }

    .hb .hb-pagehero {
        padding: 4rem 0 3rem;
    }

    .hb .hb-actions .hb-btn {
        flex: 1 1 100%;
    }

    .hb .hb-contact {
        padding: 1.75rem;
    }

    .hb .hb-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}
