﻿/* =======================================================
   CONTATTI — stile coerente con la Home (override Bootstrap)
   ======================================================= */

/* ---------- Variabili base ---------- */
:root {
    --container-w: 1240px;
    --acc-1: #7A5AF8;
    --acc-2: #AF83DC;
    --bg: #0A0A1A;
    --txt: #E6E6FA;
    --txt-dim: #D8D8F0;
    --fs-h1: clamp(1.6rem,2.6vw,2.9rem);
    --fs-h2: clamp(1.25rem,2.1vw,1.9rem);
    --lh-title: 1.15;
    --lh-text: 1.62;
    --nav-offset: 64px;
}

/* ---------- Base ---------- */
html, body {
    background: var(--bg);
    color: var(--txt);
    overflow-x: clip
}

@supports not (overflow-x:clip) {
    html, body {
        overflow-x: hidden
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

h1, h2, h3 {
    font-family: 'Orbitron',system-ui,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Neutralizza Bootstrap chiaro ---------- */
.bg-white {
    background: transparent !important;
}

.bg-light {
    background: transparent !important;
}

.container, .container-xxl, .container-fluid {
    color: var(--txt);
}

.breadcrumb {
    margin-bottom: 0;
}

/* ---------- HERO ---------- */
.container-fluid.header {
    padding: 0;
    background: transparent !important;
    padding-top: calc(var(--nav-offset) + 10px);
    padding-bottom: 16px;
}

    .container-fluid.header .row {
        --bs-gutter-x: 0;
        align-items: center
    }

    .container-fluid.header .col-md-6 {
        padding: 20px
    }

    .container-fluid.header .display-5,
    .container-fluid.header .domande {
        margin: .1rem 0 .35rem;
        font-size: var(--fs-h1) !important;
        font-weight: 900;
        line-height: var(--lh-title);
        text-shadow: 0 0 14px rgba(175,131,220,.35);
        color: var(--txt);
    }

/* breadcrumb come Home */
.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    --bs-breadcrumb-divider: "/";
}

    .breadcrumb .breadcrumb-item a {
        color: var(--txt);
        text-decoration: none
    }

        .breadcrumb .breadcrumb-item a:hover {
            text-decoration: underline
        }

    .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(230,230,250,.6)
    }

/* immagine hero */
.container-fluid.header img.img-fluid {
    width: min(420px,90%);
    margin: 0 auto;
    filter: drop-shadow(0 10px 24px rgba(175,131,220,.22));
}

/* ---------- WRAP SEZIONE ---------- */
.container-xxl.py-5.why-us {
    padding-top: 24px !important;
    padding-bottom: 24px !important
}

.container-xxl .text-center.mx-auto h2 {
    font-size: var(--fs-h2);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(175,131,220,.35);
    margin: 0 0 .5rem;
}

.container-xxl .text-center.mx-auto p {
    color: var(--txt-dim);
    line-height: var(--lh-text)
}

/* ---------- CARD INFO CONTATTO ---------- */
/* wrapper esterno di ogni box */
.why-us .bg-light.rounded.p-3 {
    background: linear-gradient(180deg,rgba(16,16,38,.96),rgba(10,10,30,.96)) !important;
    border: 1px solid #AF83DC33;
    border-radius: 16px !important;
    box-shadow: 0 10px 24px rgba(175,131,220,.18), inset 0 1px 0 rgba(255,255,255,.05);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
}

    .why-us .bg-light.rounded.p-3:hover {
        transform: translateY(-3px);
        border-color: #AF83DC66;
        box-shadow: 0 14px 28px rgba(175,131,220,.28);
    }
/* box interno (aveva bg-white): lo rendiamo trasparente e rimuoviamo bordo inline */
.why-us .d-flex.align-items-center.bg-white.rounded.p-3 {
    background: transparent !important;
    border: 0 !important;
    padding: 14px !important;
}

.why-us .d-flex.align-items-center .icon {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid #AF83DC66;
    background: rgba(10,10,26,.45);
    box-shadow: 0 6px 14px rgba(175,131,220,.2);
}

.why-us .d-flex.align-items-center i {
    color: var(--acc-2) !important
}

.why-us .d-flex.align-items-center span {
    font-weight: 800;
    letter-spacing: .03em;
    margin-left: 6px;
}

/* ---------- MAPPA ---------- */
.position-relative.rounded.mx-auto {
    width: 100%;
    max-width: 900px; /* un po’ più largo su desktop */
    border: 1px solid #AF83DC33;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(175,131,220,.18);
    background: linear-gradient(180deg,rgba(16,16,38,.96),rgba(10,10,30,.96));
}

    .position-relative.rounded.mx-auto iframe {
        display: block;
        width: 100%;
        height: 100%;
        min-height: 420px;
        border: 0;
    }

/* ---------- Link e liste (safe) ---------- */
.why-us a {
    color: #8ab7ff
}

    .why-us a:hover {
        text-decoration: underline
    }

.why-us ul {
    padding-left: 1.1rem
}

.why-us li + li {
    margin-top: .25rem
}

/* ---------- Buttons (se necessari) ---------- */
.btn {
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}

.btn-primary {
    background: linear-gradient(90deg,var(--acc-1),var(--acc-2));
    color: #fff;
    border: 0
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 22px rgba(175,131,220,.45)
    }

/* ---------- Responsive ---------- */
@media (max-width:992px) {
    :root {
        --nav-offset: 56px
    }

    .container-fluid.header {
        padding-top: calc(var(--nav-offset) + 6px)
    }
}

@media (max-width:768px) {
    .container-fluid.header {
        padding-top: calc(var(--nav-offset) + 2px);
        padding-bottom: 12px
    }

        .container-fluid.header .col-md-6 {
            padding: 14px
        }

    .position-relative.rounded.mx-auto iframe {
        min-height: 360px
    }
}


/* =======================================================
   CENTRAMENTO HEADER (H1 + BREADCRUMB)
   ======================================================= */
.container-fluid.header {
    text-align: center; /* centra tutto il contenuto */
    padding-top: calc(var(--nav-offset) + 10px);
    padding-bottom: 16px;
}

    .container-fluid.header .col-md-6 {
        padding: 20px;
        margin: 0 auto; /* centra il contenitore */
        max-width: 100%;
    }

    .container-fluid.header h1,
    .container-fluid.header .display-5,
    .container-fluid.header .domande {
        text-align: center; /* centra l’H1 */
        margin-bottom: .6rem;
        font-size: var(--fs-h1);
        font-weight: 900;
        line-height: var(--lh-title);
        text-shadow: 0 0 14px rgba(175,131,220,.35);
        color: var(--txt);
    }

    /* breadcrumb centrata sotto l’H1 */
    .container-fluid.header nav[aria-label="breadcrumb"] {
        display: flex;
        justify-content: center;
        margin-top: .3rem;
    }

.breadcrumb {
    justify-content: center;
    text-align: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    --bs-breadcrumb-divider: "/";
}

    .breadcrumb .breadcrumb-item a {
        color: var(--txt);
        text-decoration: none;
    }

        .breadcrumb .breadcrumb-item a:hover {
            text-decoration: underline;
        }

    .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
        color: rgba(230,230,250,.6);
    }

/* rimuove eventuale offset da Bootstrap */
.container-fluid.header .row {
    justify-content: center;
    text-align: center;
}
