/* ==========================================================
   SEA GOLD Framework
   SEA Sistemi Pilot — Site Shell
   File: sea-site-shell.css

   Contiene:
   1. Bridge Passweb
   2. Skip link
   3. Header
   4. Navigazione desktop
   5. Menu mobile
   6. Contenuto pilota
   7. Footer provvisorio
   8. Reduced motion
   ========================================================== */


/* ==========================================================
   1. PASSWEB SHELL SOURCES
   ========================================================== */

.sea-shell-header-source,
.sea-shell-content,
.sea-shell-footer-source {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.sea-shell-header-mount,
.sea-shell-footer-mount {
    display: contents;
}


/* ==========================================================
   2. SKIP LINK
   ========================================================== */

.sea-skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0.75rem 1rem;

    color: #ffffff;
    background: #172033;

    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1;

    text-decoration: none;

    border-radius: 0.375rem;

    transform: translateY(-200%);

    transition: transform 160ms ease;
}

.sea-skip-link:hover,
.sea-skip-link:focus {
    color: #ffffff;
    text-decoration: none;
}

.sea-skip-link:focus {
    transform: translateY(0);
}


/* ==========================================================
   3. SITE HEADER
   ========================================================== */

.sea-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;

    color: var(--sea-color-text, #172033);
    background: rgba(255, 255, 255, 0.94);

    border-bottom: 1px solid rgba(23, 32, 51, 0.08);

    box-shadow: none;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.sea-site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.985);

    border-bottom-color: rgba(23, 32, 51, 0.12);

    box-shadow:
        0 0.5rem 1.5rem rgba(23, 32, 51, 0.08);
}

.sea-site-header__inner {
    display: flex;
    align-items: center;
    gap: 2rem;

    min-height: 5.5rem;

    transition:
        min-height 180ms ease;
}

.sea-site-header.is-scrolled .sea-site-header__inner {
    min-height: 4.75rem;
}


/* ==========================================================
   4. BRAND
   ========================================================== */

.sea-site-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;

    color: inherit;
    text-decoration: none;
}

.sea-site-brand:hover {
    color: inherit;
    text-decoration: none;
}

.sea-site-brand:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 0.375rem;
}

.sea-site-brand__logo {
    display: block;

    width: auto;
    max-width: 9.375rem;
    height: auto;
    max-height: 4rem;

    object-fit: contain;

    transition:
        max-width 180ms ease,
        max-height 180ms ease;
}

.sea-site-header.is-scrolled .sea-site-brand__logo {
    max-width: 8.25rem;
    max-height: 3.5rem;
}


/* ==========================================================
   5. NAVIGATION WRAPPER
   ========================================================== */

.sea-site-header__navigation {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}


/* ==========================================================
   6. DESKTOP NAVIGATION
   ========================================================== */

.sea-site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sea-site-nav__item {
    margin: 0;
    padding: 0;
}

.sea-site-nav__link {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 3rem;
    padding: 0 0.875rem;

    color: inherit;

    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;

    border-radius: 0.5rem;

    transition:
        color 160ms ease,
        background-color 160ms ease;
}

.sea-site-nav__link::after {
    position: absolute;
    right: 0.875rem;
    bottom: 0.375rem;
    left: 0.875rem;

    height: 2px;

    background: currentColor;

    content: "";

    opacity: 0;

    transform: scaleX(0);
    transform-origin: center;

    transition:
        opacity 160ms ease,
        transform 160ms ease;
}

