/* Values come from the page/block's Aspetto fields in Umbraco. */
.elastro-page-box { box-sizing: border-box; display: flow-root; min-width: 0; }
.elastro-block-box { box-sizing: border-box; min-width: 0; }

/* Standalone styled container. Settings live on the Block Grid content block:
   items.cshtml already renders BoxStyle on the surrounding layout-item.
   Do not reapply background/padding/border inside the component view. */
.umb-block-grid__layout-item[data-content-element-type-alias="elastroHalfAppearance"],
.umb-block-grid__layout-item[data-content-element-type-alias="elastroStyledBox"] {
    box-sizing: border-box;
    min-width: 0;
}

.elastro-styled-box {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    display: flow-root;
}

/* Each instance owns one inner content area. Its children remain normal blocks. */
.elastro-styled-box > .umb-block-grid__area-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    column-gap: 0 !important; /* override Oski's global 2% area gap */
    row-gap: 0;
}

.elastro-styled-box > .umb-block-grid__area-container > .umb-block-grid__area {
    grid-column: 1 / -1;
    min-width: 0;
}


/* Full Screen Top Container - dimensione e allineamento del banner.
   Limiti circoscritti al blocco hero, senza modificare gli altri layout.
   !important richiesto per sostituire il min-height inline della view (250px). */
.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__inner {
    min-height: 360px !important;
    justify-content: flex-start;
    padding-left: 19%; /* Compensa l'estensione full-bleed Oski (-17%). */
}

/* Full Screen Top Container - fascia leggibile per titolo e sottotitoli.
   Scope ristretto al Block Type Umbraco, senza interventi su Razor o sugli altri Half. */
.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__content {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    padding: 20px clamp(18px, 4vw, 64px);
    color: #fff;
    text-align: left;
}

/* La fascia occupa l'intera larghezza del banner, non solo quella del testo. */
.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__content::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 100vw;
    transform: translateX(-50%);
    background: rgba(6, 24, 47, 0.76);
    border-top: 1px solid rgba(190, 228, 255, 0.26);
    border-bottom: 1px solid rgba(190, 228, 255, 0.26);
}

.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__title {
    font-family: 'Lato', sans-serif;
    font-size: clamp(2rem, 3.1vw, 3.35rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.015em;
    margin: 0;
    text-align: left;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    text-align: left;
}

.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__list-item {
    color: #f2f7ff;
    font-size: clamp(1rem, 1.3vw, 1.25rem);
    line-height: 1.4;
    margin: 0 0 7px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
.top:not(.only_image) .top__list-item::before {
    content: none;
}

@media (max-width: 600px) {
    .umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
    .top:not(.only_image) .top__inner {
        min-height: 300px !important;
        padding-left: 12%;
    }

    .umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
    .top:not(.only_image) .top__content {
        padding: 16px 20px;
    }

    .umb-block-grid__layout-item[data-content-element-type-alias="oBlockFullScreenTopContainer"]
    .top:not(.only_image) .top__title {
        font-size: clamp(1.8rem, 7.5vw, 2.3rem);
    }
}

/* =============================================================
   Elastro corporate footer - isolated from the legacy Oski layout.
   Data, links, and logo are still supplied by Umbraco.
   ============================================================= */
.footer.elastro-footer .footer__content {
    padding: 54px 0 50px;
    text-align: left;
    background: radial-gradient(circle at 7% 0%, rgba(38, 115, 171, .20), transparent 45%), #15283b;
    border-top: 3px solid #55cbd5;
}

.footer.elastro-footer .footer__content > .container,
.footer.elastro-footer .footer__copyright > .container {
    width: min(1200px, calc(100% - 64px));
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    height: auto;
    min-height: 0;
}

.footer.elastro-footer .footer__block {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    align-items: start;
    gap: 32px 48px;
    padding: 0;
    margin: 0;
}

.footer.elastro-footer .footer__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.footer.elastro-footer .footer__info-logo {
    display: inline-flex;
    width: 138px;
    max-width: 100%;
    min-height: 96px;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
}

.footer.elastro-footer .footer__info-logo img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 112px;
    object-fit: contain;
}

.footer.elastro-footer .elastro-footer__brand-name {
    margin: 0;
    color: #f0f6fd;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
}

.footer.elastro-footer .footer__info-socials {
    margin: 2px 0 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
}

.footer.elastro-footer .footer__info-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 8px;
}

.footer.elastro-footer .footer__info-link::after {
    display: none;
}

.footer.elastro-footer .footer__info-link svg {
    max-width: 100%;
    max-height: 100%;
}

.footer.elastro-footer .footer__services-title,
.footer.elastro-footer .footer__contacts-title,
.footer.elastro-footer .elastro-footer__section-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.35;
    border-bottom: 1px solid rgba(113, 211, 227, .35);
}

.footer.elastro-footer .footer__navigation {
    padding: 0;
}

.footer.elastro-footer .footer__services-menu,
.footer.elastro-footer .footer__navigation-menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer.elastro-footer .footer__services-menu li,
.footer.elastro-footer .footer__navigation-menu li {
    margin: 0 0 11px;
    padding: 0;
}

.footer.elastro-footer .footer__services-link,
.footer.elastro-footer .footer__navigation-link,
.footer.elastro-footer .footer__contacts-link {
    display: inline-block;
    color: #bdcddd;
    font-size: 15px;
    line-height: 1.65;
    text-decoration: none;
}

.footer.elastro-footer .footer__services-link:hover,
.footer.elastro-footer .footer__navigation-link:hover,
.footer.elastro-footer .footer__contacts-link:hover,
.footer.elastro-footer .elastro-footer__privacy:hover {
    color: #73e0e3;
}

.footer.elastro-footer .footer__contacts-address {
    margin: 0 0 10px;
    color: #bdcddd;
    font-size: 15px;
    line-height: 1.65;
}

.footer.elastro-footer .footer__contacts-link {
    display: block;
    margin: 0 0 10px;
}

.footer.elastro-footer .footer__copyright {
    padding: 17px 0;
    background: #0e1b29;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer.elastro-footer .elastro-footer__legal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.footer.elastro-footer .footer__copyright-text {
    margin: 0;
    color: #b9cad9;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.footer.elastro-footer .elastro-footer__privacy {
    color: #b9cad9;
    font-size: 13px;
    line-height: 1.6;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .footer.elastro-footer .footer__content {
        padding: 38px 0 30px;
        text-align: left;
    }

    .footer.elastro-footer .footer__content > .container,
    .footer.elastro-footer .footer__copyright > .container {
        width: calc(100% - 40px);
    }

    .footer.elastro-footer .footer__block {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
    }

    .footer.elastro-footer .elastro-footer__legal {
        align-items: flex-start;
        flex-direction: column;
    }
}
