/* RESET MENU OFFCANVAS AGM */
.offcanvas.agm-menu {
    background: #000 !important;
    color: #fff;
    width: 100% !important;
    max-width: 100% !important;
    height: 100vh !important;
    border: 0 !important;
    z-index: 20000 !important;
}

.offcanvas-backdrop {
    z-index: 19990 !important;
}

.agm-menu .container {
    height: 100%;
}

.agm-menu-inner {
    height: 100%;
    padding-left: 40px;
    padding-right: 40px;
}

.agm-menu-header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.agm-logo {
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 1.5px;
}

.agm-menu-content {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
}

/* ACCORDION MENU */
.agm-menu-accordion {
    width: min(620px, 100%);
}

.agm-menu-row {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.agm-menu-row:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.agm-menu-row summary {
    min-height: 68px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    align-items: center;
    gap: 22px;
    cursor: pointer;
    list-style: none;
}

.agm-menu-row summary::-webkit-details-marker {
    display: none;
}

.agm-menu-row summary span,
.agm-menu-row--link > a {
    font-family: 'Montserrat', sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.08;
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    transition: color 0.25s ease;
}

.agm-menu-row summary:hover span,
.agm-menu-row--link > a:hover,
.agm-menu-row[open] summary span {
    color: #fff;
}

.agm-menu-row--link > a {
    min-height: 68px;
    display: flex;
    align-items: center;
}

.agm-menu-row summary i {
    position: relative;
    width: 28px;
    height: 28px;
    display: block;
}

.agm-menu-row summary i::before,
.agm-menu-row summary i::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 18px;
    height: 1px;
    background: rgba(255, 255, 255, 0.72);
    transform: translate(-50%, -50%);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.agm-menu-row summary i::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.agm-menu-row[open] summary i::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
}

/* SOTTOVOCI */
.agm-menu-submenu {
    padding: 0 0 24px 0;
}

.agm-menu-submenu a {
    display: block;
    width: fit-content;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease;
}

.agm-menu-submenu a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* TESTI COLONNA DESTRA */
.agm-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}

.agm-title-small {
    margin-top: 35px;
}

.agm-text,
.agm-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #fff;
}

.agm-text a {
    color: #fff;
    text-decoration: none;
}

.agm-description {
    margin-top: 45px;
    max-width: 620px;
}

/* SOCIAL */
.agm-social {
    display: flex;
    gap: 26px;
    margin-top: 30px;
}

.agm-social a {
    color: #fff;
    font-size: 30px;
    line-height: 1;
    text-decoration: none;
}

.agm-social a:hover {
    color: #fff;
    opacity: .7;
}

/* MOBILE */
@media (max-width: 767px) {

    .agm-menu {
        overflow-y: auto;
    }

    .agm-menu-inner {
        min-height: 100%;
        height: auto;
        padding-left: 24px;
        padding-right: 24px;
    }

    .agm-menu-header {
        height: 72px;
    }

    .agm-logo {
        font-size: 16px;
        letter-spacing: 1.6px;
    }

    .agm-menu-content {
        min-height: auto;
        display: block;
        padding-top: 8px;
        padding-bottom: 28px;
    }

    .agm-menu-accordion {
        width: 100%;
    }

    .agm-menu-row summary {
        min-height: 50px;
        grid-template-columns: minmax(0, 1fr) 28px;
        gap: 14px;
    }

    .agm-menu-row--link > a {
        min-height: 50px;
    }

    .agm-menu-row summary span,
    .agm-menu-row--link > a {
        font-size: 23px;
        line-height: 1.08;
    }

    .agm-menu-row summary i {
        width: 24px;
        height: 24px;
    }

    .agm-menu-row summary i::before,
    .agm-menu-row summary i::after {
        width: 16px;
    }

    .agm-menu-submenu {
        padding: 0 0 15px 0;
    }

    .agm-menu-submenu a {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 1.28;
        color: rgba(255, 255, 255, 0.66);
    }

    .agm-title-small,
    .agm-title-small + .agm-text,
    .agm-title-small + .agm-text + .agm-text {
        display: none;
    }

    .agm-social {
        margin-top: 20px;
        margin-bottom: 34px;
        gap: 20px;
    }

    .agm-social a {
        font-size: 25px;
    }

    .agm-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .agm-title-small {
        margin-top: 22px;
    }

    .agm-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .agm-description {
        display: none;
    }
}

/* SCHERMI PICCOLI */
@media (max-width: 390px) {

    .agm-menu-row summary {
        min-height: 48px;
    }

    .agm-menu-row--link > a {
        min-height: 48px;
    }

    .agm-menu-row summary span,
    .agm-menu-row--link > a {
        font-size: 21px;
    }

    .agm-menu-submenu a {
        font-size: 15px;
        line-height: 1.28;
    }

    .agm-social a {
        font-size: 23px;
    }

    .agm-title {
        font-size: 18px;
    }

    .agm-text {
        font-size: 13px;
    }
}