.sea-site-nav__link:hover {
    color: var(--sea-color-primary, #075b76);
    background: rgba(7, 91, 118, 0.06);

    text-decoration: none;
}

.sea-site-nav__link:hover::after,
.sea-site-nav__link:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

.sea-site-nav__link:focus-visible {
    color: var(--sea-color-primary, #075b76);

    outline: 2px solid currentColor;
    outline-offset: 2px;
}


/* ==========================================================
   7. HEADER CTA
   ========================================================== */

.sea-site-header__cta {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;

    min-height: 3rem;
    padding: 0.75rem 1.125rem;

    color: #ffffff;
    background: var(--sea-color-primary, #075b76);

    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;

    text-decoration: none;

    border: 1px solid transparent;
    border-radius: 999px;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.sea-site-header__cta:hover {
    color: #ffffff;
    background: var(--sea-color-primary-strong, #06485e);

    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 0.5rem 1.25rem rgba(7, 91, 118, 0.18);
}

.sea-site-header__cta:focus-visible {
    color: #ffffff;

    outline: 3px solid rgba(7, 91, 118, 0.32);
    outline-offset: 3px;
}


/* ==========================================================
   8. MOBILE MENU BUTTON
   ========================================================== */

.sea-site-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;

    min-width: 3rem;
    min-height: 3rem;
    margin-left: auto;
    padding: 0.625rem 0.75rem;

    color: inherit;
    background: transparent;

    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;

    border: 1px solid rgba(23, 32, 51, 0.16);
    border-radius: 0.625rem;

    cursor: pointer;
}

.sea-site-menu-toggle:hover {
    background: rgba(23, 32, 51, 0.05);
}

.sea-site-menu-toggle:focus-visible {
    outline: 3px solid rgba(7, 91, 118, 0.28);
    outline-offset: 3px;
}

.sea-site-menu-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;

    width: 1.25rem;
    height: 1.25rem;
}

.sea-site-menu-toggle__icon span {
    display: block;

    width: 100%;
    height: 2px;

    background: currentColor;

    border-radius: 999px;

    transform-origin: center;

    transition:
        transform 160ms ease,
        opacity 160ms ease;
}


/* ==========================================================
   9. MOBILE BUTTON OPEN STATE
   ========================================================== */

.sea-site-menu-toggle[aria-expanded="true"] .sea-site-menu-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sea-site-menu-toggle[aria-expanded="true"] .sea-site-menu-toggle__icon span:nth-child(2) {
    opacity: 0;
}

.sea-site-menu-toggle[aria-expanded="true"] .sea-site-menu-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}


/* ==========================================================
   10. PILOT PAGE CONTENT
   ========================================================== */

.sea-pilot-intro {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.sea-pilot-intro__eyebrow {
    margin: 0 0 0.75rem;

    color: var(--sea-color-primary, #075b76);

    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sea-pilot-intro__title {
    margin: 0;

    color: var(--sea-color-text, #172033);

    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
}

.sea-pilot-intro__description {
    max-width: 48rem;
    margin: 1.5rem 0 0;

    color: var(--sea-color-text-muted, #566176);

    font-size: 1.125rem;
    line-height: 1.6;
}

/* ==========================================================
   11. SITE FOOTER
   SHELL-004
   ========================================================== */

.sea-site-footer {
    width: 100%;

    color: #ffffff;
    background: #172033;
}

.sea-site-footer__main {
    padding-top: 4.5rem;
    padding-bottom: 4rem;
}

.sea-site-footer__grid {
    display: grid;
    grid-template-columns:
        minmax(16rem, 1.5fr) repeat(3, minmax(10rem, 1fr));
    gap: 3rem;
}


/* Footer identity */

.sea-site-footer__identity {
    max-width: 26rem;
}

.sea-site-footer__brand {
    display: inline-flex;
    align-items: center;

    color: #ffffff;
    text-decoration: none;
}

.sea-site-footer__brand:hover {
    color: #ffffff;
    text-decoration: none;
}

.sea-site-footer__brand:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 0.375rem;
}

.sea-site-footer__logo {
    display: block;

    width: auto;
    max-width: 9.375rem;
    height: auto;
    max-height: 4.25rem;

    object-fit: contain;

    filter: brightness(0) invert(1);
}

.sea-site-footer__description {
    margin: 1.5rem 0 0;

    color: rgba(255, 255, 255, 0.76);

    font-size: 0.9375rem;
    line-height: 1.7;
}

.sea-site-footer__partner {
    margin: 1.25rem 0 0;

    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}


/* Footer columns */

.sea-site-footer__column {
    min-width: 0;
}

.sea-site-footer__title {
    margin: 0 0 1.25rem;

    color: #ffffff;

    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.4;
    text-transform: uppercase;
}

.sea-site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sea-site-footer__links li {
    margin: 0;
    padding: 0;
}

.sea-site-footer__links a {
    display: inline-flex;

    color: rgba(255, 255, 255, 0.74);

    font-size: 0.9375rem;
    line-height: 1.5;

    text-decoration: none;

    transition:
        color 160ms ease,
        transform 160ms ease;
}

.sea-site-footer__links a:hover {
    color: #ffffff;

    text-decoration: none;

    transform: translateX(0.25rem);
}

.sea-site-footer__links a:focus-visible {
    color: #ffffff;

    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 0.25rem;
}


/* Locations */

.sea-site-footer__locations {
    display: flex;
    flex-direction: column;
    gap: 1.125rem;
}

.sea-site-footer__location {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sea-site-footer__location strong {
    color: #ffffff;

    font-size: 0.9375rem;
    line-height: 1.4;
}

.sea-site-footer__location span {
    color: rgba(255, 255, 255, 0.68);

    font-size: 0.875rem;
    line-height: 1.5;
}


/* Contact link */

.sea-site-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;

    margin-top: 1.5rem;

    color: #ffffff;

    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;

    text-decoration: none;
}

.sea-site-footer__contact-link:hover {
    color: #ffffff;
    text-decoration: none;
}

.sea-site-footer__contact-link span {
    transition: transform 160ms ease;
}

.sea-site-footer__contact-link:hover span {
    transform: translateX(0.25rem);
}

.sea-site-footer__contact-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 0.375rem;
}


/* Footer bottom */

.sea-site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.sea-site-footer__bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    min-height: 5rem;
}

.sea-site-footer__copyright {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);

    font-size: 0.8125rem;
    line-height: 1.5;
}

.sea-site-footer__legal-nav ul {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    margin: 0;
    padding: 0;

    list-style: none;
}

.sea-site-footer__legal-nav li {
    margin: 0;
    padding: 0;
}

.sea-site-footer__legal-nav a {
    color: rgba(255, 255, 255, 0.66);

    font-size: 0.8125rem;
    line-height: 1.5;

    text-decoration: none;

    transition: color 160ms ease;
}

.sea-site-footer__legal-nav a:hover {
    color: #ffffff;
    text-decoration: none;
}

.sea-site-footer__legal-nav a:focus-visible {
    color: #ffffff;

    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 0.25rem;
}

/* ==========================================================
   12. TABLET AND MOBILE
   ========================================================== */

@media (max-width: 991.98px) {

    .sea-site-header__inner {
        position: relative;

        min-height: 4.75rem;
    }

    .sea-site-header.is-scrolled .sea-site-header__inner {
        min-height: 4.25rem;
    }

    .sea-site-header.is-scrolled .sea-site-brand__logo {
        max-width: 7rem;
        max-height: 3.125rem;
    }

    .sea-site-menu-toggle {
        display: inline-flex;
    }

    .sea-site-header__navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 1001;

        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;

        padding: 1rem;

        background: #ffffff;

        border-top: 1px solid rgba(23, 32, 51, 0.08);
        border-bottom: 1px solid rgba(23, 32, 51, 0.12);

        box-shadow:
            0 1rem 2rem rgba(23, 32, 51, 0.1);
    }

    .sea-site-header__navigation.is-open {
        display: flex;
    }

    .sea-site-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .sea-site-nav__link {
        justify-content: flex-start;

        width: 100%;
        min-height: 3.25rem;
        padding: 0 1rem;
    }

    .sea-site-nav__link::after {
        display: none;
    }

    .sea-site-header__cta {
        width: 100%;

        border-radius: 0.625rem;
    }

    .sea-site-footer__grid {
        grid-template-columns:
            minmax(14rem, 1.25fr) repeat(2, minmax(10rem, 1fr));
    }

    .sea-site-footer__identity {
        grid-column: 1 / -1;

        max-width: 40rem;
    }
}


/* ==========================================================
   13. SMALL MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .sea-site-footer__main {
        padding-top: 3.5rem;
        padding-bottom: 3rem;
    }

    .sea-site-footer__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .sea-site-footer__identity {
        grid-column: auto;
    }

    .sea-site-footer__bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;

        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .sea-site-footer__legal-nav ul {
        flex-wrap: wrap;
        gap: 0.75rem 1.25rem;
    }
}



@media (max-width: 479.98px) {

    .sea-site-menu-toggle__label {
        position: absolute;

        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;

        overflow: hidden;

        clip: rect(0, 0, 0, 0);
        white-space: nowrap;

        border: 0;
    }

    .sea-pilot-intro {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }
}


/* ==========================================================
   14. REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .sea-skip-link,
    .sea-site-header,
    .sea-site-header__inner,
    .sea-site-brand__logo,
    .sea-site-nav__link,
    .sea-site-nav__link::after,
    .sea-site-header__cta,
    .sea-site-menu-toggle__icon span,
    .sea-site-footer__links a,
    .sea-site-footer__contact-link span,
    .sea-site-footer__legal-nav a {
        transition: none;
    }
}