/* ============================================================
   CANTELLO — MENU PUBBLICO UNIFICATO
   Versione: 2026-09-01
   ============================================================ */

.cantello-public-header {
    width: 100%;
    min-height: 104px;
    background: #ffffff;
    color: #06244d;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 18px rgba(0,0,0,.10);
}

.cantello-public-header-inner {
    width: min(1480px, calc(100% - 56px));
    min-height: 104px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

.cantello-public-brand {
    width: 250px;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none !important;
    border: 0 !important;
}

.cantello-public-brand img {
    display: block;
    width: 215px;
    height: auto;
    max-height: 92px;
    object-fit: contain;
    object-position: left center;
}

.cantello-public-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.cantello-public-nav a {
    color: #06244d !important;
    background: transparent !important;
    font-weight: 800;
    font-size: 15px;
    line-height: 1.2;
    letter-spacing: .02em;
    text-decoration: none !important;
    white-space: nowrap;
    padding: 12px 0;
    border: 0 !important;
    border-bottom: 3px solid transparent !important;
    box-shadow: none !important;
    transition: color .2s ease, border-color .2s ease;
}

.cantello-public-nav a:hover,
.cantello-public-nav a.active {
    color: #ff6b00 !important;
    border-bottom-color: #ff6b00 !important;
}

.cantello-public-search {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 145px;
    justify-content: flex-end;
}

.cantello-public-search-icon {
    width: 30px;
    height: 30px;
    border: 3px solid #06244d;
    border-radius: 50%;
    position: relative;
    display: block;
    flex: 0 0 30px;
}

.cantello-public-search-icon::after {
    content: "";
    width: 11px;
    height: 3px;
    background: #06244d;
    position: absolute;
    right: -8px;
    bottom: 0;
    transform: rotate(45deg);
    border-radius: 4px;
}

.cantello-public-search a {
    background: #ff6b00 !important;
    color: #ffffff !important;
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
    text-decoration: none !important;
    padding: 14px 25px;
    border-radius: 11px;
    border: 0 !important;
    box-shadow: 0 8px 20px rgba(255,107,0,.18);
    white-space: nowrap;
}

.cantello-public-search a:hover {
    background: #f58220 !important;
    color: #ffffff !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1050px) {
    .cantello-public-header-inner {
        gap: 18px;
    }

    .cantello-public-brand {
        width: 190px;
        min-width: 190px;
    }

    .cantello-public-brand img {
        width: 170px;
    }

    .cantello-public-nav {
        gap: 20px;
    }

    .cantello-public-nav a {
        font-size: 13px;
    }

    .cantello-public-search {
        min-width: 115px;
    }
}

@media (max-width: 800px) {
    .cantello-public-header {
        min-height: auto;
    }

    .cantello-public-header-inner {
        width: calc(100% - 28px);
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
        justify-content: center;
    }

    .cantello-public-brand {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .cantello-public-brand img {
        width: 175px;
        max-height: 80px;
    }

    .cantello-public-nav {
        width: 100%;
        flex-wrap: wrap;
        gap: 12px 22px;
        order: 2;
    }

    .cantello-public-nav a {
        font-size: 13px;
        padding: 8px 0;
    }

    .cantello-public-search {
        width: 100%;
        min-width: 0;
        justify-content: center;
        order: 3;
    }
}

@media (max-width: 500px) {
    .cantello-public-nav {
        gap: 8px 16px;
    }

    .cantello-public-nav a {
        font-size: 12px;
    }

    .cantello-public-search-icon {
        display: none;
    }
}
